Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.82k stars 157 forks source link

PgUp and PgDn get mapped to different keys on the server #4292

Closed vchudnov closed 1 week ago

vchudnov commented 2 weeks ago

Describe the bug The PgUp key gets interpreted as /, and the PgDn key gets interpreted as Menu on the Xpra server.

To Reproduce Steps to reproduce the behavior:

  1. server command
  2. client command: xpra start --ssh="ssh -x -C " --keyboard-sync=no --opengl=no --keyboard-layout=us --title="@client-machine@: @title@" ssh://${USER}@${REMOTE}/100 --start=xfce4-terminal
  3. specific action to trigger the bug: Press PgUp and PgDown on an Xpra window. The former becomes a slash /, the latter becomes a Menu-key press. They work fine on my local machine.

System Information (please complete the following information):

Additional context

I have a standard 104-key US keyboard, and I don't specify any keyboard mappings.

It seems that the xpra server interprets the same keycode as the my client machine, but translates it to a different keysym. Compare the output of xev on both machines:

totaam commented 2 weeks ago

Server OS: Debian 6.1.94-1

Are you sure this is correct?

Why do you need to specify --keyboard-sync=no --opengl=no --keyboard-layout=us?

Have you tried --keyboard-raw=yes?

vchudnov commented 2 weeks ago

Server OS: Debian 6.1.94-1

Are you sure this is correct?

Sorry, fixed it.

Why do you need to specify --keyboard-sync=no --opengl=no --keyboard-layout=us?

I tried it with both settings for both of the keyboard flags. This was my latest incantation.

Have you tried --keyboard-raw=yes?

Yes, I did after I filed this issue. Same symptoms.

totaam commented 2 weeks ago

Sorry, fixed it.

No, this looks like a kernel version, not an OS version: Server OS: Debian 6.6.15

vchudnov commented 2 weeks ago

Sorry, fixed it.

No, this looks like a kernel version, not an OS version: Server OS: Debian 6.6.15

Debian Bookworm on both client and server.

vchudnov commented 2 weeks ago

Symptoms persist without any of --keyboard-sync=no --opengl=no --keyboard-layout=us

Symptoms are worse with xpra attach --ssh="ssh -x -C " --keyboard-raw=yes --title="@client-machine@: @title@" ssh://XXX@YYY/100: the arrow keys get remapped as well. UpArrow becomes Print

`

totaam commented 2 weeks ago

Please post the client output, which contains keyboard detection information. As well as the server log.

vchudnov commented 1 week ago

I finally had a chance to re-install the client-machine xpra (due to external constraints, it's not quite a standard install), and now everything seems to be working---or at least, I'm not seeing this problem any more.