Red Hat Bugzilla – Bug 205064
gpm wakes up every 2 seconds to poll the console, even in runlevel 5
Last modified: 2007-11-30 17:11:42 EST
Description of problem:
GPM wakes up every 2 seconds to poll the console, even when in runlevel 5. This
is causing spurious wakeups which cause less powersaving than possible.
gpm does the polling since in X mode gpm has to be inactive, so it is waiting
for X to go away / the user to switch to text mode. It polls for this every 2
I question the usefulness of gpm (in default install!) in runlevel 5, but if it
has to stay, the attached patch slightly modifies gpm such that the wakeup will
happen at exactly the second tick (where it will coincide with other similar
wakups in other programs such as hal) and not cause a
wakeup-from-powermanagement-sleep all on it's own.
Created attachment 135455 [details]
patch to round the 2 second sleep up to a full wallclock second boundary
any ideas why gpm is even started in runlevel 5?
Sorry, no, no idea, if it was for me, i'd just scrap it as it is :). I can
apply the patch, although it is probably still somewhat suboptimal to have gpm
running at all. If there are no objections i'll drop it from runlevel 5.