Page 1 of 3 123 LastLast
Results 1 to 10 of 36

Thread: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

Hybrid View

  1. #1
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    This HowTo Guide is primarily for users who cannot get into the GUI after a fresh install, a dist-upgrade, a new video card install, or a video driver upgrade, and for users who cannot set their screen resolutions correctly from within the GUI. It is designed to be easy to use without being overly simplistic.

    UPDATE: This method does not work with Hardy Heron and probably all versions to follow (including Intrepid Ibex). This method seems to ONLY work with Gutsy Gibbon and older.
    I think this is because the newer versions of xserver-xorg rely more on auto-detecting the configuration during runtime rather than looking at xorg.conf.
    /UPDATE

    Step 1: Get to the terminal

    1a) If you are already in the GUI.
    For Gnome and Xfce: Applications->Accessories->Terminal
    For KDE: KMenu->System->Konsole

    1b) If you are NOT in the GUI (maybe you have a blank screen after boot-up)
    Do CTRL+ALT+F1 to get to a tty, and login with your username and password. Then depending on your desktop environment, run
    For Gnome (Ubuntu):
    Code:
    sudo /etc/init.d/gdm stop
    For KDE (Kubuntu):
    Code:
    sudo /etc/init.d/kdm stop
    For Xfce (Xubuntu):
    Code:
    sudo /etc/init.d/xdm stop
    Step 2: Run the reconfiguration

    First start by making a manual backup (even though one will be auto-generated in the form xorg.conf.YearMonthDayTime):
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
    Now run the configuration:
    Code:
    sudo dpkg-reconfigure xserver-xorg
    Details:
    --You will be asked a bunch of questions about your hardware, do your best to answer. If you don’t know the answer, take an educated guess or use the default selection.
    --When asked about video drivers, select “ati” if you have an ATI card, “nv” if you have an Nvidia card, or “intel” if you have an onboard Intel graphics card. Otherwise select “vesa” – this is more of a fallback driver if the other options don’t work, it is useful to select this to get into the GUI initially, then install the propriety drivers if needed (step 4).
    --When asked about screen resolutions, use TAB to move and SPACEBAR to select your monitor’s max resolution and everything less.

    Once the questions are finished, you may proceed.

    Step 3: Restart the GUI

    3a) You are currently in the GUI, so restart X with CTRL+ALT+BACKSPACE

    3b) You are in a tty, so run
    For Gnome (Ubuntu):
    Code:
    sudo /etc/init.d/gdm start
    For KDE (Kubuntu):
    Code:
    sudo /etc/init.d/kdm start
    For Xfce (Xubuntu):
    Code:
    sudo /etc/init.d/xdm start
    Step 4: (OPTIONAL) Setup Proprietary Drivers
    This is for users whose cards do not have full support with the open source drivers. Nvidia users tend to use this more, but newer ATI cards also need them.
    See links for details on card compatibility.

    Installing Nvidia propriety drivers
    Installing ATI propriety drivers

    Details on ati/radeon open source drivers

    If something doesn’t work out correctly and you want to recover your previous configuration for X, then restore your backup:
    Code:
    sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
    Then restart X.

    Please do not post help questions on this thread, start a new thread on the Absolute Beginner’s Forum instead. Suggestions, reviews, and critique are certainly welcome.

    Keywords: can’t login, broken X, no login screen, blank screen, low or wrong resolution, new video card
    Last edited by Rocket2DMn; March 27th, 2008 at 12:24 AM.

  2. #2
    Join Date
    Feb 2008
    Beans
    102

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    sorry

    but i hope this could help me out....
    sigh... i have an onboard card
    and it's poor quality
    but then Ubuntu cant' detect it?? so it's appeared blank?

    OMG.... help me...!!

  3. #3
    Join Date
    Feb 2008
    Beans
    102

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    and the blank screen was appeared after i choose it
    from the Boot Logon...

    then BANG!
    blank...no other loading or someting else

    but after few days.. it happened working OK
    suddenly a few hours i restart it again.. .same problems happened...
    it's appeared BLANK again hiks

  4. #4
    Join Date
    Jun 2006
    Location
    Canada
    Beans
    517

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    I have usually used the following to reconfigure xorg when the screen did not work properly (such as booting into a black screen).

    Press ESC at Grub prompt and select RECOVERY MODE

    Code:
    dpkg-reconfigure -phigh xserver-xorg
    This would usually ask me a series of questions concerning my video card, resolution, driver etc.

    Removing "-phigh" from the command added a lot more questions concerning the keyboard.

    Until recently when I ran that command on a new computer using hardy. -phigh did not work at all and taking it out allowed me to configure they keyboard but does not ask me to configure video (which is what I want to configure). I got the following error:

    xserver-xorg postinst warning: overwritting possibly customized configuration file: backup in /etc/X11/xorg.conf.20080203121105

    Any Tips? Currently using Intel Mobile VGA GM965/GL960 (Rev3) on Ubuntu Hardy 8.04 alpha5, but I have also seen this when trying to reconfigure an ATI Radeon 9200.
    Last edited by komputes; March 4th, 2008 at 06:24 PM.
    My Top Bugs - Launchpad Profile - Wiki Page

    Appreciate what the severe effort of many converging wills has produced.

  5. #5
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    "xserver-xorg postinst warning: overwritting possibly customized configuration file: backup in /etc/X11/xorg.conf.20080203121105" - is not an error. This is normal, it is making a backup of your old xorg.conf and putting the new one in its place. Backups are made automatically in the format xorg.conf.YearMonthDayTime
    If you need specific help with cards, please start a new thread and somebody will be glad to help you out there. Remember that Hardy is still in alpha, and you will need "intel" driver for the onbard graphics and "ati" open source driver for the 9200.

  6. #6
    Join Date
    Feb 2008
    Location
    readlink("/proc/self/exe"
    Beans
    1,120
    Distro
    Ubuntu Development Release

    Smile Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    Quote Originally Posted by Rocket2DMn View Post
    "xserver-xorg postinst warning: overwritting possibly customized configuration file: backup in /etc/X11/xorg.conf.20080203121105" - is not an error. This is normal, it is making a backup of your old xorg.conf and putting the new one in its place. Backups are made automatically in the format xorg.conf.YearMonthDayTime
    If you need specific help with cards, please start a new thread and somebody will be glad to help you out there. Remember that Hardy is still in alpha, and you will need "intel" driver for the onbard graphics and "ati" open source driver for the 9200.
    I had this when I couldn't set the screen resolution. It remaind at 600x800...

    Neither dpkg-reconfigure nor -phigh worked.

    To do it manually:

    apt-get install xresprobe

    xresprobe -n



    make a backup of xorg.conf:
    Code:
    cp /etc/X11/xorg.conf /etc/X11/xorg.backup.conf
    Then edit the xorg config file:
    sudo gedit /etc/X11/xorg.conf

    Look out for these sections:
    Code:
    Section "Monitor"
            Identifier      "Configured Monitor"
            DisplaySize     376 301
    EndSection
    
    Section "Screen"
            Identifier      "Default Screen"
            Monitor         "Configured Monitor"
    EndSection

    And change them to this:
    Code:
    Section "Monitor"
            Identifier      "Configured Monitor"
            DisplaySize     328 248
            HorizSync       30-85
            VertRefresh     50-120
    EndSection
    
    
    
    
    Section "Screen"
            Identifier      "Default Screen"
            Device          "Configured Video Device"
            Monitor         "Configured Monitor"
            DefaultDepth    16
            SubSection "Display"
                    Depth           16
                    Modes           "1280x1024" "1024x768"
            EndSubSection
            SubSection "Display"
                    Depth           24
                    Modes           "1280x1024" "1024x768"
            EndSubSection
    EndSection
    Get the values for hsync and vsync via:
    Code:
    xresprobe -n
    and get the available modes via
    Code:
    fbset -x


    http://wiki.ubuntuusers.de/XServer
    Last edited by WitchCraft; December 9th, 2008 at 09:55 PM.
    In a world without walls and fences, who needs Windows and Gates?
    Linux is like a wigwam.... no Gates, no Windows but Apache inside!
    http://www.debianadmin.com
    apt-get install libstdc++6-4.3-doc

  7. #7
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    This HowTo is outdated now, it doesn't really apply to Hardy, Intrepid, or Jaunty (testing) - the newer X servers rely more on autodetection than they used to. These days, this method is mostly only useful to resetting a manually configured xorg.conf or one that was modified by restricted drivers, which can be useful after a kernel upgrade in which the restricted drivers were not recompiled after the update.

  8. #8
    Join Date
    Jan 2006
    Beans
    15

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    Is there already an updates version available, cause my 8.10 version with a Intel Corporation Mobile GM965/GL960 chipset isn't working with compiz.

    Arjan

  9. #9
    Join Date
    Jun 2006
    Location
    Canada
    Beans
    517

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    I completely understand that this is not an error. I expected to be able to select my video driver with this command. What I experienced is that this command skipped right over the part where it asks questions about the video driver and monitor refresh rates etc. How do I get to that screen?
    My Top Bugs - Launchpad Profile - Wiki Page

    Appreciate what the severe effort of many converging wills has produced.

  10. #10
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: HowTo: Reconfigure X with “dpkg-reconfigure xserver-xorg”

    That command without phigh should ask about video drivers and screen resolutions. By default it should be asking low priority questions as well, but you can double check by using the "-plow" flag with the command. Otherwise, I need to see your xorg.conf file:
    Code:
    cat /etc/X11/xorg.conf
    lspci | grep VGA

Page 1 of 3 123 LastLast

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
  •