netbrain / zwift

Easily zwift on linux
The Unlicense
265 stars 28 forks source link

zwift does not start if an additional monitor is plugged in #40

Closed joergbuchwald closed 11 months ago

joergbuchwald commented 12 months ago

Hi! I have the problem that if an additional monitor is plugged in (HDMI) and not necessarily active, the zwift docker app does not start. However, if the monitor is plugged in after zwift has started it works, and I can use it with zwift with that monitor as well.

-- Linux arch 6.5.9-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000 x86_64 GNU/Linux 01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2)

quietvoid commented 12 months ago

Maybe NVIDIA issue? I run 2 monitors + an inactive TV and Zwift ran fine.

netbrain commented 12 months ago

Not necessarily a zwift issue per-se.

Out of curiosty, are you running Wayland or Xorg? And how have configured your monitors in any way? like in Xorg config?

joergbuchwald commented 12 months ago

I had this issue with no other application before; therefore I thought it might be related. I'm using Xorg and only monitor is configured in xorg.conf (I usually configure the monitors manually using arandr).

joergbuchwald commented 11 months ago

Since the last zwift update, it does not start at all, independent of any additional monitors. Is there any way to get an error message?

netbrain commented 11 months ago

docker logs maybe?

Or mount the named volume an see if you can find a log file.

Could probably also be an idea to start the container with a new empty volume and see if that changes anything.

joergbuchwald commented 11 months ago

It says: '0068:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead' From what I found so far about the error, I don't get brighter.

netbrain commented 11 months ago

Maybe Zwift is trying to start in Fullscreen mode? With an unsupported resolution?

https://wiki.winehq.org/FAQ#Broken_NVIDIA_RandR_detected.2C_falling_back_to_RandR_1.0

joergbuchwald commented 11 months ago

I finally found a workaround. I switched to the nouveau driver. With docker, I got a libGL permission denied issue for /dev/dri/card0. However, with podman, everything works fine now. As the original issue seems to be more nvidia driver /nvidia-container related, I'll close the issue.