ailijic / easy-slow-down-manager

Automatically exported from code.google.com/p/easy-slow-down-manager
0 stars 0 forks source link

Backlight regulation doesn't work on RF710 laptop. #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Samsung RF710 module compiles and loads correctly.
Everything is working after (backlight can be turned on and off, WiFi kill 
switch works perfectly etc) but the level of brightness cannot be changed (full 
brightness everytime).

After loading samsung-backlight with debug=1 option, it produces the following 
output when I try to lower the brightness level:

Samsung-backlight: checking for SABI support.
Samsung-backlight: SABI is supported (f3566)
SABI header:
 SMI Port Number = 0x00b2
 SMI Interface Function = 0xc0
 SMI enable memory buffer = 0xc1
 SMI restore memory buffer = 0xc2
 SABI data offset = 0x0f00
 SABI data segment = 0xdf01
 BIOS interface version = 0x32
 KBD Launcher string = 0x53
Samsung-backlight: SABI Interface = ffff8800000dff10
Set brightness level 7 (hw 7)
Brightness power 0
Set brightness level 6 (hw 6)
Brightness power 0
Set brightness level 5 (hw 5)
Brightness power 0
Set brightness level 4 (hw 4)
Brightness power 0
Set brightness level 3 (hw 3)
Brightness power 0
Set brightness level 2 (hw 2)
Brightness power 0
Set brightness level 1 (hw 1)
Brightness power 0
Set brightness level 0 (hw 0)

But actual brightness remains the same (maximum level).

Adding acpi_backlight=vendor to kernel parameters doesn't help.

If I try to use "use_sabi=0" option with the samsung-backlight module, I have 
the folowing error:
FATAL: Error inserting samsung_backlight 
(/lib/modules/2.6.37-ARCH/kernel/drivers/misc/samsung-backlight.ko): No such 
device
And in DMESG:
Sorry, your laptop is not supported. Try use_sabi=1

I'm using Archlinux, kernel version is: 2.6.37.5-1 (2.6.37-ARCH default arch 
kernel), the easy-slow-down-manager was compiled from svn (revision 33-1).

Some additional information:
dmidecode -s system-product-name
RF510/RF410/RF710          
dmidecode -s baseboard-product-name
RF510/RF410/RF710          
lspci |grep VGA
02:00.0 VGA compatible controller: nVidia Corporation Device 0df1 (rev a1)
lspci -n | grep 02:00.0
02:00.0 0300: 10de:0df1 (rev a1)
ls /sys/class/backlight/samsung
actual_brightness  bl_power  brightness  max_brightness  power  subsystem  
uevent

If you need any additional information, please tell me!

Original issue reported on code.google.com by angryc...@gmail.com on 4 Apr 2011 at 12:59

GoogleCodeExporter commented 9 years ago
Please, try both use_sabi=0 force=1

Original comment by SergeyK...@gmail.com on 5 Apr 2011 at 4:22

GoogleCodeExporter commented 9 years ago
If I try to do:
modprobe samsung-backlight use_sabi=0 force=1
As result I get: 
FATAL: Error inserting samsung_backlight 
(/lib/modules/2.6.37-ARCH/kernel/drivers/misc/samsung-backlight.ko): No such 
device
And no output in dmesg.

Don't know if it is important: right now I have kernel loaded with 
acpi_backlight=vendor option.
dmesg | grep "Kernel command line"
Kernel command line: root=/dev/mapper/VG00-root ro quiet acpi_backlight=vendor

Original comment by angryc...@gmail.com on 5 Apr 2011 at 5:04

GoogleCodeExporter commented 9 years ago
Ah, sorry, I didn't recognized you have Nvidia;
use smartdimmer utility to control brightness; 
samsung-backlight could work only via SABI (but seems Samsung has changed spec 
for your model), or use the setpci trick (which is known to work for Intel 
cards)

Original comment by SergeyK...@gmail.com on 5 Apr 2011 at 6:41

GoogleCodeExporter commented 9 years ago
Smartdimmer is not working with my card, neither do the setpci trick (
Any chance of getting the SABI support for my model?
May be I can help somehow?
I've mentioned that it is possible to adjust brightness during the boot 
process, before loading of linux kernel i.e. during the grub screen. That 
brightness remains unchanged after. So that way I can get different brightness 
levels during the actual operating system stage. May be that can help somehow?

Original comment by angryc...@gmail.com on 5 Apr 2011 at 8:11

GoogleCodeExporter commented 9 years ago
Well, SABI documentation is not published by Samsung in any way. Note that SABI 
support is going to be included in the next releases of the kernel, hope 
developer team has some ways of communicating with Samsung. 
Meanwhile you could test a pre-release version of the kernel and submit a bug 
report against it.

Original comment by SergeyK...@gmail.com on 5 Apr 2011 at 9:14

GoogleCodeExporter commented 9 years ago
Ok… Thanks anyway! Going to test the pre-release kernel, hope the luck is 
there. (:

Original comment by angryc...@gmail.com on 5 Apr 2011 at 9:36

GoogleCodeExporter commented 9 years ago
By the way, how many brightness levels do you have in Windows (or before 
booting)?

Original comment by SergeyK...@gmail.com on 5 Apr 2011 at 11:17

GoogleCodeExporter commented 9 years ago
Before booting I have 8 levels of brightness.

Original comment by angryc...@gmail.com on 6 Apr 2011 at 9:55

GoogleCodeExporter commented 9 years ago
The issue can be closed now! The problem is fixed, and the solution has nothing 
in common with the easy-slow-down-manager!
I've got the backlight regulation working by adding:
Option "RegistryDwords" "EnableBrightnessControl=1"
to my xorg.conf into nvidia "Device" section!
Now I've got all hardware of my laptop supported and working well! Yahooo!

Original comment by angryc...@gmail.com on 28 Jun 2011 at 1:13

GoogleCodeExporter commented 9 years ago

Original comment by SergeyK...@gmail.com on 29 Jul 2011 at 5:53