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

Re: 2.4.22-ben2 : backlight (F1/F2) not working on console, little freeze



On Tue, 2003-09-09 at 00:04, Julien BLACHE wrote:
> Stewart Smith <stewart@flamingspork.com> wrote:
> > Are you getting a message like "keyboard: unknown scancode e0 4c" on
> > your console/in your syslog?
> 
> Exactly.

Try the attached patch, should apply to 2.4.22 too.....

i haven't actually tried it, and i don't see why it would make the
buttons work (maybe it will, the place i was at while researching this
issue stopped serving coffee at about that time) but it should at least
stop the error message coming up - which is an improvement for me at
least :)

maybe benh knows something we don't? :)
I'm not quite sure what effect this could have on machines that don't
already have this issue.... guess i'll ask around :)
--- linux-2.4.21-ben2-xfs.recent/drivers/macintosh/mac_hid.c	2002-08-03 10:39:44.000000000 +1000
+++ linux-2.4.21-ben2-xfs.recent-stew1/drivers/macintosh/mac_hid.c	2003-09-09 00:20:13.000000000 +1000
@@ -207,8 +207,8 @@
 	KEY_RIGHTALT, KEY_BRIGHTNESSUP, KEY_BRIGHTNESSDOWN, 
 		KEY_EJECTCD, 0, 0, 0, 0,			/* 0x38-0x3f */
 	0, 0, 0, 0, 0, 0, 0, KEY_HOME,				/* 0x40-0x47 */
-	KEY_UP, KEY_PAGEUP, 0, KEY_LEFT, 0, KEY_RIGHT, 0, KEY_END, /* 0x48-0x4f */
-	KEY_DOWN, KEY_PAGEDOWN, KEY_INSERT, KEY_DELETE, 0, 0, 0, 0, /* 0x50-0x57 */
+	KEY_UP, KEY_PAGEUP, 0, KEY_LEFT, KEY_BRIGHTNESSDOWN, KEY_RIGHT, 0, KEY_END, /* 0x48-0x4f */
+	KEY_DOWN, KEY_PAGEDOWN, KEY_INSERT, KEY_DELETE, KEY_BRIGHTNESSUP, 0, 0, 0, /* 0x50-0x57 */
 	0, 0, 0, KEY_LEFTMETA, KEY_RIGHTMETA, KEY_COMPOSE, KEY_POWER, 0, /* 0x58-0x5f */
 	0, 0, 0, 0, 0, 0, 0, 0,					/* 0x60-0x67 */
 	0, 0, 0, 0, 0, 0, 0, KEY_MACRO,				/* 0x68-0x6f */

Reply to: