Acer 3400LMI User Manual
Size:
756.04 Kb
Download

F8­x86_64 on the Acer Ferrari 3400LMi

Button

Mail

WWW

P1

P2

Fn­F1

Fn­F2

Fn­F3

Fn­F4

Fn­F5

Fn­F6

Fn­F7

Fn­F8

Fn­Home

Fn­End

Fn­up

Fn­down

Fn­left

Fn­right

Bluetooth

WLAN

Work yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes yes

Config

 

setkeycodes Xmodmap KDE

Comments

xx E-mailbutton, ex: launch Thunderbird

xx WWW button, ex: launch Firefox

x x x User button, ex: launch NetBeans x x x User button, ex: launch VMware x x x User button, ex:

x x x User button, ex: x x x User button, ex:

Sleep-buttonrecognized by ACPI.

xx Toggle external display, XF86Display Dim display, no configuration needed

Toggle touch-pad,no configuration needed

xx Toggle mute

Go home (XF86Home)

Go to end (XF86End)

xx Volume raise

xx Volume lower

Brightness lighter, no configuration needed Brightness darker, no configuration needed No configuration needed

No configuration needed

8.1 Configuration procedure

It is a tedious procedure to find out the proper scan­codes, Linux key­codes and X key­codes. Yes, on top of the scan­codes there are both Linux and X key­codes to keep track of. I probably have it all confused, but here is how I did it:

8.1.1 X key-codes

1.Start by finding out what key­codes X already knows of. Here xev is a valuable friend. The buttons that had key codes configured by default for

10

F8­x86_64 on the Acer Ferrari 3400LMi

me was:

 

 

Button

X key-codeDefault X key symbols

Mail

236

-

WWW

178

-

Fn-F4

223

none, but triggers KPowersave suspend->RAM

Fn-F5

214

none, but generate a Capability changed event

 

 

that is received by the X-server.

Fn-F8

160

-

Fn-NumLk

77

Num_Lock

Fn-ScrLk

78

Scroll_Lock

Fn-Home

97

Home

Fn-End

103

End

Fn-up

176

-

Fn-down

174

-

These are the buttons that are the simplest to get working. Save these X key­ codes for future use. First we need to get the other keys to show up under X as well. In order for them to do so they need properly configured Linux key­codes that they lack for the moment.

8.1.2 Scan-codes

This step is different and considerable easier under F8 than FC4 or FC5. There is no need to shutdown X now as before.

2.Just press the desired key, ex. P1. Then take look at thedmesg output:

#dmesg | tail

atkbd.c: Unknown key pressed (translated set 2, code 0xf4 on isa0060/serio0).

atkbd.c: Use 'setkeycodes e074 <keycode>' to make it known. atkbd.c: Unknown key released (translated set 2, code 0xf4 on isa0060/serio0).

atkbd.c: Use 'setkeycodes e074 <keycode>' to make it known.

I got the following result:

11

F8­x86_64 on the Acer Ferrari 3400LMi

Button

scan-code

P1

e074

P2

e073

Fn-F1

e025

Fn-F2

e026

Fn-F3

e027

8.1.3 Linux key-codes

3.Next, figure out what Linux key­codes that are available by looking at the Linux scan­code – key­code mapping.

# getkeycodes

 

 

 

 

 

 

 

Plain scancodes

xx (hex) versus

keycodes (dec)

for 1­83

(0x01­0x53)

scancode

equals

keycode

0x50:

80

81

82

83

99

 

0

86

87

0x58:

88

117

0

0

95

183

184

185

0x60:

0

0

0

0

0

 

0

0

0

0x68:

0

0

0

0

0

 

0

0

0

0x70:

93

0

0

89

0

 

0

85

91

0x78:

90

92

0

94

0

124

121

0

Escaped scancodes e0 xx

(hex)

 

 

 

e0

00:

0

0

0

0

0

 

0

0

0

e0

08:

0

0

0

0

0

 

0

0

0

e0

10:

165

0

0

0

0

 

0

0

0

e0

18:

0

163

0

0

96

 

97

0

0

e0

20:

113

140

164

0

166

 

0

0

0

e0

28:

0

0

255

0

0

 

0

114

0

e0

30:

115

0

172

0

0

 

98

255

99

e0

38:

100

0

0

0

0

 

0

0

0

e0

40:

0

0

0

0

0

119

119

102

e0

48:

103

104

0

105

112

106

118

107

e0

50:

108

109

110

111

0

 

0

0

0

e0

58:

0

0

0

125

126

127

116

142

e0

60:

0

0

0

143

0

217

156

173

e0

68:

128

159

158

157

155

226

0

112

e0

70:

0

0

0

0

0

 

0

0

0

e0

78:

0

0

0

0

0

 

0

0

0

4.First we need to set a Linux key­code for the keys that lack one. Add the following lines to /etc/rc.d/rc.local to set the key­codes after all services are started.

# Set Linux key­codes for special keys & buttons:

#

12

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-codesrevisited

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