Current-Users archive

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

Re: Thinkpad volume control buttons



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Ian --

For thinkpads, volume up and down events are handled by the wskbd(4) driver since the buttons send keyboard events:

  http://nxr.netbsd.org/xref/src/sys/dev/wscons/wskbd.c#1513

The mute button is hard-wired so no special handling is required.

The automatic handling of the volume up and down buttons is bypassed when X has the keyboard in raw mode.

Cheers,
Jared


On Fri, 21 Oct 2011, Ian D. Leroux wrote:

Running a few-months-old amd64/current on a Lenovo X201, I recently set
about hooking up the volume control hot keys (XF86AudioRaiseVolume,
XF86AudioLowerVolume, XF86AudioMute) to mixerctl with some shell
scripts, and along the way noticed that the mute button (but not the
volume up/down buttons) works by default, even at the console.  Is that
being handled by the thinkpad* driver?  Or some other driver?  If
someone tells me where to look I might at some point try to add volume
control support to the existing mute/unmute support, unless there's a
good reason not to.

Curiously yours,

--IDL


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (NetBSD)

iQEcBAEBAgAGBQJOoTqkAAoJEKdMfxFXhnemRKoH/0y2I/mxIL3RS+RbBIx9+wGS
um3iLuVOnHaj7OnRjzmDnpvheiXOvBdKugtBgkY85Gaohs1azvy0FPWNrjBAqVOk
QyVdBzVw/TVpwl1KlxJDtVWEdsrS88boFvd16qht3qhS62oN7oNKyQhjTLasf/yw
VVRa2UO7QlSdH1/eGsOHIvP1pUZNKHnzcBqGn5jKtHE4NJKs9MfyhBdbRzjsDWbj
2hWm4SHBZ9fbSHfim6v0IbVVTrD0bRsDHX1PZTk9KouArqE6UMsGP+qU0DUyzVdn
X9tGQ0JUAIiAwpCgmkJuYcAV1835rhBBiMJUhJsXsZhhZ99UuK/vsTuV0qqbhok=
=U13m
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index