Bug 10950

Summary: no brightness control - Sony Vaio FZ series
Product: Drivers Reporter: İnanç Yıldırgan (inancyildirgan)
Component: Video(Other)Assignee: drivers_video-other
Status: CLOSED OBSOLETE    
Severity: normal CC: alan, malattia, ozgur, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.25.7 Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 56331    
Attachments: lspci
dmesg
lsmod
acpidump
lspci -n

Description İnanç Yıldırgan 2008-06-21 17:58:07 UTC
Latest working kernel version: 2.6.25.7
Earliest failing kernel version:
Distribution: Pardus
Hardware Environment: Sony Vaio FZ11M laptop
Software Environment:
Problem Description: Brightness don't working

Steps to reproduce: Brightness don't working sony vaio fz series.
Comment 1 İnanç Yıldırgan 2008-06-21 18:04:03 UTC
Created attachment 16575 [details]
lspci
Comment 2 Zhang Rui 2008-06-22 06:47:19 UTC
Does the brightness work after loading driver sony-acpi?
Does the brightness work after loading driver sony-laptop?
Is there any chance that you can find something under /sys/class/backlight/?
Please attach the acpidump and dmesg output.
Comment 3 İnanç Yıldırgan 2008-06-22 07:42:59 UTC
shogen inanc # modprobe -l | grep sony
/lib/modules/2.6.25.7-99/kernel/drivers/misc/sony-laptop.ko
/lib/modules/2.6.25.7-99/kernel/drivers/char/sonypi.ko

sony-acpi module not found and sonypi, sony-laptop modules is load.

shogen inanc # ls /sys/class/backlight/
shogen inanc #

it's empty.
Comment 4 İnanç Yıldırgan 2008-06-22 07:44:02 UTC
Created attachment 16576 [details]
dmesg
Comment 5 İnanç Yıldırgan 2008-06-22 07:44:37 UTC
Created attachment 16577 [details]
lsmod
Comment 6 İnanç Yıldırgan 2008-06-22 14:01:53 UTC
Created attachment 16580 [details]
acpidump
Comment 7 Zhang Rui 2008-06-22 19:44:25 UTC
Weird,
please make sure the /sys/class/backligh/ is still empty when the ACPI video driver is loaded,
please attach the result of "grep . /proc/acpi/video/*/*/*".
Comment 8 ykzhao 2008-06-22 22:13:39 UTC
Hi, Inanc
    From the acpidump it seems that there is no _BQC object in your laptop.
    Will you please try the patch in http://bugzilla.kernel.org/show_bug.cgi?id=10206#c13 
and see whether the problem still exists?
    Thanks. 
Comment 9 İnanç Yıldırgan 2008-06-23 06:14:58 UTC
shogen / # ls /proc/acpi/video/GFX0/
DD01  DD02  DD03  DD04  DD05  DOS  info  POST  POST_info  ROM

shogen GFX0 # ls *
DOS  info  POST  POST_info  ROM

DD01:
brightness  EDID  info  state

DD02:
brightness  EDID  info  state

DD03:
brightness  EDID  info  state

DD04:
brightness  EDID  info  state

DD05:
brightness  EDID  info  state

DD01,DD02,DD03,DD05 under brightness is empty.

DD04 is shogen DD04 # cat brightness
levels:  100 100 4 16 28 40 52 64 76 88 100
current: 4
Comment 10 İnanç Yıldırgan 2008-06-23 06:19:42 UTC
i tried patch and;

shogen backlight # ls /sys/class/backlight/
acpi_video0

shogen backlight # ls /sys/class/backlight/acpi_video0/
actual_brightness  bl_power  brightness  max_brightness  power  subsystem  uevent

I change brightness file echo 3 >brightness

shogen acpi_video0 # echo 3 >brightness

and

shogen acpi_video0 # cat brightness
3

but lcd backlight don't change.
Comment 11 İnanç Yıldırgan 2008-06-23 06:35:05 UTC
i tried patch and;

shogen backlight # ls /sys/class/backlight/
acpi_video0

shogen backlight # ls /sys/class/backlight/acpi_video0/
actual_brightness  bl_power  brightness  max_brightness  power  subsystem  uevent

I change brightness file echo 3 >brightness

shogen acpi_video0 # echo 3 >brightness

and

shogen acpi_video0 # cat brightness
3

but lcd backlight don't change.
Comment 12 Len Brown 2008-06-23 11:25:13 UTC
> Latest working kernel version: 2.6.25.7

This seems to conflict with the later comments which show
failures using /lib/modules/2.6.25.7-99

What is the newest kernel that works properly
and what is the oldest kernel that starts failing?

> /lib/modules/2.6.25.7-99/kernel/drivers/misc/sony-laptop.ko
> /lib/modules/2.6.25.7-99/kernel/drivers/char/sonypi.ko

Please test with these drivers absent,
and with just the sony-laptop driver present.
Comment 13 İnanç Yıldırgan 2008-06-23 11:42:44 UTC
I don't get your question, sorry. The problem I face has always been present.
Is there anything more that I can do for you?
Comment 14 Len Brown 2008-06-23 11:55:01 UTC
Please do this:

# rmmod sonypi
# rmmod sony-laptop

# modprobe video

And verify that the problem still occurs
then

# modprobe sony-laptop

And verify that the problem still occurs.
Where "problem" means no /sys/class/backlight/
and non-functional /proc/acpi/video
Comment 15 İnanç Yıldırgan 2008-06-23 13:04:32 UTC
shogen inanc # rmmod sonypi
shogen inanc # rmmod sony-laptop
shogen inanc # modprobe video
shogen inanc # depmod -a
shogen inanc # lsmod | grep sony
shogen inanc # lsmod | grep video
video                  23696  0
output                  7680  1 video
videodev               33152  1 usbcam
v4l1_compat            16260  1 videodev
videobuf_dma_sg        17156  1 usbcam
videobuf_core          21764  2 usbcam,videobuf_dma_sg

and problem still occurs after it. 

after;

shogen inanc # modprobe sony-laptop
shogen inanc # depmod -a
shogen inanc # lsmod | grep sony
sony_laptop            36060  0

and problem still occurs after it. 

/sys/class/backlight/ and /proc/acpi/video non-functional.
Comment 16 İnanç Yıldırgan 2008-06-26 13:58:11 UTC
ping
Comment 17 ykzhao 2008-06-29 20:06:11 UTC
It seems that after the patch is applied, the /sys/class/backlight/ interface exists but the backlight brightness can't be changed.
Will you please confirm whether the brightness can be changed after the pressing hot-key? It is noted that sony-laptop should be loaded.

Thanks.
Comment 18 İnanç Yıldırgan 2008-07-01 06:57:51 UTC
Yes. "It seems that after the patch is applied, the /sys/class/backlight/ interface exists but the backlight brightness can't be changed."
Pressing the hotkeys is not changing the brightness after the patch applied and before applied. sony-laptop module is loaded during all this processes.
Comment 19 Zhang Rui 2008-07-06 23:59:25 UTC
Okay,
It seems that the standard _BCM method, which pokes the graphics device pci config space LBB register, doesn't work on your laptops. I don't know if this is normal, but I'll ask some graphics guys later. :)

then we have some other ways to make the backlight work for you,
1. check if there are any platform specific methods to control the brightness which is not supported by sony-laptop driver currently. cc Mattia Dongili, the maintainer of sony-laptop driver and see if he has some ideas. :)
2. in X mode, you can use xrandr/xbacklight to change the brightness, which pokes the native graphics device register.
Comment 20 Mattia Dongili 2008-07-07 06:11:51 UTC
Hi,
sorry, I've been holding off for a while from this thread.
The FZ series is not supported by sony-laptop. Backlight support in sony-laptop is bound to the SPIC device (SNY6001) which is not available on the FZ (and other) series.
To make things worse this laptop is carrying an NVidia card so if there is some tool that can dim your screenlight  is most probably some NVidia utility. You may want to try nvclock but only a limited number of NVidia chipsets are supported.

Hope this helps
-- mattia
Comment 21 Zhang Rui 2008-07-07 19:48:17 UTC
(In reply to comment #20)
> To make things worse this laptop is carrying an NVidia card 
Hah, this answers why the _BCM method can not work for you.
the AML code assumes the laptop has a Intel integrated graphics card, and pokes the LBB register of pci device 00:02.0.
so Mattia is right, you need some nvidia utility to change the backlight.
Please also check if there is any BIOS update.
Anyway, this is not a Linux/ACPI problem.
re-assign this bug to video category.
Comment 22 Ozgur Karatas 2008-09-17 08:04:56 UTC
Sending please lspci -n command print ?

Thanks
Comment 23 İnanç Yıldırgan 2008-09-17 14:15:35 UTC
Created attachment 17843 [details]
lspci -n