Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching fails on xubuntu 18.04 #10

Open
gy-lehel opened this issue May 16, 2019 · 1 comment
Open

Switching fails on xubuntu 18.04 #10

gy-lehel opened this issue May 16, 2019 · 1 comment

Comments

@gy-lehel
Copy link

Hi

It is not possible to select the nvidia profile with the current code, as it generates a configuration, that will result in cyclic Xorg crash, when using lightdm, and subsequent gui freeze, that can be exited only by requesting a power-off with the shutdown button, and selecting intel profile in a recovery session.
The issue here is, that module paths are not set up correctly, and devices are also not detected and set up correctly for offloading.

Solution to this, and support for offloading can be achieved by creating an 10-prime.conf file in /etc/X11/xorg.conf.d with the following content:

Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "<PCI-ID-OF_NVIDIA_CARD>"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
Option "TearFree" "true"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection

Regards
Lehel

@gy-lehel
Copy link
Author

This configuration file has to be removed, when selecting the intel profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant