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.

  • 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. – Steve Harris Oct 18 '17 at 3:56

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:


Section "Device"
    Identifier "My GPU"
    Driver "nvidia"

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
  • 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. – Melody Dec 6 '17 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.