On Fri, May 23, 2014 at 12:42 PM, Alexandre Ratchov <a...@caoua.org> wrote: > On Wed, Apr 30, 2014 at 01:06:48AM +0200, Alexandre Ratchov wrote: >> This diff attempts to "unify" volume keys; it makes pckbd and ukbd >> volume keys behave like all other volume keys (acpithinkpad, >> acpiasus, macppc/abtn and similar drivers): simply adjust the >> hardware volume without passing keystroke events to upper layers >> (i.e. "consume" the keystroke). >> >> If your volume keys tend to mess the volume while in X (example >> mplayer), try this diff and see if it makes things better (or >> worse). > > No test reports so far. To test this: start X, then: > > - press the "vol -" button many times (don't hold is pressed), > until volume goes to zero. > > - start a movie in mplayer, there's no sound as volume is zero. > > - press the "vol +" button and hold it down; now mplayer indicates > the volume reached the maximum. Still you don't hear anything. > > Confusing, isn't it? Then rebuild the kernel with this diff and > retry. With the diff volume keys are simple and deterministic: they > simply adjust the volume and don't trigger hot-keys or whatever.
Tested on my laptop: it follows the principle of least astonishment, thus I like it. Thanks, David