From: cyberdork33 <cyb...@gm...> - 2008-07-23 13:00:58
|
You can also edit the quirks outside of a kernel patch. Some people have encountered some trouble with this(such as with the new multitouch driver being developed), but it works for the most part. http://ubuntuforums.org/showpost.php?p=4984452&postcount=18 I couldn't tell if your problem exists after adding this or not, so my apologies if I am presenting information already tried. cyberdork33 wrote: > Yes, it is a patch against the Ubuntu kernel. The Ubuntu mactel-support > team often submits patches against the Ubuntu kernel as well as > upstream, but this may not have made it. > > On Jul 23, 2008, at 2:38 AM, paul s wrote: > >> > Would be nice if you could port your modification to 2.6.26 (if >> anything >> > needs to be updated), and ideally submit a patch. >> >> i just tested this on the 2.6.25.10 src and it applies... i don't know >> about the 26 kernel but will check it out once fedora rolls that.. the >> patch is attached as well as available here for a while... >> >> http://queuemail.com/mactel_fn_special_keys_penryn.patch >> >> this fixes the fn key as well as the mappings of the special keys... >> >> > I added this in the SVN (2.6.26). Where did you find this patch? >> >> google, i think, which led me to what seems a competing project on >> launchpad... which kind of stinks since not everyone uses ubuntu which >> it seems to be specific for... afaict... >> >> cheers >> paul >> >> >> >> >> >> >> Nicolas Boichat wrote: >> > Hi, >> > >> > paul s wrote: >> >> great, i found some of these bugs as well... i was on a mission >> >> yesterday as i was tired of not having home, end, pageup/down... >> >> however i manually applied this patch to the hid-quirks.c as it >> >> wouldn't during the build... >> >> >> >> >> http://launchpadlibrarian.net/14613817/fix_fn_key_on_macbookpro_4_1_and_mb_air.patch >> >> >> >> >> >> >> this got the fn key working for me... >> > >> > I added this in the SVN (2.6.26). Where did you find this patch? >> > >> >> then to fix the F4-F6 i modified the hid-input.c with the following >> >> mappings... >> >> >> >> static struct hidinput_key_translation apple_fn_keys[] = { >> >> { KEY_BACKSPACE, KEY_DELETE }, >> >> { KEY_F1, KEY_BRIGHTNESSDOWN, APPLE_FLAG_FKEY }, >> >> { KEY_F2, KEY_BRIGHTNESSUP, APPLE_FLAG_FKEY }, >> >> { KEY_F3, KEY_PROG1, APPLE_FLAG_FKEY }, >> >> { KEY_F4, KEY_PROG2, APPLE_FLAG_FKEY }, >> >> { KEY_F5, KEY_KBDILLUMDOWN, APPLE_FLAG_FKEY }, >> >> { KEY_F6, KEY_KBDILLUMUP, APPLE_FLAG_FKEY }, >> >> { KEY_F7, KEY_PREVIOUSSONG, APPLE_FLAG_FKEY }, >> >> { KEY_F8, KEY_PLAYPAUSE, APPLE_FLAG_FKEY }, >> >> { KEY_F9, KEY_NEXTSONG, APPLE_FLAG_FKEY }, >> >> { KEY_F10, KEY_MUTE, APPLE_FLAG_FKEY }, >> >> { KEY_F11, KEY_VOLUMEDOWN, APPLE_FLAG_FKEY }, >> >> { KEY_F12, KEY_VOLUMEUP, APPLE_FLAG_FKEY }, >> >> { KEY_UP, KEY_PAGEUP }, >> >> { KEY_DOWN, KEY_PAGEDOWN }, >> >> { KEY_LEFT, KEY_HOME }, >> >> { KEY_RIGHT, KEY_END }, >> >> { } >> >> }; >> > >> > Would be nice if you could port your modification to 2.6.26 (if >> anything >> > needs to be updated), and ideally submit a patch. >> > >> > Thanks, >> > >> > Nicolas >> diff -uNrp a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c >> --- a/drivers/hid/hid-input.c 2008-07-23 02:59:58.000000000 -0400 >> +++ b/drivers/hid/hid-input.c 2008-07-23 03:12:01.000000000 -0400 >> @@ -100,8 +100,10 @@ static struct hidinput_key_translation a >> { KEY_BACKSPACE, KEY_DELETE }, >> { KEY_F1, KEY_BRIGHTNESSDOWN, APPLE_FLAG_FKEY }, >> { KEY_F2, KEY_BRIGHTNESSUP, APPLE_FLAG_FKEY }, >> - { KEY_F3, KEY_FN_F5, APPLE_FLAG_FKEY }, /* Expos� */ >> - { KEY_F4, KEY_FN_F4, APPLE_FLAG_FKEY }, /* >> Dashboard */ >> + { KEY_F3, KEY_PROG1, APPLE_FLAG_FKEY }, /* Exposé */ >> + { KEY_F4, KEY_PROG2, APPLE_FLAG_FKEY }, /* >> Dashboard */ >> + { KEY_F5, KEY_KBDILLUMDOWN, APPLE_FLAG_FKEY }, >> + { KEY_F6, KEY_KBDILLUMUP, APPLE_FLAG_FKEY }, >> { KEY_F7, KEY_PREVIOUSSONG, APPLE_FLAG_FKEY }, >> { KEY_F8, KEY_PLAYPAUSE, APPLE_FLAG_FKEY }, >> { KEY_F9, KEY_NEXTSONG, APPLE_FLAG_FKEY }, >> diff -uNrp a/drivers/hid/usbhid/hid-quirks.c >> b/drivers/hid/usbhid/hid-quirks.c >> --- a/drivers/hid/usbhid/hid-quirks.c 2008-04-16 22:49:44.000000000 >> -0400 >> +++ b/drivers/hid/usbhid/hid-quirks.c 2008-07-18 18:33:43.000000000 >> -0400 >> @@ -72,6 +72,12 @@ >> #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI 0x022c >> #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO 0x022d >> #define USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS 0x022e >> +#define USB_DEVICE_ID_APPLE_WELLSPRING_ANSI 0x0223 >> +#define USB_DEVICE_ID_APPLE_WELLSPRING_ISO 0x0224 >> +#define USB_DEVICE_ID_APPLE_WELLSPRING_JIS 0x0225 >> +#define USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI 0x0230 >> +#define USB_DEVICE_ID_APPLE_WELLSPRING2_ISO 0x0231 >> +#define USB_DEVICE_ID_APPLE_WELLSPRING2_JIS 0x0232 >> #define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a >> #define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b >> #define USB_DEVICE_ID_APPLE_IRCONTROL4 0x8242 >> @@ -637,6 +643,14 @@ static const struct hid_blacklist { >> { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY, >> HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_IGNORE_MOUSE }, >> >> { USB_VENDOR_ID_DELL, USB_DEVICE_ID_DELL_W7658, >> HID_QUIRK_RESET_LEDS }, >> + >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ANSI, >> HID_QUIRK_APPLE_HAS_FN }, >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_ISO, >> HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING_JIS, >> HID_QUIRK_APPLE_HAS_FN }, >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI, >> HID_QUIRK_APPLE_HAS_FN }, >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_ISO, >> HID_QUIRK_APPLE_HAS_FN | HID_QUIRK_APPLE_ISO_KEYBOARD }, >> + { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING2_JIS, >> HID_QUIRK_APPLE_HAS_FN }, >> + >> { USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_KBD, >> HID_QUIRK_RESET_LEDS }, >> { USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_HARMONY, >> HID_QUIRK_IGNORE }, >> { USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_HARMONY_2, >> HID_QUIRK_IGNORE }, >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ >> >> Mactel-linux-users mailing list >> Mac...@li... >> https://lists.sourceforge.net/lists/listinfo/mactel-linux-users > |