l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
April 21: Google Glass
Next Installfest:
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2009 Jun 23 12:40

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] help with xorg.conf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] help with xorg.conf

>>>>> On Tue, 23 Jun 2009 02:42:19 -0700, Thomas Johnston <trjohnston@ucdavis.edu> said:

TJ> The problem I am having now, is that I can no longer get it to work
TJ> (well) with my external monitor at home now.  I have spent many hours
TJ> trying to get functionality restored.  It seems that the more I try to
TJ> get things to work, the worse the problem gets.  The advice of
TJ> websites such as:

The more recent versions of X seem to have you needing to use xrandr to
do external monitor configuration.

I believe this is what more recent versions of the gnome and KDE configs
do too.  I long time ago I had my multiple screens configured in my
xorg.conf file, but no longer because that stopped working as of "um, a
few revisions of fedora ago".

So now I do this:

   Section "Module"
     Load  "randr"

   Section "Screen"
      SubSection "Display"
                   Virtual   2704 1050

I have multiple monitors listed and multiple screens defined too, but I
actually don't think they do anything.

Instead I have a dynamic run-time xinit script in
/etc/X11/xinit/xinitrc.d/45-custom_xrandr-settings.sh that does this:


  xrandr |grep VGA-0 | grep " connected "
  if [ $? -eq 0 ]; then
      xrandr --output VGA-0 --off
      xrandr --output VGA-0 --auto --pos 0x0 --output LVDS --auto --pos 1280x140
      #xrandr --output VGA-0 --auto --pos 0x0 --output LVDS --auto --pos 1680x0

Which basically detects if a VGA is attached to my laptop and if so then
runs xrandr (before the rest of KDE gets going) as I log in.  The --pos
line is based on where my laptop sits to the the right and slightly down
from the larger LCD.  One line is commented out because I switch back
and forth sometimes between different external monitors.

This all works, but I'd hardly call it ideal.  The good news is that it
works perfectly till I need to change something.  If I log in without a
monitor connected, I get a single screen.  If I log in with a monitor
connected I get a dual-head.  Yay!  Until I attach to a monitor of a
different size.  Then booooo....

\ Wes Hardaker                           http://pontifications.hardakers.net /
 \_____ "In the bathtub of history the truth is harder to hold than ________/
       \_______ the soap, and much more difficult to find." _______/
               \_________ -- Terry Pratchett ______________/
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.