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.
Table of Contents
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:|
0 1 2 3 4 |
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:
|
0 1 2 |
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:
|
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
-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

Pingback: Fix Ubuntu 10.10 Suspend/Hibernate Not Working Bug | Code Central
Worked brilliantly for me on an HP dv6700 running Ubuntu 11.10
Thanks so much!
awesome, everything i needed, thanks man!
dell xps core i7, it didn't work :(
This was the only way to solve my problems.. Thank you! Old PC + Ubuntu 11.10
Check this out:
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)
Thank you very much for the hint, this solved my problem.
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!
Perfect program, easy to install, easy to use!
Great Post, I've been looking for something like this! Worked immediately, waaaay quicker than switching to my Windows OS just to watch movies on my TV. Thanks!!!!
Thanks a lot!!! :D
Thanks a lot! It was extremely useful but suddenly stopped working. I don't know why this is the case. I have an HP EliteBook 8440p and an external DELL screen. It is more than one year that I am running without problems but suddenly I got a:
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.
Same problem here, but I notice that after the recent update, I can use Fn + F7 (for my Toshiba) to switch monitors. Give that a try.
Many thanks, Cuong!
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!
This method worked on my Asus laptop, model "Eee PC 1015PN", under Ubuntu 12.04.
Thank you very much for the info!
Parfait et bien pratique pour projeter avec un "overhead projector"
notamment ...
Just brilliant ! M thanks
Thanks: My config.
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: 320×175, 320×200, 360×200, 320×240, 400×300, 416×312, 512×384, 640×350, 576×432, 640×400, 680×384, 720×400, 640×480, 720×450, 640×512, 700×525, 800×512, 840×525, 800×600, 960×540, 832×624, 1024×768, 1280×800
display DFP-1: Samsung S24B300
resolutions: 320×175, 320×200, 360×200, 320×240, 400×300, 416×312, 512×384, 640×350, 576×432, 640×400, 680×384, 720×400, 640×480, 720×450, 640×512, 720×480, 700×525, 800×512, 720×576, 840×525, 800×600, 960×540, 832×624, 960×600, 896×672, 928×696, 960×720, 1024×768, 1152×864, 1280×800, 1360×768, 1280×960, 1440×900, 1280×1024, 1600×900, 1400×1050, 1600×1024, 1680×1050, 1280×720, 1920×1080
I have Dell XPS 15 i7.I try everything to connect a DELL monitor through HDMI/DVI cable but it is not working.I still have black screen.Also i have installed disper.
The output of disper -l is
display default: default
resolutions: 1024×768, 800×600
Can anybody help me to fix the issue.Like how i can connect my monitor to my laptop.
Thanks in advance
on Dell XPS15 l502x this does not works either unfortunately, i'm checking it via bumblebeed
Pingback: Switching display quickly with disper | Sven Logan's Blog
Hey there,
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 Darrel
Didn't work for me. Running a Lenovo Thinkpad W520. Every time I type which selection I want to choose into terminal it says "command not found"
I found that I have to connect the HDMI cable before Ubuntu is booted up. By doing 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 I found it a bit inconvenient.
Try add the resolution after the command, like:
disper --secondary 800×600
it works here.
Hello colleagues, nice piece of writing and nice urging commented at
this place, I am in fact enjoying by these.
Take a look at my web site; http://www.161989up.com
Didn't work for me, on an Fujitsu UH572 with Intel graphics =(
Can i use this with Intel in ubuntu 14.04 in Hp elitebook 8440p?
Your Command
sudo add-apt-repository ppa:disper-dev/ppa
Not Working for me (FOLLOWING error).
Error reading https://launchpad.net/api/1.0/~disper-dev/+archive/ppa: EOF occurred in violation of protocol (_ssl.c:598)
tamal@tamal:~$ sudo add-apt-repository ppa:disper-dev/ppa
Cannot add PPA: 'ppa:disper-dev/ppa'.
Please check that the PPA name or format is correct.
tamal@tamal:~$ xrandr
Screen 0: minimum 320 × 200, current 1366 × 768, maximum 32767 × 32767
eDP1 connected primary 1366×768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1366×768 60.0*+ 40.0
1360×768 59.8 60.0
1024×768 60.0
800×600 60.3 56.2
640×480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
I Have hp notebook - 15-r119tu (Plz see the configaration)
My Built In Display, Mirror Display is not activated. So i can't change to External Display (Projectot/DLP/Monitor)
Detect Display only shows Built-In Display after connected with HDMI-VGA Converter.
I Need a permenent solution to display both Built-in and External Display
Google brought me here. Works great on Toshiba Satellite P100 and Linux Mint 17.1 - thanks a lot!
THANK U Man! It works very well!!!!
Hey,
Thought this would work but i was shit out of luck.
I've gone through a crazy amount of of linux versions trying to get this to work but no cigar.
I installed windows on my laptop to make sure the port actually works, and sure enough, it does.
So i went back to linux and boom, its back to not working. iv had many different external monitors, and not even 1 allows external display to work.
im stuck