Subscribe to RSS Subscribe to Comments

My Little Ubuntu Guide

ATI Crap!

I blew my system away again.

Running Compiz Fusion with the Official ATI drivers is extremely choppy and sluggish. The tradeoff just to have hibernate and suspend working, is definitely NOT worth it for me! I’m reverting to using XGL and FGLRX for now.

I’ll just have to wait the extra 12 seconds for my system to boot up. Boohoo.

Ah, now I have a fresh system, no bugs, no sluggishness, ready for a new year!

Happy New Years Everyone!

John

HOW TO: Install Ubuntu 7.10 Gutsy Gibbon on Dell Inspiron 6400 w/ Compiz, Hibernate, and Suspend Working Using Official ATI Drivers

UPDATE: Using the latest ATI driver (8.471 and above) you can now have everything working! This means your system will Hibernate, Suspend, run Compiz, etc…

Using this method eliminates the need for XGL since ATI utilizes AIGLX. Follow this guide to either fix your system or configure a new system.

Please give me feedback so we can get this how-to really clean and updated. Thanks!

References
http://wiki.cchtml.com/index.php/Ubuntu_Gutsy_Installation_Guide
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
http://combatwombat.7doves.com/index.php/2007/10/31/gutsy_effort_in_new_ati_driver
http://ubuntuforums.org/showthread.php?t=601310

Phase 1 - Clean Up
If you are not going from a fresh install of Gutsy do steps 1 through 3. If this is a fresh install, only do step 3:

1. Remove anything with “fglrx” in the name by opening System > Administration > Synaptic Package Manager and doing a search for fglrx. Only remove entries that have fglrx in the name! If it’s only in the description somewhere, leave it alone.

2. Remove anything with “XGL” in the name by opening System > Administration > Synaptic Package Manager and doing a search for XGL. Again, only remove entries that have XGL in their name.

3. Your system is now clean and you can proceed to installing the ATI drivers.

Phase 2 - Installing ATI Drivers
1. Make sure your sources.list file has all sources uncommented.
gksu gedit /etc/apt/sources.list

Here’s a snapshot of mine:
——————————————————————————————————
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse

#AUTOMATIX REPOS START

deb http://www.getautomatix.com/apt gutsy main
#AUTOMATIX REPOS END

#Screenlets Start
deb http://hendrik.kaju.pri.ee/ubuntu gutsy screenlets
#Screenlets End
——————————————————————————————————

2. Now update sources
sudo apt-get update

3. Next install necessary tools
sudo apt-get install build-essential fakeroot dh-make debhelper \
debconf libstdc++5 dkms

4. Now download the latest ATI driver from the following site to a temporary folder:
(You’ll need to create the folder. I recommend “temp” inside your home directory, then cd into it and do the following)
ATI Linux x86 Driver Download

5. Next, build the DEB files:
sudo bash ati-***.run --buildpkg Ubuntu/gutsy
Remember you must replace the *** above with the actual file name!

6. Now blacklist the old fglrx modules since the new driver will have it’s own that make Hibernate and Suspend work:
gksu gedit /etc/default/linux-restricted-modules-common
Once open, at the end of the file put fglrx in the quotes like this:
DISABLED_MODULES="fglrx"

7. Install the .deb files you just made:
sudo dpkg -i *.deb
Remember to replace the * with the file name of each .deb file created.

8. Setup your xorg.conf file:
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv

9. Reboot:
sudo shutdown -hr now

10. Now edit the xorg.conf file:
gksu gedit /etc/X11/xorg.conf

Comment out the following:
# Section “Extensions”
# Option “Composite” “0″
# EndSection

Here’s a snapshot of mine:
——————————————————————————————————
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Dell LCD"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Device"
Identifier "ATI X1400"
Driver "fglrx"
Option "XaaNoOffscreenPixmaps" "true"
Option "UseFastTLS" "2"
Option "VBERestore" "true"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DRI" "true"
Option "ColorTiling" "on"
Option "EnablePageFlip" "true"
Option "AccelMethod" "EXA"
Option "RenderAccel" "true"
Option "AGPMode" "4"
Option "AGPFastWrite" "on"
Option "KernelModuleParm" "agplock=0"
Option "UseInternalAGPGART" "no"
Option "EnablePrivateBackZ" "no"
Option "DisableGLXRootClipping" "true"
Option "AddARGBGLXVisuals" "true"
Option "AllowGLXWithComposite" "true"
Option "mtrr" "on
BusID "PCI:1:0:0"
EndSection

Section "DRI"
Mode 0666
EndSection

Section "ServerFlags"
Option "AIGLX" "on"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "ATI X1400"
Monitor "Dell LCD"
DefaultDepth 24
EndSection
——————————————————————————————————

Phase 3 - Installing Compiz
1. After ATI is running and you’ve rebooted, re-enable Compiz.

2. Next fix the /usr/bin/compiz file by adding fglrx to the Whitelist and removing the Blacklisted PCIID:
gksu gedit /usr/bin/compiz
Now locate the following sections and fix according to my entry below:
# Driver whitelist
WHITELIST="fglrx nvidia intel ati radeon i810"

# blacklist based on the pci ids
# BLACKLIST_PCIIDS="$T"
BLACKLIST_PCIIDS=""

3. Before doing the next step, check to see if it’s necessary by doing this:
sudo cp /etc/xdg/compiz/compiz-manager.ubuntu.dpkg-new /etc/xdg/compiz/compiz-manager.ubuntu
sudo shutdown -hr now

After your system reboots, enable Compiz. If it starts skip the last step. Otherwise you may need to do the following.

3-b (May Be Unnecessary). Before you enable Compiz you may need to edit the /usr/bin/compiz file and change some lines. If Compiz won’t start try changing the following lines in /usr/bin/compiz beginning at line 30:
(note: these three lines are not all together and shouldn’t be, they are just lumped together for this how to)

COMPIZ_BIN_PATH=”/usr/local/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/local/lib/compiz/”
COMPIZ_NAME=”compiz” # Final name for compiz (compiz.real)

Change these to look like this:

COMPIZ_BIN_PATH=”/usr/bin/” # For window decorators and compiz
PLUGIN_PATH=”/usr/lib/compiz/”
COMPIZ_NAME=”compiz.real” # Final name for compiz (compiz.real)

Now restart X and enable compiz. Everything should work!

That’s it!

Suspend + Hibernate Fixed?

Ok folks, good news!

I installed the latest driver from ATI yesterday and…wholla! I can Hibernate and Suspend!

No need to rollback the kernel!

So tonight I’ll be doing a fresh install and using the new ATI driver. I’ll then do some testing and create a bootable install disk from the results that is custom for all you ATI users!

Talk to you soon…

John

How To: Get Widgets Using Compiz in Ubuntu 7.10

There are some really nifty widgets available for linux users called Screenlets. Here’s a quick How To to install Screenlets in Ubuntu 7.10 (Gutsy) using Compiz Widget Plugin. If you don’t care to do it yourself using the How To, click below for an auto install script:

NOT AVAILABLE YET
NOTE: To use the script, after download do a “sudo chmod +x screenlets.sh” on it to make it executable. Then run it with “sudo ./screenlets”. After you’ve run the script open Compiz settings and enable

Below each line of code is entered seperately

1. Update Your Aptitude Sources
sudo su -c 'echo deb http://hendrik.kaju.pri.ee/ubuntu gutsy screenlets >> /etc/apt/sources.list'
wget http://hendrik.kaju.pri.ee/ubuntu/hendrikkaju.gpg -O- | sudo apt-key add -
sudo apt-get update

2. Install Screenlets
sudo apt-get install --assume-yes screenlets
mkdir ~/.config/Screenlets
mkdir ~/.config/autostart

3. Open your compiz Advanced Settings and enable the Regex Matching and Widget Layer plugins.

4. Open the Widget Layer plugin and go to the Behavior tab. Paste the following into the space provided and close the window:
name=Screenlet.py

5. Now you can enable various Screenlets under your menu’s Other section and hit the F9 key to see them and make them disappear.

Back from the Holidays

The “RUSH” of the holiday season has pretty much come to an end here. So it’s back to work for me, giving more great help to my fellow ubuntu enthusiasts!

I know many of you want a new Gutsy CD/DVD. However, that is not going to happen for a while. The main reason being that I’m not changing anything until the ATI issue is fixed on a stable level that I can then pass along. I’m not doing any of this rebuild the kernel crap.

My goal with this site is to help others learn how to do linux stuff and make it work for them and to make it easy.

So, I’m focusing on making your Ubuntu experience one that works and is enjoyable.

Following this little “I’m back” post, I’ll be posting several how to’s on some basic things that make Ubuntu work better and be more productive.

till then, happy holidays!

Based on FluidityTheme Redesigned by Kaushal Sheth Sponsored by Send Flowers