LinHES Forums
http://forums.linhes.org/

Correct setup for custom xorg
http://forums.linhes.org/viewtopic.php?f=25&t=24650
Page 1 of 1

Author:  nicom [ Tue Apr 25, 2017 12:18 am ]
Post subject:  Correct setup for custom xorg

My machine has been progressively upgraded since R5.5 and one of the first things I had to do was create a custom xorg file because it was necessary to control my TV with modelines. It is still the same TV although an upgrade is on the cards. My current setup for R8.4.2 has my custom xorg data located in /etc/X11/xorg.conf.d/20-automv.conf which seems to work adequately and when I look at /var/log/Xorg.0.log all my data is present. Looking at Settings>LinHES>Display I see that user configuration can be selected if an xorg.userfile is placed in ~/templates directory which I can see would make it upgrade proof. The wiki also refers to running xconfig.sh to set the video driver.

Before I start to try things I have a few questions.

1. What is the form of of the xorg.user file? Is it the same as 20-automv.conf?
2. If I select user configuration and it fails and X won't start, can I recover by editing /etc/systemconfig to set XIgnoreConfig back to 0?
3. If /etc/X11/xorg.conf.d/20-automv.conf still exists, what is the hierarchy of the 2 files?
4. What does xconfig.sh do? I have tried to understand the code but am unsure. Given that I have a working setup will it do any harm/good?

My video card is nVidia GT220 and the driver version is 340.102.

Author:  brfransen [ Tue Apr 25, 2017 7:21 am ]
Post subject:  Re: Correct setup for custom xorg

1. Yes same format. But it could include multiple sections (Device, Screen, Monitor, Extension, etc).
2. It would only fail if you have an error in your xorg.user. If it does fail just delete /etc/X11/xorg.conf and X should start like before. That is where xconfig.sh copies your xorg.user file to.
3. From memory the sections in /etc/X11/xorg.conf take precedence over /etc/X11/xorg.conf.d/*.
4. xconfig.sh tries to detect the video card and install the correct drivers and settings. If you booted from the ISO or a LinHES install and got to the GUI xconfig.sh did the work to make that happen. Running it again shouldn't hurt your system unless you force it to install the wrong driver or your xorg tweaks are what made it work.

Author:  nicom [ Tue Apr 25, 2017 6:53 pm ]
Post subject:  Re: Correct setup for custom xorg

Thanks for the explanation. I successfully switched to using ~/templates/xorg.user without a hitch and am able to make changes then copy them over with xconfig.sh. I like this system of storing customisations in the home directory.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/