View previous topic :: View next topic |
Author |
Message |
thedopefishlives Tux's lil' helper
Joined: 23 Nov 2005 Posts: 84
|
Posted: Mon Jun 05, 2006 5:30 pm Post subject: Hotkey module: "no such device" [SOLVED] |
|
|
So I'm trying to get Ubuntu-style hotkey handling on my HP laptop because the volume up/down keys send inverted X events. I presume, in order to do this, I have to use the "hotkey" kernel module, but it won't load. It says the following in my logs:
Quote: | Using specific hotkey driver |
but my console says:
Quote: | FATAL: Error inserting hotkey (/lib/modules/2.6.17-rc5-mm2/kernel/drivers/acpi/hotkey.ko): No such device |
Any help? Does the hotkey driver have some kind of unspecified dependency that I need to fill before I can use it?
Last edited by thedopefishlives on Tue Jun 06, 2006 3:31 pm; edited 1 time in total |
|
Back to top |
|
|
KillMinusNine n00b
Joined: 27 Dec 2005 Posts: 44 Location: Washington
|
Posted: Tue Jun 06, 2006 7:15 am Post subject: Re: Hotkey module: "no such device" |
|
|
thedopefishlives wrote: | So I'm trying to get Ubuntu-style hotkey handling on my HP laptop because the volume up/down keys send inverted X events. I presume, in order to do this, I have to use the "hotkey" kernel module, but it won't load. |
I don't think you need to do that. If I understand the problem, it's that you have multimedia keys on your laptop that aren't giving the signals in the way you want. Can't you solve this in a .Xmodmap file? Here's my hotkey support in my HP laptop:
Code: | keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 174 = XF86AudioLowerVolume
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 178 = XF86WWW |
You ought to be able to remap each key to its appropriate location using the keycode (obtained through xev) and the appropriate button symbol.
(A list of symbols can be found in /usr/share/X11/XKeysymDB ) |
|
Back to top |
|
|
thedopefishlives Tux's lil' helper
Joined: 23 Nov 2005 Posts: 84
|
Posted: Tue Jun 06, 2006 2:03 pm Post subject: |
|
|
No, no, not quite what I mean. I have no problems remapping my keys and generating the appropriate X media events (XF86AudioRaiseVolume, etc.). The problem is specifically with the volume up/down keys: Whenever I press one, X records a KeyRelease event followed by its corresponding KeyPress event, at which point X thinks that I'm holding the key down and just keeps generating KeyPress events. Ubuntu, apparently, generates ACPI events for these buttons and uses acpi_fakekey to translate those events into keycodes. This is the solution I would like to implement, but I can't figure out how they did it if this kernel module absolutely fails to load. |
|
Back to top |
|
|
thedopefishlives Tux's lil' helper
Joined: 23 Nov 2005 Posts: 84
|
Posted: Tue Jun 06, 2006 3:32 pm Post subject: |
|
|
Okay, someone needs to shoot the guy who wrote Documentation/acpi-hotkey.txt.... You have to pass a kernel parameter, "acpi_generic_hotkey", to use the generic hotkey driver. Oi. |
|
Back to top |
|
|
|