If you're having trouble getting dual monitors to work on the latest version of Kubuntu (Currently 11.10), this guide will attempt to save your sanity!
Installing Dual Monitors on Kubuntu 11.10
Make sure you have the latest Nvidia drivers. To do this, Navigate to "Additional Drivers" via Applications => System => Additional Drivers.
Now execute the following commands in your terminal in order to get disper
, a nice utility that saves us from the headache of configuring via Nvidia-Settings.
$ sudo add-apt-repository ppa:disper-dev/ppa
$ sudo add-apt-repository ppa:nmellegard/disper-indicator-ppa
$ sudo apt-get update
$ sudo apt-get install disper disper-indicator
(Credit to Joey Conway
Verify that disper works by executing the following in your terminal:
$ disper -e
This should extend your monitors, giving you the desired functionality. This is great, except for currently we'd have to do this every single time we boot up Kubuntu.
Activate Disper on Startup
My first instinct, being slightly familiar with Ubuntu, was to create a startup script in /etc/init.d
. This, however, didn't seem to work. Instead of creating a script in the init.d directory, we'll create the script in a Kubuntu-specific directory called Autostart.
First, navigate to the Autostart directory:
$ cd ~/.kde/Autostart
Now using your favorite text editor, create a script called dual-monitors
$ vim dual-monitors
Paste in the following:
Save the file and quit the text editor. We now need to make the file executable or it will just be ignored by Kubuntu on startup.
$ chmod +x dual-monitors
To verify the script works, we first need to get out of our current dual screen mode to make sure the script correctly puts us back in. Thus, we use disper to force only the primary display to appear.
$ disper -s
Your 2nd monitor should deactivate. Now, while we're still in the ~/.kde/Autotest directory, execute the following:
If this causes the monitors to go back to dual-screen mode, then the script works! T
Now you have Dual Monitor Suuport!
Go ahead and restart your computer, and you should find that Kubuntu starts with your dual monitors functioning correctly.
March 03, 2012