Skip to contentSkip to conversation

Jornada 720: Fixes "Invalid argument" when changing backlight brightness.

PATCH New Chris Diamand 1 participant 1 message Feb 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Jornada 720: Fixes "Invalid argument" when changing backlight brightness.

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.