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

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-22-10, 04:43 AM   #37
Julian2010
Registered User
 
Join Date: Feb 2010
Posts: 3
Default Re: Linux backlight driver

Hello everyone!

I think I have the same backlight control problem with my SAMSUNG Netbook: N510-KA04FR.
I installed (from CD) Ubuntu 9.10, updated now to kernel version 2.6.31-19.Gnome environment is used.
NVIDIA driver version is 195.36.03.
No nvbacklight driver is installed.
Everything works fine..except I can't control backlight level.
On this netbook, this is (should be..) done through the Fn/UP and Fn/Down keys.
At the beginning many Fn/Fx and the Fn/UP&DOWN keys were not at all recognized.
Now they are all recognized, assigned to the functions they should perform, the "key_non-release_event" issue of these keys has also been fixed.
So all the Fn/Fx work nicely and do what they should do, but not the Fn/UP&DOWN who have still no effective action on the actual screen backlight level.

For the action of Fn/UP&DOWN , the observed facts are:
1-Fn/UP &Fn/DOWN change the backlight level only when still on the Grub page.
2- Once booted and logged, action on Fn/UP or Fn/DOWN do let appear on screen the black "brightness bubble" with its brightness level index.This index is changed accordingly to the Fn/UP or Fn/DOWN action.No change on actual backlight level.
3- The content of system file /proc/acpi/video/IGPU/LCD0/brightness is actually modified by the action on Fn/Up &Fn/DOWN keys: its content reads
"levels: 20 30 40 50 60 70 80 100
current: xx"
,meaning the value of xx is increased/decreased according to the authorized levels.
4- The file /sys/class/backlight/acpi_video0 contains , among other subfolders, «*actual_brightness*», «*brightness*» , «max_brightness*» and «*bl_power*»
The contents of «*actual_brightness*» and «*brightness*» are the same and changed when using the Fn/UP or Fn/DOWN keys: from 0 (when brightness bubble shows a zero value index) to 7 (when brightness bubble shows a maximum value index).
The «*bl_power*» content seems to be always 0.
5- The brightness steps in /proc/acpi/video/IGPU/LCD0/brightness and in /sys/class/backlight/acpi_video0/actual_brightness & brightness sub-folders match together, although the numerical value themselves differ: «*20*» matches «*0*» , and «*100*» matches «*7*» for example.
6-Via terminal command, the content of /proc/acpi/video/IGPU/LCD0/brightness can be echoed and changed, also without action on actual backlight level.
7- Terminal command xbacklight answers: "No outputs have backlight property"

First questions are related to the identification of the problem itself:
From what is described hereabove, does the N510 face the same backlight control problem that is described with some Sony laptops?
What should I try/test additionnally to make sure it is (or it is not) the same problem if there is any doubt?

Then,if the problem is the same, what should be done to modify the "sony_laptop_ solution" provided by guillaumezin so that it could work on a SAMSUNG N510 netbook?
Please note I am not able to do myself such alterations, as I am quite new to the Linuxian world..

Additional informations about this netbook:

answer to cat /sys/class/dmi/id/sys_vendor:
SAMSUNG ELECTRONICS CO., LTD. (with a space between «*CO.,*» and «*LTD.*»

Answer to cat/sys/class/dmi/id/product-name:
N510

output of lspci -nn:
xxxx@MonNetbook:~$ lspci -nn
00:00.0 Host bridge [0600]: nVidia Corporation MCP79 Host Bridge [10de:0a82] (rev b1)
00:00.1 RAM memory [0500]: nVidia Corporation MCP79 Memory Controller [10de:0a88] (rev b1)
00:03.0 ISA bridge [0601]: nVidia Corporation MCP79 LPC Bridge [10de:0aae] (rev b3)
00:03.1 RAM memory [0500]: nVidia Corporation MCP79 Memory Controller [10de:0aa4] (rev b1)
00:03.2 SMBus [0c05]: nVidia Corporation MCP79 SMBus [10de:0aa2] (rev b1)
00:03.3 RAM memory [0500]: nVidia Corporation MCP79 Memory Controller [10de:0a89] (rev b1)
00:03.5 Co-processor [0b40]: nVidia Corporation MCP79 Co-processor [10de:0aa3] (rev b1)
00:04.0 USB Controller [0c03]: nVidia Corporation MCP79 OHCI USB 1.1 Controller [10de:0aa5] (rev b1)
00:04.1 USB Controller [0c03]: nVidia Corporation MCP79 EHCI USB 2.0 Controller [10de:0aa6] (rev b1)
00:06.0 USB Controller [0c03]: nVidia Corporation MCP79 OHCI USB 1.1 Controller [10de:0aa7] (rev b1)
00:06.1 USB Controller [0c03]: nVidia Corporation MCP79 EHCI USB 2.0 Controller [10de:0aa9] (rev b1)
00:08.0 Audio device [0403]: nVidia Corporation MCP79 High Definition Audio [10de:0ac0] (rev b1)
00:09.0 PCI bridge [0604]: nVidia Corporation MCP79 PCI Bridge [10de:0aab] (rev b1)
00:0b.0 IDE interface [0101]: nVidia Corporation MCP79 SATA Controller [10de:0ab5] (rev b1)
00:10.0 PCI bridge [0604]: nVidia Corporation MCP79 PCI Express Bridge [10de:0aa0] (rev b1)
00:15.0 PCI bridge [0604]: nVidia Corporation MCP79 PCI Express Bridge [10de:0ac6] (rev b1)
00:16.0 PCI bridge [0604]: nVidia Corporation MCP79 PCI Express Bridge [10de:0ac7] (rev b1)
00:17.0 PCI bridge [0604]: nVidia Corporation MCP79 PCI Express Bridge [10de:0ac7] (rev b1)
02:00.0 VGA compatible controller [0300]: nVidia Corporation C79 [Quadro FX 470M] [10de:087f] (rev b1)
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:8192] (rev 01)
04:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller [11ab:4354] (rev 13)
xxxx@MonNetbook:~$

Last edited by Julian2010; 02-22-10 at 04:58 AM. Reason: typo.
Julian2010 is offline   Reply With Quote
Old 02-23-10, 08:03 PM   #38
hrh
Registered User
 
Join Date: Feb 2010
Posts: 6
Default Re: Linux backlight driver

Hello
at last i managed to do that
it works
thanks
but it changes between 0-9
my current setting changes backlight between 0-127
how to fix that?
hrh is offline   Reply With Quote
Old 02-23-10, 09:08 PM   #39
Julian2010
Registered User
 
Join Date: Feb 2010
Posts: 3
Default Re: Linux backlight driver

Hi hrh,
It's nice to read you have been successfull.
But as what you succeeded to implement can really be of some help to other readers here, would you be kind enough to give here for everyone'understanding:
-the machine (brand and make) you are using
-the OS you are using (Ubuntu, Gentoo?etc?)
-the step of that OS (for example Ubuntu 9.10 /kernel 2.6.31-19 [generic] )
-The graphic card used ( Brand and make)
-The step of the graphic card driver used
I guess it's about some sony laptop anyway..so It won't help me for my samsung netbook, but someone else will learn from knowing your configuration to see if he can use directly (or not) the solution you successfully implemented for his own laptop.
Thank you in advance.

Last edited by Julian2010; 02-23-10 at 09:20 PM. Reason: typo.
Julian2010 is offline   Reply With Quote
Old 02-24-10, 01:17 AM   #40
hrh
Registered User
 
Join Date: Feb 2010
Posts: 6
Default Re: Linux backlight driver

Quote:
Originally Posted by Julian2010 View Post
Hi hrh,
It's nice to read you have been successfull.
But as what you succeeded to implement can really be of some help to other readers here, would you be kind enough to give here for everyone'understanding:
-the machine (brand and make) you are using
-the OS you are using (Ubuntu, Gentoo?etc?)
-the step of that OS (for example Ubuntu 9.10 /kernel 2.6.31-19 [generic] )
-The graphic card used ( Brand and make)
-The step of the graphic card driver used
I guess it's about some sony laptop anyway..so It won't help me for my samsung netbook, but someone else will learn from knowing your configuration to see if he can use directly (or not) the solution you successfully implemented for his own laptop.
Thank you in advance.
Hello,
Can you write about your graphic card name brand and complete system information?
Thank you
hrh is offline   Reply With Quote
Old 02-24-10, 05:50 AM   #41
Julian2010
Registered User
 
Join Date: Feb 2010
Posts: 3
Default Re: in my message datedLinux backlight driver

Hello,
I think the informations you request are already given in my message dated 02-22 1010 11:43 AM, as well as the tests I did on my machine and their results.
If something is missing in that message, please tell me what, and how to get the missing data.
Anyway:
answer to cat /sys/class/dmi/id/sys_vendor:
SAMSUNG ELECTRONICS CO., LTD.

Answer to cat/sys/class/dmi/id/product-name:
N510
relevant line from "lscpi -nn command":
02:00.0 VGA compatible controller [0300]: nVidia Corporation C79 [Quadro FX 470M] [10de:087f] (rev b1)

NVIDIA driver: version is 195.36.03.

Thank you.
Julian2010 is offline   Reply With Quote
Old 02-26-10, 10:37 AM   #42
hrh
Registered User
 
Join Date: Feb 2010
Posts: 6
Default Re: in my message datedLinux backlight driver

Quote:
Originally Posted by Julian2010 View Post
Hello,
I think the informations you request are already given in my message dated 02-22 1010 11:43 AM, as well as the tests I did on my machine and their results.
If something is missing in that message, please tell me what, and how to get the missing data.
Anyway:
answer to cat /sys/class/dmi/id/sys_vendor:
SAMSUNG ELECTRONICS CO., LTD.

Answer to cat/sys/class/dmi/id/product-name:
N510
relevant line from "lscpi -nn command":
02:00.0 VGA compatible controller [0300]: nVidia Corporation C79 [Quadro FX 470M] [10de:087f] (rev b1)

NVIDIA driver: version is 195.36.03.

Thank you.
Hello,
If you follow the steps of dimdim from last posts you should be able to change your brightness with command , after that you should start finding a way to change your brightness with fn kays
hrh is offline   Reply With Quote
Old 03-01-10, 08:36 AM   #43
ashtxk
Registered User
 
Join Date: Mar 2010
Posts: 1
Default Re: Linux backlight driver

Help me !

Code:
00:00.0 Host bridge [0600]: Intel Corporation Arrandale DRAM Controller [8086:0044] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation Arrandale PCI Express x16 Root Port [8086:0045] (rev 02)
00:16.0 Communication controller [0780]: Intel Corporation 5 Series/3400 Series Chipset HECI Controller [8086:3b64] (rev 06)
00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 05)
00:1c.1 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 [8086:3b44] (rev 05)
00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 05)
00:1c.3 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [8086:3b48] (rev 05)
00:1c.4 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 [8086:3b4a] (rev 05)
00:1d.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 05)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a5)
00:1f.0 ISA bridge [0601]: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller [8086:3b09] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller [8086:3b29] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 05)
00:1f.6 Signal processing controller [1180]: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem [8086:3b32] (rev 05)
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0a75] (rev a2)
01:00.1 Audio device [0403]: nVidia Corporation Device [10de:0be3] (rev a1)
02:00.0 Network controller [0280]: Intel Corporation Device [8086:422c] (rev 35)
03:00.0 SD Host controller [0805]: Ricoh Co Ltd Device [1180:e822]
03:00.1 System peripheral [0880]: Ricoh Co Ltd Device [1180:e230]
03:00.3 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd Device [1180:e832]
03:00.4 SD Host controller [0805]: Ricoh Co Ltd Device [1180:e822]
04:00.0 Ethernet controller [0200]: Attansic Technology Corp. Device [1969:1063] (rev c0)
ff:00.0 Host bridge [0600]: Intel Corporation QuickPath Architecture Generic Non-core Registers [8086:2c62] (rev 02)
ff:00.1 Host bridge [0600]: Intel Corporation QuickPath Architecture System Address Decoder [8086:2d01] (rev 02)
ff:02.0 Host bridge [0600]: Intel Corporation QPI Link 0 [8086:2d10] (rev 02)
ff:02.1 Host bridge [0600]: Intel Corporation QPI Physical 0 [8086:2d11] (rev 02)
ff:02.2 Host bridge [0600]: Intel Corporation Device [8086:2d12] (rev 02)
ff:02.3 Host bridge [0600]: Intel Corporation Device [8086:2d13] (rev 02)
Code:
Sony Corporation
Code:
VPCS117GG
ashtxk is offline   Reply With Quote
Old 03-01-10, 12:00 PM   #44
kalu
Registered User
 
Join Date: Feb 2010
Posts: 1
Default Re: Linux backlight driver

Same Problem here:

Manufacturer: Sony Corporation
Product Name: VPCS11V9E

should be nearly the same machine.

Code:
Vkai@kai-vaio:~/Downloads$ lspci -nn | grep nVidia
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0a75] (rev a2)
01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be3] (rev a1)
It is a Geforce 310M card.

I followed all the instructions in this thread but nothing worked on my machine.

Update to driver 195.36.08 didn't help.

Any suggestions to bring backlight control to work?
kalu is offline   Reply With Quote

Old 03-01-10, 01:20 PM   #45
d3mia7
Registered User
 
Join Date: Feb 2010
Posts: 28
Default Re: Linux backlight driver

I installed this on my Lenovo Thinkpad W510, it has a Quadro 880M (0x0a3c)

The "initial" value that was in brightness was over 323000 (can't remember exactly what it was, but it was 6 digits for sure)

Setting it to '50' has the backlight almost completely off - the screen is BARELY visible. Setting it to the maximum (127) is brighter, but still so dim it is barely visible at all.

I can successfully change brightness levels with this module, but only in the very lowest levels of brightness.

Thoughts?
d3mia7 is offline   Reply With Quote
Old 03-10-10, 06:53 AM   #46
brx
Registered User
 
Join Date: Mar 2010
Posts: 1
Send a message via ICQ to brx Send a message via MSN to brx
Lightbulb Re: Linux backlight driver

I wrote a little hack for the nvidia_bl kernel module. I had the 127 brightness levels problem that resulted in the screen being too dark. I have a G105M on a Dell Inspiron 1370. I believe there is a problem with the way the register is handled in the code. The hack bloats up the min and max values for this register. A patch is attached, some explanation is at my blog under "Backlight Fix". This fixes the darkness issue for me and gives me full control over just about the full range of brightness levels. Somebody might find this helpful.
Attached Files
File Type: gz nvidia_bl_g105m_0x0a69_hack.patch.gz (1.1 KB, 307 views)
brx is offline   Reply With Quote
Old 03-13-10, 12:34 PM   #47
d3mia7
Registered User
 
Join Date: Feb 2010
Posts: 28
Default Re: Linux backlight driver

For everyone's information, on my laptop (Lenovo W510) I was able to get brightness controls working just by adding this line to the Device section of my Xorg.conf file:

Option "RegistryDwords" "EnableBrightnessControl=1"


Tada, everything works without any additional software!
d3mia7 is offline   Reply With Quote
Old 04-28-10, 02:54 PM   #48
muddenhed
Creator of oBacklight
 
Join Date: Apr 2010
Posts: 19
Default Re: Linux backlight driver

Quote:
Originally Posted by damdim View Post
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
Hi

I tried the above on my openSUSE 11.2 install and it almost works. the thing not working for me right now is the brightness levels.

When running
Code:
cat /sys/class/backlight/nvidia_backlight/brightness
it returns 3324213

When running
Code:
echo 50 | sudo tee -a /sys/class/backlight/nvidia_backlight/brightness
The display gets extremly dark and if i try to restore original value is says invalid and i can at most put in 127 which is extremely low on my display.

Tried the scripts from here: http://www.nvnews.net/vbulletin/show...8&postcount=26 with no luck.

Any tips to go that final stretch to get proper backlight control.
muddenhed 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 02:45 AM.


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