$ ls -lad /sys/devices/platform/opal-sensor/hwmon/*/power*
drwxr-xr-x 2 root root 0 May 23 10:16
-r--r--r-- 1 root root 65536 May 23 10:16
$ cat /sys/devices/platform/opal-sensor/hwmon/hwmon4/power1_input
There patches allow any
/sys/devices/platform/opal-sensor/hwmon/hwmon*/power* file to be
detected as a measurement sysfs entry excluding directories.
I think it would be useful if PowerTOP could by default write reports to STDOUT
(the output could be easily filtered through pipes).
I proposed patch , which:
- makes the filename argument of CSV, HTML reports optional (was previously mandatory),
if it is not specified it outputs to STDOUT
- reintroduced the old -d, --dump switch, which writes report in plain text
(which could be also useful and at least keeps user interface backward
compatibility with powertop 1.x)
thanks & regards