From: Denis Bredelet (denis.bredelet@laposte.net)
Date: Fri Sep 08 2000 - 02:14:53 CEST
Juge by yourself... Here is the ugly handiwork I did to (automagically! ;-))
choose a proper XF86Config.in file for X (.ext is for external display, .int
is for internal aka LCD display)
The magic here is helped by the fact that XF86_SVGA get confused when an
external display is attached to my thinkpad 240, and it believes that it is
fit out with a 640x480 monochrome dual scan LCD panel. The script uses the
external display file instead of the internal if X detects monochrome
hardware.
Michele Andreoli a écrit :
> On Thu, Sep 07, 2000 at 02:34:39AM +0200, Denis Bredelet nicely wrote:
> > Very nice... I could even run X window on an external display :-))
> > I picked a config file on a website and it works! The only thing now is
> > that I have 2 distinct XF86Config.in files... I wrote a script to switch
> > between external and internal display, but that's not good...
>
> In mulinux, startx call xf86config (both in /usr/X11R6/bin). The
> command xf86config create the link:
>
> /etc/X11/XF86Config -> /usr/X11R6/lib/X11/XF86Config
>
> then fill the file /usr/X11R6/lib/X11/XF86Config translating the
> XF86Config.in
#!/bin/ash
testfile=/tmp/xtest.log
xpath=/usr/X11R6/lib/X11
X -probeonly 2> ${testfile}
rm -f ${xpath}/XF86Config.in
if grep -q monochrome ${testfile}
then
ln -s ${xpath}/XF86Config.ext ${xpath}/XF86Config.in
else
ln -s ${xpath}/XF86Config.int ${xpath}/XF86Config.in
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:15 CET