Jump to content

Acer Liquid Wake on Camera Focus Button (update.zip)


Recommended Posts

Guest xaueious
Posted (edited)

The power button is in an akward position for left hand presses, so I wanted another way to wake the phone.

This will make your camera button light presses (focus) wake the phone.

Should extend power button life too.

Saw that friend's Nexus One on Cyanogenmod had trackball wake, with the power button noticeably wearing out. So I thought that this would be a neat idea for us too.

(this mod is incomplete)

Small change to /system/usr/keylayout/a1-keypad.kl

Here's the original file in LCR

key 115   VOLUME_UP		 WAKE

key 114   VOLUME_DOWN	   WAKE

key 116   POWER			 WAKE

key 211   FOCUS

key 212   CAMERA

Change "key 211 FOCUS" to "key 211 FOCUS WAKE_DROPPED"

Haven't played with key 212. Didn't seem to work but I'm not going to bother looking into that since this is good enough for me.

Tested on my Acer Liquid E on LCR only. Never used a donut ROM before so don't know how that keylayout works, but should be good for all ROMs based on Eclair bins.

Flash as unsigned update.zip in recovery

Screen on only (no wake from suspend) with focus button

Seems like this doesn't work just from boot. The button still doesn't wake the phone when it is actually in suspend. It requires changes for framework.It does okay just waking the phone though, like when you have music playing in the background.

This works 100% of the time when your phone's screen just turned off, before it actually enters into suspend mode. So it doesn't actually wake from standby, but it wakes form screenoff.

a1_focuswake.zip just turns the screen on without being able to wake the device.

Really wake with focus button

Will wipe your dalvik-cache because we are changing framework files. So expect bootup to take a while.

Someone needs to implement.

Restore with:

a1_restorekeylayout.zip

(doesn't replace the framework android.policy.jar back. It's not like we have a real trackball anyway)

Focus camera screen on + camera button next track:

I am not even going to leave a restore option here.

Replaces Camera app with stock Android (pulled from Xian ROM) to get a software camera button

Camera button now does next track

Focus button still turns screen on if device is not standby

ACER_CAMERA.zip

a1_media.zip

Edited by xaueious
Guest G_Technik
Posted
/system/usr/keylayout/a1-keypad.kl

key 115   VOLUME_UP		 WAKE

key 114   VOLUME_DOWN	   WAKE

Is it an original file code?

Does this mean that Liquid must wake up on volume button?

Guest xaueious
Posted

This is original. For some reason it doesn't wake up, so that controlled elsewhere in framwork I think.

Guest Liquidini
Posted

thanks for the tip. i also find very difficult to use the on-off button with my right hand.

Guest Charlton22
Posted (edited)

WOW Great it works!!!

Edited by Charlton22
Guest Shange
Posted (edited)

Only works when usb cable is inserted. Im using LCR1.6

Edited by Shange
Guest xaueious
Posted (edited)

No idea. Using LCR 1.7

Edit: Hm... Same thing here. It was kind of working and I thought it was fine. Maybe requires something else in the framework. Not sure if I'll look into it.

Restarted and it's working again...

It works early in the boot, but after it wakes from suspend it gets confused... Plugging in USB afterwards enables it again.

Not sure what is required to get it to work normally.

Edited by xaueious
Guest quantumfusion
Posted

can you make it wake up by shaking as well ?

Guest Charlton22
Posted
can you make it wake up by shaking as well ?

HAHAHA Nice 1!

+1111111

Guest HENRYTAI
Posted

Nice work my friend!!

Love it so much

can you also make it available for locking the phone?

Thank you very much!!!

Guest xaueious
Posted (edited)

I probably wont make the other changes because they require changes to framework.

The issue now is that if the phone is in suspend mode, the focus button cannot wake the phone up from suspend sleep.

Someone needs to edit PhoneWindowManager in framework under android.policy.jar

It looks like of like this: http://android.git.kernel.org/?p=platform/...passion-release

As long as the phone is doing 'something', you can wake the phone with the focus button now.

Edited by xaueious
Guest Charlton22
Posted
I probably wont make the other changes because they require changes to framework.

The issue now is that if the phone is in suspend mode, the focus button cannot wake the phone up from suspend sleep.

Someone needs to edit PhoneWindowManager in framework under android.policy.jar

It looks like of like this: http://android.git.kernel.org/?p=platform/...passion-release

As long as the phone is doing 'something', you can wake the phone with the focus button now.

Who can do this?

Guest xaueious
Posted (edited)

Anyone with free time.

I'm not going to bother because when I play music and turn the screen off, this works just fine.

it's also ROM dependent. I could easily map the side button to an alternate power button, but then we would lose the focus button...

Edited by xaueious
Guest Charlton22
Posted (edited)
Who can do this?

Something to do with this??

 

 511		   PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);

 512		 mBroadcastWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,

 513				 "PhoneWindowManager.mBroadcastWakeLock");

 514		 mDockWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE,

 515				 "PhoneWindowManager.mDockWakeLock");

 516		 mDockWakeLock.setReferenceCounted(false);

Edited by Charlton22
Guest xaueious
Posted (edited)

By the way it's not that I don't appreciate feedback, but I'm not a programmer, so asking for features is futile

Maybe. I don't really know :angry:

Edited by xaueious
Guest G_Technik
Posted

I've found WidgetLocker Lockscreen, it allows you to wake up your device with ANY hardbutton and unlock it with BACK softbutton if you don't like "scroll to unlock".

It also allows to change lockscreen and to put your favorite widgets on it.

Guest phhusson
Posted
I probably wont make the other changes because they require changes to framework.

The issue now is that if the phone is in suspend mode, the focus button cannot wake the phone up from suspend sleep.

Someone needs to edit PhoneWindowManager in framework under android.policy.jar

It looks like of like this: http://android.git.kernel.org/?p=platform/...passion-release

As long as the phone is doing 'something', you can wake the phone with the focus button now.

If it doesn't wake up from suspend sleep, it's more like a kernel problem :(

I've found WidgetLocker Lockscreen, it allows you to wake up your device with ANY hardbutton and unlock it with BACK softbutton if you don't like "scroll to unlock".

It also allows to change lockscreen and to put your favorite widgets on it.

The only way I can think this could work is with a wakelock, ie the system wouldn't go in suspend sleep, meaning really poor battery life. (well with my idle-enabled kernel, it could be more than 10hours)

Guest xaueious
Posted

It doesn't scan all the hardware keys or something in gpio? Something related to that?

Anyhow I gave up on trying to make it work.

  • 6 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.