Num Lock and other keys not working :-(

Hi,

I have installed srss 3.1 on my E3500 running Solaris 9 latest recommended patch cluster and using a SunRay 1 and a Type 6 USB keyboard I can't use most of the key pad keys.

rskelton: xmodmap -pm

xmodmap: up to 2 keys per modifier, (keycodes in parentheses):

shiftShift_L (0xe8), Shift_R (0xec)

lockAlt_L (0x40)

controlControl_L (0xe7)

mod1Alt_L (0x40), Alt_L (0xe9)

mod2Mode_switch (0xed)

mod3Mode_switch (0x71), Mode_switch (0xed)

mod4Meta_L (0xea), Meta_R (0xee)

mod5

rskelton: xmodmap -pk

There are 5 KeySyms per KeyCode; KeyCodes range from 8 to 254.

KeyCodeKeysym (Keysym) ...

ValueValue(Name) ...

8

9

10

11 0x0041 (A)

12 0x0042 (B)

13 0x0043 (C)

14 0x0044 (D)

15 0x0065 (e)0x0045 (E)0x20ac (EuroSign)

16 0x0046 (F)

17 0x0047 (G)

18 0x0048 (H)

19 0x0049 (I)

20 0x004a (J)

21 0x004b (K)

22 0x004c (L)

23 0x004d (M)

24 0x004e (N)

25 0x004f (O)

26 0x0050 (P)

27 0x0051 (Q)

28 0x0052 (R)

29 0x0053 (S)

30 0x0054 (T)

31 0x0055 (U)

32 0x0056 (V)

33 0x0057 (W)

34 0x0058 (X)

35 0x0059 (Y)

36 0x005a (Z)

37 0x0031 (1)0x0021 (exclam)

38 0x0032 (2)0x0022 (quotedbl)

39 0x0033 (3)0x00a3 (sterling)

40 0x0034 (4)0x0024 (dollar) 0x20ac (EuroSign)

41 0x0035 (5)0x0025 (percent)

42 0x0036 (6)0x005e (asciicircum)

43 0x0037 (7)0x0026 (ampersand)

44 0x0038 (8)0x002a (asterisk)

45 0x0039 (9)0x0028 (parenleft)

46 0x0030 (0)0x0029 (parenright)

47 0xff0d (Return)

48 0xff1b (Escape)

49 0xff08 (BackSpace)

50 0xff09 (Tab)

51 0x0020 (space)

52 0x002d (minus) 0x005f (underscore)

53 0x003d (equal) 0x002b (plus)

54 0x005b (bracketleft)0x007b (braceleft)

55 0x005d (bracketright)0x007d (braceright)

56

57 0x0023 (numbersign)0x007e (asciitilde)

58 0x003b (semicolon)0x003a (colon)

59 0x0027 (apostrophe)0x0040 (at)

60 0x0060 (grave) 0x00ac (notsign)0x00a6 (brokenbar)

61 0x002c (comma) 0x003c (less)

62 0x002e (period) 0x003e (greater)

63 0x002f (slash) 0x003f (question)

64 0xffe9 (Alt_L)

65 0xffbe (F1)

66 0xffbf (F2)

67 0xffc0 (F3)

68 0xffc1 (F4)

69 0xffc2 (F5)

70 0xffc3 (F6)

71 0xffc4 (F7)

72 0xffc5 (F8)

73 0xffc6 (F9)

74 0xffc7 (F10)

75 0x1005ff10 (SunF36)

76 0x1005ff11 (SunF37)

77 0xffd3 (F22)0xffd3 (F22)0xff61 (Print) 0x1005ff60 (SunSys_Req)

78 0xffd4 (F23)0xffd4 (F23)0xff14 (Scroll_Lock)

79 0xff95 (KP_Home)0xffb7 (KP_7)0xffb7 (KP_7)

80 0xff97 (KP_Up) 0xffb8 (KP_8)0xffb8 (KP_8)

81 0xff9a (KP_Prior)0xffb9 (KP_9)0xffb9 (KP_9)

82 0xffad (KP_Subtract)

83 0xff96 (KP_Left)0xffb4 (KP_4)0xffb4 (KP_4)

84 0xff58 (Begin) 0xffb5 (KP_5)0xffb5 (KP_5)

85 0xff98 (KP_Right)0xffb6 (KP_6)0xffb6 (KP_6)

86 0xffab (KP_Add)

87 0xff9c (KP_End) 0xffb1 (KP_1)0xffb1 (KP_1)

88 0xff99 (KP_Down)0xffb2 (KP_2)0xffb2 (KP_2)

89 0xff9b (KP_Next)0xffb3 (KP_3)0xffb3 (KP_3)

90 0xff9e (KP_Insert)0xffb0 (KP_0)0xffb0 (KP_0)

91 0xff9f (KP_Delete)0xffae (KP_Decimal)0xffae (KP_Decimal)

92 0xffd7 (F26)0xffd7 (F26)0xffaa (KP_Multiply)

93 0xffd5 (F24)0xffd5 (F24)0xffad (KP_Subtract)

94 0xffab (KP_Add)

95 0xffc8 (F11)0x0000 (NoSymbol)0x1005ff10 (SunF36)

96 0xffc9 (F12)0x0000 (NoSymbol)0x1005ff11 (SunF37)

97 0xff54 (Down)0xffdf (F34)0xffb2 (KP_2)

98 0xffe0 (F35)0xffe0 (F35)0xffb3 (KP_3)0xff56 (Next)

99 0xff51 (Left)0xffdb (F30)0xffb4 (KP_4)

100 0xffdc (F31)0xffdc (F31)0xffb5 (KP_5)

101 0xff53 (Right) 0xffdd (F32)0xffb6 (KP_6)

102 0xffd8 (F27)0xffd8 (F27)0xffb7 (KP_7)0xff50 (Home)

103 0xff52 (Up)0xffd9 (F28)0xffb8 (KP_8)

104 0xffda (F29)0xffda (F29)0xffb9 (KP_9)0xff55 (Prior)

105 0xff9e (KP_Insert)0xff9e (KP_Insert)0xffb0 (KP_0)

106 0xffff (Delete) 0xffff (Delete) 0xffae (KP_Decimal)

107 0x005c (backslash)0x007c (bar)

108 0xff20 (Multi_key)

109 0x1005ff76 (SunPowerSwitch)0x1005ff7d (SunPowerSwitchShift)

110

111

112

113 0xff7e (Mode_switch)

114

115

116

117 0xff20 (Multi_key)

118 0x1005ff70 (SunProps)0x0000 (NoSymbol)0xffca (F13)

119 0xff65 (Undo)0x0000 (NoSymbol)0xffcb (F14)

120 0x1005ff71 (SunFront)0x0000 (NoSymbol)0xffcc (F15)

121 0x1005ff72 (SunCopy)0x0000 (NoSymbol)0xffcd (F16)

122 0x1005ff73 (SunOpen)0x0000 (NoSymbol)0xffce (F17)

123 0x1005ff74 (SunPaste)0x0000 (NoSymbol)0xffcf (F18)

124 0xff68 (Find)0x0000 (NoSymbol)0xffd0 (F19)

125 0x1005ff75 (SunCut)0x0000 (NoSymbol)0xffd1 (F20)

126 0xff69 (Cancel) 0x0000 (NoSymbol)0xffc8 (F11)

127 0xff66 (Redo)0x0000 (NoSymbol)0xffc9 (F12)

128 0x1005ff76 (SunPowerSwitch)0x1005ff7d (SunPowerSwitchShift)

129 0xffcb (F14)0xffcb (F14)0xff65 (Undo)

130 0xffd1 (F20)0xffd1 (F20)0x1005ff75 (SunCut)

131 0xffcd (F16)0xffcd (F16)0x1005ff72 (SunCopy)

132 0xffcf (F18)0xffcf (F18)0x1005ff74 (SunPaste)

133 0xffd0 (F19)0xffd0 (F19)0xff68 (Find)

134 0x1005ff78 (SunAudioMute)0x1005ff7a (SunVideoDegauss)

135 0x1005ff79 (SunAudioRaiseVolume)0x1005ff7c (SunVideoRaiseBrightness)

136 0x1005ff77 (SunAudioLowerVolume)0x1005ff7b (SunVideoLowerBrightness)

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231 0xffe3 (Control_L)

232 0xffe1 (Shift_L)

233 0xffe9 (Alt_L)

234 0xffe7 (Meta_L)

235

236 0xffe2 (Shift_R)

237 0xff7e (Mode_switch)

238 0xffe8 (Meta_R)

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

rskelton:

Where is xmodmay getting this mapping from ?

Cheers

Richard.

[6936 byte] By [rskelton] at [2007-11-26 11:02:28]
# 1

> I have installed srss 3.1 on my E3500 running Solaris

> 9 latest recommended patch cluster and using a SunRay

> 1 and a Type 6 USB keyboard I can't use most of the

> key pad keys.

What happens when you try to use those keys?

It's quite possible that the X server is delivering the correct key symbols to your applications but the applications don't know what to do with them.

If you run /usr/openwin/demo/xev from a terminal window, put the focus into the xev window and hit the keypad keys, what events are reported in the terminal window?

> ...

>

> Where is xmodmay getting this mapping from ?

It interrogates the X server. Do 'man XGetKeyboardMapping' and look at the XDisplayKeycodes and XGetKeyboardMapping functions.

The X server gets its mapping by loading the keytable that corresponds to the country code reported by the keyboard. Country-code to keytable mappings are defined in /usr/openwin/etc/keytables/keytable.map. The keytables are in that directory too. If you have a USB keyboard then you'll be using one of the tables listed at the end of the keytable.map file on the lines whose first field is a '6'.

OttoM.

ottomeister at 2007-7-7 3:16:15 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 2

> > I have installed srss 3.1 on my E3500 running

> Solaris

> > 9 latest recommended patch cluster and using a

> SunRay

> > 1 and a Type 6 USB keyboard I can't use most of

> the

> > key pad keys.

>

> What happens when you try to use those keys?

In a dtterm the up arrow is pressed ypu get ascii char 3

Most key on the pad area give ~

>

> It's quite possible that the X server is delivering

> the correct key symbols to your applications but the

> applications don't know what to do with them.

> If you run /usr/openwin/demo/xev from a

> terminal window, put the focus into the xev window

> and hit the keypad keys, what events are reported in

> the terminal window?

For up arror:-

KeyPress event, serial 23, synthetic NO, window 0xc00001,

root 0x2e, subw 0x0, time 2215351381, (73,77), root:(223,227),

state 0x0, keycode 89 (keysym 0xff9b, KP_Next), same_screen YES,

XLookupString gives 0 characters: ""

for down arrow:-

KeyPress event, serial 21, synthetic NO, window 0xc00001,

root 0x2e, subw 0x0, time 2214777019, (73,67), root:(193,187),

state 0x0, keycode 88 (keysym 0xff99, KP_Down), same_screen YES,

XLookupString gives 0 characters: ""

for Num Lock:-

KeyPress event, serial 23, synthetic NO, window 0xc00001,

root 0x2e, subw 0x0, time 2214783092, (73,67), root:(193,187),

state 0x0, keycode 90 (keysym 0xff9e, KP_Insert), same_screen YES,

XLookupString gives 0 characters: ""

>

> > ...

> >

> > Where is xmodmay getting this mapping from ?

>

> It interrogates the X server. Do 'man

> XGetKeyboardMapping' and look at the XDisplayKeycodes

> and XGetKeyboardMapping functions.

>

> The X server gets its mapping by loading the keytable

> that corresponds to the country code reported by the

> keyboard. Country-code to keytable mappings are

> defined in /usr/openwin/etc/keytables/keytable.map.

> The keytables are in that directory too. If you

> have a USB keyboard then you'll be using one of the

> tables listed at the end of the keytable.map file on

> the lines whose first field is a '6'.

It's a type 6 UK USB sun keyboard.

How do I check it's picking up the right map?

>

> OttoM.

rskelton at 2007-7-7 3:16:15 > top of Java-index,Desktop,Sun Ray Software - General Discussion...