[REQUEST] Volume Rocker Screen Wake UP - LG Optimus 4X HD

Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance

EdisDee said:
Hi all,
I was looking for a way to make the volume rocker to wake up the screen but with no luck. Anybody knows a way? If yes then please share your knowledge
EDIT: ok, I've found two methods: method 1 and method 2 but my knowledge is too limited... I know nothing about smali and etc. in method 2 I don't know which file should I edit?
Please help!
Thanks in advance
Click to expand...
Click to collapse
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app

dante501 said:
Try an app from the Google play store called " wake all"i use it too. It will wake up phone with the volume buttons.
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...

nedooo said:
You can try widget locker - lock screen replacement app, and disable stock lock screen. Another good thing with it is that you will lose lag on answering phone call...
Click to expand...
Click to collapse
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port

EdisDee said:
widget locker did the thing. but i liked the lg lockscreen alot :-/ thanks nedooo!
btw wake all is working as well but there was a thing a didn't like: when i lock the screen and press the volume rocker buttons, the app showed me my homescreen for a second or two and then the lockscreen. widget locker doesn't do that. anyway thanks to dante501 also!
In CM10 volume rocker wake feature is already there as an option afaik. I wish everyone to have the patience and wait for the bootloader unlock update from LG and the CM port
Click to expand...
Click to collapse
tried wakeall, all it does it freeze my desktop till i restart my phone

I'm not shure what you w want to achieve cause my volume buttons wake up the screen by default. I'm on the 10H.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2
---------- Post added at 05:57 PM ---------- Previous post was at 05:54 PM ----------
Ok now I know. If you have disabled lock screen than volume wake the screen up.
Wysyłane z mojego LG-P880 za pomocą Tapatalk 2

method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.

Tim_Pan said:
method 1:
1.Decompile android.policy.jar
2.Found KeyguardViewMediator.smali
3.Edit the smali and delete
Code:
0x18 -> :sswitch_5
0x19 -> :sswitch_5
method 2:
Edit /system/usr/keylayout/tuna-gpio-keypad.kl
Code:
key [COLOR="Red"]???[/COLOR] VOLUME_DOWN [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] VOLUME_UP [COLOR="Red"]WAKE[/COLOR]
key [COLOR="red"]???[/COLOR] POWER [COLOR="red"]WAKE[/COLOR]
I don't know the correct number of the key,so I replaced the number to ??? and you just keep the original numbers.
"WAKE" means you can wake up the phone with the button.
Delete the WAKE and it won't work.
Click to expand...
Click to collapse
1. I don't know how to decompile. what's a smali? I thought someone with the knowledge could make this mod for the O4X.
2. there is no tuna-gpio-keypad.kl file in /system/usr/keylayout/. the closest file name was gpio-keys.kl. I edited it but the phone still doesn't wake.
I know there is google and I could learn it myself. I'd like to learn all these things, but I haven't got the time for it. I work a lot and I have exams at college.

any way to get this feature on stock based rom?

donkanmcklaus said:
any way to get this feature on stock based rom?
Click to expand...
Click to collapse
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!

balloon27 said:
If rooted, try the Xposed module 'Xposed Additions'. It lets you remap all buttons. Heard it even works as a workaround for the powerbutton bug in CM11!
Click to expand...
Click to collapse
xposed additions did the job thx man

Related

power button options

is there a way to add options when we long press the power button? optionto not only shutdown the phone but also reboot.
The CyanogenMod (CM7) ROM, does this. If you can live with that ROM (or any ROM based on that), I can highly recommend this one from wgspoelstra.
does it have the 64RAM hack (freeing up an extra 64 mb ram)
Yes, CM7 uses the vorkKernel which has this hack.
thanks! i have the WGSPOELSTRA on my phone, working great, i am on v.26, i haven't updated to the latest because i'm seeinig some negative feedback on the release
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
i can't find it again...i knew i found an option that does that... now i'm not sure if it's in the slick custom roms or the WGSPOELSTRA's
Graffin said:
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
Click to expand...
Click to collapse
CM7 has this functionality.
yan go to CM7 settings --> input --> and volume rocker wake option
baste07 said:
is there a way to add options when we long press the power button? optionto not only shutdown the phone but also reboot.
Click to expand...
Click to collapse
Whilst it is possible with stock it's a lot of framework edits. I took a look and hacked together a reboot proof of concept... you have to call an existing function and LG have obfuscated this function in their framework...
Graffin said:
It would be great to use the volume buttons to unlock the screen.
Anyone knows if it could be plausible?
Click to expand...
Click to collapse
WidgetLocker supports this.
baste07 said:
yan go to CM7 settings --> input --> and volume rocker wake option
Click to expand...
Click to collapse
Brilliant. I love LG 2X but the power button at the top and volume buttons on the right are a big fail in my opinion. I might be too use to the layout on SGS.
Having said that I don't mind if there is a workaround and this for me is perfect. Thanks.

[Q] How to turn the G button to power key and other function key?

Hi! I Have an Optimus Black P970.
But I found that the G button on the Internet can be change to Power Key, Lock Key or even Camera Slot key. However, it always said need rooting.
However, I found that the procedure quite hard for me as i am new to android.
So, is there any means with NOT rooting? any widgets? any apps to do so?
Sorry for my poor English...
Thanks a lot.
sonicpeter said:
So, is there any means with NOT rooting? any widgets? any apps to do so?
Sorry for my poor English...
Thanks a lot.
Click to expand...
Click to collapse
No way without root. You may want to explore your abilities to root the phone, since CM and then MIUI are coming to our LG. These are far superior goods than GingerBread from LG.
Sent from my LG-P970 using Tapatalk
You need root to do that, because it's change the configuration at read-only system partition /system/usr/keylayout, which mean that you must mount R/W to change that.
and AFAIK that G for power button is just for standby/wake, it can't press to power up from off position.
CMIIW.
maludroid said:
No way without root. You may want to explore your abilities to root the phone, since CM and then MIUI are coming to our LG. These are far superior goods than GingerBread from LG.
Sent from my LG-P970 using Tapatalk
Click to expand...
Click to collapse
sorry, I DO care about with the battery and RAM problem. Can these problem solved after custom ROM release?
Now...I play with the game called "mega jump" and "cookie dozer"is so lag. however, the situation is totally different from Samsung i9003. i just want to know the changes from custom ROM.Thanks
So, my phone is rooted, but how can I change the g-key function now? I want it to just wake up on press. Thx a lot!
Sent from my LG-P970 using Tapatalk
Paracetamol100 said:
So, my phone is rooted, but how can I change the g-key function now? I want it to just wake up on press. Thx a lot!
Click to expand...
Click to collapse
The guide: http://forum.xda-developers.com/showthread.php?t=1194058
redy2006 said:
You need root to do that, because it's change the configuration at read-only system partition /system/usr/keylayout, which mean that you must mount R/W to change that.
and AFAIK that G for power button is just for standby/wake, it can't press to power up from off position.
CMIIW.
Click to expand...
Click to collapse
I think I've managed to power off from G key by long pressing it. I copied the configs on the power button.
Sent from my Optimus Black using xda premium
gabwerkz said:
I think I've managed to power off from G key by long pressing it. I copied the configs on the power button.
Click to expand...
Click to collapse
Perhaps it can power off, but not power on. Because the real button is wired hardware to switch on, and the G button accessible via software.
CMIIW.
Thx redy!
Sent from my LG-P970 using Tapatalk
Unfortunately waking up my optimus black with g-key didn't work for me. I followed the tutorial carefully, phone is rooted and of course I restarted. I should have add, that I use knzo's Nova Rom.
Any suggestions? Thx
Ps: I wasn't able to post in the related thread, I think I haven't enough userrights yet.
Sent from my LG-P970 using Tapatalk
Sent from my LG-P970 using Tapatalk
Paracetamol100 said:
Unfortunately waking up my optimus black with g-key didn't work for me. I followed the tutorial carefully, phone is rooted and of course I restarted. I should have add, that I use knzo's Nova Rom.
Any suggestions? Thx
Click to expand...
Click to collapse
You cant wake up phone with g button
Paracetamol100 said:
Unfortunately waking up my optimus black with g-key didn't work for me. I followed the tutorial carefully, phone is rooted and of course I restarted. I should have add, that I use knzo's Nova Rom.
Click to expand...
Click to collapse
Wake up from what? G button can set to standby/sleep and wake up. But it CAN'T "wake up" from off/dead position, because the main power button is hardwired to the hardware, and G button only accessed with Android system.
CMIIW.
To unlock the phone. Suddenly it works perfectly. Thx!
///lg P970 optimus black///

CM9 G Button remap

hi, I open this thread to show you how to remap the G button, on the FOP rom it is assigned as a comma so it's totally useless, but all you have to do is using root explorer go to:
system\usr\keylayout
and modify the files "generic.kl" and "TWL4030_Keypad.kl" and search for "key 95".
On the "generic.kl" it will say something like insert comma, change that to one of this options:
APP_SWITCH it will make the g button open the recent apps
CAMERA well it's obvious it will open the camera
and on the "TWL4030_Keypad.kl" it will say "POWER WAKE_DROPPED", just erase that and type one of the options I said (you MUST assign the same option to BOTH files)
Hope it would be usefull ^^ I recomend using the button for the recent apps, since the camera can be accessed from the lockscreen and the camera isnt working right now
If you need to, I can make a CWM flashable zip to modify those 2 files, I didn't did that because this is way too easy to do manually...
Remember to mount R/w so you can edit the files
After doing that just reboot
You should mount r/w not r/o
Sent from my phone via tapatalk
A flashable file would be great!
You forgot reboot...neway thanks m8..it worked just fine :highfive:
RomWiz said:
You should mount r/w not r/o
Click to expand...
Click to collapse
thanks, for correcting me
strider2023 said:
You forgot reboot...neway thanks m8..it worked just fine :highfive:
Click to expand...
Click to collapse
ohh right jeje sry
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
koila33 said:
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
Click to expand...
Click to collapse
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Melin Leos said:
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Click to expand...
Click to collapse
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
koila33 said:
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
Click to expand...
Click to collapse
I know it's easy to add but the thing is that right now the g button on fop rom is completely useless
This works on CM7?
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
Yep, tecnically it works on all roms, but I can't say exactly since Idont know which file you have to modify on cm7
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
On cm7, you have to edit /system/usr/keylayout/qwerty.kl - delete key 212 line and add key 95 POWER WAKE_DROPPED or the line about camera - save and reboot
Sent from my LG Optimus Black using xda premium
My Power button is dead and i cannot turn on the phone manually. Ineed to use usb cable,enter the battery charging state and need to push the button frequently(hopefully it detect) till it reboot.Then i try to remap the power button to G button. still cannot on even at battery charging state... This phone is screwed.. wonder if anyone want to buy my phone.. haha..
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
SaschaKH said:
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
Click to expand...
Click to collapse
Getting to the recovery is not the problem as i can use the adb command. The worst part is when i want to call someone urgently and the phone cannot wake the screen. So softpower app can help in these kind of situation? As when the phone is completely dead, there nothing we can do to turn it on as some people said that the power button is hardwire.
Yes SoftPower wakes my phone up all the time without any problem. I haven't even activatet the adminstrator, because it is only needed for turning the screen off and I use G button for that. (Need the search button for something else anyway.)
BTW if you remap the G button it even shows the power menu like you get it for long pressing power button (at least with some ROMs).
Thanks man, i will try that software. I just open this phone and found out that the usb port and the power button is integrated with each other. So, it's kinda hard to repair it.
Thanks.... I modify G Button as Camera and its working awesome on CM10..
Sent from my LG-P970 using xda premium
Please
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
atillaahun said:
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
Click to expand...
Click to collapse
I tested it.I modify G button as CALL WAKE_DROPPED
With this I can receive the call but can't end call with G Button.
And also
Device wakes but can't turn off.
Sent from my LG-P970 using xda premium

[Mod][SteelDroid 4.8]VolumeLongPress skip song

Huhuuuuuu guys,
since some weeks i looking for a app or flash able zip that let me skip tracks with the volume buttons when screen is locked.
i really like it when i was using AOKP but i going back to gingerbread because of the camera problems.
found some files(not for droid 3) that crash my system ;/
also found a app called tactile player. but i not like it (u need to double press volumen button for skip a track)
an other nice found was this tutorial about remapping hw buttons (http://forum.xda-developers.com/showthread.php?t=1517260)
but you only have 2 options wake & wake_dropped
maybe someone of you guys could help me?
Edit: iam on steel droid 4.8
i decomplied the android.policy.jar and will try to do it myself ;/
i not have much time befor the weekend
and will tell u guys if there is something going up
and help required ;]
Update: The end isnt far away. Atm the VolumeButtons change the track when screen is off and Control the Sound when Screen is on. But i still work on it.
For these who wanne take a look at it i post the smali files.
Credits i give to all people who share his modified android.policy.jar online.
Download
Smali Files
sorry for that push but it would be great if someone can help me finishing
Good job I think the droid 3 without song button is very bad!
Wait, so is this fully functional?! Cuz love the idea
Sent from my DROID3 using Tapatalk
It only change the function of the volume rocker.
when screen is on it control the volume and if screen is off u can next/prev songs
also found a app called tactile player. but i not like it (u need to double press volumen button for skip a track)
Click to expand...
Click to collapse
You should use playerpro. The functions are amazing and u have the option (in settings) to press up to change songs and long press for volume.I have mine reversed tho so volume works by pressing up/down and long press to change song. It only takes a second to change songs. Great app. Check it out
Sent from my DROID3 using Tapatalk
can you repost the files links are down..
android.policy.jar
Smali Files
huhu1312 said:
android.policy.jar
Smali Files
Click to expand...
Click to collapse
thank you so much!
I can't download the files.
Damaged links
i upload again. stupidly i not add it as attachment

[MOD]Enabled soft keys/Disabled Cap buttons **7.29 update posted**

This mod enables onscreen soft keys (THANKS TO LEONARDOARAUJO for the modded framework-res) and disables all cap keys except for menu. cap keys still are illuminated, but home, back, and search are disabled as well as haptic feedback for the 3. as i cannot as of yet get a search key remap working i decided to try n make this.I kinda like it btr even tho i lose a lil real estate cuz soft keys are cool..tested and working fine.
25b/27
http://db.tt/xgjybJJi
7.29
http://db.tt/MTzyaNk7
7.29
disable ALL cap keys by quetzalcoat12345 (Does not include the framework files, just the keymap files, so it should be good for all future releases.)
DisableAllCapacitiveKeys.zip"]https://dl.dropbox.com/u/19567156/DisableAllCapacitiveKeys.zip"]DisableAllCapacitiveKeys.zip
here is a flashable zip to reverse the mod (25b/27 only) by leonardoaraujo:
http://www.mediafire.com/?ch4kxk9heylr0v5
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
quetzalcoatl2435 said:
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
Click to expand...
Click to collapse
imma try it now, although i may leave them on only cuz my.menu key is active still..thx for the tip!
edit..works great.wish i could kill all but menu..but i suppose people in hell want icewater too
[m]atRix
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
quetzalcoatl2435 said:
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
Click to expand...
Click to collapse
i left mine on cuz there are times and places i need to enter menu but the 3 dots aren't there. maybe leo can add menu to the soft keys, ill ask.
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
quetzalcoatl2435 said:
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
Click to expand...
Click to collapse
actually now tht im paying attn, i think its mainly from home screen using apex. i can set a shortcut but i jus kinda like having menu access rt there. works for me
edit: ur right..menu 3 dots thing is there anytime there is a menu to access, EXCEPT apex home screen. but sometimes its up on top. i thought about disabling menu but decided to keep it as its nice to have rt there, i guess for the same reason i like the search key to recents remap..more easily accessible.
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
zefir738 said:
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
Click to expand...
Click to collapse
just reflash CM10 without wiping data, should bring everything back to stock.
need not apply the full rom, to undo everything (including navigation buttons):
http://www.mediafire.com/?ch4kxk9heylr0v5
ps: op, add to the 1st post ..
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
bu14 said:
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
Click to expand...
Click to collapse
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
rickriego said:
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
Click to expand...
Click to collapse
how can i contact him?
bu14 said:
how can i contact him?
Click to expand...
Click to collapse
search the forums for leonardoaraujo his profile will pop up a few lines down. u can pm from there
I hope you update your zip to the new epinter
Sent from my MB860 on CM10
i will, already talked to leo abt the framework..
[m]atRix
mod works w/ epinters current release!
[m]atRix
rickriego said:
mod works w/ epinters current release!
[m]atRix
Click to expand...
Click to collapse
Update the OP.
Sent from my Nexus 7
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
aye aye captain!
edit: done
[m]atRix
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
Geez soldier lol
Sent from my MB860 using Tapatalk 2

Categories

Resources