Hi folks, Here is some example code: # cat /proc/acpi/video/VGA/LCD/brightness levels: 70 50 20 30 40 60 80 90 100 current: 70 # cat /sys/class/backlight/acpi_video0/brightness 0 # echo 50 > /proc/acpi/video/VGA/LCD/brightness # cat /proc/acpi/video/VGA/LCD/brightness levels: 70 50 20 30 40 60 80 90 100 current: 50 # cat /sys/class/backlight/acpi_video0/brightness 1 # echo 60 > /proc/acpi/video/VGA/LCD/brightness # cat /proc/acpi/video/VGA/LCD/brightness levels: 70 50 20 30 40 60 80 90 100 current: 60 # cat /sys/class/backlight/acpi_video0/brightness 5 As we see, the association looks like: 70 | 0 50 | 1 20 | 2 30 | 3 40 | 4 60 | 5 80 | 6 90 | 7 100 | 8 But it should be like: 20 | 0 30 | 1 40 | 2 50 | 3 ... My system is a MSI GT627. I'm running a AMD64-kernel. I tested the issue with various 2.6.30-tuxonice and the 2.6.31-tuxonice sources. Thanks in advance, doggie
Created attachment 209969 [details, diff] Fix for unsorted values in /proc/acpi/video/.../brightness for 2.6.30-tuxonice-r6
This issue doesn't seem specific to tuxonice, so I'm going to ask the kernel team to take a look and see if it makes sense to submit this to mainline linux-acpi list.
Is this your patch or did you find it somewhere?
I made it myself.
Can you submit this upstream, please. Possibly, posting to the linux-acpi list for comments might be a good start
Sry, what do you mean by "upstream"? I already emailed the maintainer of drivers/acpi/video.c, Zhang Rui.
(In reply to comment #6) > Sry, what do you mean by "upstream"? > > I already emailed the maintainer of drivers/acpi/video.c, Zhang Rui. > So, do we have any news on this one? Did your patch get accepted?