LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-10-2011, 09:58 AM   #1
anon02
Member
 
Registered: Aug 2011
Posts: 223

Rep: Reputation: Disabled
How would I set up a dual monitor setup in Xubuntu 11.10?


I have an Asus Eee PC 901 (Yes, I fixed it) with a resolution of 1024x600, and a larger LG Flatron w1946 with a resolution of 1360x768. Normally, when I have Ubuntu 11.10 on here (running Unity) I can set up a dual monitor set up, as long as both are within 2048x2048* (I think this is because of the graphics card), however I put Xubuntu on here as it seems to be faster and more configurable. I cannot find how to set up a dual monitor set up on here. I have tried Displays in Menu>Settings>Settings editor>Displays, however this only mirrors them at a resolution of 1360x768. I have tried Grandr, however it disables the 19" one whenever I leave the page where you set that, not allowing me to set it up.
I also tried Arandr, however this did not let me turn the larger monitor on. These are both Xrandr frontends. Is there a way I could set this up?

*I normally have them set up the netbook below the desktop, so it is 1360x1368, so would fit.
 
Old 12-11-2011, 03:58 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

Have you tried to run xrandr without any options to see how your monitor gets detected and what resolutions are available? If I run xrandr without any options I get this:
Code:
eric@ericvs-laptop ~ $ xrandr 
Screen 0: minimum 320 x 200, current 3046 x 1050, maximum 8192 x 8192
LVDS1 connected 1366x768+1680+282 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+
   1600x1200      60.0  
   1400x1050      60.0  
   1280x1024      75.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1360x768       59.8  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
DP1 disconnected (normal left inverted right x axis y axis)
and whenever I want to use Awesome I use these to set my monitors like I want:
Code:
xrandr --output LVDS1 --mode 1366x768
xrandr --output HDMI1 --mode 1680x1050 --above LVDS1
Hope it helps.

Kind regards,

Eric
 
Old 12-11-2011, 04:02 AM   #3
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hello,

Have you tried to run xrandr without any options to see how your monitor gets detected and what resolutions are available? If I run xrandr without any options I get this:
Code:
eric@ericvs-laptop ~ $ xrandr 
Screen 0: minimum 320 x 200, current 3046 x 1050, maximum 8192 x 8192
LVDS1 connected 1366x768+1680+282 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      60.0*+
   1600x1200      60.0  
   1400x1050      60.0  
   1280x1024      75.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1360x768       59.8  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
DP1 disconnected (normal left inverted right x axis y axis)
and whenever I want to use Awesome I use these to set my monitors like I want:
Code:
xrandr --output LVDS1 --mode 1366x768
xrandr --output HDMI1 --mode 1680x1050 --above LVDS1
Hope it helps.

Kind regards,

Eric
Ah, thanks. I will test this as soon as I can, as I am not near the larger screen right now.
 
Old 12-11-2011, 04:16 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

Great! Hope it works, looking forward to your feedback.

Kind regards,

Eric
 
Old 12-11-2011, 04:18 AM   #5
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Right, I did that, and now I have a nice working dual monitor set up. I just want to check, if I disconnect the larger monitor, will it just go back to the netbook one as the main one? Also, is there a way I can make it so every time the larger one is plugged in it sets it like this?
 
Old 12-11-2011, 04:24 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

Wow, that was fast! Well, glad you got it working. I'm not sure that if you disconnect the external monitor all settings will revert to the netbook alone. Just test it? Not sure about how to 'automate' the execution of the xrandr commands whenever you plugin the monitor. I suppose you can write a script to detect changes in the xrandr output and act consequently. Shouldn't be to difficult.

-- edit -- : This might be interesting too, using udev to monitor for changes and execute a script consequently. Probably more difficult to set up and get working but more dynamic solution. Have a look here.

Kind regards,

Eric

Last edited by EricTRA; 12-11-2011 at 04:26 AM.
 
Old 12-11-2011, 04:27 AM   #7
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hello,

Wow, that was fast! Well, glad you got it working. I'm not sure that if you disconnect the external monitor all settings will revert to the netbook alone. Just test it? Not sure about how to 'automate' the execution of the xrandr commands whenever you plugin the monitor. I suppose you can write a script to detect changes in the xrandr output and act consequently. Shouldn't be to difficult.

Kind regards,

Eric
I disconnected the monitor, and it just dumped all of the open windows (Thunderbird, Firefox, Terminal) on the netbook screen, however no panels. It seems like it still thinks the other monitor is there, as I can move the cursor up to where he other monitor would be. Is there a way I can use the xrandr commands to disable it?
 
Old 12-11-2011, 04:29 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

From the man page of xrandr:
Quote:
--auto For connected but disabled outputs, this will enable them using their preferred mode (or, something close to 96dpi if they have no preferred mode). For disconnected but enabled outputs, this will disable them.
So by using the --auto parameter it should automatically disable the disconnected but enabled outputs which is your case.

Kind regards,

Eric
 
Old 12-11-2011, 04:32 AM   #9
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hi,

From the man page of xrandr:

So by using the --auto parameter it should automatically disable the disconnected but enabled outputs which is your case.

Kind regards,

Eric
Ah, thanks. Works perfectly now.
 
Old 12-11-2011, 04:34 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hello,

Perfect! Glad you've found a solution. Most likely there are other ways but this is the closest to the 'core' I think, without using any front-ends or so. The only thing left to do if I'm not mistaking is automating the process, right?

Kind regards,

Eric
 
Old 12-11-2011, 04:38 AM   #11
anon02
Member
 
Registered: Aug 2011
Posts: 223

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hello,

Perfect! Glad you've found a solution. Most likely there are other ways but this is the closest to the 'core' I think, without using any front-ends or so. The only thing left to do if I'm not mistaking is automating the process, right?

Kind regards,

Eric
Automating the process, while nice, is not really needed. I have written two shell scripts which have the commands to set it up, and I placed them in /usr/bin, so all I have to type is 'enable_monitor' and 'disable_monitor' whenever I plug it in, and as I can get access to a terminal pretty quickly, it is not really much of a problem.
Thanks for your help though!
 
Old 12-11-2011, 04:39 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi,

Fantastic! If you consider your problem solved then please mark the thread as such. Have fun with Linux.

Kind regards,

Eric
 
  


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
Ubuntu/GNOME dual monitor setup: Preferring the primary monitor Doc CPU Linux - Desktop 2 09-05-2011 05:58 AM
[SOLVED] Nvidia dual monitor setup problems getting second monitor to work tradet Slackware 2 08-12-2011 07:38 AM
Dual-monitor set-up -- How can I rotate one monitor's view to portrait? qajaq Fedora 10 07-28-2009 12:15 AM
I have windows XP and want to install XUbuntu on a dual boot setup, how do I do it? Mac_09 Linux - Newbie 4 05-07-2008 05:57 PM
How to automatically disable dual monitor setup when only one monitor is present NielsKM Linux - Laptop and Netbook 1 01-01-2008 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:55 AM.

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