[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Volume control buttons
-----BEGIN PGP SIGNED MESSAGE-----
On May 15, 2008, at 20:13, Pierre Pronchery wrote:
On 2008-05-15, Michael Lorenz <macallan%netbsd.org@localhost> wrote:
some Sun keyboards have keys to control audio volume and brightness -
we could have them send PMF events instead and teach audio drivers to
listen for them so volume control via keyboard would work out of the
box without any additional voodoo.
If you want to go this way, it should be enough to have them send PMF
events. I think it is more appropriate to let the user decide how this
should interact with the system. Moreover, mixerctl is easy to script
My WindowMaker menu is currently intercepting the audio keys like
SunAudioLowerVolume => mixerctl -nw monitor.master-=2
SunAudioRaiseVolume => mixerctl -nw monitor.master+=2
SunAudioMute => mixerctl -nw monitor.master=0
... and that works only in WindowMaker. PMF events work everywhere.
To me this looks better than directly teaching the audio drivers
I'd teach the audio drivers to listen to PMF events, nothing else.
Many of them will have to learn that anyway and having a knob to
switch the keyboard driver between sending wskbd and PMF events isn't
exactly complicated either.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
-----END PGP SIGNATURE-----
Main Index |
Thread Index |