[Savage40] Dual Head on T23?

Albert.deJongh at sanlam.co.za Albert.deJongh at sanlam.co.za
Tue Mar 15 01:53:49 PST 2005


Philip,

I am using a slightly unsavory solution for picking dual / single head.
I've got two xorg.conf files in /etc/X11 - xorg.conf.single xorg.conf.dual
Then I added an entry in my grub.conf (bootloader) for dualhead - it has
an extra parameter that is passed to the kernel - "dualhead".

I also create a script that runs in /etc/init.d - xheadconfig (posted 
below).
This script checks /proc/cmdline to see if I specified dualhead and then 
selects
the correct x setup.  As I said - a bit unsavory, but its better than 
logging in as
root and selecting your setup by hand...

What do you think?

#!/bin/bash
#
# xheadconfig   This shell script links the correct xorg.conf file
#               depending on the kernel parameters passed.
#
# Author:       Albert de Jongh
#
# chkconfig:    345 50 01
#
# description:  Links correct xorg.conf file
# processname: 
# config: 
#

# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
        # first check if xorg.conf is a symbolic link
        # I would not want to clobber my real xorg.conf file!
        if [ ! -h /etc/X11/xorg.conf ]; then
                echo "xorg.conf is not a link - will not do anything"
                exit 1
        fi 

        # now see if the single or dualhead setups are available
        if [ ! -f /etc/X11/xorg.conf.single ] || [ ! -f 
/etc/X11/xorg.conf.dualhead ]; then
                echo "One of the single / dual head setup files is 
missing."
                exit 1
        fi

        # figure out from kernel parameters what we have to do!
        cmdline=$(cat /proc/cmdline)
        if strstr "$cmdline" dualhead; then
                cd /etc/X11/
                ln -f -s xorg.conf.dualhead xorg.conf
        else
                cd /etc/X11/
                ln -f -s xorg.conf.single xorg.conf
        fi

}

case "$1" in
  start)
        start
        ;;
  stop) 
        ;;
  restart)
        ;;
  reload)
        ;;
  condrestart)
        ;;
  status)
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
        exit 1
esac

exit $RETVAL




// Office:  +27 21 9476619
// Email:  albert.dejongh at sanlam.co.za
// Always use protection.  Browse with Firefox. http://getfirefox.com






Philip Mucci <mucci at cs.utk.edu>
2005/03/14 04:00 PM

 
        To:     Albert.deJongh at sanlam.co.za
        cc:     Alex Deucher <agd5f at yahoo.com>, savage40 at probo.com
        Subject:        Re: [Savage40] Dual Head on T23?


HI Albert, Alex, Tim and the gang,

So I've been happily using dual head now for 2 weeks. Everything's
stable. Thanks for this, it has improved my productivity greatly.

Now for remaining issues, I hope this helps. Feel free to use me to test
suggestions...I'll do what I can. BTW, I've confirmed both of these with
Albert (another T23 dual head user).

1) glxgears is black on Screen 1 (with or without no ScreentoScreen XAA)

2) exiting dual head leaves both monitors powered off. Fn-F7 required to
power on the main LCD again.

Thanks again,

Phil

P.S. Anyone know if there's a wrapper out there that uses X --probeonly
or something to see if there's actually another 'head' attached and then
start the server with the appropriate 'layout'? When I took my laptop
home this weekend, I had windows in never-never land...and the damn
gnome-window applet's are sooo broken.

On Tue, 2005-03-08 at 13:51 +0200, Albert.deJongh at sanlam.co.za wrote:
> Nah - it's black on screen 1.  I don't worry so much about DRI on the 
> multihead as I only use it
> at work.  The singlehead setup does work with DRI.  So in fact - my 
> results are the same as you.
> 
> 
> // Office:  +27 21 9476619
> // Email:  albert.dejongh at sanlam.co.za
> // Always use protection.  Browse with Firefox. http://getfirefox.com
> 
> 
> 
> 
> 
> 
> Philip Mucci <mucci at cs.utk.edu>
> 2005/03/08 12:40 PM
> 
> 
>         To:     Albert.deJongh at sanlam.co.za
>         cc: 
>         Subject:        Re: [Savage40] Dual Head on T23?
> 
> 
> Hi Albert,
> 
> Does glxgears work for you on Screen 1?
> 
> It works for me on Screen 0.
> 
> Phil
> 
> On Mon, 2005-03-07 at 09:39 +0200, Albert.deJongh at sanlam.co.za wrote:
> > <sorry about previous half-pos.  lotus notes malfunction :-( >
> > 
> > I've got dualhead working with a T23.  I used a binary snapshot driver 

> > (20050208) - 
> > installing the common and savage bits.  I am running Fedora Core 3, 
> kernel 
> > 2.6.10-1.760_FC3.
> > 
> > The important bits of my xorg.conf:
> > 
> > Section "ServerLayout"
> >         Identifier     "Default Layout"
> >         Screen      0  "Screen0" 0 0
> >         Screen      1 "Screen1" RightOf "Screen0"
> >         InputDevice    "Keyboard0" "CoreKeyboard"
> >         Option "xinerama"
> >         InputDevice    "Mouse0" "SendCoreEvents"
> >         InputDevice    "Mouse1" "CorePointer"
> >         Option         "AllowMouseOpenFail"  "true"
> > EndSection
> > 
> > Section "Module"
> >         Load  "dbe"
> >         Load  "extmod"
> >         Load  "fbdevhw"
> >         Load  "glx"
> >         Load  "record"
> >         Load  "freetype"
> >         Load  "type1"
> >         Load  "dri"
> > EndSection
> > 
> > Section "Monitor"
> >         Identifier   "Monitor0"
> >         VendorName   "Monitor Vendor"
> >         ModelName    "LCD Panel 1024x768"
> >         HorizSync    31.5 - 48.5
> >         VertRefresh  40.0 - 70.0
> >         Option      "dpms"
> > EndSection
> > 
> > Section "Monitor"
> >         Identifier   "Monitor1"
> >         HorizSync    30-96
> >         VertRefresh  50-160
> >         Option "dpms"
> > EndSection
> > 
> > Section "Device"
> >         Identifier  "savage0"
> >         Driver      "savage"
> >         VendorName  "Videocard vendor"
> >         BoardName   "S3 Savage/IX"
> >         Screen 0
> >         Option "AGPMode" "4"
> >         BusID "1:0:0"
> > EndSection
> > 
> > Section "Device"
> >         Identifier  "savage1"
> >         Driver      "savage"
> >         VendorName  "Videocard vendor"
> >         BoardName   "S3 Savage/IX"
> >         Screen 1
> >         Option "hwcursor"  "false"
> >         BusID "1:0:0"
> > EndSection
> > 
> > Section "Screen"
> >         Identifier "Screen0"
> >         Device     "savage0"
> >         Monitor    "Monitor0"
> >         DefaultDepth    16
> >         SubSection "Display"
> >                 Depth     16
> >                 Modes    "1024x768" "800x600" "640x480"
> >         EndSubSection
> > EndSection
> > 
> > Section "Screen"
> >         Identifier "Screen1"
> >         Device     "savage1"
> >         Monitor    "Monitor1"
> >         DefaultDepth    16
> >         SubSection "Display"
> >                 Depth     16
> >                 Modes    "1024x768" "800x600" "640x480"
> >         EndSubSection
> > EndSection
> > 
> > Section "DRI"
> >         Group        0
> >         Mode         0666
> > EndSection
> > 
> > 
> > Let me know if you've got problems!
> > 
> > Albert
> > 
> > 
> > // Office:  +27 21 9476619
> > // Email:  albert.dejongh at sanlam.co.za
> > // Always use protection.  Browse with Firefox. http://getfirefox.com
> > 
> > 
> > 
> > 
> > 
> > 
> > Philip Mucci <mucci at cs.utk.edu>
> > Sent by: savage40-bounces at probo.com
> > 2005/03/03 07:52 PM
> > 
> > 
> >         To:     savage40 at probo.com
> >         cc: 
> >         Subject:        [Savage40] Dual Head on T23?
> > 
> > 
> > Hi all,
> > 
> > Has anyone ever gotten dual head to work on Thinkpad T23/Linux (any X
> > version)?
> > 
> > I would settle for lower res/less colors if I could have this feature.
> > 
> > Anyone have any experience?
> > 
> > Phil
> > 
> > 
> > _______________________________________________
> > Savage40 mailing list
> > Savage40 at probo.com
> > http://www.probo.com/mailman/listinfo/savage40
> > 
> > 
> > 
> > 
> > *************** 
> > Any views expressed in this message are those of the individual 
sender, 
> > and Sanlam accepts no liability for such views, except where the 
sender 
> > specifically states them to be those of Sanlam.
> > Sanlam Life Insurance Limited is a Licensed Financial Services 
Provider.
> > Enige sienswyses of stellings wat in hierdie boodskap uitgedruk word 
is 
> > dié van die individuele afsender, en Sanlam aanvaar geen 
> aanspreeklikheid 
> > daarvoor nie, behalwe waar die afsender uitdruklik vermeld dat dit dié 

> van 
> > Sanlam is.
> > Sanlam Lewensversekering Beperk is 'n Gelisensieerde Verskaffer van 
> > Finansiële Dienste.
> 
> 
> 
> 
> 
> *************** 
> Any views expressed in this message are those of the individual sender, 
> and Sanlam accepts no liability for such views, except where the sender 
> specifically states them to be those of Sanlam.
> Sanlam Life Insurance Limited is a Licensed Financial Services Provider.
> Enige sienswyses of stellings wat in hierdie boodskap uitgedruk word is 
> dié van die individuele afsender, en Sanlam aanvaar geen 
aanspreeklikheid 
> daarvoor nie, behalwe waar die afsender uitdruklik vermeld dat dit dié 
van 
> Sanlam is.
> Sanlam Lewensversekering Beperk is 'n Gelisensieerde Verskaffer van 
> Finansiële Dienste.




 
*************** 
Any views expressed in this message are those of the individual sender, 
and Sanlam accepts no liability for such views, except where the sender 
specifically states them to be those of Sanlam.
Sanlam Life Insurance Limited is a Licensed Financial Services Provider.
Enige sienswyses of stellings wat in hierdie boodskap uitgedruk word is 
dié van die individuele afsender, en Sanlam aanvaar geen aanspreeklikheid 
daarvoor nie, behalwe waar die afsender uitdruklik vermeld dat dit dié van 
Sanlam is.
Sanlam Lewensversekering Beperk is 'n Gelisensieerde Verskaffer van 
Finansiële Dienste.


More information about the Savage40 mailing list