Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
797 stars 187 forks source link

Xorg tries to autoconfigure nv even if it's not available #20

Closed seidler2547 closed 11 years ago

seidler2547 commented 11 years ago

I made a thinstation image which does not contain nv, but nouveau. However, when booted on PCs with nVidia graphics, Xorg tries to autoconfigure using the nv driver, which is not available.

As a workaround, I've done this hack, which works well, but I'm still wondering why it would autoconfigure nv if it's not even available.

diff --git a/ts/5.1/packages/xorg7/etc/init.d/xconf b/ts/5.1/packages/xorg7/etc/init.d/xconf
index 142e33d..cb94fb0 100755
--- a/ts/5.1/packages/xorg7/etc/init.d/xconf
+++ b/ts/5.1/packages/xorg7/etc/init.d/xconf
@@ -29,6 +29,10 @@ device_ ()
                done
        done

+       if [ -z "$X_DRIVER_NAME" ] && [ -e /sys/module/nouveau ] ; then
+               X_DRIVER_NAME="nouveau"
+       fi
+
        if [ -n "$X_DRIVER_NAME" ] || [ -n "$X_DRIVER_BUSID" ] || [ -s /tmp/x_Device ]; then
        CONF=/etc/X11/xorg.conf.d/07-device.conf
                                                echo -e "Section \"Device\""                    > $CONF
diger74 commented 11 years ago

You can also try to use both of module nvidia and xorg package nvidia.

Remove all the nv or nouveau modules and just leave only this line to your machine's module.list module nvidia

And uncomment only one nvidia xorg package: package xorg7-nvidia

Once I've migrated from nouveau to proprietar nvidai package I had no problems with their graphic cards at all.

seidler2547 commented 11 years ago

Well, yes, but since nouveau works very well also with dual monitors etc. I do not want to switch to nvidia. The main question is why Xorg is even trying to use nv, not nouveau. Xorg -configure doesn't even list nv as a driver, yet tries to use it??

Thinstation commented 11 years ago

Funky xorg thing. Nice hack. I'll share it.