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

Mouse look in Minecraft in Ubuntu 20.04 in WSL2 is broken #374

Open
CoconutMacaroon opened this issue Jul 21, 2021 · 5 comments
Open

Mouse look in Minecraft in Ubuntu 20.04 in WSL2 is broken #374

CoconutMacaroon opened this issue Jul 21, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@CoconutMacaroon
Copy link

CoconutMacaroon commented Jul 21, 2021

Environment

Windows build number: Microsoft Windows [Version 10.0.22000.71]
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.24

Steps to reproduce

Install the latest version of Minecraft Java edition into WSL2. I did this by installing Firefox (in WSL2), downloading the .deb file, installing the prerequisties, and then installing the .deb file. I then ran minecraft-launcher, which opened the launcher (in WSL) and launched the latest version of the game (unmodded 1.17.1). I joined a realm (although a server/world should have the same issue), and tried to look arround. I could rotate my character by moving the mouse left-right but I couldn't make my character look up, by moving the mouse up. WASD to move worked, however.

WSL logs:

  • Attach WSLg logs from /mnt/wslg

You can access the wslg logs using explorer at: \\wsl$\<Distro-Name>\mnt\wslg (e.g.: \\wsl$\Ubuntu-20.04\mnt\wslg)

  • puseaudio.log
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/wslg/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/wslg/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/wslg/.pulse-cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/wslg/.pulse-cookie': No such file or directory
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: Connected failed
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Trying to connect to /mnt/wslg/PulseAudioRDPSink
E: [rdp-sink] module-rdp-sink.c: RDP Sink - Connected to fd 12
  • weston.log
Date: 2021-07-21 PDT
[09:49:03.219] weston 9.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 9.0.0-30-ged4f3bbb
[09:49:03.220] Command line: /usr/bin/weston --backend=rdp-backend.so --xwayland --shell=rdprail-shell.so --logger-scopes=log,rdp-backend,rdprail-shell --log=/mnt/wslg/weston.log
[09:49:03.220] OS: Linux, 5.4.72-microsoft-standard-WSL2, #1 SMP Wed Oct 28 23:40:43 UTC 2020, x86_64
[09:49:03.220] Using config file '/home/wslg/.config/weston.ini'
[09:49:03.222] Output repaint window is 7 ms maximum.
[09:49:03.223] Loading module '/usr/lib/libweston-9/rdp-backend.so'
[09:49:03.246] using FreeRDP version 2.3.2
Date: 2021-07-21 PDT
[09:49:03.246] RDP backend: WESTON_RDP_DEBUG_LEVEL: 3
[09:49:03.246] RDP backend: WESTON_RDP_MONITOR_REFRESH_RATE: 60000
[09:49:03.246] RDP backend: timer resolution tv_sec:0 tv_nsec:1
[09:49:03.246] RDP backend: Environment dump - start
[09:49:03.246]   WSL_DISTRO_NAME=
[09:49:03.246]   WSL2_SHARED_MEMORY_OB_DIRECTORY=WSL\1261DFC0-AF23-4C87-AEE2-D529C44A9957\wslg
[09:49:03.246]   PWD=/
[09:49:03.246]   NAME=DESKTOP-POAE0IV
[09:49:03.246]   WSL_FEATURE_FLAGS=7
[09:49:03.246]   SHLVL=1
[09:49:03.246]   WSL2_GUI_APPS_ENABLED=1
[09:49:03.246]   WSL2_DISTRO_NAME=Ubuntu
[09:49:03.246]   WSL2_VM_ID=1261DFC0-AF23-4C87-AEE2-D529C44A9957
[09:49:03.246]   _=/usr/bin/WSLGd
[09:49:03.246]   HOME=/home/wslg
[09:49:03.246]   USER=wslg
[09:49:03.246]   LOGNAME=wslg
[09:49:03.246]   SHELL=/bin/bash
[09:49:03.246]   PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[09:49:03.246]   XDG_RUNTIME_DIR=/mnt/wslg/runtime-dir
[09:49:03.246]   WAYLAND_DISPLAY=wayland-0
[09:49:03.246]   DISPLAY=:0
[09:49:03.246]   XCURSOR_PATH=/usr/share/icons
[09:49:03.246]   XCURSOR_THEME=whiteglass
[09:49:03.246]   XCURSOR_SIZE=16
[09:49:03.246]   PULSE_AUDIO_RDP_SINK=/mnt/wslg/PulseAudioRDPSink
[09:49:03.246]   PULSE_AUDIO_RDP_SOURCE=/mnt/wslg/PulseAudioRDPSource
[09:49:03.246]   USE_VSOCK=3
[09:49:03.246]   WSL2_DEFAULT_APP_ICON=/usr/share/icons/wsl/linux.png
[09:49:03.246]   WSL2_DEFAULT_APP_OVERLAY_ICON=/usr/share/icons/wsl/linux.png
[09:49:03.246]   WESTON_DISABLE_ABSTRACT_FD=1
[09:49:03.246]   WESTON_CONFIG_FILE=/home/wslg/.config/weston.ini
[09:49:03.246] RDP backend: Environment dump - end
[09:49:03.246] Using external fd for incoming connections: 3
[09:49:03.247] Default head is being added
[09:49:03.247] Registered plugin API 'weston_rdprail_api_v1' of size 56
[09:49:03.247] RDPAPPLIST_MODULEDIR is set to /usr/lib/rdpapplist
[09:49:03.248] RDP backend: use_rdpapplist = 1
[09:49:03.249] WSL2_SHARED_MEMORY_MOUNT_POINT is not set.
[09:49:03.249] RDP backend: use_gfxredir = 0
[09:49:03.249] RDP backend: enable_hi_dpi_support = 1
[09:49:03.249] RDP backend: enable_fractional_hi_dpi_support = 0
[09:49:03.249] RDP backend: debug_desktop_scaling_factor = 0
[09:49:03.249] RDP backend: enable_window_zorder_sync = 1
[09:49:03.249] RDP backend: enable_distro_name_title = 1
[09:49:03.249] RDP backend: enable_copy_warning_title = 1
[09:49:03.249] Using VSOCK for incoming connections: 3
[09:49:03.252] Registered plugin API 'weston_rdp_output_api_v1' of size 16
[09:49:03.252] Head attaching: rdp-0, index:0, is_primary: 1
[09:49:03.252] get_config: attached head [0]: make:(null), mode:(null), name:rdp-0, (0x55cac3436400)
[09:49:03.252] get_config: attached head [0]: x:0, y:0, width:0, height:0
[09:49:03.252] set_size: attached head [0]: make:weston, mode:rdp, name:rdp-0, (0x55cac3436400)
[09:49:03.252] set_size: attached head [0]: x:0, y:0, width:0, height:0
[09:49:03.252] Output 'rdp-0' enabled with head(s) rdp-0
[09:49:03.252] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: no
               presentation clock: CLOCK_MONOTONIC_RAW, id 4
               presentation clock resolution: 0.000000001 s
[09:49:03.253] Loading module '/usr/lib/weston/rdprail-shell.so'
[09:49:03.256] RDPRAIL-shell: WESTON_RDPRAIL_SHELL_DEBUG_LEVEL: 3.
Date: 2021-07-21 PDT
[09:49:03.256] wet_shell_init: distro name Ubuntu (6)
[09:49:03.256] WESTON_RDPRAIL_SHELL_DISABLE_APPEND_DISTRONAME_STARTMEN:1
[09:49:03.259] WSL2_DEFAULT_APP_ICON:/usr/share/icons/wsl/linux.png
[09:49:03.260] WSL2_DEFAULT_APP_OVERLAY_ICON:/usr/share/icons/wsl/linux.png
[09:49:03.260] WESTON_RDPRAIL_SHELL_DISABLE_BLEND_OVERLAY_ICON_TASKBAR:1
[09:49:03.260] WESTON_RDPRAIL_SHELL_DISABLE_BLEND_OVERLAY_ICON_APPLIST:1
[09:49:03.260] rdp_rail_shell_initialize_notify: shell: distro name: Ubuntu
[09:49:03.262] app_list_monitor_thread: running in system-distro with user-distro: Ubuntu
[09:49:03.262] app_list_monitor_thread: open(/proc/self/ns/mnt)
[09:49:03.262] app_list_monitor_thread: open(/proc/2/ns/mnt)
[09:49:03.263] Loading module '/usr/lib/libweston-9/xwayland.so'
[09:49:03.264] app_list_monitor_thread: inotify_add_watch(/usr/share/applications)
[09:49:03.268] app_list_monitor_thread: /usr/local/share/applications doesn't exist, skipping.
[09:49:03.268] app list folder[0]: /usr/share/applications
[09:49:03.269] Registered plugin API 'weston_xwayland_v1' of size 32
[09:49:03.269] Registered plugin API 'weston_xwayland_surface_v1' of size 48
[09:49:03.269] Not using abstract fd for Xwayland
[09:49:03.269] xserver listening on display :0
[09:49:03.283] desktop file: /usr/share/applications/nsight-sys-2021.2.4.desktop
[09:49:03.283]     Name[en_US]:NVIDIA Nsight Systems 2021.2.4 (Ubuntu)
[09:49:03.283]     Exec:/opt/nvidia/nsight-systems/2021.2.4/host-linux-x64/nsys-ui
[09:49:03.283]     TryExec:(null)
[09:49:03.283]     WorkingDir:(null)
[09:49:03.283]     Icon name:/opt/nvidia/nsight-systems/2021.2.4/host-linux-x64/nsys-ui.png
[09:49:03.283]     Icon file:(null)
[09:49:03.283] app list entry updated: Key:nsight-sys-2021.2.4, Name:NVIDIA Nsight Systems 2021.2.4 (Ubuntu)
[09:49:03.286] desktop file: /usr/share/applications/snap-handle-link.desktop has NoDisplay specified
[09:49:03.286] app list entry failed to update: Key:snap-handle-link
[09:49:03.286] free_app_entry(): (null): /usr/share/applications/snap-handle-link.desktop
[09:49:03.287] desktop file: /usr/share/applications/openjdk-11-java.desktop has NoDisplay specified
[09:49:03.287] app list entry failed to update: Key:openjdk-11-java
[09:49:03.287] free_app_entry(): (null): /usr/share/applications/openjdk-11-java.desktop
[09:49:03.288] desktop file: /usr/share/applications/nsight-compute-2021.2.0.desktop
[09:49:03.288]     Name[en_US]:NVIDIA Nsight Compute 2021.2.0 (Ubuntu)
[09:49:03.288]     Exec:/opt/nvidia/nsight-compute/2021.2.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui
[09:49:03.288]     TryExec:/opt/nvidia/nsight-compute/2021.2.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui
[09:49:03.288]     WorkingDir:(null)
[09:49:03.288]     Icon name:/opt/nvidia/nsight-compute/2021.2.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui.png
[09:49:03.288]     Icon file:(null)
[09:49:03.288] app list entry updated: Key:nsight-compute-2021.2.0, Name:NVIDIA Nsight Compute 2021.2.0 (Ubuntu)
[09:49:03.298] desktop file: /usr/share/applications/byobu.desktop is terminal based app
[09:49:03.298] app list entry failed to update: Key:byobu
[09:49:03.298] free_app_entry(): (null): /usr/share/applications/byobu.desktop
[09:49:03.299] desktop file: /usr/share/applications/nsight.desktop
[09:49:03.299]     Name[en_US]:Nsight Eclipse Edition (Ubuntu)
[09:49:03.299]     Exec:/usr/local/cuda-11.4/bin/nsight
[09:49:03.299]     TryExec:/usr/local/cuda-11.4/bin/nsight
[09:49:03.299]     WorkingDir:(null)
[09:49:03.299]     Icon name:/usr/local/cuda-11.4/libnsight/icon.xpm
[09:49:03.299]     Icon file:(null)
[09:49:03.299] app list entry updated: Key:nsight, Name:Nsight Eclipse Edition (Ubuntu)
[09:49:03.301] desktop file: /usr/share/applications/minecraft-launcher.desktop
[09:49:03.301]     Name[en_US]:Minecraft Launcher (Ubuntu)
[09:49:03.301]     Exec:minecraft-launcher
[09:49:03.301]     TryExec:(null)
[09:49:03.301]     WorkingDir:(null)
[09:49:03.301]     Icon name:minecraft-launcher
[09:49:03.301]     Icon file:(null)
[09:49:03.301] app list entry updated: Key:minecraft-launcher, Name:Minecraft Launcher (Ubuntu)
[09:49:03.302] desktop file: /usr/share/applications/vim.desktop is terminal based app
[09:49:03.302] app list entry failed to update: Key:vim
[09:49:03.302] free_app_entry(): (null): /usr/share/applications/vim.desktop
[09:49:03.304] desktop file: /usr/share/applications/python2.7.desktop has NoDisplay specified
[09:49:03.304] app list entry failed to update: Key:python2.7
[09:49:03.304] free_app_entry(): (null): /usr/share/applications/python2.7.desktop
[09:49:03.306] desktop file: /usr/share/applications/firefox.desktop
[09:49:03.306]     Name[en_US]:Firefox Web Browser (Ubuntu)
[09:49:03.306]     Exec:firefox
[09:49:03.306]     TryExec:(null)
[09:49:03.306]     WorkingDir:(null)
[09:49:03.306]     Icon name:firefox
[09:49:03.306]     Icon file:/usr/share/icons/hicolor/128x128/apps/firefox.png
[09:49:03.306] app list entry updated: Key:firefox, Name:Firefox Web Browser (Ubuntu)
[09:49:03.307] desktop file: /usr/share/applications/nvvp.desktop
[09:49:03.307]     Name[en_US]:NVIDIA Visual Profiler (Ubuntu)
[09:49:03.307]     Exec:/usr/local/cuda-11.4/bin/nvvp
[09:49:03.307]     TryExec:/usr/local/cuda-11.4/bin/nvvp
[09:49:03.307]     WorkingDir:(null)
[09:49:03.307]     Icon name:/usr/local/cuda-11.4/libnvvp/icon.xpm
[09:49:03.307]     Icon file:(null)
[09:49:03.307] app list entry updated: Key:nvvp, Name:NVIDIA Visual Profiler (Ubuntu)
[09:49:03.308] desktop file: /usr/share/applications/io.snapcraft.SessionAgent.desktop has NoDisplay specified
[09:49:03.308] app list entry failed to update: Key:io.snapcraft.SessionAgent
[09:49:03.308] free_app_entry(): (null): /usr/share/applications/io.snapcraft.SessionAgent.desktop
[09:49:03.308] desktop file: /usr/share/applications/htop.desktop is terminal based app
[09:49:03.308] app list entry failed to update: Key:htop
[09:49:03.308] free_app_entry(): (null): /usr/share/applications/htop.desktop
[09:49:03.309] desktop file: /usr/share/applications/info.desktop is terminal based app
[09:49:03.309] app list entry failed to update: Key:info
[09:49:03.309] free_app_entry(): (null): /usr/share/applications/info.desktop
[09:49:03.309] desktop file: /usr/share/applications/python3.8.desktop has NoDisplay specified
[09:49:03.309] app list entry failed to update: Key:python3.8
[09:49:03.309] free_app_entry(): (null): /usr/share/applications/python3.8.desktop
[09:49:03.309] app list folder[1]: /usr/local/share/applications
[09:49:04.546] Client: ClientStatus:0x3f5
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_ALLOWLOCALMOVESIZE
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_ZORDER_SYNC
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_WINDOW_RESIZE_MARGIN_SUPPORTED
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_HIGH_DPI_ICONS_SUPPORTED
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_APPBAR_REMOTING_SUPPORTED
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_POWER_DISPLAY_REQUEST_SUPPORTED
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_GET_APPID_RESPONSE_EX_SUPPORTED
[09:49:04.547]      - TS_RAIL_CLIENTSTATUS_BIDIRECTIONAL_CLOAK_SUPPORTED
[09:49:04.547] Client HandShake buildNumber:22000
[09:49:04.559] Server AppList caps version:3
[09:49:04.600] Client: GrfxCaps count:0x8
[09:49:04.600] Client: GrfxCaps[0] version:0x80004 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_8
[09:49:04.600] Client: GrfxCaps[1] version:0x80105 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_81
[09:49:04.600] Client: GrfxCaps[2] version:0xa0002 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_10
[09:49:04.600] Client: GrfxCaps[3] version:0xa0200 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_102
[09:49:04.600] Client: GrfxCaps[4] version:0xa0301 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_103
[09:49:04.600] Client: GrfxCaps[5] version:0xa0400 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_104
[09:49:04.600] Client: GrfxCaps[6] version:0xa0502 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_105
[09:49:04.600] Client: GrfxCaps[7] version:0xa0600 length:4 flags:0x0
[09:49:04.600]  Version : RDPGFX_CAPVERSION_106
[09:49:04.611] Pulse Audio source listener socket on /mnt/wslg/PulseAudioRDPSource
[09:49:04.611] xf_peer_adjust_monitor_layout:
[09:49:04.611]   DesktopWidth:3840, DesktopHeight:2160
[09:49:04.611]   UseMultimon:0
[09:49:04.611]   ForceMultimon:0
[09:49:04.611] AudioIn source_thread: Listening for audio in connection.
[09:49:04.611]   MonitorCount:0
[09:49:04.611]   HasMonitorAttributes:0
[09:49:04.611]   HiDefRemoteApp:1
[09:49:04.611] disp_monitor_validate_and_compute_layout:---INPUT---
[09:49:04.611]  rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[09:49:04.611]  rdpMonitor[0]: physicalWidth:345, physicalHeight:194, orientation:0
[09:49:04.611]  rdpMonitor[0]: desktopScaleFactor:250, deviceScaleFactor:180
[09:49:04.611]  rdpMonitor[0]: scale:2, client scale :2.00
[09:49:04.611] Client desktop upper left coordinate (0,0)
[09:49:04.611] disp_monitor_validate_and_compute_layout:---OUTPUT---
[09:49:04.611]  rdpMonitor[0]: x:0, y:0, width:3840, height:2160, is_primary:1
[09:49:04.611]  rdpMonitor[0]: weston x:0, y:0, width:1920, height:1080
[09:49:04.611]  rdpMonitor[0]: physicalWidth:345, physicalHeight:194, orientation:0
[09:49:04.611]  rdpMonitor[0]: desktopScaleFactor:250, deviceScaleFactor:180
[09:49:04.611]  rdpMonitor[0]: scale:2, clientScale:2.00
[09:49:04.611] Head mode change:rdp-0 OLD width:0, height:0, scale:1, clientScale:1.000000
[09:49:04.611] Head mode change:rdp-0 NEW width:3840, height:2160, scale:2, clientScale:2.000000
[09:49:04.612] move head/output rdp-0 (0,0) -> (0,0)
[09:49:04.612] Output 'rdp-0' enabled with head(s) rdp-0
[09:49:04.612] move head/output rdp-0 (0,0) -> (0,0)
[09:49:04.612] client origin (0,0) is (0,0) in Weston space
[09:49:04.612] client virtual desktop is (0,0) - (3840,2160)
[09:49:04.612] weston virtual desktop is (0,0) - (1920,1080)
[09:49:04.612] kbd_layout:0x409 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc
[09:49:04.612] convert_rdp_keyboard_to_xkb_rule_names: matching layout=us variant=(null)
[09:49:04.633] Client ExecOrder:0x00000008, Program:dummy-entry, WorkingDir:(null), RemoteApplicationArguments:(null)
[09:49:04.633] Client ExecOrder launching dummy-entry
[09:49:04.633] launching 'dummy-entry'
[09:49:04.634] Client: ClientSysparam: filterKeys
[09:49:04.634] Client: ClientSysparam: toggleKeys:62
[09:49:04.634] Client: ClientSysparam: stickyKeys:506
[09:49:04.634] Client: ClientSysparam: caretWidth:1
[09:49:04.634] Client: ClientSysparam: highContrast
[09:49:04.634] Client: ClientSysparam: taskbarPos:(left:0, top:2040, right:3840, bottom:2160)
[09:49:04.634] Client: ClientSysparam: mouseButtonSwap:0
[09:49:04.634] Client: ClientSysparam: keyboardPref:0
[09:49:04.634] Client: ClientSysparam: dragFullWindows:1
[09:49:04.634] Client: ClientSysparam: keyboardCues:0
[09:49:04.634] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2040)
[09:49:04.634] Translated workarea:(0,0)-(1920,1020) at rdp-0:(0,0)-(1920,1080)
[09:49:04.634] Client AppList caps version:3
[09:49:04.635] Client AppList client language id: en_US
[09:49:04.635] app_list_monitor_thread: startRdpNotifyEvent is signalled. 0 - en_US
[09:49:04.635] Detected a monitor change on head 'rdp-0', not bothering to do anything about it.
[09:49:04.635] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.635]     inSync: 1
[09:49:04.635]     syncStart: 1
[09:49:04.635]     syncEnd: 0
[09:49:04.635]     newAppId: 1
[09:49:04.635]     deleteAppId: 0
[09:49:04.635]     deleteAppProvider: 0
[09:49:04.635] Client: ClientSysparam: filterKeys
[09:49:04.635]     appId: nsight-compute-2021.2.0
[09:49:04.635]     appGroup: (null)
[09:49:04.635]     appExecPath: /opt/nvidia/nsight-compute/2021.2.0/host/linux-desktop-glibc_2_11_3-x64/ncu-ui
[09:49:04.635]     appWorkingDir: (null)
[09:49:04.635]     appDesc: NVIDIA Nsight Compute 2021.2.0 (Ubuntu)
[09:49:04.635]     appIcon: 0x55cac343b3d0
[09:49:04.635]     appProvider: (null)
[09:49:04.636] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.636]     inSync: 1
[09:49:04.636]     syncStart: 0
[09:49:04.636]     syncEnd: 0
[09:49:04.636]     newAppId: 1
[09:49:04.636]     deleteAppId: 0
[09:49:04.636]     deleteAppProvider: 0
[09:49:04.636]     appId: nvvp
[09:49:04.636]     appGroup: (null)
[09:49:04.636]     appExecPath: /usr/local/cuda-11.4/bin/nvvp
[09:49:04.636]     appWorkingDir: (null)
[09:49:04.636]     appDesc: NVIDIA Visual Profiler (Ubuntu)
[09:49:04.636]     appIcon: 0x55cac343b3d0
[09:49:04.636]     appProvider: (null)
[09:49:04.636] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.636]     inSync: 1
[09:49:04.636]     syncStart: 0
[09:49:04.636]     syncEnd: 0
[09:49:04.636]     newAppId: 1
[09:49:04.636]     deleteAppId: 0
[09:49:04.636]     deleteAppProvider: 0
[09:49:04.636]     appId: nsight
[09:49:04.636]     appGroup: (null)
[09:49:04.636]     appExecPath: /usr/local/cuda-11.4/bin/nsight
[09:49:04.636]     appWorkingDir: (null)
[09:49:04.636]     appDesc: Nsight Eclipse Edition (Ubuntu)
[09:49:04.636]     appIcon: 0x55cac343b3d0
[09:49:04.636]     appProvider: (null)
[09:49:04.637] compositor: executing 'dummy-entry' failed: No such file or directory
[09:49:04.637] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.637]     inSync: 1
[09:49:04.637]     syncStart: 0
[09:49:04.637]     syncEnd: 0
[09:49:04.637]     newAppId: 1
[09:49:04.637]     deleteAppId: 0
[09:49:04.637]     deleteAppProvider: 0
[09:49:04.637]     appId: nsight-sys-2021.2.4
[09:49:04.637]     appGroup: (null)
[09:49:04.637]     appExecPath: /opt/nvidia/nsight-systems/2021.2.4/host-linux-x64/nsys-ui
[09:49:04.637]     appWorkingDir: (null)
[09:49:04.637]     appDesc: NVIDIA Nsight Systems 2021.2.4 (Ubuntu)
[09:49:04.637]     appIcon: 0x55cac343b3d0
[09:49:04.637]     appProvider: (null)
[09:49:04.635] Client: ClientSysparam: toggleKeys:62
[09:49:04.637] Client: ClientSysparam: stickyKeys:506
[09:49:04.637] Client: ClientSysparam: caretWidth:1
[09:49:04.637] Client: ClientSysparam: highContrast
[09:49:04.637] Client: ClientSysparam: taskbarPos:(left:0, top:2040, right:3840, bottom:2160)
[09:49:04.637] Client: ClientSysparam: mouseButtonSwap:0
[09:49:04.637] Client: ClientSysparam: keyboardPref:0
[09:49:04.637] Client: ClientSysparam: dragFullWindows:1
[09:49:04.637] Client: ClientSysparam: keyboardCues:0
[09:49:04.637] Client: ClientSysparam: workArea:(left:0, top:0, right:3840, bottom:2040)
[09:49:04.637] Translated workarea:(0,0)-(1920,1020) at rdp-0:(0,0)-(1920,1080)
[09:49:04.638] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.639]     inSync: 1
[09:49:04.639]     syncStart: 0
[09:49:04.639]     syncEnd: 0
[09:49:04.639]     newAppId: 1
[09:49:04.639]     deleteAppId: 0
[09:49:04.639]     deleteAppProvider: 0
[09:49:04.639]     appId: firefox
[09:49:04.639]     appGroup: (null)
[09:49:04.639]     appExecPath: firefox
[09:49:04.639]     appWorkingDir: (null)
[09:49:04.639]     appDesc: Firefox Web Browser (Ubuntu)
[09:49:04.639]     appIcon: 0x7fd224019180
[09:49:04.639]     appProvider: (null)
[09:49:04.639] rdp_rail_notify_app_list(): rdp_peer 0x55cac343fbd0
[09:49:04.639]     inSync: 1
[09:49:04.639]     syncStart: 0
[09:49:04.639]     syncEnd: 1
[09:49:04.639]     newAppId: 1
[09:49:04.639]     deleteAppId: 0
[09:49:04.639]     deleteAppProvider: 0
[09:49:04.639]     appId: minecraft-launcher
[09:49:04.639]     appGroup: (null)
[09:49:04.639]     appExecPath: minecraft-launcher
[09:49:04.639]     appWorkingDir: (null)
[09:49:04.639]     appDesc: Minecraft Launcher (Ubuntu)
[09:49:04.639]     appIcon: 0x55cac343b3d0
[09:49:04.639]     appProvider: (null)
[09:49:04.854] Client ExecOrder program terminated
[09:49:04.854] dummy-entry exited with status 255
[09:49:04.854] rdp_audio_server_activated: 1 audio formats supported.
[09:49:04.854]  [0] - Format(WAVE_FORMAT_PCM) - Bits(16), Channels(2), Frequency(44100)
[09:49:04.854] RDPAudio - Agreed on format 0.
[09:49:04.854] rdp_audio_server_activated: bytesPerFrame:4, latency:5
[09:49:04.854] Pulse Audio Sink listener socket on /mnt/wslg/PulseAudioRDPSink
[09:49:04.855] Audio sink thread: Listening for audio connection.
[09:49:08.306] Audio sink thread: connection successful on socket (78).
[09:49:08.307] RDP Sink version (1 - 1)
[09:54:04.612] rdp_rail_idle_handler is called on peerCtx:0x55cac343fbd0
  • versions.txt
WSLg ( x86_64 ): 1.0.24+Branch.main.Sha.b42023b5fed7567955f4c6c36123a5cf22e9292a
Mariner: VERSION="1.0.20210224"
FreeRDP: b05321cd4e6a862aef76163a69db4e1910245736
weston: ed4f3bbbf5efbd5bde880704bc03497f2446c3f2
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:

Expected behavior

When I move the mouse to look, I should be able to look up/down instead of just left/right. Also, the game should hide/capture the mouse cursor. Instead, I can see the cursor, which shouldn't happen.

Actual behavior

I can use the mouse to rotate/spin my character, but I can't look up/down. Also, the mouse cursor is visable.

@zongmi
Copy link

zongmi commented Nov 15, 2021

Want to continue using Microsoft input method in WSLG

@Aerocatia
Copy link

WSLg does not seem to support grabbing the mouse in general, the same thing happens with chocolate-doom.
(https://github.com/chocolate-doom/chocolate-doom)

@SirCupOfReese
Copy link

WSLg does not seem to support grabbing the mouse in general, the same thing happens with chocolate-doom. (https://github.com/chocolate-doom/chocolate-doom)

Sorry to resurrect this thread, but was there ever a resolution on this? I'm actually working with chocolate-doom as of a few days ago, and decided to build it through WSL2, but every time I go to test my mouse goes nuts. Sensitivity is off the charts and no matter which direction I move the mouse, I always look right. The same code built as a Windows binary runs fine.

@kiedtl
Copy link

kiedtl commented Feb 21, 2023

The exact same thing happens with Minetest.

@Reavershark
Copy link

The exact same thing is happening with a custom glfw application. (ubuntu 22.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants