Tuesday, January 22, 2008

Dude, where's my xorg.conf?

When I updated one of my machines to Hardy recently, I found that, although everything worked out of the box, scrolling in Firefox was not as smooth as it should be. Some investigation led me to discover that the Intel 945 integrated graphics adapter driver in Hardy has some performance issues when using EXA acceleration. A workaround at the moment is to revert to XAA. To do this you have to edit /etc/X11/xorg.conf. I was a bit shocked when I opened it - it was basically empty when compared to my previous experiences.

I added the line

Option "AccelMethod" "XAA",

which gets me acceptable performance for now.
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

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

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
Option "AccelMethod" "XAA"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
EndSection
Technorati Tags: ,,,,

2 comments:

Kit said...

Was surfing around looking for topics about ati and xorg.conf 'round the Net, and faced your post.
I've this empty xorg.conf, which drive tools like 'aticonfig' mad, cousing lockups and other troubles.
It can be fixed though. Running

Xorg -configure

Creates a brand new xorg.conf, based on autodetected hardware and full of data

Clint Brothers said...

Thanks, I was having this same problem. I just went back to Linux Mint 4.0(based on gutsy). Now I'll just have to try Hardy again.