-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XRDP uses wrong (old?) Xorg keycodes #179
Comments
This is the evdev vs base rules in xkb. |
Any suggestion on possible improvement? evdev->xfree86 mapping in genkeymap? |
The problem is that Xvnc uses base, not evdev. |
Is there any documentation on how to build X11rdp? |
See documentation at Another great choice is to use xrdp-o-matic from scarygliders.net f you are using debian or ubuntu Jay |
As far as I understand, X11rdp requires building patched half-of-Xorg. This is nowhere near acceptable for us. |
Unfortunately, this is what you get when you run Xvnc too. One solution I'm working on is an Xorg driver for xrdp that uses the Xorg on your system. |
Yes, the xorg driver would be awesome. I have tried building x11rdp but so far with no success. It certainly doesn't build against any modern xorg-server, and with 1.9.3 I get:
But this may be related to mixing old xorg-server with newer Xorg libraries. |
Even after hacking all my way through it, it requires old Xorg server modules and it's basically a no-go for us. In comparison, tigervnc is constantly being patched to work with current Xorg versions… |
You should have a look at rdp driver for xorg, I've added a page in the wiki for its usage. It's really fast to test: RDP driver for xorg |
It is possible to use a new Xorg. I have a branch in my repo that links (shared libs) the existing X11 install and only adds a 1.4Mb binary to bootstrap the thing (the code from Jay). So patches on the x11 code will be automatically fixed in x11rdp as well. I am running on quite some machines daily development work with abt 200+ devs. |
So I've been finally able to build X11rdp with some hackery. Sadly, it's even worse than Xvnc. It seems that any altgr+letter keypress is causing a noticeable lag, and if followed by any other keypresses often results in missing characters in output. I will try the Xorg drivers now :). |
Ok, the Xorg drivers have the same issues as X11rdp — altgr causes awful lag. It has also has an extra feature of bringing down my local Xorg on remote session logout :). |
Thanks for all the help. Since underlying issue is resolved now, I've opened Pull Request #180 that brings conditional evdev support to genkeymap. This way, it's possible to generate correct keymaps on systems using evdev. |
Just to clear the record. |
For example, left arrow (RDP 75, extended) is mapped as 100. However, xev reports that Xorg is using 113 for it. I don't know if it's specific to hardware, architecture or X11 version. But the result is that keymap created by genkeymap doesn't work correctly with xrdp — has mis-mapped keys.
I also don't have a good solution here. In any case, I don't think we can use keycodes reliably.
The text was updated successfully, but these errors were encountered: