[TriLUG] Odd GNOME and X Problem
David A. Cafaro
dac at cafaro.net
Mon Oct 6 10:58:26 EDT 2003
I've got a Dell Latitude C610 that I use docked and undocked. I have
the following XF86Config file for while docked (I have different docks
and monitors for home and work). I wrote up a little scripted that
checks the MAC address of my eth1 card which changes depending if I'm
docked or not. That way my computer automaticaly switches X config
files for me:
Switching script: /etc/init.d/dockcheck
-------------------------------------------------------------------
# Check nic for MAC
mac=`/sbin/ifconfig eth1 | grep HWaddr | awk {'print $5'}`
case $mac in
xx:xx:xx:xx:xx:01 ) where=home;;
xx:xx:xx:xx:xx:02 ) where=work;;
xx:xx:xx:xx:xx:03 ) where=lap;;
* ) where=lap;;
esac
echo -n Setting up Laptop for: $where
# Change XF86Config file
if [ -a /etc/X11/XF86Config.$where ];
then
cp /etc/X11/XF86Config.$where /etc/X11/XF86Config;
else
cp /etc/X11/XF86Config.default /etc/X11/XF86Config;
fi
echo ......................................... [ Done ]
---------------------------------------------------------------------
And attacked is the config file that turns off the latop display and
sets up the right res for my monitor. I use RH9 with XFree 4.3. Also
screeen savers and DVD playback still only think it's 1400x1200 even
though everything else works at the full 1600x1200 of the dock monitor.
XF86Config:
---------------------------------------------------------------------
# XFree86 4 configuration
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "MouseManPlusPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "InputDevice"
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "NEC"
ModelName "Nec Multisync FE1250+"
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 160.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
VendorName "Videocard vendor"
BoardName "ATI Radeon Mobility M6"
VideoRam 16384
Option "AGPMode" "4"
Option "PanelOff" "true"
Option "CloneMode" "1600x1200"
Option "CloneHSync" "30-110"
Option "CloneVRefresh" "50-160"
Option "dpms"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x1200" "1400x1050" "1280x1024" "1280x960" "1152x864"
"1024x768"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
On Mon, 2003-10-06 at 10:12, John Beimler wrote:
> I have a Dell Latitude C400 laptop that I use both docked and undocked.
>
> I have two seperate XF86Config files that I use, one docked one
> undocked. The internal LCD can only do 1024x768, but when I am docked, I
> would like a much higher resolution on the 21" monitor.
>
> I can set the resolution much higher in the XF86Config, but it appears
> that GDM or GNOME limits the highest resolution to 1024x768.
>
> I've poked around at this for a while, but I can't figure it out. Any
> even vauge tips or pointers would be appreciated.
>
>
> Peace.
>
> john
--
David A. Cafaro <dac(at)cafaro.net>
Sys Admin to User: "You did what?!?"
More information about the TriLUG
mailing list