I have spent a not insignificant amount of time trying to get the cursor to stay in the game window on my dual monitor setup, to no luck. As soon as there is a cursor in the game, it will escape to the second screen. As long as the mouse acts as the joystick (circle on screen) everything works fine but when I get a proper mouse cursor it can escape.
System info:
Arch 6.13.17-arch1-1
Plasma 6
KWin
Xorg
Nvidia driver version 570.124.04 (I have been trying to get this to work since December and none of the driver versions since December made any difference here)
I have tried all the launch options out there that don’t require gamescope since game scope refuses to work for me. I have tried to set my xorg.conf to use separate screens with absolute and relative positions. I honestly don’t recall all the small things I did to get this to work in some way but I have pretty much exhausted every resource I know.
I was especially disheartened when I read that this issue is apparently fixed, since it clearly isn’t.
So, anybody willing to help me out here would be really appreciated. I am at my wits end. If you need any logs or other info feel free to ask.
Current launch options:
gamemoderun mangohud PROTON_ENABLE_FSYNC=1 PROTON_ENABLE_ESYNC=1 PROTON_FULLSCREEN_CURSOR_GRAB=1 %command%
Current xorg.conf(I am aware that it is messy and repeating stuff but it works - YES I AM SURE IT WORKS!):
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 570.124.04
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "de"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Microstep Optix MAG27CQ"
HorizSync 222.0 - 222.0
VertRefresh 144.0
EndSection
Section "Monitor"
Identifier "Monitor1"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2070"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce RTX 2070"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
Device "nvidia"
Monitor "Monitor0"
EndSection
Section "Screen"
# Removed Option "metamodes" "DP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DP-0"
Option "metamodes" "DP-0: 2560x1440_144 +0+0, DP-4: 1920x1200_60 +2560+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "DP-4: nvidia-auto-select +0+0"
Option "AllowEmptyInitialConfiguration" "True"
Option "Stereo" "0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
gamescope log output when trying to do anything:
gamescope -W 2560 -H 1440 -r 144 -e -- vkcube
[gamescope] [Info] console: gamescope version 3.16.2 (gcc 14.2.1)
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts'
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope'
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/common'
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/inspect.lua' (id: 0)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/modegen.lua' (id: 1)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/common/util.lua' (id: 2)
[gamescope] [Info] scriptmgr: Loading scripts from: '/usr/share/gamescope/scripts/00-gamescope/displays'
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/asus.rogally.lcd.lua' (id: 3)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/deckhd.steamdeck.deckhd-lcd.lua' (id: 4)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.lcd.lua' (id: 5)
[gamescope] [Info] scriptmgr: Running script file '/usr/share/gamescope/scripts/00-gamescope/displays/valve.steamdeck.oled.lua' (id: 6)
[gamescope] [Info] scriptmgr: Loading scripts from: '/etc/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/etc/gamescope/scripts' does not exist
[gamescope] [Info] scriptmgr: Loading scripts from: '/home/Gunnar/.config/gamescope/scripts'
[gamescope] [Warn] scriptmgr: Directory '/home/Gunnar/.config/gamescope/scripts' does not exist
[gamescope] [Info] vulkan: selecting physical device 'NVIDIA GeForce RTX 2070': queue family 2 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Info] wlserver: [backend/headless/backend.c:67] Creating headless backend
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344241 (VkResult: 0)
[gamescope] [Error] vulkan: vkGetPhysicalDeviceFormatProperties2 returned zero modifiers for DRM format 0x38344258 (VkResult: 0)
[gamescope] [Info] vulkan: supported DRM formats for sampling usage:
[gamescope] [Info] vulkan: Creating Gamescope nested swapchain with format 44 and colorspace 0
gamescope: types/wlr_linux_dmabuf_v1.c:532: feedback_compile: Assertion `table_len > 0' failed.
[1] 9921 IOT instruction (core dumped) gamescope -W 2560 -H 1440 -r 144 -e -- vkcube