|
|
#25 | |
|
Registered User
Join Date: Jan 2010
Posts: 21
|
Quote:
Could you paste the code of these scripts, and how you mapped them with Fn keys? Thanks. |
|
|
|
|
|
|
#26 | |
|
Registered User
Join Date: Feb 2010
Posts: 5
|
I am attaching the scripts.
|
|
|
|
|
|
|
#27 |
|
Registered User
Join Date: Feb 2010
Posts: 1
|
Hi keptile! and Hi all!
It seems you found a solution to control the brightness on sony vaio CW, isn't it? may you summarise what to do in some simple passage for the sony vaio cw series? I found many people looking for it. Thanks a lot. Alberto |
|
|
|
|
|
#28 | |
|
Registered User
Join Date: Feb 2010
Posts: 6
|
Hello Please Help me to fix brightness on vaio cw16fg with geforce 230.
thank you |
|
|
|
|
|
|
#29 |
|
Registered User
Join Date: Jan 2010
Posts: 21
|
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 Code:
sudo dkms ldtarball --archive=nvidia_bl-0.52.tar.gz 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 },
Code:
sudo dkms add build install -m nvidia_bl -v 0.52 Code:
sudo modprobe nvidia_bl 7. Run Code:
cat /sys/class/backlight/nvidia_backlight/brightness 8. Run Code:
echo 50 | sudo tee -a /sys/class/backlight/nvidia_backlight/brightness 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 Code:
sudo modprobe sony-laptop http://www.nvnews.net/vbulletin/show...8&postcount=26 |
|
|
|
|
|
#30 | |
|
Registered User
Join Date: Feb 2010
Posts: 3
|
Hi damdim,
I've got the same laptop Sony VPCCW1 I followed the steps you mentioned exactly, but when I try Code:
echo 50 | sudo tee -a /sys/class/backlight/nvidia_backlight/brightness I've even tried removing and recompiling the nvidia_bl module, but it still has no effect. Please help! |
|
|
|
|
|
|
#31 |
|
Registered User
Join Date: Jan 2010
Posts: 21
|
When you execute
Code:
cat /sys/class/backlight/nvidia_backlight/brightness What distribution do you use? Perhaps you don't have sudo installed, so you need this command instead Code:
su -c "echo 50 | tee -a /sys/class/backlight/nvidia_backlight/brightness" Code:
dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer_backlight org.freedesktop.Hal.Device.LaptopPanel.SetBrightness int32:50 |
|
|
|
|
|
#32 |
|
Registered User
Join Date: Feb 2010
Posts: 3
|
Hey damdim,
Thanks for the quick reply. In the meantime, I had updated my drivers from nvidia version 190 to 195, and recompiled the nvidia_bl module, I'm not sure if that helped in any way, but I managed to get the brightness working using your suggestion of using different values of brightness, so far without the Fn+F5 and Fn+F6 keys. My brightness levels range from 0 to 10. I am using Ubuntu Karmic x64. The number that is returned after initially executing Code:
cat /sys/class/backlight/nvidia_backlight/brightness I then tried Code:
dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer_backlight org.freedesktop.Hal.Device.LaptopPanel.SetBrightness int32:0 I also tried keptile's suggestions as you mentioned in your previous post, and when I enter Code:
chbrn 0 The Fn+F5 and Fn+F6 keys don't work. I even tried to change the levels in the sony-brn-down and sony-brn-up scripts provided by keptile, but I had no luck. I check the events using acpi_listen, and they are correct for the sony-brightness-up and sony-brightness-down scripts Do you or keptile have any suggestions I can try? Thanks for the help so far ![]() |
|
|
|
|
|
#33 |
|
Registered User
Join Date: Feb 2010
Posts: 6
|
I have the nvidia 190.53 version and no luck!
where did you find 195 version ? the official site have 190.53 as latest version! |
|
|
|
|
|
#34 |
|
Registered User
Join Date: Feb 2010
Posts: 3
|
Hi hrh,
yes,you're right, the official site has Nvidia version 190.53. I first installed it using: Code:
sudo apt-get purge nvidia-glx-190 sudo apt-get install nvidia-glx-195 |
|
|
|
|
|
#35 |
|
Registered User
Join Date: Feb 2010
Posts: 6
|
i Installed 195 but no luck
nvidia_bl module is running and every thing is OK except the finish it didn't dim my back light what is the problem? |
|
|
|
|
|
#36 |
|
Registered User
Join Date: Jan 2010
Posts: 21
|
A small update for the double backlight interface problem. It is possible to blacklist the sony one and keep sony-laptop module running. I found the solution to this post:
http://ubuntuforums.org/showpost.php...77&postcount=8 Create the file /etc/hal/fdi/preprobe/sony.fdi and paste the following text Code:
<?xml version="1.0" encoding="UTF-8"?> <deviceinfo version="0.2"> <device> <!-- Ignore backlight interface created by sony_laptop --> <match key="linux.sysfs_path" string="/sys/devices/virtual/backlight/sony"> <merge key="info.ignore" type="bool">true</merge> </match> </device> </deviceinfo> After you restart hal if you lshal you should see that the "linux.sysfs_path" string="/sys/devices/virtual/backlight/sony" is registered to a temp interface. After that gnome-power-manager can control the backlight of the vaio. Although kde4 powerdevil still cannot with the Fn keys. |
|
|
|
![]() |
| Thread Tools | |
|
|