Switch to External Monitor Connected via HDMI/VGA port in Ubuntu
This is more like part II of the article I posted earlier about my laptop issues in Ubuntu. I finally managed to get the HDMI (possibly VGA) port working. Keep reading if you are interested.
I found that I have to connect the HDMI cable before Ubuntu is booted up. If I do that, I am able to see the external monitor in Nvidia X Server Setting window. So either connect the cable before starting the OS, or connect the cable and then restart the OS will both work. This works well, but it's rather inconvenient. I want this to be done without restarting.
Disper Package
After some more researching, I found a tool called "disper", which does exactly what I need. After installing the tool, and run "disper -l", the external monitor instantly shows up in the Nvidia X Server Setting window. I then can set up dual monitor, change resolution, etc. So here's how to install it to Ubuntu 10.10:sudo add-apt-repository ppa:disper-dev/ppa sudo apt-get update sudo apt-get install disper
Now you can run disper command to detect the external display. Plug the HDMI cable (VGA port should work too, but I haven't tested it) in, run:
disper -l
Open Nvidia X Server Setting, you should see the external display is added. Configure TwinView should get you a dual monitor set up for your laptop. That's it.
Run "man disper" to see what options you have. Here are some very useful ones:
-l, --list
list the attached displays
-s, --single
only enable the primary display
-S, --secondary
only enable the secondary display
-c, --clone
clone displays
-e, --extend
extend displays
I don't even bother to bind the command to a hot key, since I don't mind to type in the terminal. Now all the hardware issues of Asus N73JQ are solved, cheers! Again, if you want to post your laptop model + OS if this has worked for you, you are welcome to.
Related Links
Previous PostDisper homepage
Disper Lauchpad page
Leave a Comment
If you would like to make a comment, please fill out the form below.
To my beloved readers:
Please note that you may freely post comments here, but I will most likely not be able to reply to most them due to my current availability.

Thanks so much!
http://www.vknuckles.net/use-disper-and-a-bash-script-to-change-resolution-when-docking-and-undocking/
Maybe this script can help you out (also uses disper)
Maybe you want to have a look at the "cycle-stage"-option of disper: just adding a launcher with
disper --cycle-stages='-s : -S' --cycle
will enable you to switch between primary and secondary display with a simple button press...
Anyway, thanks again!
disper -e
could not switch to metamode 51: resolution not found
Any idea? I am running Ubuntu 10.04 LTS and maybe it was one of the recent updates that screwed this... I tried reinstalling disper but no success.
If I run:
disper -l
I obtain:
Any help would be appreciated!
Cheers,
Xavi.
I gave it a try and it works! Actually, in my laptop is Fn+F4.
So it seems that after the recent update, the hot key combination works and the disper doesn't. Well, now I don't need it anymore if the other is working.
Thanks for the tip!
Thank you very much for the info!
notamment ...
Just brilliant ! M thanks
Running Ubuntu 11.10 on Macbook 6,1 and Samsung SyncMaster 24 (Mini DVI to HDMI)
disper -e extended my laptop to my monitor. However, I am unable to switch positions between Notebook and monitor.
Any pointers
Heres output:
disper -l
display DFP-0: Apple
resolutions: 320x175, 320x200, 360x200, 320x240, 400x300, 416x312, 512x384, 640x350, 576x432, 640x400, 680x384, 720x400, 640x480, 720x450, 640x512, 700x525, 800x512, 840x525, 800x600, 960x540, 832x624, 1024x768, 1280x800
display DFP-1: Samsung S24B300
resolutions: 320x175, 320x200, 360x200, 320x240, 400x300, 416x312, 512x384, 640x350, 576x432, 640x400, 680x384, 720x400, 640x480, 720x450, 640x512, 720x480, 700x525, 800x512, 720x576, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 928x696, 960x720, 1024x768, 1152x864, 1280x800, 1360x768, 1280x960, 1440x900, 1280x1024, 1600x900, 1400x1050, 1600x1024, 1680x1050, 1280x720, 1920x1080
The output of disper -l is
display default: default
resolutions: 1024x768, 800x600
Can anybody help me to fix the issue.Like how i can connect my monitor to my laptop.
Thanks in advance
Someone in my Facebook group shared this website with
us so I came to give it a look. I'm loving the content! Terrific blog
To access even more great information check out my web-site on <a href="http://almesryoon.com/forum/entry.php?8852-Planning-Your-UK-Pension" rel="nofollow">Darrel</a>