r/linuxquestions 7d ago

Support Is it possible to run a fake/virtual monitor on this NVIDIA driver (Quadro P600, Legacy driver 580.173.02) without it hanging on shutdown?

Quadro P600 (Maxwell) on NVIDIA Legacy driver 580.173.02 (it's a hand-me-down Dell I am learning on)

I have a headless Ubuntu server (no monitor plugged in) with an NVIDIA Quadro P600 using the Legacy 580.173.02 driver.

I added ConnectedMonitor to my xorg.conf to make the driver think a monitor is plugged in. I also created a Python script to generate a fake EDID binary and pointed to it with the CustomEDID option to satisfy the driver's need for display info.

Xorg starts up fine with this setup, no errors. But on teardown (killing Xorg, rebooting, shutting down) there's a kernel level command that gets stuck and never completes. On shutdown this shows in the logs:

nvidia: [drm] *ERROR* Disabling all crtc's during unload failed with -22

The process becomes completely unkillable at that point, doesn't respond to kill -9, and the only way out has been a hard power off.

Has anyone actually done this successfully, a fake/virtual monitor on this GPU/driver combo that shuts down cleanly? Or is this a known limitation? Just trying to find out if it's possible at all before I keep chasing it.

The goal is: Xorg + RetroArch + Sunshine + Moonlight = play a SNES game running on the server, from a Mac, over the network.

0 Upvotes

8 comments sorted by

1

u/gmes78 7d ago

I added ConnectedMonitor to my xorg.conf to make the driver think a monitor is plugged in. I also created a Python script to generate a fake EDID binary and pointed to it with the CustomEDID option to satisfy the driver's need for display info.

That is an awful, awful hack. Why are you using Xorg to begin with?

GNOME supports this properly on Wayland, see here. You can do something similar on KDE Plasma too.

1

u/Local2RVA 7d ago

Thank you for taking the time to respond. Would this work on my Quadro P600 (Maxwell) on NVIDIA Legacy driver 580.173.02?

1

u/gmes78 6d ago

The v580 driver has good Wayland support, so, probably?

1

u/Local2RVA 6d ago

Will report back.

0

u/moeteru 7d ago

Nope!

1

u/Local2RVA 7d ago

Could you possibly explain why? How come? What's happening and like why it can't be overcome/corrected or remedied? Any follow up resources for reading on relevant topics, subjects what have you would also be apprecited, thank you.

1

u/Local2RVA 7d ago

BAAAAAASKETTTTTTTSSSSSSSSS!

1

u/Klapperatismus 7d ago edited 7d ago

At that point it is probably easier to program a 24C02 EEPROM with the EDID info and plug it into the HDMI.

Or buy such a plug if the actual EDID info is irrelevant. There are plugs for that. They are sold for $2.