HGL
other-emerald

[SOLVED] Launching game on wrong monitor

Hello, I have an issue when I try to launch Kingdom Come Deliverance by Heroic Launcher : Everytime it launch on my secondary monitor which blocking my in-game resolution to 1940x1080 instead 3440x1440. But when disable my secondary screen, everything works. Someone can help me to fix it ? (I hope my english is okay) Don't know if it's relevant but there is my conf : PopOS NVIDIA RTX2080 Intel i7 11700k
No description
83 Replies
other-emerald
other-emeraldOP2y ago
So : someone suggested to use gamescope in heroic game launcher, but... It just doesn't work I tried with "new wrapper" as : gamescope com.valvesoftware.Steam.Utility.gamescope org.freedesktop.Platform.VulkanLayer.gamescope with many arguments : -f -w 1920 -h 1080 -W 3440 -H 1440 -b gamescope -w 1920 -h 1080 -W 3440 -H 1440 -b org.freedesktop.Platform.VulkanLayer.gamescope -w 1920 -h 1080 -W 3440 -H 1440 -b etc, etc
xenophobic-harlequin
xenophobic-harlequin2y ago
Did you restart Heroic after installing gamescope?
other-emerald
other-emeraldOP2y ago
Yes, many times...
xenophobic-harlequin
xenophobic-harlequin2y ago
Hmm, did you install gamescope at both the system and user level or just one level (I forget which one is needed, I just installed it on both for flatpak)
other-emerald
other-emeraldOP2y ago
Don't really know how to see that ^
xenophobic-harlequin
xenophobic-harlequin2y ago
When you do flatpak install, they should ask system or user install
other-emerald
other-emeraldOP2y ago
Hi ! So I tried and is indead installed on flatpak
genetic-orange
genetic-orange2y ago
Did you put the -- at the end of the Gamescope arguments?
other-emerald
other-emeraldOP2y ago
no, why I should ?
genetic-orange
genetic-orange2y ago
Yes, it's required by Gamescope.
other-emerald
other-emeraldOP2y ago
Now I just don't have anything displayed ^ I have music and stuff, but no image
genetic-orange
genetic-orange2y ago
What are your gamescope arguments?
other-emerald
other-emeraldOP2y ago
No description
other-emerald
other-emeraldOP2y ago
Same thing with -f
genetic-orange
genetic-orange2y ago
Try setting a nested with and height? (-w and -h to whatever geometry you want)
other-emerald
other-emeraldOP2y ago
Yes I already did : -w 1920 -h 1080 -W 3440 -H 1440 -b --
genetic-orange
genetic-orange2y ago
Have you tried without an output width and height?
other-emerald
other-emeraldOP2y ago
Without an output ?
genetic-orange
genetic-orange2y ago
Without -W and -H.
other-emerald
other-emeraldOP2y ago
Oh, yes, I did But the same issue : no display, only sounds
genetic-orange
genetic-orange2y ago
Strange. Is it the correct monitor, at least? 😛
other-emerald
other-emeraldOP2y ago
Yes x'D
genetic-orange
genetic-orange2y ago
That's good, at least.
other-emerald
other-emeraldOP2y ago
If I have nothing happens except sound, I can't tell if it's the good monitor ^^
other-emerald
other-emeraldOP2y ago
No description
genetic-orange
genetic-orange2y ago
Why, do they both go black?
other-emerald
other-emeraldOP2y ago
And the cinematic running, but I have no window Nope, they are just doing nothing
other-emerald
other-emeraldOP2y ago
No description
other-emerald
other-emeraldOP2y ago
And it is the same when it's launched But if i don't put gamescope, it works, but on the wrong screen
other-emerald
other-emeraldOP2y ago
I put the log, maybe it can help :
ambitious-aqua
ambitious-aqua2y ago

It runs on Mesa + AMD or Intel, and could be made to run on other Mesa/DRM drivers with minimal work. AMD requires Mesa 20.3+, Intel requires Mesa 21.2+. For NVIDIA's proprietary driver, version 515.43.04+ is required (make sure the nvidia-drm.modeset=1 kernel parameter is set).
From gamescope readme Post this output inxi -SMGxx
xenophobic-harlequin
xenophobic-harlequin2y ago
You made sure it is installed under a system flatpak and a user flatpak?
other-emerald
other-emeraldOP2y ago
How can I check it ?
other-emerald
other-emeraldOP2y ago
Like that ?
No description
ambitious-aqua
ambitious-aqua2y ago
No In terminal You put that, hit enter and give output
other-emerald
other-emeraldOP2y ago
command not found, I do an apt install inxi ?
ambitious-aqua
ambitious-aqua2y ago
Yes
other-emerald
other-emeraldOP2y ago
pholoween@pop-os:~$ inxi -SMGxx System: Host: pop-os Kernel: 6.2.6-76060206-generic x86_64 bits: 64 compiler: N/A Desktop: GNOME 42.5 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3 Distro: Pop!_OS 22.04 LTS base: Ubuntu 22.04 LTS Jammy Machine: Type: Desktop System: Gigabyte product: Z490 AORUS PRO AX v: -CF serial: <superuser required> Mobo: Gigabyte model: Z490 AORUS PRO AX v: x.x serial: <superuser required> UEFI: American Megatrends v: F20 date: 04/19/2021 Graphics: Device-1: NVIDIA TU104 [GeForce RTX 2080 Rev. A] vendor: Gigabyte driver: nvidia v: 535.86.05 pcie: speed: 8 GT/s lanes: 16 ports: active: none off: DP-1,HDMI-A-1 empty: DP-2,DP-3,Unknown-1 bus-ID: 01:00.0 chip-ID: 10de:1e87 Display: x11 server: X.Org v: 1.21.1.4 compositor: gnome-shell driver: X: loaded: nvidia gpu: nvidia display-ID: :1 screens: 1 Screen-1: 0 s-res: 5360x1440 s-dpi: 109 Monitor-1: DP-0 pos: primary,top-right res: 3440x1440 dpi: 109 diag: 865mm (34.1") Monitor-2: HDMI-0 pos: bottom-l res: 1920x1080 dpi: 94 diag: 598mm (23.5") OpenGL: renderer: NVIDIA GeForce RTX 2080/PCIe/SSE2 v: 4.6.0 NVIDIA 535.86.05 direct render: Yes " Screen-1: 0 s-res: 5360x1440 s-dpi: 109" it's weird, I don't have this resolution
xenophobic-harlequin
xenophobic-harlequin2y ago
I remember when I was trying to get bottles to detect gamescope, I installed both user and system and it was identified
No description
other-emerald
other-emeraldOP2y ago
It's only installed as user
xenophobic-harlequin
xenophobic-harlequin2y ago
I don't remember which one I installed that fixed but if I had to guess, user is default installation So I'd assume system is the one, but I'd keep both anyway
other-emerald
other-emeraldOP2y ago
How can I install it as system ? I try with my root session, but it doesn't work
ambitious-aqua
ambitious-aqua2y ago
Res doesn't matter what matters is you are missing modesetting. But more importantly before dealing with gamescope and kernel parameters you should probably try wayland.
other-emerald
other-emeraldOP2y ago
I think i'm already on wayland It's by default on popos
ambitious-aqua
ambitious-aqua2y ago
Log out from your current user session; in log in screen you should be able to select wayland. Nope, it says X11 in your output.
other-emerald
other-emeraldOP2y ago
Oh, ok I try it I don't have choice :/
ambitious-aqua
ambitious-aqua2y ago
other-emerald
other-emeraldOP2y ago
"Got to /etc/gdm3/custom.conf and set WaylandEnable=true then run sudo systemctl restart gdm3 in terminal." Yep', I followed the same guide ^^
ambitious-aqua
ambitious-aqua2y ago
So does it show up now?
other-emerald
other-emeraldOP2y ago
No, I only have basic options and my session to log in PC Doesn't show up after the reboot
ambitious-aqua
ambitious-aqua2y ago
Arch wiki says you must have nvidia-drm.modeset=1 for that to show up in gdm
other-emerald
other-emeraldOP2y ago
maybe it will be the same for a ubuntu based ?
ambitious-aqua
ambitious-aqua2y ago
Yep
other-emerald
other-emeraldOP2y ago
Which file I have to modify for this one ?
ambitious-aqua
ambitious-aqua2y ago
System76 Support
Kernelstub Usage
Add or change kernel and boot parameters using kernelstub
ambitious-aqua
ambitious-aqua2y ago
sudo kernelstub -a "nvidia_drm.modeset=1" Pc restart is required btw inb4 my pc blew up 🐸
other-emerald
other-emeraldOP2y ago
I had a little wheel and I choosed "POP on Wayland" dafuq ? xD
xenophobic-harlequin
xenophobic-harlequin2y ago
hmmm, one user said gamescope worked fine in x11, forget which one
other-emerald
other-emeraldOP2y ago
Wayland worked !
other-emerald
other-emeraldOP2y ago
No description
ambitious-aqua
ambitious-aqua2y ago
👍
other-emerald
other-emeraldOP2y ago
Thanks a lot ! for your patience and your help ! 🙂
xenophobic-harlequin
xenophobic-harlequin2y ago
Wayland is nice, although you do miss some things, like if you use global keybinds (the PR was merged a while back, still awaiting applications to implement it), keep in mind they won't work, and I use wayland and would've said to switch to it but someone said gamescope does work on x11 and the error said gamescope binary was not found from the last log I saw I am glad you got it figured out and hope wayland works fine for your workflow
other-emerald
other-emeraldOP2y ago
I hope too ^^ I don't really use global keybinds (except on my mouse)
xenophobic-harlequin
xenophobic-harlequin2y ago
and until applications implement global keybinds, if they do provide cli commands to do it, most DEs do allow custom shortcuts
other-emerald
other-emeraldOP2y ago
--- Issue : Heroic Game Launcher started the game Kingdom Come Deliverance on wrong monitor and I couldn't just move it because it locked the resolution on 1940x1080 max My display was on X11 and I switched it on Wayland (you can find how to do on PopOS just above) ---
ambitious-aqua
ambitious-aqua2y ago
Yw 👍 As a note X never ever handled multimonitor gracefully
other-emerald
other-emeraldOP2y ago
Didn't know that ^^
xenophobic-harlequin
xenophobic-harlequin2y ago
Yeah, doesn't it just see 2 monitors as one big screen
other-emerald
other-emeraldOP2y ago
Oooh ok 😄
xenophobic-harlequin
xenophobic-harlequin2y ago
I'm not stating that, I am asking as I know in something like xrandr (I think it was), It'd say screen 0 and be like 3000x??? (I only have 1680x1050 and 1920x1080, so that's how I came to my question/assumption)
other-emerald
other-emeraldOP2y ago
I think it's that, because I have 2 screens : main on 3440x1440 and second on 1920x1080, and it detected 5000+
ambitious-aqua
ambitious-aqua2y ago
Yep, that is also why it can't handle mixed refresh rates
other-emerald
other-emeraldOP2y ago
True that I have a 60hz + a 144hz
xenophobic-harlequin
xenophobic-harlequin2y ago
Ah, wonder why it did that approach? oh, so you were stuck to 60hz on both on x11?
other-emerald
other-emeraldOP2y ago
Not really, i just messed up some things
xenophobic-harlequin
xenophobic-harlequin2y ago
oh
other-emerald
other-emeraldOP2y ago
Only thing left for this game is to find a fix to a gliched DLC, but at least, I can finally play it 😄
xenophobic-harlequin
xenophobic-harlequin2y ago
Ye!
other-emerald
other-emeraldOP2y ago
Damn, wayland helps for my issue, but in all games, my mouse is invisible xD
xenophobic-harlequin
xenophobic-harlequin2y ago
Hmmm, I know games hide it but typically not in the menu
other-emerald
other-emeraldOP2y ago
Yep', but it's a little annoying in games like LoL where you don't know where you click
xenophobic-harlequin
xenophobic-harlequin2y ago
Hmm, wonder if it is linux client bug or smth

Did you find this page helpful?