Comment 6 for bug 34802

Revision history for this message
Ariel Vardi (ariel-vardi) wrote :

Hi Paul,

First off, I'd like to add that to use the Fn keys, I had to put my laptop to sleep twice. They were not working before (see bug #34801).
Now concerning this bug:

At the initial state, /proc/acpi/sony/brightness is set to 8.
Pressing Fn+F5 decreases this value by 1 and the actual brightness on the screen by 1 level.
Pressing Fn+F6 increases this value by 1 and increases the brightness as well.
Just to test, I tried increasing again. Nothing happened, the value didn't change, and the brightness either; which is good :)

Then I tried decreasing the brightness to its minimum. The value and the brightness were both decreased properly until I reached 1.
The next time, the brightness didn't decreased and the value changed to 38 (??). Increasing with the keys didn't anything at this point, the value stayed on 38 and the brightness stayed at its minimum.

by doing echo "5" > /proc/acpi/sony/brightness I managed to re-increase the brightness, and the keys worked again.

=>> spicctrl seems to input invalid values in /proc/acpi/sony/brightness. Here's a sample:
root@haifa:/home/ariel# spicctrl -b 0
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
38
root@haifa:/home/ariel# spicctrl -b 1
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
11
root@haifa:/home/ariel# spicctrl -b 2
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
27
root@haifa:/home/ariel# spicctrl -b 3
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
103
root@haifa:/home/ariel# spicctrl -b 4
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
12
root@haifa:/home/ariel# spicctrl -b 10
root@haifa:/home/ariel# cat /proc/acpi/sony/brightness
144

Whenever the value is higher than 8, the Fn keys cease to work.

Hope it helps.