1

On every reboot my Linux Mint deletes /etc/init.d/xorg.conf so it doesn't boot the graphical interface, so I have to go to CTRL + ALT + F2 every time and copy a backup I have in my home directory using sudo cp then run /etc/init.d/mdm start.

It basically doesn't find the file. Another solution is running sudo nvidia-xconfig every time (but it deletes my presets) or reinstalling the NVIDIA driver.

Why is my distro deleting the file on every reboot? Any clue?

OS: Linux Mint 18 Cinnamon; CPU: AMD FX-4300; GPU: NVIDIA GTX 960; RAM: 16 GB

I'm running NVIDIA 367.44 proprietary drivers.

1
  • For me the "Xorg -configure" command failed with a segmentation violation. However, it seems it generated (locally in my directory) a "xorg.conf.new" file. When I copied that to "xorg.conf", things seemed to start working for me. Commented Oct 18, 2017 at 3:56

1 Answer 1

2

Reconfigure X:

Xorg -configure 

it will generate a new file xorg.conf.new , copy it to /etc/X11/xorg.conf:

cp xorg.conf.new /etc/X11/xorg.conf 

You can create and set up /etc/X11/xorg.conf.d/20-nvidia.conf manually without using nvidia-xconfig ; e,g:

#/etc/X11/xorg.conf.d/20-nvidia.conf Section "Device" Identifier "My GPU" Driver "nvidia" EndSection 

Or use the following command to create it:

mkdir /etc/X11/xorg.conf.d echo -e 'Section "Device"\n\tIdentifier "My GPU"\n\tDriver "nvidia"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf 
1
  • Oh, I'm "a bit" late... I decided to try out Arch Linux in the end, it works great and never had any issues. Can't tell if your solution works, but it probably would, thanks anyway. Commented Dec 6, 2017 at 14:44

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.