Bug 11949
Summary: | ACPI brightness control doesn't work when X is started- Samsung R70 T7300 notebook, nVidia GeForce 8600M GS | ||
---|---|---|---|
Product: | Drivers | Reporter: | Adrian Scisly (drunkenkilla) |
Component: | Platform | Assignee: | Zhang Rui (rui.zhang) |
Status: | REJECTED INVALID | ||
Severity: | normal | CC: | acpi-bugzilla |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27-7-generic | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 56331 | ||
Attachments: |
video_brightnessup
video_brightnessdown acpidump brightness |
Description
Adrian Scisly
2008-11-03 14:44:39 UTC
does the backlight sysfs I/F work for you? i.e. can poking /sys/class/backlight/acpi_videoX/... change the backlight? please run "grep . /sys/firmware/acpi/interrupts/*" both before and after pressing the hotkey and attach the test result. please attach the acpidump as well. Created attachment 18647 [details]
video_brightnessup
Created attachment 18648 [details]
video_brightnessdown
1) drunkenkilla@drunkenkilla-laptop:~$ cat /sys/class/backlight/acpi_video0/max_brightness 5 drunkenkilla@drunkenkilla-laptop:~$ cat /sys/class/backlight/acpi_video0/brightness 5 root@drunkenkilla-laptop:~# echo -n 3 > /sys/class/backlight/acpi_video0/brightness root@drunkenkilla-laptop:~# echo -n 1 > /sys/class/backlight/acpi_video0/brightness nothin' changed. 2) drunkenkilla@drunkenkilla-laptop:~$ grep . /sys/firmware/acpi/interrupts/* /sys/firmware/acpi/interrupts/error: 0 /sys/firmware/acpi/interrupts/ff_gbl_lock: 0 enable /sys/firmware/acpi/interrupts/ff_pmtimer: 0 invalid /sys/firmware/acpi/interrupts/ff_pwr_btn: 0 enable /sys/firmware/acpi/interrupts/ff_rt_clk: 0 invalid /sys/firmware/acpi/interrupts/ff_slp_btn: 0 invalid /sys/firmware/acpi/interrupts/gpe00: 0 invalid /sys/firmware/acpi/interrupts/gpe01: 0 enable /sys/firmware/acpi/interrupts/gpe02: 0 enable /sys/firmware/acpi/interrupts/gpe03: 0 invalid /sys/firmware/acpi/interrupts/gpe04: 0 invalid /sys/firmware/acpi/interrupts/gpe05: 0 invalid /sys/firmware/acpi/interrupts/gpe06: 0 invalid /sys/firmware/acpi/interrupts/gpe07: 0 invalid /sys/firmware/acpi/interrupts/gpe08: 0 invalid /sys/firmware/acpi/interrupts/gpe09: 0 invalid /sys/firmware/acpi/interrupts/gpe0A: 0 invalid /sys/firmware/acpi/interrupts/gpe0B: 0 enable /sys/firmware/acpi/interrupts/gpe0C: 0 invalid /sys/firmware/acpi/interrupts/gpe0D: 0 invalid /sys/firmware/acpi/interrupts/gpe0E: 0 invalid /sys/firmware/acpi/interrupts/gpe0F: 0 invalid /sys/firmware/acpi/interrupts/gpe10: 0 invalid /sys/firmware/acpi/interrupts/gpe11: 0 invalid /sys/firmware/acpi/interrupts/gpe12: 0 invalid /sys/firmware/acpi/interrupts/gpe13: 0 invalid /sys/firmware/acpi/interrupts/gpe14: 0 invalid /sys/firmware/acpi/interrupts/gpe15: 0 invalid /sys/firmware/acpi/interrupts/gpe16: 0 invalid /sys/firmware/acpi/interrupts/gpe17: 440 enable /sys/firmware/acpi/interrupts/gpe18: 0 enable /sys/firmware/acpi/interrupts/gpe19: 0 invalid /sys/firmware/acpi/interrupts/gpe1A: 0 invalid /sys/firmware/acpi/interrupts/gpe1B: 0 invalid /sys/firmware/acpi/interrupts/gpe1C: 0 invalid /sys/firmware/acpi/interrupts/gpe1D: 0 invalid /sys/firmware/acpi/interrupts/gpe1E: 0 invalid /sys/firmware/acpi/interrupts/gpe1F: 0 invalid /sys/firmware/acpi/interrupts/gpe_all: 440 /sys/firmware/acpi/interrupts/sci: 440 and now pressing FN-Keys: drunkenkilla@drunkenkilla-laptop:~$ grep . /sys/firmware/acpi/interrupts/* /sys/firmware/acpi/interrupts/error: 0 /sys/firmware/acpi/interrupts/ff_gbl_lock: 0 enable /sys/firmware/acpi/interrupts/ff_pmtimer: 0 invalid /sys/firmware/acpi/interrupts/ff_pwr_btn: 0 enable /sys/firmware/acpi/interrupts/ff_rt_clk: 0 invalid /sys/firmware/acpi/interrupts/ff_slp_btn: 0 invalid /sys/firmware/acpi/interrupts/gpe00: 0 invalid /sys/firmware/acpi/interrupts/gpe01: 0 enable /sys/firmware/acpi/interrupts/gpe02: 0 enable /sys/firmware/acpi/interrupts/gpe03: 0 invalid /sys/firmware/acpi/interrupts/gpe04: 0 invalid /sys/firmware/acpi/interrupts/gpe05: 0 invalid /sys/firmware/acpi/interrupts/gpe06: 0 invalid /sys/firmware/acpi/interrupts/gpe07: 0 invalid /sys/firmware/acpi/interrupts/gpe08: 0 invalid /sys/firmware/acpi/interrupts/gpe09: 0 invalid /sys/firmware/acpi/interrupts/gpe0A: 0 invalid /sys/firmware/acpi/interrupts/gpe0B: 0 enable /sys/firmware/acpi/interrupts/gpe0C: 0 invalid /sys/firmware/acpi/interrupts/gpe0D: 0 invalid /sys/firmware/acpi/interrupts/gpe0E: 0 invalid /sys/firmware/acpi/interrupts/gpe0F: 0 invalid /sys/firmware/acpi/interrupts/gpe10: 0 invalid /sys/firmware/acpi/interrupts/gpe11: 0 invalid /sys/firmware/acpi/interrupts/gpe12: 0 invalid /sys/firmware/acpi/interrupts/gpe13: 0 invalid /sys/firmware/acpi/interrupts/gpe14: 0 invalid /sys/firmware/acpi/interrupts/gpe15: 0 invalid /sys/firmware/acpi/interrupts/gpe16: 0 invalid /sys/firmware/acpi/interrupts/gpe17: 468 enable /sys/firmware/acpi/interrupts/gpe18: 0 enable /sys/firmware/acpi/interrupts/gpe19: 0 invalid /sys/firmware/acpi/interrupts/gpe1A: 0 invalid /sys/firmware/acpi/interrupts/gpe1B: 0 invalid /sys/firmware/acpi/interrupts/gpe1C: 0 invalid /sys/firmware/acpi/interrupts/gpe1D: 0 invalid /sys/firmware/acpi/interrupts/gpe1E: 0 invalid /sys/firmware/acpi/interrupts/gpe1F: 0 invalid /sys/firmware/acpi/interrupts/gpe_all: 468 /sys/firmware/acpi/interrupts/sci: 468 where can i find the acpidump? i attached the video_brightnessup and down. please get the latest pmtools here http://www.lesswatts.org/projects/acpi/utilities.php make and run "./acpidump > acpidump.log". :) Created attachment 18649 [details]
acpidump
Problem: ACPI backlight I/F doesn't work. I checked your BIOS and it uses a SMI call to ask BIOS to change the backlight. From the test result, it seems that BIOS doesn't actually change the backlight, while we can do nothing here from the OS perspective of view... in order to make the hotkey work on your laptop, please do the following two test. 1. try xbacklight/xrandr to see if it can change the backlight for you. 2. please kill acpid, run "cat /proc/acpi/event" and press the hotkey, then attach the output. 1. xbacklight/xrander doesn't work. 2. drunkenkilla@drunkenkilla-laptop:~$ sudo cat /proc/acpi/event cat: /proc/acpi/event: Device or resource busy i tested even now pre-release of fedora 10 and i could change the brigthness with the applet in the panel. But the FN-Keys doesn't work too. I'm using ubuntu 8.10 and the applet in the panel doesn't work. my small workaround to change the brightness: 1. ctrl+alt+F1 2. type user und password 3. sudo -s 4. echo -n xx > /proc/acpi/video/NVID/LCD/brightness 5. ctrl+alt+F7 *4. f.e. xx = 30 /sys/class/backlight/acpi_video0/brightness fails? while /proc/acpi/video/NVID/LCD/brightness works? Please respond to question 2. in comment #7 you need to kill acpid first. 1. ctrl+alt+F1 2. type user und password 3. sudo -s 4. echo -n x > /sys/class/backlight/acpi_video0/brightness 5. ctrl+alt+F7 4* x=1-5 this works too. i killed acpid and tipped this common but nothing happened, see the picture. Created attachment 18716 [details]
brightness
i posted this bug also in launchpad: https://bugs.launchpad.net/ubuntu/+bug/219116 so poking the backlight sysfs/procfs I/F doesn't work until you do a chvt? when i'm in a chvt(CTRL+ALT+F1), i can change the brightness in sysfs/procfs.You can see it in comment 9 and 11. when i'm in a chvt(CTRL+ALT+F1), i can change the brightness in sysfs/procfs.You can see it in comment 9 and 11. So from a text console... /proc/acpi/video/NVID/LCD/brightness /sys/class/backlight/acpi_video0/brightness both work. However, when X is in graphics mode, both of them fail? This sounds like ACPI is actually working, but is prevented from working by the nvidia graphics driver. Perhaps you can try X with a different nvidia graphics driver? Hey,when X is in graphics mode, both of them fails. I tested it with an other driver too. And it doesn't work. In launchpad, an Ubuntu-Bugs-Team member is working on this problem too. He is working on the hal-info. He changed something and i could change the brightness with the FN-Keys. It works only with the nv driver but it has some bugs at this moment. IMO, as the ACPI brightness control works well in console mode, this is a graphics bug rather than an ACPI bug. Adrian, please open a nvidia graphics bug at bugs.freedesktop.org. |