[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] [PATCH] bugfix for multiple screen
From: |
twb |
Subject: |
Re: [RP] [PATCH] bugfix for multiple screen |
Date: |
Mon Feb 23 02:10:04 2004 |
Quoth John Meacham <address@hidden> on or about Mon, 23 Feb 2004 00:21:24 -0800:
> yeah. I specifically don't use Xinerama because it interferes with other
> extensions like Xv and DRI and I run my heads at different bit depths.
> although, it would be good to unify the multiple screens and Xinerama
> internals as much as possible, so one can easily switch between the two.
I *HATE* that. My solution was to scriptify the swapping of different
/etc/XF86Config files.
I know I should use a cmd argument for xinit, but it's a pain in the arse for a
box with only
one X user.
$ls /usr/local/bin
XF86Config-4_640x480 -> XF86Config-4_xinerama
XF86Config-4_800x600 -> XF86Config-4_xinerama
XF86Config-4_dualhead -> XF86Config-4_xinerama
XF86Config-4_radeon -> XF86Config-4_xinerama
...
XF86Config-4_xinerama
$cat /usr/local/bin/XF86Config-4_xinerama
#!/bin/sh
CONFIGURE_SCRIPT="/usr/local/lib/.XF86Configure-4"
echo $0, $1;
if [ `whoami` != "root" ]; then
su -c "$CONFIGURE_SCRIPT $0 $1"
else
$CONFIGURE_SCRIPT $0 $1
fi
$cat /usr/local/lib/.XF86Configure-4
cd /etc/X11/ #-*-shell-script-*-
rm -f XF86Config-4
cp XF86Config-4.real XF86Config-4
chmod +w XF86Config-4
patch < `basename $1`.diff
#boring stuff snipped.
$ls /etc/X11
XF86Config-4
XF86Config-4.orig
XF86Config-4_640x480.diff
XF86Config-4_800x600.diff
XF86Config-4_dualhead.diff
XF86Config-4_radeon.diff
...
XF86Config-4_xinerama.diff
$cat /etc/X11/XF86Config-4_radeon.diff
--- XF86Config-4 2003-11-15 11:07:10.000000000 +1100
+++ XF86Config-4_radeon 2003-11-15 11:06:29.000000000 +1100
@@ -8,4 +8,2 @@
Screen 0 "Screen0" 0 0
- Screen "Screen1" Below "Screen0"
- Option "Xinerama"
InputDevice "Keyboard0" "CoreKeyboard"
@@ -172,2 +172,3 @@
Option "EnablePageFlip" "true"
+ Option "SWcursor" "true"
#Option "NoAccel" # [<bool>]
> something I have also wanted is for ratpoison to be able to take over
> and retreat from my extra monitors so I can temporarily run a different
> window manager on just one head...
*CHORUS* Send us the patch!
-trent
- [RP] [PATCH] bugfix for multiple screen, John Meacham, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, Cameron Patrick, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, John Meacham, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, Cameron Patrick, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen,
twb <=
- Re: [RP] [PATCH] bugfix for multiple screen, Cameron Patrick, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, twb, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, Pasi Kallinen, 2004/02/23
- Re: [RP] [PATCH] bugfix for multiple screen, twb, 2004/02/23
Re: [RP] [PATCH] bugfix for multiple screen, Shawn Betts, 2004/02/27