Witko/nvidia-xrun

Unable to run gnome-session

PhibreOptix opened this issue · 5 comments

Using this on my rebaged clevo laptop at the moment with the PM systemd service, as if using bbswitch the laptop freezes upon Xorg starting when the card is powered down (and the acpi_osi workarounds don't fix the issue).

Works fine if using openbox on the other tty, if I try to nvidia-xrun gnome-session however it doesn't work.
Xorg starts, the screen flashes to a a slightly less dark black, then after awhile I am dropped back to the prompt with messages stating that Xorg server exited successfully.

If I logout of the existing (intel) session first and then switch to another tty and nvidia-xrun gnome-session, it works correctly.
No error messages that I can identify for gnome-session (I'm not well experienced in this area though).

Try replacing modeset=1 with modeset=0 in /etc/default/nvidia-xrun. Your problem might be due to the PRIME syncronization that strongly relies on the intel card and may not work if there's already a session GNOME (that needs HW acceleration).

Unfortunately didn't work, results in the same issue.
Logging out isn't the worst I suppose, use-case is really only for when I need to connect to external monitors (HDMI port is wired direct to discrete GPU) which isn't that often.

@PhibreOptix it could also be that if you're running GNOME in both cards together they might have some dbus session conflict. I had a similar problem when trying to run MATE in the Nvidia while GNOME was running in the Intel card.

I can second this issue...