UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Folks,
I need help with X11 configuration on my Ubuntu 10.04 and 11.04 workstations. I'm completely lost seeking "the preferred way" to implement and optimize my video configuration. Now that X11 configuration uses the event-based device detection and configuration automation, power-on ... a miracle happens ... video+X11 sort-of work.
When I say, "the preferred way" I acknowledge that there may be a dozen ways to hack X11 into doing what I want it to do. From what I've suss'd out, I'm looking for details along the following lines:
for each thisDevice in deviceList DO configure( thisDevice ) DONE
when isConfigured( deviceList ) then launch( X-server )
I expect to find "jobs" or "tasks" or "events" or something as files
for each device but I don't find anything. I expect that the various device drivers {aka, kernel modules} throw events that get caught by something {is that udev?}
Every article that I find speaks to edits in xorg.conf. That's nice but I don't find that file on any of my workstations. (While searching for solutions, I don't find documentation either.)
Completely lost and stumped,
~~~ 0;-/ Dan
Last edited by SaintDanBert; 10-03-2011 at 01:07 PM.
to be honest, X11 configuration in Ubuntu seems like a miracle to me, too. Rumor has it that Ubuntu doesn't store any information about the system configuration, but instead probes it again every time you boot. That's fine, 'cause it means that after changing the hardware configuration you have a fair chance of Ubuntu starting up as usual without doing anything.
However, once you wish to move away from standard procedures and configuration, things get tricky. I had to learn that a few months ago when I tried to get Ubuntu to work with an onboard VGA as the primary display, and a PCI graphics adapter as the secondary display. I didn't succeed, and finally I ended up using *only* a PCI graphics adapter that drives two monitors (and it's even faster than the onboard VGA).
A good friend of mine told me that Ubuntu stops probing for graphics adapters once it found one. So a configuration with two graphics adapters can never work using auto-configuration.
Quote:
Originally Posted by SaintDanBert
Every article that I find speaks to edits in xorg.conf. That's nice but I don't find that file on any of my workstations.
Yea, that's another Ubuntu miracle. You only need the xorg.conf if you're using a non-standard configuration. However, I didn't get that working either. Whatever I tried - the only thing I achieved was a completely inoperable X server (Ubuntu just booted into the text console) with a message "No screens found" appearing several times in the log file. :-(
Sorry I can't help you with that one, but I'll keep coming back to this thread hoping I can learn something myself.
Xorg no longer generates the xorg.conf file by default. It's supposed to just work. In my experience, for some systems it does, for some it sort-of does, and for others it doesn't. It's not just an Ubuntu thing.
Optimizing video may indeed require an xorg.conf file - it does on my desktop system because my monitor does not want to emit a valid EDID. I've got an xorg.conf file that works, I just copy it from distro to distro, changing the module path as necessary when moving between 32-bit and 64-bit installs. So, how to generate that first decent xorg.conf file? As root:
Code:
Xorg -configure :1
. Copy to /etc/X11/xorg.conf, tweak as needed, and restart X (or reboot).
What I'll sometimes do to get going is to force the use of the vesa driver, editing the kernel line when booting adding:
Code:
nomodeset vga=795
to get 1280x1024 24-bit color (use 799 for 1600x1200 or 792 for 1024x768).
Xorg no longer generates the xorg.conf file by default. It's supposed to just work. In my experience, for some systems it does, for some it sort-of does, and for others it doesn't. It's not just an Ubuntu thing.
ah, thank you for that insight - I was sure it was just an Ubuntu spleen.
Quote:
Originally Posted by RockDoctor
So, how to generate that first decent xorg.conf file? As root:
Code:
Xorg -configure :1
. Copy to /etc/X11/xorg.conf, tweak as needed, and restart X (or reboot).
If I try that, I keep getting the message:
Fatal server error
Server is already active for display 1
Xorg no longer generates the xorg.conf file by default. It's supposed to just work.
...
So, how to generate that first decent xorg.conf file? As root:
Code:
Xorg -configure :1
. Copy to /etc/X11/xorg.conf, tweak as needed, and restart X (or reboot).
...
If I hook up and power up all my X11 related hardware and then use Xorg -configure does the generated file stomp on whatever I have
running now or is the file available for whatever XX-somename.conf hacking I might want to do with the details?
Given the new X11 order -- using the XX-somename.conf files -- why don't
we have an inventory of files: XX-thisdisplay.conf ... XX-thatdisplay.conf, XX-thispointer.conf ... XX-thatpointer.conf and so on? Isn't that what the new order calls for?
The generated file is /root/xorg.conf.new - you have to manually move back up the old file and move the new one into place. I haven't tried to make use of xorg.conf.d and the little conf file snippets yet. but I agree, it seems that what you suggest should be possible. I suppose at some point I should figure out what file snippets I really need and set my system up to use xorg.conf.d
About the folder approach using xorg.conf.d and its set of little
file contents:
There is a man page,
Code:
man Xorg.conf # capital X
that details all of the X11 configuration options and describes the folder approach. A fog
of war still exists because so much X11 config (a) happens automatically, and (b)works pretty well without any manual settings. This leaves folks that want or need manual settings in the fog about the preferred way to install those settings.
The relevant part is that it speaks to part of X11 calibration for some folks.
I'm hoping that this thread will accumulate a reasonably complete set of similar Do THIS ... THAT way. links.
both from a console and within an xterm. The resulting xorg.conf.new held exactly the same contents.
What it did not hold was anything about my keyboard or my tablet/digitizer input device. This omission in spite of the fact that
Code:
xinput -list
mentions both of these items.
Can anyone answer this question: What is the difference, if any, between what happens automatically during startup
and what happens during Xorg -configure?
[rant]
This issue is seriously in my way to getting real work done.
We castigate the other OS for requesting payment for configuration details.
Are we any better when details are known but are either not published or
they are published in places that are obscure to the average power user?
[/rant]
This page appears to be the same content as man xorg.conf. It is useful and valuable in its description of the various configuration file contents. It is written from the perspective of the monolithic 'xorg.conf' file rather than multiple, small 'xorg.conf.d' files named XX-somename.conf. Also, it describes X11R6 and my *buntu workstations are X11R7 with R8 on the near horizon. I appreciate the link as it is much easier to read than man pages.
This link led me to http://ftp.x.org/pub/X11R7.0/doc/html/ with its list of numerous things to read. Following a link that reads "Installation Details ..." I find a single paragraph that disclaims distribution of binary distributions. The Next link goes nowhere. This sort of pages that don't inform is the rule and not the exception in my search for "how to configure" documentation.
I **am** grateful for your effort to supply details trying to help.
=$===~ 0;-Dan
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.