View Single Post
Old 02-10-10, 09:23 AM   #29
damdim
Registered User
 
Join Date: Jan 2010
Posts: 21
Default Re: Linux backlight driver

Here are the steps summarized for the people asking:

1. Install dkms. f.e. in Ubuntu run
Code:
sudo apt-get update && sudo apt-get install dkms
2. Download "nvidia_bl-0.52.tar.gz", created by guillaumezin, from the first post of the thread and run the following command in the folder you've saved it.
Code:
sudo dkms ldtarball --archive=nvidia_bl-0.52.tar.gz
3. Go to http://us.download.nvidia.com/XFree8...ppendix-a.html and find your card and note the Device PCI ID f.e. GeForce GT 230M has Device PCI ID "0x0A2A"

4. Edit as root the file "/usr/src/nvidia_bl-0.52/nvidia_bl.c" and in the section "static DEFINE_PCI_DEVICE_TABLE(nvidia_bl_device_table)" add the corresponding line for your card f.e. for GeForce GT 230M the following line has to be added.
Code:
/* NVIDIA Geforce 230M */
	{ PCI_VDEVICE(NVIDIA, 0x0A2A), (kernel_ulong_t)&nv5x_driver_data },
5. Save the file and run
Code:
sudo dkms add build install -m nvidia_bl -v 0.52
6. Run
Code:
sudo modprobe nvidia_bl
to load the module. It should not complain that it didn't find a supported chip.

7. Run
Code:
cat /sys/class/backlight/nvidia_backlight/brightness
It should return a number that is your current brightness.

8. Run
Code:
echo 50 | sudo tee -a /sys/class/backlight/nvidia_backlight/brightness
It should darken your screen.

9. Edit as root the file "/etc/modules" and add the line "nvidia_bl" so that the module is loaded every time you boot.

10. If you use KDE4 then with the Powerdevil applet you should be able to control the brightness.
If not make sure that you sony-laptop module is loaded. Run
Code:
lsmod | grep sony
and if it doesn't return "sony-laptop" run
Code:
sudo modprobe sony-laptop
and follow the steps from keptile's post to control the brightness with Fn keys.
http://www.nvnews.net/vbulletin/show...8&postcount=26
damdim is offline   Reply With Quote