View previous topic :: View next topic |
Author |
Message |
spitzwegerich l33t
Joined: 04 Mar 2003 Posts: 697 Location: Lower Bavaria, Central Europe
|
Posted: Sat Feb 21, 2004 4:42 pm Post subject: swap [caps lock] <-> [ctrl] on ibook/pbook |
|
|
I guess I am not the only one who likes to swap the [caps lock] key with the [ctrl] key.
Unfortunately, there are some hardware problems on iBooks/PowerBooks: The Caps-Lock key is handled in a non-standard way.
Some clever guy wrote a kernel-patch which fixes this problem.
EDIT:
Just found a posting which contains both versions of the patch for kernel 2.4 and 2.6.
I applied the patch on ppc-development-sources-2.6.2_rc1-r1. Now I can change [ctrl] and [caps lock]. But there is some interference between the (original) caps-lock and the power key. I can use the power key several times for suspend, but at some point it does not work any more. xev tells me this on my power key:
Code: | KeyPress event, serial 28, synthetic NO, window 0x3000001, root 0x40, subw 0x0, time 509788370, (678,-262), root:(682,320), state 0x10, keycode 66 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: "" |
and this on my (original) caps-lock key, which now works as ctrl:
Code: | KeyPress event, serial 28, synthetic NO, window 0x3000001,
root 0x40, subw 0x0, time 509949461, (514,-101), root:(518,481),
state 0x10, keycode 66 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes: "" |
They both have the same keycode, and the power-key is listed as Control_L!
The power key only gives a KeyPress event, but no KeyRelease Event. To get it to work a second time, I have to press the (original) caps-lock first, which gives the missing KeyRelease event.
Also, if pressing [power][caps lock], then caps-lock only gives this KeyRelease event. But if pressing [caps-lock] without a preceding [power], then caps-lock gives the full KeyPress, KeyRelease sequence.
Does anyone have an idea how to fix this? _________________ "Work is the curse of the drinking classes."
-Oskar Wilde |
|
Back to top |
|
|
spitzwegerich l33t
Joined: 04 Mar 2003 Posts: 697 Location: Lower Bavaria, Central Europe
|
Posted: Mon Feb 23, 2004 2:32 pm Post subject: |
|
|
I just noticed that xev reports Code: | KeyPress event, serial 28, synthetic NO, window 0x2600001,
root 0x48, subw 0x0, time 449597, (-310,340), root:(288,360),
state 0x4, keycode 222 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes: "" |
before the first suspend after a reboot.
But from the first suspend & resume on I get keycode 66 for the power key, as reported in the first posting. _________________ "Work is the curse of the drinking classes."
-Oskar Wilde |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|