nvidia-xrun icon indicating copy to clipboard operation
nvidia-xrun copied to clipboard

Unable to run gnome-session

Open PhibreOptix opened this issue 6 years ago • 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).

PhibreOptix avatar May 26 '19 10:05 PhibreOptix

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).

michelesr avatar May 26 '19 11:05 michelesr

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 avatar May 30 '19 06:05 PhibreOptix

@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.

michelesr avatar May 30 '19 10:05 michelesr

I can second this issue...

chabad360 avatar Jul 16 '19 03:07 chabad360

It's good practice to blacklist the nvidia module so it doesn't get loaded at boot: if you do so, the kernel command line parameter becomes useless I think.

On 5 August 2019 03:40:54 BST, Pranav Sharma [email protected] wrote:

I am able to run gnome-session without issue on Fedora 30, but I make sure to logout of the intel gnome session before running nvidia-xrun

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/Witko/nvidia-xrun/issues/118#issuecomment-518065393

michelesr avatar Aug 05 '19 06:08 michelesr