From: lurker <lurker@lavabit.com>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] mkxf86config: Virtualbox experience
Date: Wed, 27 Feb 2008 12:39:14 +0100 [thread overview]
Message-ID: <47C54BE2.2030004@lavabit.com> (raw)
In-Reply-To: <1204034358.9889.54.camel@localhost>
[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]
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
>
>
[-- Attachment #2: xorg.conf.in.patch --]
[-- Type: text/plain, Size: 1493 bytes --]
--- 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
[-- Attachment #3: mkxf86config.sh.patch --]
[-- Type: text/plain, Size: 1251 bytes --]
--- 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}" ]
next prev parent reply other threads:[~2008-02-27 11:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 10:24 [gentoo-catalyst] mkxf86config: Virtualbox experience Pongracz Istvan
2008-02-26 13:33 ` Andrew Gaffney
2008-02-26 13:59 ` Pongracz Istvan
2008-02-27 11:39 ` lurker [this message]
2008-02-27 11:50 ` Pongracz Istvan
2008-02-27 18:36 ` Chris Gianelloni
2008-02-27 19:43 ` lurker
2008-02-27 18:26 ` Chris Gianelloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47C54BE2.2030004@lavabit.com \
--to=lurker@lavabit.com \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox