LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2012, 07:51 PM   #1
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Rep: Reputation: 24
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.
 
Old 11-25-2012, 08:27 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
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"?
 
Old 11-26-2012, 03:59 AM   #3
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
I'm using puppy Linux 5.2.8. Is that what you mean by desktop? I'm not sure.
 
Old 11-26-2012, 08:47 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
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
 
Old 12-21-2015, 02:05 AM   #5
sharkmann1
LQ Newbie
 
Registered: Dec 2015
Location: US
Distribution: Arch mostly.
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 12-21-2015, 02:24 AM   #6
sharkmann1
LQ Newbie
 
Registered: Dec 2015
Location: US
Distribution: Arch mostly.
Posts: 6

Rep: Reputation: Disabled
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".
 
Old 12-21-2015, 07:02 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,519
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
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.
 
Old 12-22-2015, 03:01 PM   #8
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,013

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.
 
Old 12-23-2015, 09:52 AM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,941
Blog Entries: 1

Rep: Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833Reputation: 833
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*

Last edited by Shadow_7; 12-23-2015 at 09:53 AM.
 
Old 12-30-2015, 08:54 PM   #10
sharkmann1
LQ Newbie
 
Registered: Dec 2015
Location: US
Distribution: Arch mostly.
Posts: 6

Rep: Reputation: Disabled
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.

Last edited by sharkmann1; 12-31-2015 at 12:14 AM. Reason: Clarity. sorry for the edit.
 
Old 12-30-2015, 11:35 PM   #11
sharkmann1
LQ Newbie
 
Registered: Dec 2015
Location: US
Distribution: Arch mostly.
Posts: 6

Rep: Reputation: Disabled
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.

Last edited by sharkmann1; 12-30-2015 at 11:42 PM. Reason: Not clear as to general linux knowledge of readers so covering some extras.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor and Display system setting module bobbyshafter Linux - Newbie 3 06-25-2007 09:54 PM
Dual Monitor Display on two graphics cards jojotx0 Linux - Hardware 5 08-26-2005 08:28 PM
Uni-dual monitor display Decepticon22 Linux - Hardware 1 05-04-2005 08:24 PM
monitor resolutions are limited after setting up dual head display in fedora ZorlacBabelfish Linux - Newbie 0 03-11-2004 09:07 AM
Dual Monitor display???????HELP m_m Linux - Hardware 0 03-21-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration