gpu-manager overwrites xorg.conf

13,555

Solution 1

OK, as per this blogpost, adding nogpumanager to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub solves the issue. Thus, the line in /etc/default/grub should look like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nogpumanager"

After you edit the file, don't forget to run:

sudo update-grub

Solution 2

Look here for all possible solution https://vxlabs.com/2015/02/05/solving-the-ubuntu-14-04-nvidia-346-nvidia-prime-black-screen-issue/#comments

one good solution is

 By doing sudo chattr +i /etc/X11/xorg.conf you can prevent any process from changing the file. 

But then I am not sure aticonfig --initial will work

Share:
13,555
adrianp
Author by

adrianp

Updated on September 18, 2022

Comments

  • adrianp
    adrianp over 1 year

    I have recently installed the NVIDIA drivers on my Xubuntu 15.10 machine but I had to remove them due to improper multi-monitor setup. Everything went fine, except for the fact that gpu-manager seems to overwrite my xorg.conf file with a wrong version containing NVIDIA stuff.

    I know that there is a reported bug related to this, and I tried applying the hotfix suggested there but to no avail; namely, I changed /etc/init/gpu-manager.conf to:

    #start on (starting lightdm
    #      or starting gdm
    #      or starting kdm
    #      or starting xdm
    #      or starting lxdm)
    task
    exec gpu-manager --log /var/log/gpu-manager.log
    

    My xorg.config file keeps being overwritten with the NVIDIA stuff.

    Any other suggestions? I am also a bit concerned that some people suggested that the hotfix above might freeze the syystem (whatever that means).

  • liang
    liang about 6 years
    Tried this, but xorg.conf still gets override