Current-Users archive

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

Re: anyone have a ThinkPad T400/T500 with cellular modem?

On Wed, Jan 06, 2010 at 05:29:55PM +0100, S.P.Zeidler wrote:
> I'd be curious what a kernel with the attached patch makes visible
> upon hitting Fn-F6. It ought to toggle the cellular modem aka
> wireless WAN on/off, fun question is what device will pop up.
> I've only got the 'option', not the actual electronics; if you don't
> have the card nothing happens, so the trouble you get when you have
> one ought to be limited. :)

Sligthly OT, but since the topic was about ThinkPads. The following tiny
diff stops the dmesg-spam if you happen to listen music while having booted
in the debug mode, -x.

I think that (a) the values 0x015-0x017 are reserved for volume control on
all ThinkPads but the mappings (up, down, mute) may vary across models, and
that (b) the volume control is handled properly by the firmware on all

- Jukka.

Index: thinkpad_acpi.c
RCS file: /cvsroot/src/sys/dev/acpi/thinkpad_acpi.c,v
retrieving revision 1.22
diff -u -p -r1.22 thinkpad_acpi.c
--- thinkpad_acpi.c     8 Jan 2010 20:40:41 -0000       1.22
+++ thinkpad_acpi.c     12 Jan 2010 10:20:18 -0000
@@ -94,6 +94,9 @@ typedef struct thinkpad_softc {
 #define        THINKPAD_NOTIFY_BrightnessDown  0x011
 #define        THINKPAD_NOTIFY_ThinkLight      0x012
 #define        THINKPAD_NOTIFY_Zoom            0x014
+#define THINKPAD_NOTIFY_VolumeUp        0x015
+#define THINKPAD_NOTIFY_VolumeDown      0x016
+#define THINKPAD_NOTIFY_VolumeMute      0x017
 #define        THINKPAD_NOTIFY_ThinkVantage    0x018
 #define        THINKPAD_CMOS_BRIGHTNESS_UP     0x04
@@ -386,6 +389,9 @@ thinkpad_get_hotkeys(void *opaque)
                case THINKPAD_NOTIFY_FnF10:
                case THINKPAD_NOTIFY_FnF11:
                case THINKPAD_NOTIFY_ThinkLight:
+               case THINKPAD_NOTIFY_VolumeUp:
+               case THINKPAD_NOTIFY_VolumeDown:
+               case THINKPAD_NOTIFY_VolumeMute:
                        /* XXXJDM we should deliver hotkeys as keycodes */

Home | Main Index | Thread Index | Old Index