Messages in this thread | | | From | Chris Diamand <> | Subject | [PATCH] Jornada 720: Fixes "Invalid argument" when changing backlight brightness. | Date | Thu, 23 Feb 2012 00:57:30 +0000 |
| |
Sorry - this patch I just sent is for kernels 2.6.24/2.6.26. (I think it's actually been fixed on versions >3.0 but they versions don't seem to work on the jornada for various other reasons...)
Thanks, Chris.
--------------------- On jornada 720. Running: echo n > /sys/class/backlight/s1d13806fb/brightness would give a "write error: Invalid argument" as the max_brightness was not set, so any value other that 0 exceeds it. Now sets max_brightness to 255 when the module is loaded.
Backlight can also be turned on and off using echo 0-4 > /sys/class/backlight/s1d13806fb/bl_power
Also added some extra braces so jornada720_ssp.c.
| |