[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: second display



Hi,

On 2012-01-31 21:26:22 +1100, Pastor ALexander wrote:
> I am lost on the site,
> installing to my laptop the 42inch sharp tv screen comes up in 1024
> instead of 1360

I had a similar problem a few weeks ago. You might want to do
something like that. Note: this is just an example; you need
to adapt it to your config and your own preferences. Typing
"xrandr" with no arguments will give you information about the
outputs.

if grep -q 'Monitor name: VX2435wm' /var/log/Xorg.${DISPLAY#:}.log; then
  xrandr --fb 1920x1200 --output VGA-1 --mode 1920x1200 \
                        --output LVDS-1 --panning 1920x1200 && \
    xrandr --output LVDS-1 --off
fi

It does the following. If my monitor is connected (this is detected
by looking at the Xorg log file), the output is switched to its
maximum resolution and the screen of my laptop (which I usually
don't need) is switched off. I can re-enable the screen of my laptop
with: xrandr --output LVDS-1 --auto

After testing it, I've put the above code in my .xsession file so that
it is run automatically when I log in.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: