thinkpad-keys on ThinkPad X60* uses a large amount of CPU
Bug #45404 reported by
Chris Howells
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hotkey-setup (Ubuntu) |
Fix Released
|
Medium
|
Paul Sladen | ||
linux-source-2.6.20 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
linux-source-2.6.22 (Baltix) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hotkey-setup
This is on a ThinkPad X60s.
chris@thinky:~$ uptime
13:45:30 up 3 days, 13:54, 4 users, load average: 0.94, 1.07, 1.08
chris@thinky:~$ ps aux | grep thinkpad-keys
root 4495 1.5 0.0 1412 28 ? S May14 79:12 /usr/sbin/
In three days (and numerous hibernates) thinkpad-keys has used 79 minutes of CPU time -- according to top thinkpad-keys has a constant CPU load of 2%, which unfortunately doesn't do good things for battery consumption.
To post a comment you must log in.
This only seems to show up on the X60*. Eg. on a R52 that has been up for a day, it's only used 20 seconds:
$ uptime ; ps aux | awk '/[t]hinkpad- keys/{print$ 11,$10} ' thinkpad- keys 0:20
15:27:11 up 1 day, 6:20, 4 users, load average: 0.03, 0.07, 0.08
/usr/sbin/
sabdfl reported this to me and his X60 is SMP (Core Duo).
It may also, to a lesser extent, be visible on an R40e, jriddell has mentioned.
Chris: can you:
apt-get install tpb
(this will conflict with 'hotkey-setup' so you'll temporaily have to remove the 'ubuntu-desktop' meta package).
Can you check if the CPU usage on that is any different. (It should be 25% of the amount since 'tpb' polls at 5Hz by default and 'thinkpad-keys', currently at 20Hz.
I've thought of so ways to get the current 80 /dev/nvram queries per second down to ~11 and not loose much of the responsiveness/ latency.