On 26/02/08 14:59, Pongracz Istvan wrote:
> 2008. 02. 26, kedd keltezéssel 07.33-kor Andrew Gaffney ezt írta:
>> Pongracz Istvan wrote:
>>> Hi,
>>>
>>> I use virtualbox/qemu to test the livecds.
>>> I know, I will not really popular, but I expected that, if mkxf86 could
>>> not detect the video card, it left empty the driver, instead of vesa
>>> driver. Their video card name is a really strange name.
>>>
>>> Is that possible to make the default driver to "vesa", instead of ""?
>> It should already do this. Are you sure you have x11-drivers/xf86-video-vesa 
>> on 
>> your CD? I believe it checks to make sure the driver exists before sticking 
>> it 
>> in the xorg.conf.
> 
> 
> Hi,
> 
> Yes, I am sure, because usually I simply write the "vesa" inside the
> xorg.conf to the relevant section and X starts smoothly, without problem
> and I am able to use X.

I've attached two patches that I apply when running fsscript. I believe
that the xorg.conf.in.patch is most essential, as it adds a second video
card as vesa and screen with default resolution settings as a sort of
fallback.

Beware that they might be outdated for your version of mkxf86config.

> Videocard: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
> 
> Video is InnoTek Systemberatung GmbH VirtualBox Graphics Adapter, using
> Xorg Server
> 
> 
> This is without installing virtualbox-additions to the livecd.
> 
> The only problem with this, vesa is not the default card in this
> specific case.
> 
> Cheers,
> István
> 
> 

--- etc/X11/xorg.conf.in.orig   2007-09-19 10:38:43.000000000 -0500
+++ etc/X11/xorg.conf.in        2007-09-20 10:55:46.000000000 -0500
@@ -1,6 +1,7 @@
 Section "ServerLayout"
-       Identifier      "X.Org Configured"
+       Identifier      "Automatically Configured"
        Screen  0       "Screen0" 0 0
+       Screen  0       "ScreenVesa" 0 0
        InputDevice     "Keyboard0" "CoreKeyboard"
        InputDevice     "PS/2 Mouse" "AlwaysCore"
 #      InputDevice     "Serial Mouse" "AlwaysCore"
@@ -85,6 +86,7 @@
        Driver  "kbd"
        Option  "CoreKeyboard"
        Option  "XkbRules" "xorg"
+       Option  "XkbLayout" "us"
        Option  "XkbModel" "pc105"
 #      Option  "XkbOptions" "grp:toggle,grp_led:scroll"
        Option  "XkbVariant" ",winkeys"
@@ -163,6 +165,11 @@
 #      BusID       "PCI:1:0:0"
 EndSection
 
+Section "Device"
+       Identifier  "CardVesa"
+       Driver      "vesa"
+EndSection
+
 Section "Screen"
        Identifier      "Screen0"
        Device  "Card0"
@@ -198,6 +205,41 @@
        EndSubSection
 EndSection
 
+Section "Screen"
+       Identifier      "ScreenVesa"
+       Device  "CardVesa"
+       Monitor "Monitor0"
+       DefaultColorDepth 24
+       SubSection "Display"
+               Depth   1
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   4
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   8
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   15
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   16
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   24
+               @@MODES@@
+       EndSubSection
+       SubSection "Display"
+               Depth   32
+               @@MODES@@
+       EndSubSection
+EndSection
+
 Section "DRI"
        Mode 0666
 EndSection
--- usr/sbin/mkxf86config.sh.orig       2007-05-24 15:25:55.000000000 -0500
+++ usr/sbin/mkxf86config.sh    2007-06-01 07:03:47.000000000 -0500
@@ -98,6 +98,16 @@
        esac
 fi
 
+# Pick a default if no module is defined or it does not exist
+DRIVER_PATH="/usr/lib/xorg/modules/drivers"
+if [ -z "${XMODULE}" -o ! -e "${DRIVER_PATH}/${XMODULE}_drv.so" ]; then
+       if [ -e "/dev/fb" -a -e "${DRIVER_PATH}/fbdev_drv.so" ]; then
+               XMODULE="fbdev"
+       elif [ -e "${DRIVER_PATH}/vesa_drv.so" ]; then
+               XMODULE="vesa"
+       fi
+fi
+
 # We used to use ddcxinfo-knoppix for monitor information, now we will just let
 # X choose for itself.  This will probably break older machines.
 # You can uncomment the following to re-enable dccxinfo-knoppix, but this only
@@ -250,7 +260,7 @@
     -e 
's|@@XMODULE@@|'"${XMODULE}"'|g;'"${VMWARE}""${VPC}""${SERIALMOUSE}""${USBMOUSE}""${PSMOUSE}""${SWCURSOR}""${WHEEL}""${SYNMOUSE}""${MOUSEDRIVER}"
 \
     -e 's|@@SYNDEV@@|'"${SYNDEV}"'|g' \
     -e 's|@@MODES@@|'"${MODES}"'|g;'"${DEPTH}" \
-    -e 's|"XkbLayout" *"[^"]*"|"XkbLayout" "'"${XKEYBOARD}"'"|g;'"${DEADKEYS}" 
\
+    ${XKEYBOARD:+-e 's|"XkbLayout" *"[^"]*"|"XkbLayout" 
"'"${XKEYBOARD}"'"|g;'"${DEADKEYS}"} \
     /etc/X11/xorg.conf.in >/etc/X11/xorg.conf
 
 if [ -n "${DPMS}" ]

Reply via email to