Re: capslock fix for powerbooks
Josh Huber <[EMAIL PROTECTED]> writes: >> You can try checking if your keyboard generates the raw >> 0xff keycode during the "missing" caps lock key up/down events. The >> patch needs this for it to work. In drivers/macintosh/adb.c:adb_input(), >> set "dump_adb_input" to 1 and watch your syslog when you press the >> caps lock key. (You can do this at run time with xmon.) > > Okay, rebuilding right now. Bummer! It seems as though my keyboard doesn't send the 0xff keycode. [down] Apr 15 14:58:55 mystic kernel: adb packet: 2c 39 ff, id = 2 [up] (nothing) [down] (nothing) [up] Apr 15 14:59:00 mystic kernel: adb packet: 2c b9 ff, id = 2 that sucks! thanks for the help anyway ;) -- Josh Huber | [EMAIL PROTECTED] | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
[EMAIL PROTECTED] (Gregorio Gervasio Jr.) writes: > CONFIG_INPUT_ADBHID=y > CONFIG_MAC_ADBKEYCODES=y > > but run with: > > /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes > > set to 1 I have CONFIG_MAC_ADBKEYCODES disabled, and have for quite some time. I'll check to see if my keyboard generates the needed adb events before turning that option back on. > You can try checking if your keyboard generates the raw > 0xff keycode during the "missing" caps lock key up/down events. The > patch needs this for it to work. In drivers/macintosh/adb.c:adb_input(), > set "dump_adb_input" to 1 and watch your syslog when you press the > caps lock key. (You can do this at run time with xmon.) Okay, rebuilding right now. Thanks, -- Josh Huber | [EMAIL PROTECTED] | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
On 12 April, 2002 21:24, Jason E. Stewart wrote: > > > I *do* use ADB keycodes (too lazy to read how to figure out how to > switch). http://www.debian.org/ports/powerpc/keycodes for the info. i suggest that u print out or copy out by hand the table of keys, Just In Case. it's 1 1/2 pages long :). eric > > jas. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
> On Fri, 12 Apr 2002 16:50:54 -0400, Josh Huber <[EMAIL PROTECTED]> said: j> I'm seeing the usual pattern -- keydown event with no keyup event, and j> the next time and key up event with no corresponding key down event. j> I don't need to use ADB keycodes for this to work, do I? (I hope j> not...) I think you're using my version of the patch. I compile with: CONFIG_INPUT_ADBHID=y CONFIG_MAC_ADBKEYCODES=y but run with: /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes set to 1 You can try checking if your keyboard generates the raw 0xff keycode during the "missing" caps lock key up/down events. The patch needs this for it to work. In drivers/macintosh/adb.c:adb_input(), set "dump_adb_input" to 1 and watch your syslog when you press the caps lock key. (You can do this at run time with xmon.) -- Gregorio Gervasio, Jr. [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
"Josh Huber" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Jason E. Stewart) writes: > > > Yeah, that's the version I'm using on my pismo, and I did get it > > working. Rememeber to use xmodmap to move the keys around, or it > > won't do you any good. Also be careful if you've modified your > > default keymap (which I had done) to remove the capslock altogether. > > Well, I hadn't got to moving the keys around yet, since I was just > testing with showkey -k & xev. > > I'm seeing the usual pattern -- keydown event with no keyup event, and > the next time and key up event with no corresponding key down event. > > I don't need to use ADB keycodes for this to work, do I? (I hope > not...) I *do* use ADB keycodes (too lazy to read how to figure out how to switch). jas. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
[EMAIL PROTECTED] (Jason E. Stewart) writes: > Yeah, that's the version I'm using on my pismo, and I did get it > working. Rememeber to use xmodmap to move the keys around, or it > won't do you any good. Also be careful if you've modified your > default keymap (which I had done) to remove the capslock altogether. Well, I hadn't got to moving the keys around yet, since I was just testing with showkey -k & xev. I'm seeing the usual pattern -- keydown event with no keyup event, and the next time and key up event with no corresponding key down event. I don't need to use ADB keycodes for this to work, do I? (I hope not...) Perhaps I fubar'd the patch... (but, the source looks okay!) ttyl, -- Josh Huber | [EMAIL PROTECTED] | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
On Fri, 2002-04-12 at 19:02, Jason E. Stewart wrote: > "Michel Dänzer" <[EMAIL PROTECTED]> writes: > > > On Fri, 2002-04-12 at 18:38, Jason E. Stewart wrote: > > > > > > PS. Here's my xmodmap file, and I decided that I didn't want capslock > > > at all. > > > > > > #!/bin/sh > > > > > > xmodmap -e "remove Lock = Caps_Lock" > > > xmodmap -e "remove Control = Control_L" > > > xmodmap -e "keysym Caps_Lock = Control_L" > > > xmodmap -e "add Control = Control_L" > > > > This can be achieved with Option "XkbOptions" "ctrl:nocaps". > > Hey Michel, > > Does it work together with the capslock keyboard hack? If so, that > would be great. It should, this makes caps lock behave as ctrl as far as X is concerned. See /etc/X11/xkb/symbols/{alt,ralt,ctrl,group,keypad,lock} for other options. -- Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
"Michel Dänzer" <[EMAIL PROTECTED]> writes: > On Fri, 2002-04-12 at 18:38, Jason E. Stewart wrote: > > > > PS. Here's my xmodmap file, and I decided that I didn't want capslock > > at all. > > > > #!/bin/sh > > > > xmodmap -e "remove Lock = Caps_Lock" > > xmodmap -e "remove Control = Control_L" > > xmodmap -e "keysym Caps_Lock = Control_L" > > xmodmap -e "add Control = Control_L" > > This can be achieved with Option "XkbOptions" "ctrl:nocaps". Hey Michel, Does it work together with the capslock keyboard hack? If so, that would be great. Thanks, jas. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
On Fri, 2002-04-12 at 18:38, Jason E. Stewart wrote: > > PS. Here's my xmodmap file, and I decided that I didn't want capslock > at all. > > #!/bin/sh > > xmodmap -e "remove Lock = Caps_Lock" > xmodmap -e "remove Control = Control_L" > xmodmap -e "keysym Caps_Lock = Control_L" > xmodmap -e "add Control = Control_L" This can be achieved with Option "XkbOptions" "ctrl:nocaps". -- Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer XFree86 and DRI project member / CS student, Free Software enthusiast -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: capslock fix for powerbooks
"Josh Huber" <[EMAIL PROTECTED]> writes: > There are several messages in the archive about this fix -- is anyone > using it successfully? I'm trying it out with 2.4.19-presomething, > and it doesn't seem to do the trick. Is this the most up to date > version of said hack (below)? I'm using a Lombard, btw. Hey Josh, Yeah, that's the version I'm using on my pismo, and I did get it working. Rememeber to use xmodmap to move the keys around, or it won't do you any good. Also be careful if you've modified your default keymap (which I had done) to remove the capslock altogether. jas. PS. Here's my xmodmap file, and I decided that I didn't want capslock at all. #!/bin/sh xmodmap -e "remove Lock = Caps_Lock" xmodmap -e "remove Control = Control_L" xmodmap -e "keysym Caps_Lock = Control_L" xmodmap -e "add Control = Control_L" # # I don't need a caps lock # # keysym Control_L = Caps_Lock # add Lock = Caps_Lock -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
capslock fix for powerbooks
There are several messages in the archive about this fix -- is anyone using it successfully? I'm trying it out with 2.4.19-presomething, and it doesn't seem to do the trick. Is this the most up to date version of said hack (below)? I'm using a Lombard, btw. Just thought I'd ask before trying to fix it myself... --- drivers/macintosh/adbhid.c.orig Mon Aug 27 21:28:19 2001 +++ drivers/macintosh/adbhid.c Tue Aug 28 22:05:33 2001 @@ -139,14 +139,46 @@ { int up_flag; +#if 1 + static int caps_lock_down = 0; +#endif + +#if 1 + if (1) { + /* HACK to fix caps-lock on Powerbook(?) keyboards */ + switch (keycode) { + case 0x39: + caps_lock_down = 1; + break; + case 0xff: + if (caps_lock_down) { + /* 'caps-lock' is down, must be +* 'caps-lock' being released +*/ + caps_lock_down = 0; + keycode = 0xb9; + } else { + /* must be 'caps-lock' being pressed +*/ + keycode = 0x39; + } + break; + } + } +#endif + up_flag = (keycode & 0x80); keycode &= 0x7f; switch (keycode) { case 0x39: /* Generate down/up events for CapsLock everytime. */ +if (0) { input_report_key(&adbhid[id]->input, KEY_CAPSLOCK, 1); input_report_key(&adbhid[id]->input, KEY_CAPSLOCK, 0); return; +} else { + break; +} case 0x3f: /* ignore Powerbook Fn key */ return; } -- Josh Huber | [EMAIL PROTECTED] | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]