Skip to content
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

Incorrect Keyboard Layout on Linux Host #2184

Closed
3 tasks done
barraocathain opened this issue Feb 27, 2024 · 8 comments
Closed
3 tasks done

Incorrect Keyboard Layout on Linux Host #2184

barraocathain opened this issue Feb 27, 2024 · 8 comments
Labels

Comments

@barraocathain
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

I am currently using the sunshine-bin package on an Arch Linux host, using X11. I am able to connect to a Sunshine session perfectly, but when I use the client keyboard, it appears to be passed through as a US English keyboard, rather than the Dvorak Programmer layout that I have set on the host. I can type on the host keyboard and it works as expected, and running commands such as setxkbmap seem to have no effect on the client keyboard.

Expected Behavior

Sunshine would use the currently set keyboard layout on the host.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Arch Linux, up to date.

Architecture

64 bit

Sunshine commit or version

0.21.0

Package

Linux - AUR (Third Party)

GPU Type

Nvidia

GPU Model

GTX 1060 3GB

GPU Driver/Mesa Version

545.29

Capture Method (Linux Only)

X11

Config

no config

Apps

No response

Relevant log output

not at host will provide later
@gschintgen
Copy link
Contributor

What is your client OS? There seem to be some issues (notably the AltGr key) when a Windows client connects to a Linux host.
See #1224

@ReenigneArcher ReenigneArcher added the input:keyboard Keyboard issue label Mar 27, 2024
@barraocathain
Copy link
Author

It's a Linux client, also on Arch Linux, using the moonlight-qt-bin package.

@Stephan3
Copy link

Stephan3 commented Apr 9, 2024

Stombled into same situation. Overall performance is very good but cant have correct Keyboardlayout. Switching sides arround as stated in other tickets did not work for me. I bootet a few VMs up for testing.(Manjaro/Arch/Debian/Ubuntu/Elemtary)
If i connect from a win10/win11 machhine to a linux host running Sunshine(0.23) i do have a wrong keyboard set.

@gschintgen
Copy link
Contributor

Which keys are affected? Letter keys? Or only some specific characters?
It might be helpful to provide log files. In particular if you set Sunshine's loglevel (can be found in its WebUI) to debug it will print out every single input event it receives from moonlight. You could extract the relevant parts and add some notes which keys or key combination was actually pressed. (And what sunshine made of it. xev is useful too.)

@barraocathain
Copy link
Author

It's every key, as if the keyboard was plugged directly into the machine and set to a US layout, rather than the layout of both the client and the host, Dvorak Programmer.

I'll be able to get some logs on Friday. Sunshine's logs, some xev output, and what I actually pressed is what you're looking for?

@gschintgen
Copy link
Contributor

I should specify that I'm not affiliated with the Sunshine project. But I'm in the process of debugging another keyboard issue that is annoying me. I thought it might be helpful to have more details in this report too. There could have been more similarities than just Linux as host OS, but the issue that I'm trying to debug seems indeed limited to the AltGr key.

I have one difference in the letters between my layout, fr_CH, and US: z and y are interchanged, qwertz vs qwerty. And that does work fine for me. That's with a Windows client and Linux host. I should try with a Linux client too.

I found the following helpful in tracking down "my" issue:

  • running Moonlight with SDL_EVENT_LOGGING=1 will write detailed log output for every input event
  • Sunshine's log at debugging level (see in detail what it receives from Moonlight)

@LizardByte-bot
Copy link
Member

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

@LizardByte-bot
Copy link
Member

This issue was closed because it has been stalled for 10 days with no activity.

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants