Author

Topic: xorg.conf overwritten at boot (Read 130 times)

hero member
Activity: 630
Merit: 502
January 19, 2018, 08:08:42 PM
#5
Code:
$ sudo chmod 444 /etc/X11/xorg.conf
$ sudo chattr +i /etc/X11/xorg.conf

That fix didn't work for me, ended up killing my keyboard.

What did end up working however was disabling onboard graphics and running it as a headless node.

The issue was that it was being overwritten when the HDMI cable was plugged into the IGFX (intel graphics, motherboard) HDMI port. Ubuntu 16.04 would detect this and mark it as a "Intel Hybrid System" (could be seen in /var/log/gpu-manager.log). Then, it would check the configuration, come up short on the IGFX config and reset the xorg.conf.

To solve this, I went into the BIOS, disabled IGFX, set the default display out to PCIE1, plugged the HDMI cable into the graphics card on PCIE1, then regenerated xorg.conf with nvidia-xconfig -a --cool-bits=28 with no issues.
chmod makes the file read-only and chattr makes it immutable although I'm not sure why it disabled your keyboard. Unlike Windows where you can use your iGPU for display, in Linux the dGPU needs to be the primary display with an Xorg instance running on each card in order to control them using nvidia-settings (which is what nvidia-xconfig -a or --enable-all-gpus does).

Code:
...
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1635    G   /usr/lib/xorg/Xorg                              31MiB |
|    0      2140    G   compiz                                          13MiB |
|    0     24518    C   /opt/bminer/bminer                             814MiB |
|    1      1635    G   /usr/lib/xorg/Xorg                               7MiB |
|    1     24518    C   /opt/bminer/bminer                             665MiB |
|    2      1635    G   /usr/lib/xorg/Xorg                               7MiB |
|    2     24518    C   /opt/bminer/bminer                             665MiB |
|    3      1635    G   /usr/lib/xorg/Xorg                               7MiB |
|    3     24518    C   /opt/bminer/bminer                             665MiB |
|    4      1635    G   /usr/lib/xorg/Xorg                               7MiB |
|    4     24518    C   /opt/bminer/bminer                             665MiB |
|    5      1635    G   /usr/lib/xorg/Xorg                               7MiB |
|    5     24518    C   /opt/bminer/bminer                             665MiB |
+-----------------------------------------------------------------------------+
member
Activity: 223
Merit: 21
DCAB
January 17, 2018, 08:26:26 PM
#4
Code:
$ sudo chmod 444 /etc/X11/xorg.conf
$ sudo chattr +i /etc/X11/xorg.conf

That fix didn't work for me, ended up killing my keyboard.

What did end up working however was disabling onboard graphics and running it as a headless node.

The issue was that it was being overwritten when the HDMI cable was plugged into the IGFX (intel graphics, motherboard) HDMI port. Ubuntu 16.04 would detect this and mark it as a "Intel Hybrid System" (could be seen in /var/log/gpu-manager.log). Then, it would check the configuration, come up short on the IGFX config and reset the xorg.conf.

To solve this, I went into the BIOS, disabled IGFX, set the default display out to PCIE1, plugged the HDMI cable into the graphics card on PCIE1, then regenerated xorg.conf with nvidia-xconfig -a --cool-bits=28 with no issues.
hero member
Activity: 630
Merit: 502
January 17, 2018, 06:56:25 PM
#3
Code:
$ sudo chmod 444 /etc/X11/xorg.conf
$ sudo chattr +i /etc/X11/xorg.conf
member
Activity: 223
Merit: 21
DCAB
January 17, 2018, 06:51:21 PM
#2
bump
member
Activity: 223
Merit: 21
DCAB
January 16, 2018, 11:21:00 PM
#1
Hi all,

I am migrating one of my machines over to Ubuntu 16.04 LTS. I haven't had this issue with any of my previous machines I've run on Ubuntu, but every time I reboot it, the xorg.conf gets overwritten, removing my Coolbits and inhibiting me from overclocking the cards.

I really don't understand why on some systems running a simple command like

sudo nvidia-xconfig -a --cool-bits=28

works and on this system it doesn't.

Specs are

ASRock H81
5x ASUS 1070Ti blower
1x Gigabyte Geforce 1070
Intel Pentium dual core processor

Any help would be greatly appreciated.
Jump to: