wslg icon indicating copy to clipboard operation
wslg copied to clipboard

No keyboard input via remote desktop from Mac/iPad (Need support for Unicode input)

Open dh7adr opened this issue 2 years ago • 12 comments

Version

Microsoft Windows [Version 10.0.19043.2364]

WSL Version

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) microsoft/WSL#1 SMP Wed Nov 23 01:01:46 UTC 2022

Distro Version

Debian GNU/Linux 11 (bullseye)

Other Software

X11-apps: xterm chromium MS Remote Desktop 10.8.0 (2032) macOS Ventura 13.2

Repro Steps

Connect via Microsoft Remote Destop to Windows-PC from MacOS Ventura 13.2. MS Remote Desktop App. Start wsl by command in a powershell and then xterm or chromium. Try to enter characters into the resulting xterm- or chromium windows. Return works, but any other character creates no response.

Expected Behavior

normal input of all characters into the xterm window or the chromium address field.

Actual Behavior

Bildschirm­foto 2023-02-01 um 14 03 32

Result after hitting some characters and the return-key

No characters are shown, except the return key works in an X11 window

Diagnostic Logs

No response

dh7adr avatar Feb 01 '23 13:02 dh7adr

@dh7adr, would you please share /mnt/wslg/weston.log? thanks!

hideyukn88 avatar Feb 07 '23 19:02 hideyukn88

/mnt/wslg/weston.log on a fresh started system with one xterm running.

weston.log

dh7adr avatar Feb 08 '23 15:02 dh7adr

@dh7adr, thanks, the log indicates you are using German keyboard layout, would you please check if German keyboard layout is used both Mac and the remote Windows-PC? Although even keyboard layout does not match, I believe alpha-numeric keys still should work as they share same scan code. So if you type any alpha-numeric key, say 'q' or 'w' to xterm, does it log any errors to weston.log? thanks!

[16:16:34.022] kbd_layout:0x407 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc
[16:16:34.022] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=de variant=(null) options=(null)

hideyukn88 avatar Feb 08 '23 16:02 hideyukn88

@dh7adr, while I don't have Mac, but I was able to reproduce the issue using remote desktop on iPad, I willl look into further, thank you for reporting the issue, thanks!

hideyukn88 avatar Feb 08 '23 17:02 hideyukn88

@dh7adr, you should be able to workaround this by using "Scancode" input from Connection menu, Keyboard mode, then check "Scancode". Please let us know how it goes, thanks!

hideyukn88 avatar Feb 09 '23 01:02 hideyukn88

Hello,

great! This works for me. Scancode is a good workaround.

I´m using the german keyboard layout at every computer. There are some differences between iMacs and PCs, but this is only an issue with some special shifted characters and functions.

Thanks,

Andreas

dh7adr avatar Feb 09 '23 10:02 dh7adr

Scancode

Hi, is there a Scancode option on the Windows Remote Desktop Clinet on iPad?

or is there any way to input into WSLg on an iPad?

GreenHatHG avatar May 27 '23 10:05 GreenHatHG

I have this same issue with RDP on an iPad. Also seems to affect the Hyper-V console.

JorgenPhi avatar Aug 05 '23 00:08 JorgenPhi

Yup, same (bump)

sshcrack avatar Jan 08 '24 11:01 sshcrack

Bump too… I’ve been watching this issue for a year, and right now my workaround is to VNC into a native Linux machine and execute xfreerdp from there. But that’s certainly annoying!

threeifbyair avatar Feb 10 '24 15:02 threeifbyair

Just bumped up against this issue on iPad / WSLg. Is there any update / workaround available / in the works?

wreality avatar Mar 16 '24 16:03 wreality

Hello, I too am hitting this when using the MS RDP Application. Where is this 'scancode' option and is there a more permenant fix in the works?

Is this a bug in the MS RDP App maybe?

I notice when running xev via WSLg, arrow keys, enter, escape, tab and backspace generate kb events but no alpha numeric keys do

anomaly256 avatar Jul 21 '24 06:07 anomaly256