Hi, I think you need to port the lights library for your platfrom? (mydroid/hardware/<TARGET_BOARD_PLATFORM>/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 to change the LCD_FILE definition in the "lights.c" file. In this case you need to modify the "inir.rc" file as well (I mean the row with 'chown system system /sys/class/leds/lcd-backlight/brightness'). Keep in mind that Android sets the brightness value from 0 to 255, where '0' means display backlight is switched off. Regards, Sebastian. On 19 Wrz, 13:08, Sunil Pillai <sunilpillai....@gmail.com> wrote: > 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 92533989002 (1970-01-02 > 00:00:23.984496000 UTC) > <3>init: untracked pid 50 exited > <3>init: untracked pid 54 exited > <6>request_suspend_state: wakeup (0->0) at 142433989002 (1970-01-02 > 00:01:13.886088000 UTC) > > So initially on bootup the system moves into PM_SUSPEND_ON state. > > Regards, > Sunil > > Regards, > Sunil > > On Sep 19, 2:52 pm, 叶祥振 <bluedream...@gmail.com> wrote: > > > 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 <sunilpillai....@gmail.com> > > > > 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, 叶祥振 <bluedream...@gmail.com> wrote: > > > > try to > > > > #cat /sys/power/wake_lock > > > > and see what's holding the wake lock. > > > > Regards > > > > > 2011/9/16 Sunil Pillai <sunilpillai....@gmail.com> > > > > > > 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 unless has a useful comment at this point! > > > > > > Regards, > > > > > Sunil > > > > > > On Sep 16, 12:31 am, Sunil Pillai <sunilpillai....@gmail.com> wrote: > > > > > > Hello All, > > > > > > > I am using android 2.6.35 kernel with a platform using s3c2410 > > > > > > processor. After android (gingerbread) boots up the screen as > > > expected > > > > > > is in the locked state. The screen timeout set is 15 seconds. But > > > even > > > > > > after long inactivity on the system the screen does not go to > > > > > > screen_dim state followed by screen_off state. > > > > > > > I tired to move the system to suspend state by writing value "mem" & > > > > > > standby into /sys/power/state - > > > > > > echo mem > /sys/power/state, but the system does not go to suspend > > > > > > state too. (I don't have a dedicated power button to force suspend) > > > > > > > I have already enabled early suspend, wakelock etc in "Power > > > > > > Management support" section of the config file. > > > > > > > Any idea why the LCD backlight doesnot turn off and why the system > > > > > > does not react to /sys/power/state interface ? > > > > > > > Regards, > > > > > > Sunil > > > > > > -- > > > > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > > > website:http://groups.google.com/group/android-kernel > > > > -- > > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > > website:http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel