LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up dual monitor display (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-dual-monitor-display-4175438698/)

rmcellig 11-25-2012 08:51 PM

Setting up dual monitor display
 
Whatcis the easiest way to set up a dual monitor display so that I can drag from one screen to the other. I am using Puppy Linux 5.2.8.

pixellany 11-25-2012 09:27 PM

What desktop are you using? Most of the major ones support dual monitors out of the box. Have you looked in your settings under "display"?

rmcellig 11-26-2012 04:59 AM

I'm using puppy Linux 5.2.8. Is that what you mean by desktop? I'm not sure.

pixellany 11-26-2012 09:47 AM

According the Distrowatch, Puppy uses either JWM or Openbox. I'm not familiar with either. The "big guys"--eg KDE, Gnome, XFCE all support dual monitors. You can configure xorg manually (pain in the ***), or perhaps try installing XFCE.

But first, this Google search has some promising hits:
https://www.google.com/search?q=pupp...ient=firefox-a

sharkmann1 12-21-2015 03:05 AM

Dual monitors and puppy linux
 
edit /etc/x11/xorg.conf at the end of Section "Monitor" adding the line
Code:

Option    "Position"  "1920 0"
where 1920 is the width of your primary monitor.

sharkmann1 12-21-2015 03:24 AM

Edit -- You may have to use xrandr to identify your monitors and specify the name of which one is moved by replacing Identifier "Monitor0" with the specific name of a monitor such as "DVI-0" or "DVI-1".

ondoho 12-21-2015 08:02 AM

openbox is definitely able to do that.

you should read openbox and xrandr documentation.

if you use jwm, you should clarify whether it has the ability.

joe_2000 12-22-2015 04:01 PM

I typically do it with a small script a long the lines of this:

Code:

#!/bin/bash
function list_devices(){
    xrandr | grep connected | cut -d' ' -f 1
}
function get_device(){
    index=$1
    list_devices | head -n $index | tail -n 1
}
function print_usage {
    printf "Usage: `basename $0` <mode>\nwhere:\n\tmode = (single|dual|left|right)\n";
    exit 0
}
if [ "x$1" == "x-h" ]; then
    printf "Finds the first two displays from xrandr output and sets them according to the MODE parameter.\n\n"
    print_usage
fi
MODE=$1
[ -z $MODE ] && print_usage
PRIMARY=$(get_device 1)
SECONDARY=$(get_device 2)
echo "Primary display device: $PRIMARY"
echo "Secondary display device: $SECONDARY"

if [ $MODE == "single" ];then
        xrandr  --output $PRIMARY --auto
elif [ "$MODE" == "left" ]; then
        xrandr  --output $SECONDARY --auto --output $PRIMARY --auto  --right-of $SECONDARY;
elif [ "$MODE" == "right" ]; then
        xrandr  --output $SECONDARY --auto --output $PRIMARY --auto  --left-of $SECONDARY;
elif [ "$MODE" == "dual" ]; then
        xrandr  --output $SECONDARY --auto --output $PRIMARY --auto  --same-as $SECONDARY;
else
        print_usage;
fi

Put this e.g. into $HOME/bin/displaymode and then type
Code:

displaymode left
or
Code:

displaymode right
depending on the order in which you'd like the screens to be arranged. You can then obviously map these commands to keyboard shortcuts.

Shadow_7 12-23-2015 10:52 AM

xrandr is one tool to do that. Except that nvidia doesn't integrate very well with xrandr, so it depends on your hardware. With nvidia-config for the proprietary driver to do this stuff. And amdcccle for ati/amd.

For my hp stream 11 laptop with intel graphics to stack vertically with an external 1080p display:
Code:

$ xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1848 --noprimary \
        --output eDP1 --mode 1366x768 --panning 1366x768+0+1080 --below HDMI1

(--above --left-of --right-of --same-as are options as well)

To bring it back to how I normally use it:
Code:

$ xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1080 --primary \
        --output eDP1 --mode 1366x768 --panning 1366x768+0+0 --same-as HDMI1
$ xbacklight -set 0

that's -set 0PERCENT but forum filters I guess... *sigh*

sharkmann1 12-30-2015 09:54 PM

I sometimes use arandr, a graphical frontend for xrandr, to position monitors, but I don't think puppy has it in their packages. Arandr is very handy if you have a laptop or other setup where the number and placement of monitors changes freqently.

sharkmann1 12-31-2015 12:35 AM

Dual Displays
 
If you do not have an Xorg.conf file, such as with LXLE, then you can just add the file /etc/x11/xorg.conf

Code:

Section "Monitor"
        Identifier  "DVI-0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
        #HorizSync    30-94
        VertRefresh  59-75
        #UseModes    "Modes0" #monitor0usemodes
        Option      "PreferredMode" "1920x1080"
        Option      "Position" "1920 0"

Edit it as needed by typing in the console "xrandr" and then reading the output and adjusting the file as needed. But, as always, make sure you can boot into another os or somehow undo your changes if this or any configuration change kills your system.


All times are GMT -5. The time now is 10:11 AM.