11-06-2011, 02:59 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: Pocket Edge
|
Is it possible to automatically hibernate the Pocket Edge
Without closing the lid?
I've not come across anything yet, other than the power button and closing the lid. AutomateIt doesn't work but I wonder if something like Tasker would work? My guess is that its going to be tricky given that only a few Android tablets will have this 'hibernate' feature, hence it being tricky to activate it via other means... Any thoughts anyone? |
11-06-2011, 04:52 PM | #2 |
Dog Dentist
Posts: 108
Karma: 18
Join Date: Sep 2011
Device: PE, GT540, VM670, GOGHVMU, Qualcomm 1600
|
Code:
# echo mem > /sys/power/state "should" do it, but I'm not sure that's exactly what the hibernate does - everything seems to sleep but the reader side doesn't change to display the wakeup instructions and I don't think the power led went from solid to blinking (not surprising - there's probably some hibernate script I'm missing that is triggered when you close the device) finding the actual hibernate script would be best, I'd think... |
11-07-2011, 04:09 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2011
Device: Pocket Edge
|
|
11-07-2011, 08:03 AM | #4 |
Dog Dentist
Posts: 108
Karma: 18
Join Date: Sep 2011
Device: PE, GT540, VM670, GOGHVMU, Qualcomm 1600
|
not exactly sure, I was looking in all the usual places in /etc for suspend/resume type stuff and there wasn't any of that, no acpi etc. - doing global "find /" for things like hibernate, sleep, suspend, resume etc. - and nothing.
smarter way to go about it would be to watch adb as it hibernates and see what's called... so I did, and it looks like the window manager gets notified and has X seconds to hold onto a lock (whatever you've set in your settings menu e.g. mine is 15 seconds) before the power manager suspends the machine. (also: looking at adb, the echo to sys power state I mentioned above, doesn't really do anything - it looks like it tries, but just doesn't follow through.) so, looks like it's all sys event calls to the kernel (which still surprises me a little, given that they change the background on the reader site when it hibernates) doubt this is particularly helpful, but here's the log as it hibernates: Code:
W/WindowManager( 7401): lid closed state ON D/WindowManager( 7401): aquiring hibernate wake lock for 15000 millisec D/PowerManagerService( 7401): mLocks.size=1 D/PowerManagerService( 7401): PARTIAL_WAKE_LOCK 'PhoneWindowManager.mLidOpenWakeLock' activated (minState=0) D/WindowManager( 7401): releasing LidOpenWakeLock D/PowerManagerService( 7401): inspecting PhoneWindowManager.mHibernateTimeoutWakeLock D/PowerManagerService( 7401): sparing PhoneWindowManager.mHibernateTimeoutWakeLock I/power ( 7401): *** set_screen_state 0 D/WifiService( 7401): ACTION_SCREEN_OFF D/WifiService( 7401): setting ACTION_DEVICE_IDLE timer for 900000ms D/StatusBar( 7401): DISABLE_EXPAND: yes I/SettingsAppWidgetProvider(17187): Received event: android.intent.action.CLOSE_SYSTEM_DIALOGS I/WindowManager( 7401): rotationForOrientationLw: orientation: 5 I/WindowManager( 7401): rotationForOrientationLw: lastRotation: 0 I/WindowManager( 7401): using EsiOrientationPolicy, rotation is: 0 D/GoogleLoginService( 7545): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService } D/dalvikvm( 7545): GC_EXPLICIT freed 1183 objects / 62632 bytes in 45ms D/dalvikvm(17194): GC_EXPLICIT freed 7 objects / 280 bytes in 40ms D/WindowManager( 7401): Releasing hibernate wake lock D/PowerManagerService( 7401): mLocks.size=0 D/PowerManagerService( 7401): SysWakeLock i2c-pxa count/expired/wake=2573424/0/21 activeSince=0 LastChange=9452077 D/PowerManagerService( 7401): SysWakeLock main count/expired/wake=38/0/0 activeSince=0 LastChange=9441820 D/PowerManagerService( 7401): SysWakeLock PowerManagerService count/expired/wake=24/0/0 activeSince=839509 LastChange=8616921 D/PowerManagerService( 7401): --- Release Kernel wakelock via Power.releaseWakeLock D/PowerManagerService( 7401): SysWakeLock PowerManagerService count/expired/wake=24/0/0 activeSince=0 LastChange=9456440 D/PowerManagerService( 7401): SysWakeLock i2c-pxa count/expired/wake=2573424/0/21 activeSince=0 LastChange=9452077 D/PowerManagerService( 7401): SysWakeLock main count/expired/wake=38/0/0 activeSince=0 LastChange=9441820 |
11-07-2011, 08:05 AM | #5 |
Dog Dentist
Posts: 108
Karma: 18
Join Date: Sep 2011
Device: PE, GT540, VM670, GOGHVMU, Qualcomm 1600
|
(writing code against PowerManagerService might be worth a try)
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ermine Update Files for Edge and Pocket Edge | obsessed2 | enTourage eDGe | 41 | 11-20-2013 10:20 AM |
Anyone get Skype or Fring working on Entourage Edge or Pocket Edge | flyingalbert | enTourage eDGe | 10 | 01-07-2012 10:07 PM |
eDGe Firmware Updates für enTourage eDGe und Pocket eDGe | beachwanderer | Andere Lesegeräte | 3 | 07-25-2011 04:31 AM |
enTourage eDGE/Pocket eDGe battery care best practices | kveroneau | enTourage Archive | 9 | 12-22-2010 09:00 AM |
enTourage eDGe and Pocket eDGe Welcome Basket - Part 2 | borisb | enTourage Archive | 6 | 12-18-2010 09:06 AM |