4 x key-codes revisited – Acer 3400LMI User Manual

Page 13

Advertising
background image

F8­x86_64 on the Acer Ferrari 3400LMi

# Buttons:          P1            P2
setkeycodes      e074 151      e073 152

#
# Buttons:         Fn­F1         Fn­F2         Fn­F3

setkeycodes      e025 131      e026 132      e027 133

5. In order to avoid a restart to load these setting, issues the very same 

commands.

# setkeycodes e074 151 e073 152
# setkeycodes e025 131 e026 132 e027 133

8.1.4 X key-codes revisited

6. Repeat step 1 and use xev to figure out what X key­codes these buttons 

got. I got the following:

Button

X key-code

P1

201

P2

146

Fn-F1

135

Fn-F2

140

Fn-F3

248

7. Ok, now we have X key­codes for all special keys & buttons and need to 

map them to proper key­symbols. In order to do that put the following in 
the file /etc/X11/Xmodmap:

! Acer Ferrari 3400Lmi special keys & buttons
!

! Button    X key­code
! ­­­­­­    ­­­­­­­­­­

! Mail      236
! WWW       178

! P1        201
! P2        146

! Fn­F1     135
! Fn­F2     140

! Fn­F3     248
! Fn­F5     214

! Fn­F8     160
! Fn­up     176

! Fn­down   174
!

keycode 236 = XF86Mail
keycode 178 = XF86WWW

keycode 201 = XF86Launch1
keycode 146 = XF86Launch2

13

Advertising