Controlling device power management from terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am implementing the power saving modes for mlx90632 device driver
and while I have implemented routines for SET_RUNTIME_PM_OPS
(runtime_pm_suspend and runtime_pm_resume) I am not able to find out
how to trigger them from the terminal.

It could be that my driver code for power management implementation is
incomplete and I need to initialize something more.

Maybe it is helpful, but the power submodule of the device contains below files:

$ ls -al /sys/bus/iio/devices/iio\:device0/power
total 0
drwxrwxr-x 2 root gpio    0 Apr  6 14:17 .
drwxrwxr-x 3 root gpio    0 Apr  6 14:17 ..
-rw-rw-r-- 1 root gpio 4096 Apr  6 14:17 async
-rw-rw-r-- 1 root gpio 4096 Apr  6 14:17 autosuspend_delay_ms
-rw-rw-r-- 1 root gpio 4096 Apr  6 14:18 control
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_active_kids
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_active_time
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_enabled
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_status
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_suspended_time
-r--r--r-- 1 root gpio 4096 Apr  6 14:17 runtime_usage

And control is already set to "auto" which according to documentation
should allow the PM.

Thanks for the hints.

Best regards,
Crt Mori



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux