If you recently upgrade to Debian Squeeze from Debian Lenny and you notice that the X server crashes and you get following similar error messages in your /var/log/Xorg.0.log:

Could not allocate video memory

No screens found

then follow the steps below to resolve the error.

Step 1: Shutdown your X

Hit Ctrl-Alt-F1. This will give you your tty1 console

# /etc/init.d/gdm,{kdm},{xdm} stop

This will kill your X server running. You can substitute whatever login manager you are using.

Step 2: Use vesa driver instead of the native X driver for your video card

# nano /etc/X11/xorg.conf

and add the following line (in green) in the “Device” section:

Section "Device"
Identifier      "Configured Video Device"
Driver              "vesa"
EndSection

Step 3: Restart your X Server

Check if your X server is running properly or not:

# X

If you get a Gray textured screen and you are able to use your mouse/touch pad on your laptop, then you have successfully configured your X server with the generic “vesa” driver.

However, if your X starts but your touch pad freezes (or is not working properly) then you need to do the following before you start your X

# modprobe psmouse

That should get your X working. Note that this solution may not be the most desirable because we are using “vesa” driver instead of “intel” native graphics driver.

Step 4: Start your GNOME/KDE

Finally you can start your GNOME/KDE session by either rebooting or giving the following commands:

# /etc/init.d/gdm start

Hope that helpled!

Be Sociable, Share!