Oct
30

Ubuntu Gutsy Upgrade - Dual Head Monitors Now Working!

Ubuntu       Share This    Trackback

Yes, after much playing with XORG.CONF in Feisty, and giving up, I have discovered that with Gutsy you can have Dual Head Monitors working in No Time. All of this information comes from various sites I have seen on Google, So I can not link back to them all as it took 20-30 sites to finally make this work for me. Anyway Lets Get This Show on The Road!

xrandr Is your friend

In the Older X Server, your only chance at getting dual monitors was through heavy modifying your XORG.CONF file, which I try’d afew times and never got more then a cloned desktop using my Intel Chipset.
After the upgrade to Gutsy, I figured I would try again for my Extended Monitor Delights and found that X has given us a new command line tool with Intel’s new Driver. Let me explain how I Set mine up

Always Backup Conf Files

Ok First, Make a Backup of your working xorg.conf file like

sudo cp /etc/X11/xorg.conf /etc/X11/xorg_backup.conf

With Gutsy Comes a new Intel Graphics Driver!

Ok this will give us a backup point just incase. Now Let’s reconfigure our XORG server and use the new Intel driver which i noticed supported my 1440×900 resolution natively and worked much better then the old i810 Driver. So Unplug your External Monitor so you just have your Normal Display on and Reconfigure X. You must use the Intel Driver instead of the i810 driver

sudo dpkg-reconfigure xserver-xorg

Ok, now that we have a new XORG.CONF file, let’s open it and add Virtual Size to the Display area

gksudo gedit /etc/X11/xorg.conf

Locate the Display Section and Add the Following
Please Note : This is my Screen Settings Do Not Copy Paste the Entire thing, You just need the Virtual Size

Section "Screen"
	Identifier	"Default Screen"
	Device		"Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1440x900"
#		Virtual         3048 3048    # Just Add this To Your Display
		Virtual        2048 2048    # Anymore then This will Break Compiz
	EndSubSection
EndSection

Let’s Find What Monitors are Being Seen

Now in Terminal Type the Following to Verify your Monitors are there

xrandr

Take note of what it calls your Monitors, Your External is Normally TV or VGA and your Laptop LCD is normally LVDS

Let’s Make It Work

Now to Try To Make it All Work. That should turn on Both Monitors, The only main problem I found is your External will be your Main Monitor and for me I have to Drag the Top Menu bar back to the other
screen after I do this.

xrandr --output VGA --right-of LVDS --auto

If you get a error from this, then you will have to adjust your Virtual Screensize in XORG.Conf, Personally my Resolutions were so High I had to go above the 2048 Values and it broke Compiz.

Please note you will have to change the Names of the Monitors from VGA and LVDS to what names you got from running xrandr

The Best Part turning off the Extra Display

Now the Best Part of this is to Turn of this External Display all you need to do is Issue the Following Command

xrandr --output VGA --off

Please Note : I have play’d with this all night and finally decided with my current monitor resolutions I could not use this and keep Compiz Running. With the 2048×2048 Desktop Limit
but it was fun to play with and if you don’t want to use Compiz this is a execellent addition to your desktop!

Oct
29

Ubuntu Gutsy Upgrade - Part 2 - Fixing Compiz

Ubuntu       Share This    Trackback

After Upgrading to Gutsy

After the Upgrade, to Ubuntu Gutsy 7.10 I found the following things wrong, broken or just missing.

Things I have fixed already.

  • Emerald Theme Manager Removed
  • Avant Window Navigator Was Removed
  • Compiz-Fusion Setting Manager Does Not Work with KDE
  • KDE-Core was missing??

Things left for me to Fix.

  • Fonts are Out of Whack, They Appear very Bold and Large
  • More stuff I havent checked for yet

Ok those were the Main things I noticed missing from my Upgrade to Gutsy, Compiz worked but I could not add/change it’s settings, AWN was removed due my repository list, Emerald was changed and needed to be removed and KDE-Core I Don’t know why/where it went but I reinstalled it. So far I have fixed some of this stuff, and will update this post later when i fix the rest. Here is the Steps I Took to Solve my Problems.

Replacing Emerald

Well to Replace Emerald-Theme Manager I just did a Simple

sudo apt-get install emerald

And that seemed to work, I just had to reselect the theme I used before and everything was back to normal.

ReInstalling AWN

As I Like the AWN Mac OSX Looking Dock-Bar for my Task bar, I needed it apparently, when I upgraded I lost the repository for it so I found we just needed
to upgrade our sources.list with the following and get the new Key

Add Below to /etc/apt/sources.list

sudo nano /etc/apt/sources.list
 
OR use Gedit if you like the GUI
 
gksudo gedit /etc/apt/sources.list

Add the following to the above File

deb http://download.tuxfamily.org/syzygy42 gutsy avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42 gutsy avant-window-navigator

Now to add the GPC Key to verify this repository Enter the following in your Terminal

wget http://download.tuxfamily.org/syzygy42/reacocard.asc
sudo apt-key add reacocard.asc
rm reacocard.asc
sudo apt-get update
 
sudo apt-get install avant-window-navigator-bzr awn-core-applets-bzr

Ok and now you have AWN Back in place and working good.

KDE-Core is Missing?

Since I installed originally a Ubuntu Desktop with GNOME, then later changed/added KDE as my Window Manager, after this upgrade it appears my KDE packages are gone. Anyway, I just did this to get them back. not sure where they went

sudo apt-get install kde-core

Removed Abunch of Software

Through Synaptic I Removed abunch of “Local:Obsolete” Applications that were installed before, such as Compiz, Compiz-Fusion Plugins, KiboDocker, Kooldock, mostly stuff I don’t use but I figured removing Compiz and reinstalling might help in making it work properly.

Please Note : I Removed these Completely with Config Files

Fixing Compiz-Fusion Manager

Well apparently, after compiling afew different programs from sources, and having a older install of compiz-fusion before the upgrade. My Compiz-Fusion-Setting-Manager
would exit with strange error methods. After much looking into the matter, I found the problem was in fact older library’s or packages where still in place and being used.
Take a Look in your /usr/local/lib path for them

cd /usr/local/lib
ls

Personally I created a backup directory and moved all these files into it for later sorting but do this

mkdir temp
mv *.* temp
mv * temp
mv .* temp
 
ldconfig

Afterwards You may have to reboot or restart X server ( Control-Alt-Delete ) and you should be able to run the Compiz-Fusion-Settings-Manager now
if you can’t find it in the menu, then press Alt-F2 and type ‘ccsm’ and it will open.

So that fixed my Compiz-Control-Center and we can now login and play with our settings.

Please Note : If you are running Beryl you must Exit it before Compiz-Fuzion will work properly.

Remove Beryl from Startup

Well now since I still had Beryl installed on my Desktop before the upgrade, apparently I had to stop Beryl and Restart Compiz-Fusion to make it work.
If you don’t kill Beryl from running your Fusion effects will not work properly.

sudo killall beryl
compiz --replace

Add Compiz To Startup Programs

Now that Compiz-Fusion is working perfectly I want it to start automaticly so I added a quick line to make it happen, enter the following code into Terminal

echo "compiz --replace" > ~/.kde/Autostart/startcompiz.sh 
chmod +x ~/.kde/Autostart/startcompiz.sh

NOTE : This is for KDE users only.

The Compiz Management Icon

Without Beryl I missed my Management Icon, so I found one for Compiz already in a deb package at this forum post.

After installing the above Icon, add the following to your startup commands so it start’s up automaticly.

echo "fusion-icon" > ~/.kde/Autostart/startcompiz-icon.sh 
chmod +x ~/.kde/Autostart/startcompiz-icon.sh

Now your compiz effects will be working just as you had set them. I personally just un-installed Beyl, through synaptic to get rid of it.
‘If I need to give a Startup Command for this Just make a comment and I will add it

Firefox Font Fix

Well After abit of googling to no avail to figure out why my fonts didn’t look the same as they do in Feisty, I Did find this post on the Ubuntu Forums, which gives a good quick Firefox tip to
Help the Problem in Firefox Atleast.

Basicly, open Firefox, in the Address Bar Copy Paste the Following Line

about:config

Then in the next line, Copy/Paste this line and Search for it then Change the Following Information

layout.css.dpi

Change this value from -1 to 0 and Restart Firefox.

top
Close
E-mail It