Skip to content

Show evil usbdevfs users

Oleg Drokin powertop 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add support for usbdevfssrc/devices/usb.cpp src/devices/usb.h+31 -00 replies
2/2Show idle processes holding devices at full powersrc/process/process.cpp+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Powertop] [PATCH 0/2] Show evil usbdevfs users

It turns out that powertop does not yet recognise that usbdevfs users that hold usb device open like that cause it to operate at full power, kind of like ALSA sound device users.
So the first patch adds support for ussbdevfs users to shame them for needlessly draining power (I am looking at you, fwupd), and patch two fixes an issue where such processes are not displayed in the summary because they did not have any runtime at all, as if that would somehow prevent the device-opening-damage.

Oleg Drokin (2):
Add support for usbdevfs
Show idle processes holding devices at full power

 src/devices/usb.cpp     | 28 ++++++++++++++++++++++++++++
 src/devices/usb.h       |  3 +++
 src/process/process.cpp |  3 ++-
 3 files changed, 33 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.4