Stuck keys: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎Key Codes: table)
Line 25: Line 25:
Other keys - such as left control key (LCTRL) - have been reported to be broken as well.
Other keys - such as left control key (LCTRL) - have been reported to be broken as well.
Here is a list of commonly required key codes:
Here is a list of commonly required key codes:
{| class="wikitable"
* '''LCTRL:''' 37
! Key || Key Code
* '''LALT:''' 64
|-
* '''ALT GR:''' 108
* '''133:''' LGRAB
| '''LCTRL''' || 37
|-
* '''134:''' RGRAB
| '''LALT:''' || 64
|-
| '''ALT GR:''' || 108
|-
| '''LGRAB''' || 133
|-
| '''RGRAB''' || 134
|}


== See Also ==
== See Also ==

Revision as of 08:33, 31 January 2008

It has been reported that some XOs experience sticky or broken keys.

Apparently, the left ALT key is usually affected. As a (temporary?) workaround, the left ALT key can be disabled with the following commands (to be executed from the Terminal activity):

xmodmap -e "keycode 64 ="
xmodmap -e "keycode 133 = Alt_L"

In order to apply these settings on startup, the respective commands can be added to .xsession.

  • if /home/olpc/.xsession does not exist:
    • in the Terminal activity, execute the following command: cp /home/olpc/.xsession-example /home/olpc/.xsession
  • open .xsession with the following command: nano -w /home/olpc/.xsession
  • at the end, add the following lines
# disable broken Left ALT key
xmodmap -e "keycode 64 ="
# replace Left ALT with Left Hand key
xmodmap -e "keycode 133 = Alt_L"
  • save the file by hitting CTRL+X, then enter "y" to confirm

Key Codes

Other keys - such as left control key (LCTRL) - have been reported to be broken as well. Here is a list of commonly required key codes:

Key Key Code
LCTRL 37
LALT: 64
ALT GR: 108
LGRAB 133
RGRAB 134

See Also