Enabling Dual Monitor Support?

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Krahazik
White ninja
White ninja
Posts: 4
Joined: 14 Nov 2015, 17:29
Distribution: Porteus 3.1
Location: US

Enabling Dual Monitor Support?

Post#1 by Krahazik » 08 Dec 2015, 19:24

I have Porteus installed to the HDD of my netbook which has a VGA port for displaying on a 2nd monitor.

I am unable to find the video control panel or controls for setting resolution, enabling dual monitors, extended desktop, etc.

Is there a way to set Porteus to automatically detect when a monitor is plugged into the VGA port and extend the desktop to the 2nd monitor?

beny
Full of knowledge
Full of knowledge
Posts: 723
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Enabling Dual Monitor Support?

Post#2 by beny » 08 Dec 2015, 20:13

if you have the nvidia driver is simple via nvidia-setting for other video driver i think you need xrandr ,but i am not skilled on this.

User avatar
francois
Contributor
Contributor
Posts: 4942
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Enabling Dual Monitor Support?

Post#3 by francois » 09 Dec 2015, 02:05

Telling us which desktop you use would help. Usually kde should find it automatically. For the other desktop please provide the output of xrandr command while your second display is plugged to your linux box. For example, mine is:

Code: Select all

root@porteus:/mnt# xrandr
Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 32767 x 32767
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 353mm x 198mm
   1366x768       60.0*+
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1920x1080+1366+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0  
   1280x720       60.0  
   1152x720       60.0  
   1024x768       75.1     60.0  
   832x624        74.6  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
root@porteus:/mnt#
You will need a script resembling mine, but built according to your screen setup. My benq.sh script is:

Code: Select all

xrandr --output LVDS1 --mode 1366x768 --output VGA1 --mode 1920x1080 --right-of LVDS1
Then you could put the script or the equivalent command line into the autostart folder. What is your desktop type and what is the output of xrandr?
Voltaire: Le mieux est l'ennemi du bien.

Krahazik
White ninja
White ninja
Posts: 4
Joined: 14 Nov 2015, 17:29
Distribution: Porteus 3.1
Location: US

Re: Enabling Dual Monitor Support?

Post#4 by Krahazik » 10 Dec 2015, 18:00

When I rebooted the netbook it started using the 2nd display.

I am using the LXDe environment.

The netbook has an intel video chipset.

Code: Select all

guest@porteus:~$ xrandr
Screen 0: minimum 320 x 200, current 1360 x 1368, maximum 32767 x 32767
LVDS1 connected primary 1024x600+0+768 (normal left inverted right x axis y axis) 222mm x 125mm
   1024x600       60.0*+
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1360x768+0+0 (normal left inverted right x axis y axis) 16mm x 9mm
   1360x768       60.0*+
   1280x768       60.0  
   1024x768       60.0  
   800x600        60.3  
   640x480        60.0
I created a new shell script (ending in .sh) using the above mentioned code adjusted for my setup.
Would this be correct? Set the file to executable?

Code: Select all

xrandr --output LVDS1 --mode 1024x600 --output VGA1 --mode 1360x760 --above-of LVDS1
If I set the height on my netbook's screen (LVDS1) to 768 instead of 600 (native), could that force the display to that height?
The native resolution of 1024x600 is a bit of an oddball resolution and has caused occasional issues with windows extending a hair below the edge of my screen hiding buttons.

User avatar
francois
Contributor
Contributor
Posts: 4942
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Enabling Dual Monitor Support?

Post#5 by francois » 10 Dec 2015, 18:12

So you understood that you have to plug the second display before booting into porteus. I understand that your problem is solved?

There is no lxde edition for porteus actually, only lxqt. Please confirm the typo error.

In the event that you would like to set your second display, here is the command line you could use to set the second display to 1280x768, choosen amongst the possible settings provided by your xrandr output, just try it:

Code: Select all

xrandr --output LVDS1 --mode 1024x600 --output VGA1 --mode 1280x768 --right-of LVDS1
For the maximum resolution 1360x768, it would be:

Code: Select all

xrandr --output LVDS1 --mode 1024x600 --output VGA1 --mode 1360x768 --right-of LVDS1
Turn them into a script.
Voltaire: Le mieux est l'ennemi du bien.

Post Reply