Re: different resolutions in virtual desktop

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

 



On Tuesday 27 April 2010 16:32:25 mierdatutis mi wrote:

Hi!

> The problem is that I have a resolution of 1440x900 60hz in my monitor
> lcd (native resolution of my monitor LCD), and when I see in the tv is
> too small and I cant see very well the letters.  My main idea was that
> in a virtual desktop have a 1440x900 resolution and in other virtual
> desktop 1024x780 but now I know that is impossible.

I think "virtual desktop" is the wrong term here.  Those are the things
you can configure using System Settings > Desktop > Multiple Desktops.

You are talking about connected monitors, which is called output in X
speech.  Those can be configured in System Settings > Display.

But you are right.  If you want having both outputs show exactly the
same stuff (cloning), then they need to have the same resolution set,
else the output with smaller resolution will only show a part of the
contents.

> Do you help me to can change the resolution from a bash script?

Here's a small ZSH script for configuring my monitors.  By default, it
activates a second monitor if available and puts it to the preferred
resolution.  Its viewport will be placed right of my normal laptop
display (LVDS1).

It shouldn't be to hard to port it to bash.  Maybe there's no need to
change anything...

--8<---------------cut here---------------start------------->8---
#!/bin/zsh

ORIENTATION=${argv[1]}
if [[ -z ${ORIENTATION} ]]; then
    ORIENTATION='--right-of'
fi

SECOND_OUTPUT=`xrandr \
    | egrep "[[:alnum:]]+ connected" \
    | grep --invert-match "LVDS1" \
    | cut --d " " -f1`

# LVDS is my Laptop display
xrandr --output LVDS1 --auto

if [[ -n ${SECOND_OUTPUT} ]]
then
    xrandr --output ${SECOND_OUTPUT} --auto
    xrandr --output ${SECOND_OUTPUT} ${ORIENTATION} LVDS1
    echo "Enabled second output ${SECOND_OUTPUT} ${ORIENTATION} of laptop LCD."
else
    echo "There's no second monitor attached."
fi

xrandr --auto
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux