Black screen In VM w/nvidia

I’m trying out the new Nvidia-Deck build and I’m wondering if it’s my (admittedly non standard) setup or if there might be something else going wrong. I’m running the image in a VM with my RTX-4090 passed through. I’m able to run and install the image, but when I boot up it goes straight to a black screen. I’m able to drop into a TTY though and log in via the console. Windows and other Linux distros boot fine this way, so I’m thinking it might be an incompatibility with gamescope, but I’m also seeing a few other people reporting black screens with nvidia so maybe it’s something else. I’ll try the non-deck image a bit later and see if that works. This is for an HTPC like setup though, so I’d love it if the deck image worked.
21 Replies
wolfyreload
wolfyreload2w ago
Try go into desktop and let steam setup fully complete. then try go back into deck mode Oh to get to desktop, assuming that you are running KDE. type startplasma-wayland when you in TTY mode
LostGod
LostGodOP2w ago
Awesome, thanks. I’ll try that.
wolfyreload
wolfyreload2w ago
Also this is often disabled in steam if you run an Nvidia GPU, Game Mode lags badly if that's off
No description
LostGod
LostGodOP2w ago
Hmm wonder why steam disables that.
wolfyreload
wolfyreload2w ago
You sometimes get some graphic glitches in the menus when it's on. e.g. The side menu looking like that. But it's better than having a laggy steam ui
No description
LostGod
LostGodOP2w ago
Ahh. Interesting. Hopefully nvidia will get their shit together and update their driver on Linux now that the steam deck is gaining traction.
HikariKnight
HikariKnight2w ago
because for checks watch years now, it has caused issues on nvidia so steam went like "ok since you cant be bothered to fix this we will default it to off if the user has nvidia hardware"
LostGod
LostGodOP2w ago
So I tried starting up the desktop mode the way you said, but it wouldn’t let me launch steam that way. I think because it was already running. Also, one of the times I booted it up, I heard the steam start up noise and if i pressed left or right I heard the UI navigation noises. So, I’m almost certain gamescope just doesn’t like something about my setup.
HikariKnight
HikariKnight2w ago
common mistake a lot of people do is leave the virtual gpu enabled and gamescope might try to use that if it is the first one it sees, if this is proxmox set the video to none and instead change it when you remove the passthrough gpu also gamescope/gamemode session supports only 1 monitor. if you have ssh access to the vm you can switch to desktop with the command steamos-session-select desktop
LostGod
LostGodOP2w ago
Ahh, I'll try that thanks. I'm pretty sure I disabled the virtual monitor, but I'll double check. still the same issue with the black screen, but I was able to switch to desktop mode and sign into steam. I ran system update and rebooted, same problem. I haven't been able to even get the sound like before though.
HikariKnight
HikariKnight2w ago
Try to into desktop and run ujust fix-reset-steam
matt_schwartz
matt_schwartz2w ago
Does Gamescope-session even run properly in a VM? I’m not sure I’ve ever seen it even on AMD :thonk: I guess it does based off this it just doesn’t tell you how https://blogs.igalia.com/berto/2022/07/05/running-the-steam-decks-os-in-a-virtual-machine-using-qemu/
HikariKnight
HikariKnight2w ago
only with a passthrough gpu its literally how i test it, but i use sunshine so i might be working around the issue
LostGod
LostGodOP2w ago
Yeah, with what I understand, it should be working fine inside a VM. My GPU is passed through, desktop mode works and so do other operating systems. I’m now wondering if it’s my display. I have an AVR and a Projector. Possible that one of those is the issue. I’ll try with a different display later. Wondering if gamescope doesn’t like the projector or AVR. So, I basically confirmed that gamescope doesn’t like my projector. Plugged it into an older 1080p projector and it worked immediately. Does gamescope have issues with 4K? Or maybe something else? I have a benq TK710 in case anyone is wondering.
matt_schwartz
matt_schwartz2w ago
not inherently at least, I use it at 7680x2160p and 3840x2160p
LostGod
LostGodOP2w ago
Ok… I’ll need to do some digging for sure, maybe if I set the screen size in the settings. I was looking at the gamescope-session docs. This looks like what I’m looking for. Something is going wrong with the DRM of my projector and gamescope. ession-plus [17417]: [gamescope] [Info] drm: Connector HDMI-A-1 → DON - DENON-AVR ession-plus [17417]: [gamescope] [Info] drm: [colorimetry]: EDID with colorimetry detected. Using it ession-plus [17417]: [gamescope] [Info] drm: [colorimetry]: r 0.637695 0.353516 ession-plus [17417]: [gamescope] [Info] drm: [colorimetry]: g 0.304688 0.615234 ession-plus [17417]: [gamescope] [Info] drm: [colorimetry]: b 0.151367 0.028320 ession-plus [17417]: [gamescope] [Info] drm: [colorimetry]: w 0.299805 0.419922 ession-plus [17417]: [gamescope] [Info] drm: selecting connector HDMI-A-1 ession-plus [17417]: [gamescope] [Info] drm: selecting mode 3840x2160@60Hz ession-plus [17417]: [gamescope] [Info] edid: Wrote new edid to: /home/matt/.config/gamescope/edid.bin ession-plus [17417]: [gamescope] [Error] xwn: Failed to prepare 1-layer flip (Invalid argument), trying again with previous mode if modeset needed ession-plus [17417]: [gamescope] [Error] xwn: Failed to prepare 1-layer flip entirely: Invalid argument I: ATTENTION: default value of option vk_khr_present_wait overridden by environment.
matt_schwartz
matt_schwartz2w ago
I’ve quite literally never seen that error before :huhh:
LostGod
LostGodOP7d ago
lol… I thought as much. Seems super specific to my projector Any way to figure out what the invalid arg is? I might have to dig into gamescope code 😭 So I think the solution to this might actually be pretty simple, do you know how I can disable HDR in gamescope?
HikariKnight
HikariKnight7d ago
you turn off the toggle in display settings i believe
matt_schwartz
matt_schwartz7d ago
gamescopectl hdr_enabled 0 from TTY also works while Gamescope session is open
LostGod
LostGodOP7d ago
Yeah, managed to do that from the environment.d file, but I was wrong. Gamescope still doesn’t like my display. It’s some kind of issue with the drm backend.

Did you find this page helpful?