Tag Archives: Xorg

Nouveau GLX problems

Well switching from nVidia propietry drivers to the open source Nouveau drivers for nVidia GPU’s I found I had no 3D acceleration, and when running glxinfo etc I was getting

Error: couldn't find RGB GLX visual or fbconfig

And in Xorg.log.0 output file I was seeing

Failed to load module "glx" (loader failed, 7)

Turns out after stuffing around trying to find a solution, I did a search to find the package that held libglx.so and that was in the xserver-xorg-core. Well I reinstalled xserver-xorg-core and it fixed the problem and I now have 3D goodness :-)

# apt-get install --reinstall xserver-xorg-core

[How To] Nouveau Dualhead Setup

Well I thought I’d have another play with Nouveau the open source driver for nVidia GPU’s, as it been a while since played around with them. Since the last time I played with Nouveau it was very buggy and unstable and 3D support was even worse, but I very surprised that there is some 3D support via Gallium3D.

Anyways this how I setup my xorg.conf for dual head setup with nouveau under Debian testing (wheezy):

Section "Monitor"
          Identifier   "monitor0"
          Option       "PreferredMode" "1920x1080_60.00"
EndSection

Section "Monitor"          
          Identifier   "monitor1"
          Option       "PreferredMode" "1440x900_60.00"
          Option       "RightOf" "monitor0"
EndSection

Section "Device"
    Identifier 	       "device0"
    VendorName         "nVidia Corporation"
    BoardName          "GeForce GT 220"
    Driver  	       "nouveau"
    Option  	       "Monitor-DVI-I-1" "monitor0"
    Option  	       "Monitor-VGA-1" "monitor1"
EndSection

Section "Screen"
    Identifier "screen0"
    DefaultDepth 24
      SubSection "Display"
        Depth      24
        Virtual 3360 1080
      EndSubSection
    Device "device0"
EndSection

Section "ServerLayout"
    Identifier 			"layout0"
    Screen 			    "screen0"
EndSection

At the moment I am very happy with Nouveau and going to keep using it till it borks it again :-)

Also if you not want to go through the hassle of xorg.conf you could run or put this in your session startup file, example this what I used for testing with ~/.fluxbox/startup

$ xrandr --output DVI-I-1 --mode 1920x1080 --pos 0x0 && xrandr --output VGA-1 --mode 1440x900 --pos 1920x0 &

The above does the same as the above xorg.conf configuration.

Howto: Not have Nouveau kernel module take over nVidia drivers

Since the last Debian testing kernel (2.6.32.5) update, I have rebooted and found myself being in what seems to be a kernel issue, where by a module “nouveau” by default seized control of the graphics card which prevents the nVidia driver from loading and would not allow me to compile and install the nVidia proprietary driver either. I also didn’t not have “xserver-xorg-video-nouveau” installed.

Here is the work around I used to resolve the problem.

If you use grub2 then edit

/etc/default/grub

then add

nouveau.modeset=0

to the end of the line that reads

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

(“quiet” seems a typical default option), so that that line now reads

GRUB_CMDLINE_LINUX_DEFAULT=”quiet nouveau.modeset=0″

run

update-grub2

and reboot.

Now go through and install you nVidia drivers as per normal.

Gnome System Monitor causes Xorg to consume 100% CPU

With Gnome System Monitor 2.22 under Debian testing (Lenny) I had the problem when I clicked on the Resources tab the CPU usage would got to 100% on my laptop and desktop.

Well I have been able to fix the problem on my laptop which has and Intel video card by adding Option “AccelMethod” “EXA” to the Device section in my xorg.conf file.

Example:

Section "Device"
        Identifier      "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        Driver          "intel"
        BusID           "PCI:0:2:0"
        Option           "AccelMethod"  "EXA"
EndSection

When I have worked out how to fix the problem on my desktop using a Nvidia video card I will post the solution.

Thanks goes out to MistaED for pointing out to me that this a problem with the way Cairo rendering is done.

Cloned desktop on i945 using the i810 driver

Here is what i have added to my xorg.conf file to get cloned desktop working on my laptop.

In the
Section “Device”
……
EndSection

this is the extra i added

	Option		"MonitorLayout"		"CRT,LFP"
	Option		"Clone"			"True"
	Option		"DevicePresence"	"True"
	Option		"VBERestore"		"True"
	BusID		"PCI:0:2:0"

Remember before playing with your xorg.conf file to back it up

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

To see my xorg.conf file
Continue reading