[ltp] xrandr output switching and debian (see bug #456778)

Csillag Tamas linux-thinkpad@linux-thinkpad.org
Thu, 31 Jan 2008 20:17:14 +0100


On Tue, Jan 29, 2008 at 10:08:34AM -0500, Carlos Moffat wrote:
> 
> On Tue, 2008-01-29 at 10:27 +0100, Csillag Tamas wrote:
> > hi,
> > 
> > I am using Debian unstable on my Thinkpad X40.
> > 
> > I remember that I was able to switch to the external VGA output with the
> > right Fn+Hotkey combination.
> > 
> > That functionality is gone. I was using: reboot the machine with the VGA
> > connected as a workaround (it is very inconvinient). Then I discovered
> > xrandr on debian wiki http://wiki.debian.org/XStrikeForce/HowToRandR12.
> > Now with simple commands I can switch outputs:
> > 
... xrandr ....
> 
> 
> Hi Cstamas,
> 
> I use a little script to do this, which I modified from a code I found
> somewhere else. I've been too lazy to hook it to any Hotkey:
> 
... code snipplett omitted ...
> 
> I use this code doing 'xmode dual' when I run a external monitor or
> 'xmode single' when... well, it's pretty obvious. 
> 
> I use gnome, so the code also changes the dpi value, and the xvattr
> makes sure the video overlay is in the right screen (although I haven't
> tried whether this is right or not). Of course, you'll need to change
> the 
> 
> Whatever desktop you're using, it is useful to have a keyboard shortcut
> to 'xrandr --auto'. I use 'Ctrl-Alt-s', which ensures that if something
> goes wrong with the screen detection, I can always get my screen back.
> 
> Hope this helps.
> Carlos

Dear Carlos,

Thanks for your input. It is really helpfull as Xorg does not tries to
detect the right dpi at all! So I used the fixups you have on my desktop
as well where I do not have multiple heads at all.
(However I do not know how to do the dpi correction automatically...
maybe it is not a good idea to do it automatically at all?)

I will try to make some improovements, make it to a hotkey script and
attach it to the bug report.

Thanks,
  cstamas
-- 
CSILLAG Tamas (cstamas) - http://digitus.itk.ppke.hu/~cstamas

"A mouse is a device used to point at the xterm you want to type in"
                -- A.S.R.