Posts tonen met het label 965. Alle posts tonen
Posts tonen met het label 965. Alle posts tonen

woensdag 5 december 2007

Install Xorg on Dell Latitude D630 with Intel GM965 (X3100) graphics chipset (CentOS 5.1)

Important

DISCLAIMER: You cannot held me responsible for any loss or data or inoperability of your system. You do this on your own responsibility.
NOTE: - I will place synonyms in brackets to help people find this topic and fix there graphics problems.
- If you are not an experienced user, please let someone who knows more about it do it for you. (feel free to ask for help to me if you want)


Introduction and explanation

I installed CentOS and the graphics worked out of the box. BUT !!! It looked like, even the resolution was set correctly (checked with xrandr) I still got blurry (vaporous, not sharp) graphics. It seemed like there was an ancient chipset in the notebook although it was pretty new.

During tests in different distros (distributions: Gentoo, Debian, ArchLinux) I have noticed that the standard installed (stable) drivers were not working like they should.
On ALL distros I got it fixed by installing the correct version of some packages:
X.org (xorg): >= v1.3.0 (cat /var/log/Xorg.0.log | grep Window)
i810: >= v2.0.0 (cat /var/log/Xorg.0.log | grep intel)
or (cat /var/log/Xorg.0.log | grep i810)
libdrm: >= v2.3.0 (ls /usr/lib | grep libdrm)
or (ls /usr/lib64 | grep libdrm)
Software, minimum version, Command to show version


You might think, ok, just update these packages and it is done. In Gentoo, Fedora 7, Debian and ArchLinux this is true.
But CentOS introduces a problem: these versions are not in the repos.
Because CentOS is based on RedHat/Fedora I had the idea to install the RPM for the Fedora distribution. This was a success.
Let's see


How I did it

I visited rpm.pbone.net. It is a search engine for RPM packages.
I searched for the Xorg package with version 1.3 or higher for Fedora (Fedora 7; I took 7 because it are testing drivers, in 8 there are development drivers).
I downloaded it and tried to install it:
rpm --install xorg-x11-server-Xorg-*

This gives alot of messages about conflicts. This is very normal because the old version is still there.
Removing it will make it possible to install the new version (maybe there is a nicer way of doing this, let me know if so)
rpm remove xorg-x11-server-Xorg

This asked me if it is OK to remove some other packages as well (total of 32). Confirm.

Lets retry installing it
rpm --install xorg-x11-server-Xorg-*

This time I get a warning about some unsolved dependencies.
Go download the packages for the same Fedora version that are mentioned by the output.
Now lets install them:
rpm --install xorg-x11-server-Xorg-1.3.0.0-9.fc7.x86_64.rpm xorg-x11-drv-evdev-1.1.2-3.fc7.x86_64.rpm xorg-x11-drv-keyboard-1.1.0-3.fc7.x86_64.rpm xorg-x11-drv-mouse-1.2.1-2.fc7.x86_64.rpm xorg-x11-drv-vesa-1.3.0-6.fc7.x86_64.rpm xorg-x11-drv-void-1.1.0-4.fc7.x86_64.rpm libdrm-2.3.0-5.fc7.x86_64.rpm

At last we have to install the new intel(xorg-x11-drv-i810 package) driver. Be the version is above 2.0.0.
rpm --install xorg-x11-drv-i810-2.0.0-4.fc7.x86_64.rpm

(Be sure you have printed this out or on another screen.) Now press CTRL-ALT-BACKSPACE. Xorg will not be able to start anymore. Type CTRL-ALT-F1.
Log in as the root user.

Let Xorg generate the basic config file:
X -configure

Only one thing to do :D: Copying the config to the correct place.
cp /root/xorg.conf.new /etc/X11/xorg.conf


Testing
Go to runlevel 2 and back to runlevel 5 (or restart by typing shutdown -r now or by CTRL-ALT-DELETE)
init 2; init 5

If this gives problems, type them in seperately.


I noticed after the next login (and also when removing the xorg server) that KDE was not installed anymore on the system.
Just reinstall it:
yum install kdebase


Have fun!

maandag 3 december 2007

Getting Compiz Fusion to work on Dell Latitude D630 with AIGLX (965GM; X3100)

Preparing the system

Preparing Xorg:

The important parts are in bold.
The bold parts that begin with a # are options you can experiment it... but this was the way I got my Compiz Fusion working.
PS: be sure you have a backup.


Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb,us,be"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

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

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

Section "Device"
Identifier "Generic Video Card"
Driver "intel"
# Option "AllowGLXWithComposite" "true"
Option "XAANoOffscreenPixmaps" "true"
# Option "AccelMethod" "exa"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
# Option "AddARGBGLXVisuals" "true"
# Option "DisableGLXRootClipping" "true"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
Option "aiglx" "true"
EndSection

Section "Module"
Load "glx"
Load "dbe"
Load "dri"
Load "freetype"
Load "extmod"
EndSection

Section "Extensions"
Option "Composite" "Enable"
EndSection

Section "DRI"
Mode 0660
EndSection

After doing these changes you need to restart your Xorg.
This is accomplished with the key combination CTRL-ALT-BACKSPACE.


Preparing for Compiz Fusion installation:

First we need to add a repository to aptitude.
Change the line according to what release you have, (go to the directory for your release in your webbrowser and copy that location) mine was Lenny.
Add the following line to /etc/apt/sources.list:

deb http://download.tuxfamily.org/shames/debian-lenny/desktopfx/stable/ ./


And add the certificat to prevent an apt warning.
wget http://download.tuxfamily.org/shames/A42A6CF5.gpg -O- | apt-key add -

And eventually update the package database:
apt-get update


Installing and test-run:

Lets now install Compiz Fusion :D :
apt-get install compiz-fusion-kde

And Emerald which has some nice themes:
apt-get install emerald


To run it, in a terminal you type:
emerald --replace

If you loose the window decorations you should put focus on your shell and type
kwin --replace
or just
kwin


Starting Compiz Fusion automatically at logon:

Create the following file with your favorite file editor (mine is VIM):
vi ~/.kde/Autostart/compiz.desktop

In this file you put this:

[Desktop Entry]
Encoding=UTF-8
Exec=compiz –replace & emerald &
GenericName[en_US]=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-KDE-autostart-after=kdesktop


THATS IT :D

In the beginning I had some problems with shadows which where shown as white borders around menus.
If I recall correctly, I turned of the Menu shadows in the KDE Control Center.


Powered by ScribeFire.