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
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 modeAwesome, thanks. I’ll try that.
Also this is often disabled in steam if you run an Nvidia GPU, Game Mode lags badly if that's off
Hmm wonder why steam disables that.
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
Ahh. Interesting. Hopefully nvidia will get their shit together and update their driver on Linux now that the steam deck is gaining traction.
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"
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.
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
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.
Try to into desktop and run
ujust fix-reset-steam
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/
only with a passthrough gpu
its literally how i test it, but i use sunshine so i might be working around the issue
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.
not inherently at least, I use it at 7680x2160p and 3840x2160p
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.
I’ve quite literally never seen that error before :huhh:
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?
you turn off the toggle in display settings i believe
gamescopectl hdr_enabled 0
from TTY also works while Gamescope session is openYeah, 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.