So I managed to resolve the problem. I had to tweak the kernel leds.h 
header file for this specific device.

$KERNEL/include/linux/leds.h

enum led_brightness {
 LED_OFF = 0,
 LED_HALF = 2047,
 LED_FULL = 4095,
};

Thereafter, compiling, copying the newly-generated zImage as kernel into 
the proper dirs and we are good again.
Hope this helps anyone lost on the same issue.

On Monday, February 16, 2015 at 3:30:15 PM UTC-2, Leonardo Aramaki wrote:
>
> Hello, I'm working on my own z1 (c6943) porting and all is working except 
> for the brightness. 
> The brightness is supposed to range from 0..4095 as far as I know, but 
> it's being set to max_brightness 255.
>
> I tried tweaking thermanager.xml and init.rhine.rc (rhine board) with no 
> avail. Seems like I'm unable to write to 
> /sys/class/leds/wled:backlight/max_brightness. I can chown, chmod it, but 
> can't echo to it, nor by means of the init*.rc files. I could even echo to 
> max_current, changing from 20 to 25.
>
> I tried to swap kernel but there is going to deep.
> Any help on this?
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to