Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting? Thanks.
brick
brick writes:
Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting?
/var/log/Xorg.0.log will tell you which configuration Xorg is currently using, which devices are autodetected etc. If you need to change only particular parts of the config, you can drop a .conf file with the corresponding Section into /etc/X11/xorg.conf.d.
E.g. if you needed a UK keyboard instead of the default US, you could use something along the lines of
# cd /etc/X11/corg.conf.d # cat keyboard.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "gb" EndSection #
Lars Hecking wrote:
brick writes:
Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting?
/var/log/Xorg.0.log will tell you which configuration Xorg is currently using, which devices are autodetected etc. If you need to change only particular parts of the config, you can drop a .conf file with the corresponding Section into /etc/X11/xorg.conf.d.
<snip> The latest, most Wonderful (tm) version of xorg doesn't seem to require one - it does it all at boot.
That being said, I think this is a stupid idea. For example, most folks at work I know of have two monitors, and I've yet to see any automatic do-it-at-boot figure that out.
mark
m.roth@5-cent.us wrote:
The latest, most Wonderful (tm) version of xorg doesn't seem to require one - it does it all at boot.
That being said, I think this is a stupid idea. For example, most folks at work I know of have two monitors, and I've yet to see any automatic do-it-at-boot figure that out.
But, as has been said, hasn't it just been replaced by /etc/X11/xorg.conf.d/ There seems to be a general movement to replace *.conf by *conf.d/ . I'm not sure of the rationale behind this change. Is is Linux-wide, or is it a RedHat speciality?
<m.roth@...> writes:
Lars Hecking wrote:
brick writes:
Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting?
/var/log/Xorg.0.log will tell you which configuration Xorg is currently using, which devices are autodetected etc. If you need to change only particular parts of the config, you can drop a .conf file with the corresponding Section into /etc/X11/xorg.conf.d.
<snip> The latest, most Wonderful (tm) version of xorg doesn't seem to require one - it does it all at boot.
That being said, I think this is a stupid idea. For example, most folks at work I know of have two monitors, and I've yet to see any automatic do-it-at-boot figure that out.
mark
Running FC-16 from an external hard disk that I carry back and forth between home and work. FC-16 boots just fine on two different laptops each with an external monitor attached. On the work system Xorg auto-detects the monitor configuration and just works. On my older laptop at home I have to run xrandr to get it to sort out which display is where. The work laptop is all Intel including the video and the home laptop has an AMD CPU and ATI graphics plus the display geometries are different for both the laptops and the external monitors.
I appreciate that this is with FC-16 instead of CentOS but you may find that the autoconfiguration will work this well when RHEL/CentOS 7 gets built based on FC. It's really nice to just be carrying the external disk between work and home instead of the laptop.
Cheers, Dave
On Thu, 2012-03-29 at 09:57 +0100, Lars Hecking wrote:
brick writes:
Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting?
/var/log/Xorg.0.log will tell you which configuration Xorg is currently using, which devices are autodetected etc. If you need to change only particular parts of the config, you can drop a .conf file with the corresponding Section into /etc/X11/xorg.conf.d.
E.g. if you needed a UK keyboard instead of the default US, you could use something along the lines of
# cd /etc/X11/corg.conf.d # cat keyboard.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "gb" EndSection #
If you know what you need, adding a separate conf file in /etc/X11/xorg.conf.d/ is the cleanest way to go. If you need some type of custom setup, however, you can generate an xorg.conf using "Xorg -configure". The X server must not be running when you do this.
## Go to run level 3
init 3
## Generate xorg.conf
Xorg -configure
## The configuration file will be stored in "root" user's home (/root)
From there you can modify it as needed then move it to /etc/X11/ and
"init 5" to test. You can test your changes by jumping in and out of run level 5.
From Xorg(1) man page:
-configure
When this option is specified, the Xorg server loads all video driver modules, probes for available hardware, and writes out an initial xorg.conf(5) file based on what was detected. This option currently has some problems on some platforms, but in most cases it is a good way to bootstrap the configuration process. This option is only available when the server is run as root (i.e, with real-uid 0).
./Cal
On 3/29/2012 10:06 AM, Cal Webster wrote:
On Thu, 2012-03-29 at 09:57 +0100, Lars Hecking wrote:
brick writes:
Hi
My system is CentOS 6. I need to edit xorg.conf. But it can't be find in /etc/X11. Where is it? How can I get the default setting?
/var/log/Xorg.0.log will tell you which configuration Xorg is currently using, which devices are autodetected etc. If you need to change only particular parts of the config, you can drop a .conf file with the corresponding Section into /etc/X11/xorg.conf.d.
E.g. if you needed a UK keyboard instead of the default US, you could use something along the lines of
# cd /etc/X11/corg.conf.d # cat keyboard.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "gb" EndSection #
If you know what you need, adding a separate conf file in /etc/X11/xorg.conf.d/ is the cleanest way to go. If you need some type of custom setup, however, you can generate an xorg.conf using "Xorg -configure". The X server must not be running when you do this.
## Go to run level 3
init 3
## Generate xorg.conf
Xorg -configure
## The configuration file will be stored in "root" user's home (/root)
From there you can modify it as needed then move it to /etc/X11/ and
"init 5" to test. You can test your changes by jumping in and out of run level 5.
From Xorg(1) man page:
-configure
When this option is specified, the Xorg server loads all video
driver modules, probes for available hardware, and writes out an initial xorg.conf(5) file based on what was detected. This option currently has some problems on some platforms, but in most cases it is a good way to bootstrap the configuration process. This option is only available when the server is run as root (i.e, with real-uid 0).
./Cal
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I thought it placed a conf file in the home directory of any user who brought up a x window/desktop?