The Eee S101 (and other netbooks^Wsmall laptops of that lineage) have as one of their distinguishing features a right-shift key that lies beyond the cursor-up key, thereby making the machine unusable for touch-typists.
Here is an adapted script from linuxquestions.org that just exchanges the right shift key and the cursor-up key:
#!/bin/sh # set up keyboard to exchange the Shift and Up keys, and the Down and Right keys xmodmap -e "keycode 62 = Up" # Shift => Up xmodmap -e "keycode 109 = Prior" # Shift-shift => PgUp xmodmap -e "keycode 111 = Shift_R" # Up => Shift xmodmap -e "keycode 112 = Control_R" # PgUp => Shift-shift xmodmap -e "add shift = Shift_R" # Make the new Shift key actually do shifting xset r 62 # Make the new Up key autorepeat xset r 109 # Make the new PgUp autorepeat xset -r 111 # Prevent the new Shift key from autorepeating
I did not manage to get Fn-Shift_R working as a PgUp key (xev reports the same keycode for Fn-Shift_R and Shift_R) so left the xmodmap / xset lines in as a reminder to investigate further.