Bug 23744 - powertop service suspends some mouses
Summary: powertop service suspends some mouses
Status: ASSIGNED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-21 22:19 CEST by zezinho
Modified: 2018-11-18 09:55 CET (History)
2 users (show)

See Also:
Source RPM: powertop
CVE:
Status comment:


Attachments

Description zezinho 2018-10-21 22:19:55 CEST
When powertop package is installed, as service activates USB suspend after 3 seconds. As this is not enough for mouses, Mageia provides a script that configures a longer suspend time.

As with kernels 4.14.70, the product is not provided in /sys any more for some USB mouses, so this update searches only for the idProduct to change suspend time.

RPMS :

powertop-2.9-6.{i586|x86_64}.rpm
Comment 1 Len Lawrence 2018-10-27 23:39:45 CEST
I guess this would not apply to wireless USB?

CC: (none) => tarazed25

Comment 2 zezinho 2018-10-28 09:14:14 CET
(In reply to Len Lawrence from comment #1)
> I guess this would not apply to wireless USB?

It does, for the USB dongle. If it does not awake automatically...

Status: NEW => ASSIGNED

Comment 3 Herman Viaene 2018-11-06 14:10:03 CET
MGA 6-32 MATE in IBM Thinkpad R50e
No installation issues
Not sure how this operates, so got info from:
https://wiki.archlinux.org/index.php/powertop
At CLI:
# systemctl start powertop
[root@mach6 ~]# systemctl -l status powertop
● powertop.service - PowerTOP autotuner
   Loaded: loaded (/usr/lib/systemd/system/powertop.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since di 2018-11-06 13:44:21 CET; 3s ago
  Process: 13186 ExecStart=/usr/sbin/powertop.sh (code=exited, status=0/SUCCESS)
 Main PID: 13186 (code=exited, status=0/SUCCESS)

nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Cannot load from file /var/cache/powertop/saved_
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: File will be loaded after taking minimum number 
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 0101
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for c05a
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 3319
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 0002
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 0001
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 0001
nov 06 13:44:21 mach6.hviaene.thuis powertop.sh[13186]: Setting suspend delay to 180000 ms for 0001
nov 06 13:44:21 mach6.hviaene.thuis systemd[1]: Started PowerTOP autotuner.
and from above website:
# powertop --html=powerreport.html
modprobe cpufreq_stats failedLoaded 0 prior measurements
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only 
RAPL device for cpu 0
RAPL device for cpu 0
Devfreq not enabled
glob returned GLOB_ABORTED
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with battery only 
Preparing to take measurements
Taking 1 measurement(s) for a duration of 20 second(s) each.
PowerTOP outputing using base filename powerreport.html

Note that I run this laptop from mains, the battery being close to dead.
Then file powerreport.html gives info on what applications use power. But my USB mouse remains dead after 20 min.
So not sure if this is OK.

CC: (none) => herman.viaene

Comment 4 zezinho 2018-11-06 17:49:21 CET
(In reply to Herman Viaene from comment #3)
> But my USB mouse remains dead after 20 min.
> So not sure if this is OK.
The service activates autosuspend of the USB mouse after 180 seconds. So it is Ok if you have to click to awake the mouse after 20 minutes... I don't know any model that awakes without a click!
Comment 5 Herman Viaene 2018-11-06 17:51:31 CET
Click on what? Just clicking somewhere does not help.
Comment 6 zezinho 2018-11-06 17:54:15 CET
(In reply to Herman Viaene from comment #5)
> Click on what? Just clicking somewhere does not help.

Clicking on a physical button. If it does not help, try to unplug, then plug it in ANOTHER usb port.
Comment 7 zezinho 2018-11-18 09:55:17 CET
What is blocking this bug? My own tests shows it works nicely!

Note You need to log in before you can comment on or make changes to this bug.