Saturday, July 18, 2009

Configure xorg.conf with ATI

Ubuntu ( aticonfig , xorg.conf) Trouble ...

Configure Aticonfig , Set brigthness and contrast with ATI,
Display settings (Fix login screen after system suspend)


This is a simple guidance for the people who are upset with their ATI configuration over Xorg on ubuntu or some other linux .
If you guise have the ATI driver installed correctly and want to set xorg configuration with the ati to enjoy the benefits of display settings of ATI. It is very easy to change the display contrast and brightness with ATI after using some commands.This tutorial will also help if someone is having trouble when he or she suspend the system and the login screen comes very late and many other problems with display settings.

The first thing you need to do is the fresh installation of ati driver and a reboot or you should have your installed ATI driver working properly.
After doing so, open the terminal and type the following command

$ sudo rm /etc/ati/amdpcsdb
This will delete all existing configuration saved in amdpcsdb which is used by ati driver (Don't worry ati also has amdpcsdb.default file for default configuration).
Then type

$ sudo aticonfig --initial
This will overwrite the xorg configuration and tells the xorg to use ati as a display identifier.

The ATI uses its configuration in /etc/ati/amdpcsdb file and also has a default configuration file /etc/ati/amdpcsdb.default. Every time you boot your system ati will read all configurations from amdpcsdb file so you have to load xorg.conf configuration in amdpcsdb.

$ sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
This will load xorg configuration and refresh amdpcsdb.

After this you will be able to set your display contrast and brightness.
Firstly you have to probe your screen using command

$ aticonfig --query-monitor
Connected monitors: lvds
Enabled monitors: lvds

as in my case it was laptop lcd screen so it comes lvds

You may use if you got an error means RandR is enabled
$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
1280x800 60.0*
1280x768 60.0
1280x720 60.0
1024x768 60.0
800x600 60.0
720x480 60.0
640x480 60.0
640x400 60.0
512x384 60.0
400x300 60.0
320x240 60.0
320x200 60.0

You can easily see your display type from these option.
Aticonfig requires the following display type options in the string crt1, lvds, tv, cv, tmds1, crt2, tmds2, tmds2i, dfp3, dfp4, dfp5, dfp6. So you can try one of these until you get the right one.

Then you're all set for changing contrast and brightness
For query contrast and brightness
$ aticonfig --query-dispattrib=lvds,brightness
$ aticonfig --query-dispattrib=lvds,contrast

It will give default, current , max and min values.

For changing contrast and brightness
$ aticonfig --set-dispattrib=lvds,brightness:0
$ aticonfig --set-dispattrib=lvds,contrast:100

Be careful while changing the brightness as after -10 to -20 it becomes very dark and you will not be able to see things clearly, screen may go black . Same is for contrast.

For changing Gamma you can use
$ xgamma
which will return values for red, green and blue
xgamma supports decimal values like 0.85 or 1.0. 1.0 being default.
To make these settings permanent, you will need to edit /etc/X11/xorg.conf.
_______________________________________________________________________________________
The linux system uses the graphics properties from its file called xorg.conf (/etc/X11/xorg.conf). You can use default configuration by fixing the xorg from this command any time you are having trouble with your graphics
$ sudo dpkg-reconfigure -phigh xserver-xorg
Also if you are not able to see the login screen you can use this command then from the rescue or recovery terminal.

No comments:

Post a Comment