[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#122607: daemon ignores events on USB input devices



Package: klaptopdaemon
Version: 2.2.2-5
Severity: Important

KDE's laptop daemon currently ignores events coming from USB devices 
which makes it unusable on systems using USB input devices only; the 
obvious result is that the daemon will initiate a suspend event 
although the user uses the mouse or types on the keyboard.

The bug is more a design flaw as the daemon currently checks for input 
activity by parsing /proc/interrupts, searching for the keywords 
"[K|k]eyboard" and "[M|m]ouse" and checking whether or not an 
interrupt on their irq lines has occurred since the last poll. USB 
devices do not show up as such in /proc/interrupts but as "usb-ohci" 
(or whatever driver you use) and possibly share interrupts with other 
devices (such as sound in my case). Bad method. There must be a way of 
linking itself into X's input event handlers and do the checking there.

This said, I still consider it by all means important rather than a 
wishlist item. Many people use their laptop computers at home in 
combination with external - USB, that is - input devices (who likes to 
fuzz with a small mousepad or dislocated keys on a literally weak 
keyboard?). 

Thomas



Reply to: