Xpra: Ticket #117: Ctrl key is ignored in xterm or konsole

Hi All,

when i do.

export DISPLAY=:100
konsole
# or xterm

with xpra attach i can see konsole(xterm) window. but when i press Ctrl-C or Ctrl-d it writes 'c' or 'd' inside konsole. So it seems to me that it is ignoring Ctrl key.

Ciao Martin



Fri, 27 Apr 2012 07:33:27 GMT - Antoine Martin: status, version, component, description changed

Ok, some system info I've gathered on that system:

Gentoo Base System release 2.1
dev-python/pygtk 2.24.0-r2
Python 2.7.3

Fri, 27 Apr 2012 07:55:39 GMT - Antoine Martin:

Please add client and server information, as per ticket 108 comment 1, so I can try to reproduce by setting the same keyboard layouts in a virtual machine.

(please also specify client OS if different from above)


Fri, 27 Apr 2012 09:20:49 GMT - Martin Vala:

setxkbmap -print

mvala@vala ~ $ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+ru(phonetic):2+sk(qwerty):3+inet(evdev)" };
        xkb_geometry  { include "pc(pc101)"     };
};

setxkbmap -query

mvala@vala ~ $ setxkbmap -query
rules:      evdev
model:      pc101
layout:     us,ru,sk
variant:    ,phonetic,qwerty

xmodmap -pm

mvala@vala ~ $ xmodmap -pm
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

xmodmap -pke

mvala@vala ~ $ xmodmap -pke
keycode   8 =
keycode   9 = Escape NoSymbol Escape NoSymbol Escape
keycode  10 = 1 exclam 1 exclam plus 1 exclam dead_tilde
keycode  11 = 2 at 2 at lcaron 2 at dead_caron
keycode  12 = 3 numbersign 3 Cyrillic_io scaron 3 numbersign dead_circumflex
keycode  13 = 4 dollar 4 Cyrillic_IO ccaron 4 dollar dead_breve
keycode  14 = 5 percent 5 Cyrillic_hardsign tcaron 5 percent dead_abovering
keycode  15 = 6 asciicircum 6 Cyrillic_HARDSIGN zcaron 6 asciicircum dead_ogonek
keycode  16 = 7 ampersand 7 ampersand yacute 7 ampersand dead_grave
keycode  17 = 8 asterisk 8 asterisk aacute 8 asterisk dead_abovedot
keycode  18 = 9 parenleft 9 parenleft iacute 9 braceleft dead_acute
keycode  19 = 0 parenright 0 parenright eacute 0 braceright dead_doubleacute
keycode  20 = minus underscore minus underscore equal percent backslash dead_diaeresis
keycode  21 = equal plus Cyrillic_che Cyrillic_CHE dead_acute dead_caron dead_macron dead_cedilla
keycode  22 = BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace
keycode  23 = Tab ISO_Left_Tab Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode  24 = q Q Cyrillic_ya Cyrillic_YA q Q backslash Greek_OMEGA
keycode  25 = w W Cyrillic_ve Cyrillic_VE w W bar Lstroke
keycode  26 = e E Cyrillic_ie Cyrillic_IE e E EuroSign E
keycode  27 = r R Cyrillic_er Cyrillic_ER r R paragraph registered
keycode  28 = t T Cyrillic_te Cyrillic_TE t T tslash Tslash
keycode  29 = y Y Cyrillic_yeru Cyrillic_YERU y Y leftarrow yen
keycode  30 = u U Cyrillic_u Cyrillic_U u U downarrow uparrow
keycode  31 = i I Cyrillic_i Cyrillic_I i I rightarrow idotless
keycode  32 = o O Cyrillic_o Cyrillic_O o O oslash Oslash
keycode  33 = p P Cyrillic_pe Cyrillic_PE p P thorn THORN
keycode  34 = bracketleft braceleft Cyrillic_sha Cyrillic_SHA uacute slash bracketleft division
keycode  35 = bracketright braceright Cyrillic_shcha Cyrillic_SHCHA adiaeresis parenleft bracketright multiply
keycode  36 = Return NoSymbol Return NoSymbol Return
keycode  37 = Control_L NoSymbol Control_L NoSymbol Control_L
keycode  38 = a A Cyrillic_a Cyrillic_A a A asciitilde AE
keycode  39 = s S Cyrillic_es Cyrillic_ES s S dstroke section
keycode  40 = d D Cyrillic_de Cyrillic_DE d D Dstroke ETH
keycode  41 = f F Cyrillic_ef Cyrillic_EF f F bracketleft ordfeminine
keycode  42 = g G Cyrillic_ghe Cyrillic_GHE g G bracketright ENG
keycode  43 = h H Cyrillic_ha Cyrillic_HA h H grave Hstroke
keycode  44 = j J Cyrillic_shorti Cyrillic_SHORTI j J apostrophe J
keycode  45 = k K Cyrillic_ka Cyrillic_KA k K lstroke ampersand
keycode  46 = l L Cyrillic_el Cyrillic_EL l L Lstroke Lstroke
keycode  47 = semicolon colon semicolon colon ocircumflex quotedbl dollar dead_doubleacute
keycode  48 = apostrophe quotedbl apostrophe quotedbl section exclam apostrophe ssharp
keycode  49 = grave asciitilde Cyrillic_yu Cyrillic_YU semicolon dead_abovering grave asciitilde
keycode  50 = Shift_L NoSymbol Shift_L NoSymbol Shift_L
keycode  51 = backslash bar Cyrillic_e Cyrillic_E ncaron parenright backslash bar
keycode  52 = z Z Cyrillic_ze Cyrillic_ZE z Z degree less
keycode  53 = x X Cyrillic_softsign Cyrillic_SOFTSIGN x X numbersign greater
keycode  54 = c C Cyrillic_tse Cyrillic_TSE c C ampersand copyright
keycode  55 = v V Cyrillic_zhe Cyrillic_ZHE v V at leftsinglequotemark
keycode  56 = b B Cyrillic_be Cyrillic_BE b B braceleft rightsinglequotemark
keycode  57 = n N Cyrillic_en Cyrillic_EN n N braceright N
keycode  58 = m M Cyrillic_em Cyrillic_EM m M asciicircum masculine
keycode  59 = comma less comma less comma question less multiply
keycode  60 = period greater period greater period colon greater division
keycode  61 = slash question slash question minus underscore asterisk dead_abovedot
keycode  62 = Shift_R NoSymbol Shift_R NoSymbol Shift_R
keycode  63 = KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply KP_Multiply XF86ClearGrab KP_Multiply KP_Multiply XF86ClearGrab KP_Multiply KP_Multiply KP_Multiply KP_Multiply XF86ClearGrab
keycode  64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L
keycode  65 = space NoSymbol space NoSymbol space space nobreakspace nobreakspace
keycode  66 = Caps_Lock NoSymbol Caps_Lock NoSymbol Caps_Lock
keycode  67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1 F1 F1 F1 F1 XF86Switch_VT_1
keycode  68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2 F2 F2 XF86Switch_VT_2 F2 F2 F2 F2 XF86Switch_VT_2
keycode  69 = F3 F3 F3 F3 F3 F3 XF86Switch_VT_3 F3 F3 XF86Switch_VT_3 F3 F3 F3 F3 XF86Switch_VT_3
keycode  70 = F4 F4 F4 F4 F4 F4 XF86Switch_VT_4 F4 F4 XF86Switch_VT_4 F4 F4 F4 F4 XF86Switch_VT_4
keycode  71 = F5 F5 F5 F5 F5 F5 XF86Switch_VT_5 F5 F5 XF86Switch_VT_5 F5 F5 F5 F5 XF86Switch_VT_5
keycode  72 = F6 F6 F6 F6 F6 F6 XF86Switch_VT_6 F6 F6 XF86Switch_VT_6 F6 F6 F6 F6 XF86Switch_VT_6
keycode  73 = F7 F7 F7 F7 F7 F7 XF86Switch_VT_7 F7 F7 XF86Switch_VT_7 F7 F7 F7 F7 XF86Switch_VT_7
keycode  74 = F8 F8 F8 F8 F8 F8 XF86Switch_VT_8 F8 F8 XF86Switch_VT_8 F8 F8 F8 F8 XF86Switch_VT_8
keycode  75 = F9 F9 F9 F9 F9 F9 XF86Switch_VT_9 F9 F9 XF86Switch_VT_9 F9 F9 F9 F9 XF86Switch_VT_9
keycode  76 = F10 F10 F10 F10 F10 F10 XF86Switch_VT_10 F10 F10 XF86Switch_VT_10 F10 F10 F10 F10 XF86Switch_VT_10
keycode  77 = Num_Lock NoSymbol Num_Lock NoSymbol Num_Lock
keycode  78 = Scroll_Lock NoSymbol Scroll_Lock NoSymbol Scroll_Lock
keycode  79 = KP_Home KP_7 KP_Home KP_7 KP_Home KP_7
keycode  80 = KP_Up KP_8 KP_Up KP_8 KP_Up KP_8
keycode  81 = KP_Prior KP_9 KP_Prior KP_9 KP_Prior KP_9
keycode  82 = KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode KP_Subtract KP_Subtract XF86Prev_VMode KP_Subtract KP_Subtract KP_Subtract KP_Subtract XF86Prev_VMode
keycode  83 = KP_Left KP_4 KP_Left KP_4 KP_Left KP_4
keycode  84 = KP_Begin KP_5 KP_Begin KP_5 KP_Begin KP_5
keycode  85 = KP_Right KP_6 KP_Right KP_6 KP_Right KP_6
keycode  86 = KP_Add KP_Add KP_Add KP_Add KP_Add KP_Add XF86Next_VMode KP_Add KP_Add XF86Next_VMode KP_Add KP_Add KP_Add KP_Add XF86Next_VMode
keycode  87 = KP_End KP_1 KP_End KP_1 KP_End KP_1
keycode  88 = KP_Down KP_2 KP_Down KP_2 KP_Down KP_2
keycode  89 = KP_Next KP_3 KP_Next KP_3 KP_Next KP_3
keycode  90 = KP_Insert KP_0 KP_Insert KP_0 KP_Insert KP_0
keycode  91 = KP_Delete KP_Decimal KP_Delete KP_Decimal KP_Delete KP_Decimal
keycode  92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode  93 =
keycode  94 = less greater bar brokenbar bar brokenbar backslash bar slash
keycode  95 = F11 F11 F11 F11 F11 F11 XF86Switch_VT_11 F11 F11 XF86Switch_VT_11 F11 F11 F11 F11 XF86Switch_VT_11
keycode  96 = F12 F12 F12 F12 F12 F12 XF86Switch_VT_12 F12 F12 XF86Switch_VT_12 F12 F12 F12 F12 XF86Switch_VT_12
keycode  97 =
keycode  98 = Katakana NoSymbol Katakana NoSymbol Katakana
keycode  99 = Hiragana NoSymbol Hiragana NoSymbol Hiragana
keycode 100 = Henkan_Mode NoSymbol Henkan_Mode NoSymbol Henkan_Mode
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana NoSymbol Hiragana_Katakana
keycode 102 = Muhenkan NoSymbol Muhenkan NoSymbol Muhenkan
keycode 103 =
keycode 104 = KP_Enter NoSymbol KP_Enter NoSymbol KP_Enter
keycode 105 = Control_R NoSymbol Control_R NoSymbol Control_R
keycode 106 = KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab KP_Divide KP_Divide XF86Ungrab KP_Divide KP_Divide KP_Divide KP_Divide XF86Ungrab
keycode 107 = Print Sys_Req Print Sys_Req Print Sys_Req
keycode 108 = Alt_R Meta_R Alt_R Meta_R ISO_Level3_Shift
keycode 109 = Linefeed NoSymbol Linefeed NoSymbol Linefeed
keycode 110 = Home NoSymbol Home NoSymbol Home
keycode 111 = Up NoSymbol Up NoSymbol Up
keycode 112 = Prior NoSymbol Prior NoSymbol Prior
keycode 113 = Left NoSymbol Left NoSymbol Left
keycode 114 = Right NoSymbol Right NoSymbol Right
keycode 115 = End NoSymbol End NoSymbol End
keycode 116 = Down NoSymbol Down NoSymbol Down
keycode 117 = Next NoSymbol Next NoSymbol Next
keycode 118 = Insert NoSymbol Insert NoSymbol Insert
keycode 119 = Delete NoSymbol Delete NoSymbol Delete
keycode 120 =
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff NoSymbol XF86PowerOff
keycode 125 = KP_Equal NoSymbol KP_Equal NoSymbol KP_Equal
keycode 126 = plusminus NoSymbol plusminus NoSymbol plusminus
keycode 127 = Pause Break Pause Break Pause Break
keycode 128 = XF86LaunchA NoSymbol XF86LaunchA NoSymbol XF86LaunchA
keycode 129 = KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal KP_Decimal
keycode 130 = Hangul NoSymbol Hangul NoSymbol Hangul
keycode 131 = Hangul_Hanja NoSymbol Hangul_Hanja NoSymbol Hangul_Hanja
keycode 132 =
keycode 133 = Super_L NoSymbol Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R NoSymbol Super_R
keycode 135 = Menu NoSymbol Menu NoSymbol Menu
keycode 136 = Cancel NoSymbol Cancel NoSymbol Cancel
keycode 137 = Redo NoSymbol Redo NoSymbol Redo
keycode 138 = SunProps NoSymbol SunProps NoSymbol SunProps
keycode 139 = Undo NoSymbol Undo NoSymbol Undo
keycode 140 = SunFront NoSymbol SunFront NoSymbol SunFront
keycode 141 = XF86Copy NoSymbol XF86Copy NoSymbol XF86Copy
keycode 142 = SunOpen NoSymbol SunOpen NoSymbol SunOpen
keycode 143 = XF86Paste NoSymbol XF86Paste NoSymbol XF86Paste
keycode 144 = Find NoSymbol Find NoSymbol Find
keycode 145 = XF86Cut NoSymbol XF86Cut NoSymbol XF86Cut
keycode 146 = Help NoSymbol Help NoSymbol Help
keycode 147 = XF86MenuKB NoSymbol XF86MenuKB NoSymbol XF86MenuKB
keycode 148 = XF86Calculator NoSymbol XF86Calculator NoSymbol XF86Calculator
keycode 149 =
keycode 150 = XF86Sleep NoSymbol XF86Sleep NoSymbol XF86Sleep
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp NoSymbol XF86WakeUp
keycode 152 = XF86Explorer NoSymbol XF86Explorer NoSymbol XF86Explorer
keycode 153 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 154 =
keycode 155 = XF86Xfer NoSymbol XF86Xfer NoSymbol XF86Xfer
keycode 156 = XF86Launch1 NoSymbol XF86Launch1 NoSymbol XF86Launch1
keycode 157 = XF86Launch2 NoSymbol XF86Launch2 NoSymbol XF86Launch2
keycode 158 = XF86WWW NoSymbol XF86WWW NoSymbol XF86WWW
keycode 159 = XF86DOS NoSymbol XF86DOS NoSymbol XF86DOS
keycode 160 = XF86ScreenSaver NoSymbol XF86ScreenSaver NoSymbol XF86ScreenSaver
keycode 161 =
keycode 162 = XF86RotateWindows NoSymbol XF86RotateWindows NoSymbol XF86RotateWindows
keycode 163 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
keycode 164 = XF86Favorites NoSymbol XF86Favorites NoSymbol XF86Favorites
keycode 165 = XF86MyComputer NoSymbol XF86MyComputer NoSymbol XF86MyComputer
keycode 166 = XF86Back NoSymbol XF86Back NoSymbol XF86Back
keycode 167 = XF86Forward NoSymbol XF86Forward NoSymbol XF86Forward
keycode 168 =
keycode 169 = XF86Eject NoSymbol XF86Eject NoSymbol XF86Eject
keycode 170 = XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext NoSymbol XF86AudioNext
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev NoSymbol XF86AudioPrev
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord NoSymbol XF86AudioRecord
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind NoSymbol XF86AudioRewind
keycode 177 = XF86Phone NoSymbol XF86Phone NoSymbol XF86Phone
keycode 178 =
keycode 179 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
keycode 180 = XF86HomePage NoSymbol XF86HomePage NoSymbol XF86HomePage
keycode 181 = XF86Reload NoSymbol XF86Reload NoSymbol XF86Reload
keycode 182 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 183 =
keycode 184 =
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown NoSymbol XF86ScrollDown
keycode 187 = parenleft NoSymbol parenleft NoSymbol parenleft
keycode 188 = parenright NoSymbol parenright NoSymbol parenright
keycode 189 = XF86New NoSymbol XF86New NoSymbol XF86New
keycode 190 = Redo NoSymbol Redo NoSymbol Redo
keycode 191 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
keycode 192 = XF86Launch5 NoSymbol XF86Launch5 NoSymbol XF86Launch5
keycode 193 = XF86Launch6 NoSymbol XF86Launch6 NoSymbol XF86Launch6
keycode 194 = XF86Launch7 NoSymbol XF86Launch7 NoSymbol XF86Launch7
keycode 195 = XF86Launch8 NoSymbol XF86Launch8 NoSymbol XF86Launch8
keycode 196 = XF86Launch9 NoSymbol XF86Launch9 NoSymbol XF86Launch9
keycode 197 =
keycode 198 =
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle NoSymbol XF86TouchpadToggle
keycode 200 = XF86TouchpadOn NoSymbol XF86TouchpadOn NoSymbol XF86TouchpadOn
keycode 201 = XF86TouchpadOff NoSymbol XF86TouchpadOff NoSymbol XF86TouchpadOff
keycode 202 =
keycode 203 = Mode_switch NoSymbol Mode_switch NoSymbol Mode_switch
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L NoSymbol Hyper_L
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause NoSymbol XF86AudioPause
keycode 210 = XF86Launch3 NoSymbol XF86Launch3 NoSymbol XF86Launch3
keycode 211 = XF86Launch4 NoSymbol XF86Launch4 NoSymbol XF86Launch4
keycode 212 = XF86LaunchB NoSymbol XF86LaunchB NoSymbol XF86LaunchB
keycode 213 = XF86Suspend NoSymbol XF86Suspend NoSymbol XF86Suspend
keycode 214 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 216 = XF86AudioForward NoSymbol XF86AudioForward NoSymbol XF86AudioForward
keycode 217 =
keycode 218 = Print NoSymbol Print NoSymbol Print
keycode 219 =
keycode 220 = XF86WebCam NoSymbol XF86WebCam NoSymbol XF86WebCam
keycode 221 =
keycode 222 =
keycode 223 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
keycode 224 = XF86Messenger NoSymbol XF86Messenger NoSymbol XF86Messenger
keycode 225 = XF86Search NoSymbol XF86Search NoSymbol XF86Search
keycode 226 = XF86Go NoSymbol XF86Go NoSymbol XF86Go
keycode 227 = XF86Finance NoSymbol XF86Finance NoSymbol XF86Finance
keycode 228 = XF86Game NoSymbol XF86Game NoSymbol XF86Game
keycode 229 = XF86Shop NoSymbol XF86Shop NoSymbol XF86Shop
keycode 230 =
keycode 231 = Cancel NoSymbol Cancel NoSymbol Cancel
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia NoSymbol XF86AudioMedia
keycode 235 = XF86Display NoSymbol XF86Display NoSymbol XF86Display
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
keycode 239 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 240 = XF86Reply NoSymbol XF86Reply NoSymbol XF86Reply
keycode 241 = XF86MailForward NoSymbol XF86MailForward NoSymbol XF86MailForward
keycode 242 = XF86Save NoSymbol XF86Save NoSymbol XF86Save
keycode 243 = XF86Documents NoSymbol XF86Documents NoSymbol XF86Documents
keycode 244 = XF86Battery NoSymbol XF86Battery NoSymbol XF86Battery
keycode 245 = XF86Bluetooth NoSymbol XF86Bluetooth NoSymbol XF86Bluetooth
keycode 246 = XF86WLAN NoSymbol XF86WLAN NoSymbol XF86WLAN
keycode 247 =
keycode 248 =
keycode 249 =
keycode 250 =
keycode 251 =
keycode 252 =
keycode 253 =
keycode 254 =
keycode 255 =

Fri, 27 Apr 2012 09:34:09 GMT - Antoine Martin:

Can you also post the server log for when you connect with the problematic client? (in debug mode would help) I am interested in the lines looking like these:

(..)
setting key repeat rate from client: 500 / 30
['setxkbmap', '-rules', 'base', '-model', 'pc105', '-layout', 'gb']
['xkbcomp', '-', ':9'] with stdin=xkb_keymap {\n	xkb_keycodes  { ..

Fri, 27 Apr 2012 09:41:23 GMT - Martin Vala:

Can you also post the server log for when you connect with the problematic client? (in debug mode would help)

what log do you mean? Xorg or xpra?


Fri, 27 Apr 2012 09:42:50 GMT - Martin Vala:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/xkbhelper.py", line 56, in apply_xmodmap
    unset = trap.call_synced(set_xmodmap, gtk.gdk.get_default_root_window(), instructions)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 113, in call_synced
    return self._call(False, fun, args, kwargs)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 106, in _call
    self._exit(need_sync)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 88, in _exit
    raise XError, error
XError: 2

Fri, 27 Apr 2012 09:43:40 GMT - Martin Vala:

sorry here is full log

xpra is ready.
New connection received
Handshake complete; enabling connection
encoding set to rgb24, client supports ['rgb24', 'jpeg', 'png'], server supports ['rgb24', 'jpeg', 'png']
using client supplied mmap file=/tmp/xpra.aLn6df.mmap, size=134217728
client resolution is [1600, 900], current server resolution is 3840x2560
setting key repeat rate from client: 660 / 40
['setxkbmap', '-rules', 'evdev', '-model', 'pc101', '-layout', 'us,ru,sk']
['xkbcomp', '-', ':100'] with stdin=xkb_keymap {\n      xkb_keycodes  { ..
apply_xmodmap
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/xkbhelper.py", line 56, in apply_xmodmap
    unset = trap.call_synced(set_xmodmap, gtk.gdk.get_default_root_window(), instructions)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 113, in call_synced
    return self._call(False, fun, args, kwargs)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 106, in _call
    self._exit(need_sync)
  File "/usr/lib64/python2.7/site-packages/wimpiggy/error.py", line 88, in _exit
    raise XError, error
XError: 2

Fri, 27 Apr 2012 09:50:17 GMT - Antoine Martin:

Can you post the log again, but with debug mode enabled (add '-d all' to the server's command line)?

It looks like it is failing to set the correct keymap, which is why some of your keys aren't responding.


Fri, 27 Apr 2012 09:58:56 GMT - Martin Vala: attachment set

xpra log in debug mode


Fri, 27 Apr 2012 10:22:12 GMT - Antoine Martin:

OK, it is failing to set the modifiers mapping, but I have no idea why...

[
  ('add', 2, ['Control_R', 'Control_L']),
  ('add', 3, ['Meta_L', 'Alt_R', 'Alt_L']),
  ('add', 4, ['Num_Lock']),
  ('add', 6, ['Super_R', 'Hyper_L', 'Super_L']),
  ('add', 7, ['ISO_Level3_Shift', 'Mode_switch']),
  ('add', 1, ['Caps_Lock']),
  ('add', 0, ['Shift_R', 'Shift_L'])]

Which it parsed from:

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

So far so good, so why is it failing??

Here are the keycodes it uses:

add modifier: keysym(Control_R)=65508
add modifier: keycodes(65508)=[105]
add modifier: added keycode=105 for modifier 2 and keysym=Control_R
add modifier: keysym(Control_L)=65507
add modifier: keycodes(65507)=[37]
add modifier: added keycode=37 for modifier 2 and keysym=Control_L
add modifier: keysym(Meta_L)=65511
add modifier: keycodes(65511)=[64, 205]
add modifier: added keycode=64 for modifier 3 and keysym=Meta_L
add modifier: added keycode=205 for modifier 3 and keysym=Meta_L
add modifier: keysym(Alt_R)=65514
add modifier: keycodes(65514)=[108]
add modifier: added keycode=108 for modifier 3 and keysym=Alt_R
add modifier: keysym(Alt_L)=65513
add modifier: keycodes(65513)=[64, 204]
add modifier: added keycode=64 for modifier 3 and keysym=Alt_L
add modifier: keysym(Num_Lock)=65407
add modifier: keycodes(65407)=[77]
add modifier: added keycode=77 for modifier 4 and keysym=Num_Lock
add modifier: keysym(Super_R)=65516
add modifier: keycodes(65516)=[134]
add modifier: added keycode=134 for modifier 6 and keysym=Super_R
add modifier: keysym(Hyper_L)=65517
add modifier: keycodes(65517)=[207]
add modifier: added keycode=207 for modifier 6 and keysym=Hyper_L
add modifier: keysym(Super_L)=65515
add modifier: keycodes(65515)=[133, 206]
add modifier: added keycode=133 for modifier 6 and keysym=Super_L
add modifier: added keycode=206 for modifier 6 and keysym=Super_L
add modifier: keysym(ISO_Level3_Shift)=65027
add modifier: keycodes(65027)=[92, 108]
add modifier: added keycode=92 for modifier 7 and keysym=ISO_Level3_Shift
add modifier: added keycode=108 for modifier 7 and keysym=ISO_Level3_Shift
add modifier: keysym(Mode_switch)=65406
add modifier: keycodes(65406)=[203]
add modifier: added keycode=203 for modifier 7 and keysym=Mode_switch
add modifier: keysym(Caps_Lock)=65509
add modifier: keycodes(65509)=[66]
add modifier: added keycode=66 for modifier 1 and keysym=Caps_Lock
add modifier: keysym(Shift_R)=65506
add modifier: keycodes(65506)=[62]
add modifier: added keycode=62 for modifier 0 and keysym=Shift_R
add modifier: keysym(Shift_L)=65505
add modifier: keycodes(65505)=[50]
add modifier: added keycode=50 for modifier 0 and keysym=Shift_L

Which means that the full list of keycodes used is:

[105, 37, 64, 205, 108, 64, 204, 77, 134, 207, 133, 206, 92, 108, 203, 66, 62, 50]

As far as I can tell, none of those are from the "translated" ones:

translated keycodes = {
  163: 223, 214: 120, 231: 161, 136: 231, 137: 190, 170: 8,
  107: 218, 172: 215, 239: 168, 208: 103, 179: 191, 215: 132,
  182: 214, 169: 170, 153: 239, 218: 149, 223: 154, 190: 93, 191: 97}

So I have no idea why it is failing, and as usual X11 is not exactly forthcoming with a helpful error message: XError 2...

BTW, Is there a particular reason why you are still using v0.1.0 now that v0.2.0 is out? I thought you were testing trunk?


Fri, 27 Apr 2012 11:16:51 GMT - Martin Vala:

this is what i am getting on client when i do attach -d all

handle_key_action(<gtk.gdk.Event at 0xfb26e8: GDK_KEY_PRESS keyval=d>,<ClientWindow object at 0x105ff50 (xpra+client+ClientWindow at 0xf67050)>,True)
key_action(<gtk.gdk.Event at 0xfb26e8: GDK_KEY_PRESS keyval=d>,<ClientWindow object at 0x105ff50 (xpra+client+ClientWindow at 0xf67050)>,True) modifiers=['control'], name=d, state=<flags GDK_CONTROL_MASK of type GdkModifierType>, keyval=100, string=, keycode=40
scheduling key repeat for d: delay=560, interval=5 (from 660 and 40)
key repeat: starting timer for d / 40 with delay 560 and interval 5

i will send you trunk. on system i have 0.1.0


Fri, 27 Apr 2012 11:17:27 GMT - Martin Vala: attachment set

server's log using trunk of xpra


Fri, 27 Apr 2012 15:40:03 GMT - Antoine Martin:

The client does the right thing, but the server won't be able to press the right keys if it failed to apply the keymap/modmap..

So we need to figure out why it failed, and I have no idea at the moment, but I should be able to reproduce this with the test data from above. Maybe Monday..


Fri, 27 Apr 2012 15:41:28 GMT - Martin Vala:

No rush. Thanks

Ciao

Martin


Sat, 28 Apr 2012 12:56:11 GMT - Martin Vala:

Hi Antoine,

i fixed it. In kde i set US keybord variant to English (US, alternative international) and it is working.

Ciao

Martin


Sun, 03 Jun 2012 17:39:29 GMT - Antoine Martin: status changed; resolution set

Looks like a duplicate of #91, will follow up there.


Sat, 23 Jan 2021 04:46:00 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/117