Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-18-10, 03:39 AM   #13
guillaumezin
Registered User
 
Join Date: Dec 2009
Posts: 26
Default Re: Linux backlight driver

Thank you, I corrected. I will add your laptop model to the autoload list ASAP.

Guillaume.
guillaumezin is offline   Reply With Quote
Old 01-23-10, 10:54 AM   #14
guillaumezin
Registered User
 
Join Date: Dec 2009
Posts: 26
Default Re: Linux backlight driver

Sony VGN-FZ11 family added to the autoload list.

Guillaume
guillaumezin is offline   Reply With Quote
Old 01-25-10, 05:25 AM   #15
bistory
Registered User
 
Join Date: Apr 2008
Posts: 46
Default Re: Linux backlight driver

Thanks, it works like a charm

Do you plan to release you driver into Linux ?
bistory is offline   Reply With Quote
Old 01-26-10, 06:46 AM   #16
guillaumezin
Registered User
 
Join Date: Dec 2009
Posts: 26
Default Re: Linux backlight driver

Hello,

I will probably try to propose the driver directly in the kernel, but I need the autoload list to grow up a little.

Guillaume.
guillaumezin is offline   Reply With Quote
Old 02-02-10, 03:50 PM   #17
guillaumezin
Registered User
 
Join Date: Dec 2009
Posts: 26
Default Re: Linux backlight driver

Hello,

Sony VGN-FZ38 family has been added to the autoload list.

Guillaume.
guillaumezin is offline   Reply With Quote
Old 02-02-10, 10:31 PM   #18
keptile
Registered User
 
Join Date: Feb 2010
Posts: 5
Default Re: Linux backlight driver

Hi,

I have a Sony Vaio CW series laptop with GT230M. I tried to load the driver but it failed to load by telling me that there are no supported Nvidia chips. So I took the PCI ID of the card from http://us.download.nvidia.com/XFree8...ppendix-a.html and added it to DEFINE_PCI_DEVICE_TABLE and recompiled the driver. The driver loads this time, but brightness control still does not work.

Just to let you know...

Keptile
keptile is offline   Reply With Quote
Old 02-05-10, 10:11 AM   #19
damdim
Registered User
 
Join Date: Jan 2010
Posts: 21
Default Re: Linux backlight driver

Quote:
Originally Posted by keptile View Post
Hi,

I have a Sony Vaio CW series laptop with GT230M. I tried to load the driver but it failed to load by telling me that there are no supported Nvidia chips. So I took the PCI ID of the card from http://us.download.nvidia.com/XFree8...ppendix-a.html and added it to DEFINE_PCI_DEVICE_TABLE and recompiled the driver. The driver loads this time, but brightness control still does not work.

Just to let you know...

Keptile
I also have a Sony Vaio CW1S1E with GT230M. After spending time trying things I can now control the backlight of the laptop. I added this line to DEFINE_PCI_DEVICE_TABLE
Code:
/* NVIDIA Geforce 230M */
	{ PCI_VDEVICE(NVIDIA, 0x0A2A), (kernel_ulong_t)&nv5x_driver_data },
Make sure that at the end is nv5x_driver_data not nv4x_driver_data

Then the backlight worked but not proportional with the slider of kde powerdevil.
So I think I found the best values for my case in static struct driver_data nv5x_driver_data section
Code:
static struct driver_data nv5x_driver_data = {
	.bar           = 0,
	.reg_offset    = NV5X_PDISPLAY_OFFSET + NV5X_PDISPLAY_SOR0_BRIGHTNESS,
	.reg_size      = 1,
	.off           = 0,
	.min           = 5,
	.max           = 117,
	.backlight_ops = {
#ifdef USE_BACKLIGHT_SUSPEND
		.options        = BL_CORE_SUSPENDRESUME,
#endif
		.get_brightness = nv5x_get_intensity,
		.update_status  = nv5x_set_intensity,
	}
If anyone can advice for better values or explain what some variables are for f.e. .reg_offset, .reg_size is welcome.

Be carefull that if values are wrong you might turn off the screen and need a blind reboot
damdim is offline   Reply With Quote
Old 02-06-10, 10:17 PM   #20
keptile
Registered User
 
Join Date: Feb 2010
Posts: 5
Default Re: Linux backlight driver

Interesting. Mine is Vaio VPCCW190X. With the same changes I cannot control the brightness. I also tried the nv4x_driver_data. Could you attach the source so that I can try it also?

By the way, I am running Ubuntu, maybe KDE's way of changing brightness is different than Gnome's. Do the brightness control buttons (Fn-F5, Fn-F6) work?
keptile is offline   Reply With Quote

Old 02-07-10, 05:53 AM   #21
damdim
Registered User
 
Join Date: Jan 2010
Posts: 21
Default Re: Linux backlight driver

When you type
Code:
cat /sys/class/backlight/nvidia_backlight/brightness
do you get a result?
Also try as root
Code:
echo 50 | tee -a /sys/class/backlight/nvidia_backlight/brightness
to check if you can control the brightness.
I haven't changed anything else in the source. Also Fn keys don't work, only the slider of powerdevil.
damdim is offline   Reply With Quote
Old 02-07-10, 07:00 AM   #22
torstenaf
Registered User
 
Join Date: Jan 2010
Posts: 1
Question Re: Linux backlight driver

When I went to change the brightness, it caused my backlight to flicker continuously. I tried a second time to run the command, and the backlight stopped flickering. I wasn't able to adjust the backlight ever.

I'm still using nvclock successfully to change the backlight right now.
Attached Files
File Type: txt lspcinn.txt (2.2 KB, 210 views)
File Type: txt product_name.txt (10 Bytes, 203 views)
File Type: txt sys_vendor.txt (17 Bytes, 197 views)
torstenaf is offline   Reply With Quote
Old 02-07-10, 02:42 PM   #23
keptile
Registered User
 
Join Date: Feb 2010
Posts: 5
Default Re: Linux backlight driver

Quote:
Originally Posted by damdim View Post
When you type
Code:
cat /sys/class/backlight/nvidia_backlight/brightness
do you get a result?
Also try as root
Code:
echo 50 | tee -a /sys/class/backlight/nvidia_backlight/brightness
to check if you can control the brightness.
I haven't changed anything else in the source. Also Fn keys don't work, only the slider of powerdevil.
That actually works. Thanks. Now we need something to allow gnome-brightness-applet, gnome-power-manager and function buttons to change the brightness.
keptile is offline   Reply With Quote
Old 02-07-10, 08:05 PM   #24
keptile
Registered User
 
Join Date: Feb 2010
Posts: 5
Default Re: Linux backlight driver

To make the Fn keys to work, Ubuntu loads the sony-laptop module. When nvidia_bl is also loaded, then lshal shows two backlight devices in /sys/devices/virtual/backlight, which are sony and nvidia_backlight. Fn-F5, Fn-F6 keys, gnome-power-preferences and gnome-brightness applet actually work but they all change /sys/class/backlight/sony/brightness.

As a workaround, I use a slightly modified version of the script at
https://bugs.launchpad.net/ubuntu/+s...39/comments/26. Then I added two files into /etc/acpi/events to map Fn-F5 and Fn-F6 keys to change the brightness using that script.
keptile is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.