Results 1 to 7 of 7

Thread: generate xorg.conf from current configuration

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Beans
    240
    Distro
    Ubuntu 10.04 Lucid Lynx

    generate xorg.conf from current configuration

    Hi,

    xorg nowadays does not use a xorg.conf. Is it possibly to make it "spill out" one of the current configuration though?

    Thanks,
    GM

  2. #2
    Join Date
    Jun 2006
    Beans
    1

    Re: generate xorg.conf from current configuration

    I agree this would be pretty helpful right now.

  3. #3
    Join Date
    Nov 2009
    Location
    Devon, UK
    Beans
    8
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: generate xorg.conf from current configuration

    Oh man, would that be helpful!

    Does the logfile help you at all?

    Code:
    /var/log/Xorg.0.log
    I'm pulling my hair out trying to get an old laptop going because Xorg & HAL aren't able to auto-detect the display's available resolutions properly (for whatever reason).

    So, I'm looking around trying to piece together which bits I need from the automatically detected configuration, and which bits I need to supply.

    I have been looking at the logfile and while it doesn't supply a ready formatted, complete xorg.conf it will give you a lot of details to generate one from.

    But I'm still looking for a better solution...

  4. #4
    Join Date
    Oct 2007
    Beans
    240
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: generate xorg.conf from current configuration

    Thanks P&C, it is some progress... but still a "write_xorg" of the current configuration would be ideal

  5. #5
    Join Date
    Nov 2009
    Location
    Devon, UK
    Beans
    8
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: generate xorg.conf from current configuration

    I've spent some more time looking at this and it would appear that it is possible afterall...

    In my case, (Ubuntu 9.10) I booted into the recovery mode and ran

    Code:
    Xorg -configure
    This tells you that it generates the configuration file: /root/xorg.conf.new

    It also says that running the following will test it:

    Code:
    X -config /root/xorg.conf.new
    However, in my case I was pleasantly greated with black text on a black background with a black cursor - either that or it didn't work...

    2nd time around:

    Code:
    cp /root/xorg.conf.new /etc/X11/xorg.conf
    shutdown  -r now
    This appears to startup my laptop "normally", so I now have a configuration file to start playing with.

    I have yet to check the logfile, etc, but I thought it answered your original post, so I thought I'd post asap

    Hope it helps you (or anyone else!) out...

  6. #6
    Join Date
    May 2010
    Beans
    12

    Re: generate xorg.conf from current configuration

    Quote Originally Posted by Gatemaze View Post
    Hi,

    xorg nowadays does not use a xorg.conf. Is it possibly to make it "spill out" one of the current configuration though?

    Thanks,
    GM
    I use this command:

    sudo X :2 -configure

    the new xorg.conf file can be found in home/username folder

  7. #7
    Join Date
    Oct 2007
    Beans
    240
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: generate xorg.conf from current configuration

    Nice one. Thanks guys.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •