[Pkg-acpi-devel] Bug#521280: how to make acpid react to hotkeys now?

Henrique de Moraes Holschuh hmh at debian.org
Fri Apr 17 04:08:43 UTC 2009


On Thu, 16 Apr 2009, gregor herrmann wrote:
> In the above file the three volume-stanzas are probably useless; the
> volume-key-events show up for me only after reinstalling
> hotkey-setup, maybe there's another possibility, too.

You should never mess with the volume keys on thinkpad-acpi (i.e. leave
them disabled on the hotkey mask as the driver tells you to by not
enabling them in the first place), *unless*:

1. Use the dock or port-replicator's line-out exclusively, and inserted a
dummy plug in the earphone jacket or did something else to shut down the
internal speakers.

or

2. Likes your volume ramp to be all screwed up.


Those volume keys are NOT for commanding AC97 mixers if they're getting
sent to thinkpad-acpi.  It is that simple.

Note that I didn't say anything about volume keysyms in X.org.  In Lenovo
thinkpad (except maybe the Z series) that lack the internal non-ac97
volume control (they just have mute control), the volume keys ARE just
hotkeys, but they do NOT go through thinkpad-acpi in the first place, they
go directly to the keyboard driver and X will get them.

> > > How am I supposed to react to these events nowadays?
> > Well, the very best would be to improve the hal input event helper to make
> > it grow generic "hey, do this configurable thing when you get this
> > configurable input event" functionality, then use that.  I don't have time
> > to tack that in the near future :-(
> 
> I'm using xbindkeys at the moment, but something that's independent
> from X and a specific user would indeed be nice. Unfortunately I
> haven't found out yet if and how HAL can call events on keypresses

You have to get the HAL source code, look at its input helper, and WRITE
the code to do it.  It just plain CANNOT do anything useful with input
events right now.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh





More information about the Pkg-acpi-devel mailing list