I have installed ubuntu 12.04.1 and x2goclient on it.
when connetc to a x2goserver (ubuntu 12.04.1) the arrow keys didnt work properly
e.g: down key works like Enter
Did anyone have this problem, too?
I have installed ubuntu 12.04.1 and x2goclient on it.
when connetc to a x2goserver (ubuntu 12.04.1) the arrow keys didnt work properly
e.g: down key works like Enter
Did anyone have this problem, too?
The problem was keyboard layout.
that was null , I changed it to English(US) , now it is working correctly.
I would like to explain what happened:
On your local X11 your keyboard's keycodes are:
But over x2go, the very same keys produce different keycodes!
I have no idea why the implementation of x2go does this (instead of forwarding the keycode as is!), but that it how it is. This does not happen with all keycodes/keys.
So when you instruct x2go to do nothing about the XKB setup, the assignments keycode -> keysym is effectively the same and keycode 104 has still the same result: keypad's ENTER.
The interesting thing is: there is a schema behind this mapping! The x2go side seems to use the keycodes written down in the "old" XKBROOT/keycodes/xfree86
file, while a "modern" Linux desktop has the keycodes comming from evdev who's keycodes is written down in the file XKBROOT/keycodes/evdev
.
Result: you always have to load a new XKB configuration in x2go. Let the x2go client initiate that itself or load your own, but keep in mind to use the xfree86 rules (or directly the keycodes from xfree86 (same name)).
Run on the server:
setxkbmap us -print | xkbcomp - $DISPLAY
It dumps the us english keyboard mapping table, and reinitializes your X with it.
I had a similar issue: keys had a random effect in the remote session. Then I realized that on the client computer (a mac) I had another keyboard layout activated than the usual one. After setting it back to the usual (on the mac), typing worked again in the remote session.
What worked for me, was setting the keyboard layout in the x2go-client settings to something else and then back again.
In my case I was using Archlinux and x2goserver requires xorg-setxkbmap
and xorg-xkbcomp
packages to be installed on server side though x2goserver
package itself does not list these packages as dependencies. It can not apply keyboard settings without them. You can install them in Archlinux with:
sudo pacman -S xorg-setxkbmap xorg-xkbcomp
I submitted bug report.