Xen nVidia & nv

I have the nVidia driver on my desktop kernel set-up but have to change /etc/X11/xorg.conf from nVidia to nv to get a X to run in Xen.

Whilst this works, is there a way to tell Xen at boot time to use nv rather than nVidia so I don’t have to edit xorg.conf each time?


John F.


rm /etc/X11/xorg.conf

if  ${X_DRIVER} != "nv" ]] ; then
  echo 'NVIDIA-3D-Treiber'
  ln -s /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf
  echo 'NV-2D-Treiber'
  ln -s /etc/X11/xorg.conf.nv /etc/X11/xorg.conf

grub-conf (Bootloader), set “X_Driver”:

title Xen -- openSUSE 11.1 -
    root (hd0,1)
    kernel /boot/xen.gz 
    module /boot/vmlinuz- ... X_DRIVER=nv
    module /boot/initrd-

Many thanks!

John F.