Re: [android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-26 Thread Kurt Frandsen
Den 23/09/2011 19.16 skrev "seba" : > Hi, > > I think you need to port the lights library for your platfrom? > (mydroid/hardware//liblights) > > Android expects the sysfile -> /sys/class/leds/lcd-backlight/ > brightness as the point to set the current brightness of lcd > backlight. > If the kernel

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-23 Thread seba
Hi, I think you need to port the lights library for your platfrom? (mydroid/hardware//liblights) Android expects the sysfile -> /sys/class/leds/lcd-backlight/ brightness as the point to set the current brightness of lcd backlight. If the kernel uses another point for such regulation you will have

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-19 Thread Sunil Pillai
I have compiled the kernel using all the required configuration for PM. CONFIG_PM, CONFIG_SUSPEND, CONFIG_WAKELOCK, CONFIG_FB_EARLYSUSPEND, CPU_IDLE etc are set. After bootup I also see the logs for request_suspend_state() being called. Log : <6>request_suspend_state: wakeup (3->0) at 9253398900

Re: [android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-19 Thread 叶祥振
if cat /sys/power/state returns a blank means your kernel do not support suspend/on state. I wonder do you have the kernel source, and enable the power managerment switches in kernel config. 2011/9/17 Sunil Pillai > cat /sys/power/wake_lock just prints a blank line. > Also, cat /sys/power/state

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-17 Thread Sunil Pillai
cat /sys/power/wake_lock just prints a blank line. Also, cat /sys/power/state returns a blank. Something looks to be seriously wrong. Regards, Sunil On Sep 16, 3:55 pm, 叶祥振 wrote: > try to > #cat /sys/power/wake_lock > and see what's holding the wake lock. > Regards > > 2011/9/16 Sunil Pillai

Re: [android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-16 Thread 叶祥振
try to #cat /sys/power/wake_lock and see what's holding the wake lock. Regards 2011/9/16 Sunil Pillai > > I tried cat /sys/power/state & it outputs > radio-interface. > > Assuming that the RIL is basically holding a wakelock i tired > debugging using- > echo 15 > /sys/module/wakelock/parameters/

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-16 Thread Sunil Pillai
Worked out on the wakelock issue, so now cat /sys/power/state does not show any module holding a wakelock Also, I was able to put off the LCD by executing: echo 1 > /sys/devices/platform/s3c-fb/graphics/fb0/blank Anyways, I was hpoing after inactivity for sufficient time the userspace process sho

[android-kernel] Re: Android LCD Backlight doesn't turn off & it doesn't enter suspend

2011-09-15 Thread Sunil Pillai
I tried cat /sys/power/state & it outputs radio-interface. Assuming that the RIL is basically holding a wakelock i tired debugging using- echo 15 > /sys/module/wakelock/parameters/debug hoping it to print all wakelock acuire & release sequences. This didn't print anything :( I hope I'm on track