Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't find my xorg.conf.

There is no xorg.conf file by default in Ubuntu 11.04.

If I run: "whereis xorg.conf" I am seeing: xorg: /usr/lib/xorg /usr/lib64/xorg /usr/include/xorg

may be I just can create it by myself? at /etc/X11/xorg.conf?

share|improve this question
This question is probably a duplicate, no? Here's one version on a different SE: askubuntu.com/questions/4662/… – DanBeale Aug 19 '11 at 6:37
DanBeale, yes it is.thank you. – bakytn Aug 19 '11 at 6:55
up vote 5 down vote accepted


To create an initial /etc/xorg.conf file, you can have Xorg's autoconfiguration output a full blown static one for you:

sudo Xorg -configure

or create an /etc/xorg.conf containing only those sections and options that you need to override Xorg's autoconfigurated settings.

share|improve this answer
in order to do that XServer needs to be down. I can't afford this. Is there any way to get xorg.conf without shutting xorg off? – bakytn Aug 19 '11 at 7:24
"sudo Xorg :2 -configure" did work. – bakytn Aug 19 '11 at 10:54

The modern implementations of Xorg doesn't need a xorg.conf file, the configuration is automatic. And the correct place for the xorg.conf file is /etc/X11/xorg.conf.

share|improve this answer
Juan, corrected. – bakytn Aug 19 '11 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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