Archive

Posts Tagged ‘Ubuntu 10.04’

vesa drivers on Ubuntu 10.04 Lucid Lynx

May 22nd, 2010 2 comments

I have an ASRock 4Core1600-GLAN/M with an integrated video card, an Intel G31 northbridge, and I can’t use the intel drivers without a monitor (headless server) on Ubuntu 10.04 Lucid Lynx due to an X bug (Bug 14611 – X fails to start without display attached), so I need to use vesa drivers. First of all create che xorg.conf file with

[cce_bash]sudo Xorg -configure[/cce]

then edit it and at the Section “Device” replace

[cce_bash]        Driver      "intel"[/cce]

with

[cce_bash]        Driver      "vesa"[/cce]

Under Section “Screen” add

[cce_bash]        DefaultDepth      24[/cce]

and under the subsection

[cce_bash]        SubSection "Display"
                Viewport   0 0
                Depth     24[/cce]

add

[cce_bash]                Modes     "1280x1024"[/cce]

or write the screen resolution that you prefer.
 

Finally I got this xorg.conf

[cce_bash]Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/X11/misc"
        FontPath     "/usr/share/fonts/X11/cyrillic"
        FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath     "/usr/share/fonts/X11/Type1"
        FontPath     "/usr/share/fonts/X11/100dpi"
        FontPath     "/usr/share/fonts/X11/75dpi"
        FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
        FontPath     "built-ins"
EndSection

Section "Module"
        Load  "glx"
        Load  "dri2"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "extmod"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    31-101
        VertRefresh  60-160
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        # Driver      "intel"
        Driver      "vesa"
        VendorName  "Intel Corporation"
        BoardName   "82G33/G31 Express Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth      24
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1280x1024"
        EndSubSection
EndSection[/cce]

If you try to start X server now, I’ll get this error

[cce_bash](EE) VESA: Kernel modesetting driver in use, refusing to load[/cce]

You need to edit grub

[cce_bash]sudo nano / etc/default/grub[/cce]

and edit the GRUB_CMDLINE_LINUX_DEFAULT this way

[cce_bash]GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"[/cce]

As said in the top of the file, update grub

[cce_bash]sudo update-grub[/cce]

Restart the system and enjoy 🙂

 

 

SOURCE:
xorg.conf con intel 945

 

Categories: Ubuntu Tags: , ,