[Q] NOVA-could it wake up by pressing G or volume key - LG Optimus Black

Hello,
I am using NOVA V8 and flash the huexxx fix
could I use any script to use the G button or the volume button to wake up my phone?
I tried to read the script and tutorial...but i wonder there is no key 95 which correspond to G button. I tried to make a new script for key 95...but it doesn't work at all.
it doesn;t matter to use G button to wake up, but i really want to use other key besides power key to wake up.
sorry for my poor english

In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.

dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
I sorry to tell you that there is NO LINE with key 95 for me.
I tried to add this line "key 95", but it doesn't work at all. any other means?
how about volume key to wake up the phone?

Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1

dcop7 said:
Try this: http://forum.xda-developers.com/showthread.php?t=1210341
more specifically:
# Phone will wake up from hitting the volume rocker
ro.config.hwfeature_wakeupkey=1
Click to expand...
Click to collapse
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks

sonicpeter said:
i sorry to tell you that i don;t know how to do so...
Are there any tutorial to change this value?
Besides, I would like to ask whether we can have 2 or more function on one key, such as G button for both camera and power.
THANKS
Thanks
Click to expand...
Click to collapse
try the link I gave on the last post... it is there

Nova V10D?
Can I flash Nova on V10D?

dcop7 said:
In /system/usr/keylayout edit this file: TWL4030_Keypad.kl (I user root explorer, dont forget to backup!) and change this entry (it is in the bottom for me):
key 95 POWER WAKE_DROPPED
It worked for me.
Click to expand...
Click to collapse
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.

Paracetamol100 said:
This didn't work for me. I don't get it at all. I updated the key 95 line but still no waking up with g key... Suggestions would be very appreciated. Thx.
Click to expand...
Click to collapse
Check the permissions of the file,maybe it changed, and check the tabs in the file,maybe the spaces cause some type of conflict

Related

Tips - use G button as camera button / lock screen (change key binding)

I found it in a chinese forum (bbs.gfan.com/android-2014369-1-1.html)
I'm sure most people found the G button useless, so it would be nice to change that. The following is my experience with it:
The position of the G button make it perfectly useful as lock/unlock button, you can use it to shutdown as well, but cannot use it to switch on the phone, I guess it is electrically hardwired to the power button at the top.
Not too bad for camera, long press it will launch the camera app, but it don't have 2 levels so press it once and it will start auto-focus and take picture immediately, similar to touch and release shutter button in camera app, which mean you can't "dis-engage" a failed focus attempt.
here is the method:
1. make sure you have root and r/w to system partition
2. the file in question is "TWL4030_Keypad.kl", it's in /system/usr/keylayout/
3. before making any changes, copy the file to SDcard as a backup
4. open the file with any text editor, scroll down to 3rd line from the bottom, it should be "key 95 GESTURE"
5. if you want to use it as camera button, change it to "key 95 CAMERA WAKE_DROPPED"
if you want to use it as power/lock button, change it to "key 95 POWER WAKE_DROPPED"
6. save the changes, reboot to see the changes.
Very good.
In fact, I may even use this on nova.
the method is work.
after edit file it create backup file which is name "TWL4030_Keypad.kl.bak"
It works! Great!
worked perfectly thx!
thank u..
this work
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
My phone still on Original ROM.
After modify to Power/Lock mode, it's work.
but into Shutter mode, doesn't work.
Any idea?
SnoopyZ
digezter said:
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
Click to expand...
Click to collapse
did u reboot after making the changes?
digezter said:
hey, i was followed this method but my Optimus Black can't use it .. when i push my Gesture it can't go to camera .. somebody help me ??
Click to expand...
Click to collapse
notice you need to long press to start the Camera App. (you should feel the phone vibrate)
or just start the camera app, then press the G button to take a picture to see if it works.
It should be a pretty straight forward modification.
Could it be
"key 95 RECOVERY WAKE_DROPPED" ???
wow, very nice
Very nice. Thanks.
To all who could not manage get it to work: You must take care of file attributes after modyfing the file content ( otherwise it won't work ). It must be CHMOD 644.
( I use SD Maid for this )
It doesn't work for me, i am using pays ROM. Can someone upload the file? Thank u!
Enviado desde mi LG-P970 usando Tapatalk
"key 95 HEADSETHOOK WAKE"
to use headset button
I tried modifying the file and saving it ... but the it always comes up as an error and doesn't allow me to save it... any solutions???
you need to have your phone "root" AND mount system partition as read and write
fjsw said:
you need to have your phone "root" AND mount system partition as read and write
Click to expand...
Click to collapse
Hey my phone is rooted, how do I mount system partition a read and write ? Sorry I'm a noob
if you use ES File Explorer, goto setting, select 2 checkboxs "Root Explorer" and "Mount File System"
if you use root explorer, change directory to /system, then press "Mount R/W" button
yabgo said:
"key 95 HEADSETHOOK WAKE"
to use headset button
Click to expand...
Click to collapse
Sorry to ask but: what is the "headset button" and what is it good for?
Thanks,
Kusie

Allow or Disallow the Home key from waking up the Phone [Galaxy Note]

PREVENT - ALLOW GALAXY NOTE HOME KEY FROM ACCIDENTALLY WAKE UP DEVICE:
Some people complained about the Home keys of Galaxy Note sometime is touched and turned on accidentally when taking it in-out of the pocket.
After studying some articles on-line for Droid X phone (not same as the Galaxy Note), I digged around in the directory system/usr/ keylayout. Finally, I have found a way to do it. I can disable the HOME key from wake up the phone in off-screen state, but still let it to move from apps drawer to standby screen as usual. And I think it works!!
- Goal: Modify 2 file related to wake up function of the Home key (code 102).
- How to:
+ Using Root Explorer go to the folder: system/usr/keylayout, set permission to Mount R/W;
+ Click to select the 2 files: gpio-key.kl and sec_key.kl to modify them. When the menu appears, select: Text Editor to modify the files.
+ Move to the line: "key 102 HOME WAKE" in the 2 files above and put the cursor on the position of "WAKE" to erase the word "WAKE".
+ Press Menu hard button, select Save Changes, the phone will save the backup file and save the current files.
+ Set permission to Mount R/O for the folder: system/usr/ keylayout.
+ Shut down and then restart, Ahh, it worked!
Note: If you want to use Home key to wake up Galaxy Note again, go to delete two above modified files and rename the two backup files to gpio-key.kl and sec_key.
For people don't want to do it manually, I make the 2 flashable files for Allow and Disallow the Home key for Note and tested for working, at least on my Galaxy Note.
The 2 flashable files to do that is attached below. Copy to SDCard/ExternalCard and flash them in CWM Recovery, then reboot:
works for me. thx.
Sent from my GT-N7000 using XDA
kui425 said:
works for me. thx.
Sent from my GT-N7000 using XDA
Click to expand...
Click to collapse
OK. Hope that help.
Thanks for reply.
flashable zip
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .
Wish I could give u more thanks for this. Works like a charm. Very very annoying that the home button would wake the phone up by default.
Flashable files to Allow or Disallow the wake-up function of Home key for Note
Flashable file for Allow and Disallow the Home key for Note
Phew! I tried my best to make the flashable file and tested for working, at least on my Galaxy Note.
Here is the link for Allow and Disallow the Home key for Note.
Copy to your SDCard and flash them with CWM Recovery.
Hope them could help.
bunique said:
Could you make a flashable zip file for this?
Would be great!
Thanks in advance...
Click to expand...
Click to collapse
firasusman said:
Yes..please.
+1
GT-N7000-LiquidSmooth-V [2.2] .
Click to expand...
Click to collapse
a big THANKS for the flashable files!
will give it a try....
Works perfectly, thanks
Cassie's xtra lite v2.9
Good Job
AWESOME. thanks!
Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2
I can not thank you enough for this as I have struggled with this issue for the past 12 months and as my job is a dirty one I can feel my phone getting hot in my pocket but cannot take it out as by hands are black. Thanks.
looks like this is not working in Jelly Bean / Cyanogen 10.1
vasiaeva said:
Do not work on JB SLIM BEAN
Sent from my GT-N7000 using Xparent ICS Blue Tapatalk 2
Click to expand...
Click to collapse
does somebody know whitch file(s) to edit for this to work in Jelly Bean or Cyanogenmod 10.1.
I'm on asylum 4.2.2.this is a cyanogen 10.1 mod , like slim bean .
It looks like we need to change more/other files for this to work , wile when i canche the here adviced ones , nothing seems to change ,, the volume buttens still behave the same.
/system/usr/keylayout/sec_key.kl is changed to..
key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
look at line 115 and 114 this would change te volume button function in the power funtion , i suspect , AM I RIGHT ????
in fact this does not change the behavior of the volume buttons at all it still changes te volume , btw i did restart after changing te sec_key.kl file
please advice manny thanks in advance
Is it possible to add long press action to Home key or other capacitive keys like in CM roms ? How to make it turn on flash light ?
Any idea if this works on the s4 too?
StuartTheFish said:
Any idea if this works on the s4 too?
Click to expand...
Click to collapse
Just tried, and yes it does work on the s4. We only have the one file though, gpio-key.kl. Same location though. Find the line that says home, and delete the word wake. Save changes and reboot, job done!

[Q] Button remaping

anyway i can remap my search button as back button?
No reply! Why ppl why! anyway found the way in dr rush cm 10 v2. Editing one file helped
Hi,
This is for people who are having a problem with keys remapping.
Edit qwerty.kl in system-usr-keylayout
Then change the values as below:
158 BACK
139 MENU
217 SEARCH
102 HOME
Check out the link below for an update/patch.
http://forum.xda-developers.com/showpost.php?p=41876923&postcount=18

Lock gear from launcher shortcut

Alright guys,
Pretty much what I'm after is a launcher shortcut which locks our gear.. The reason for this when using custom launchers the home/power button by default does not lock the device anymore.
It seems that particular feature was hardcoded into the TW launcher.
There are various applications available on the playstore, although I haven't found any which work on the gear as they require additional settings to be enabled in a traditional settings dialog.. which obviously we dont have.
If anyone has any ideas please post ! Or even better if you know of a app in mind which works !
Click to expand...
Click to collapse
EDIT:
jrdejavux said:
can you guys please post instructions thank you!
Click to expand...
Click to collapse
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
fOmey said:
Alright guys,
Pretty much what I'm after is a launcher shortcut which locks our gear.. The reason for this when using custom launchers the home/power button by default does not lock the device anymore.
It seems that particular feature was hardcoded into the TW launcher.
There are various applications available on the playstore, although I haven't found any which work on the gear as they require additional settings to be enabled in a traditional settings dialog.. which obviously we dont have.
If anyone has any ideas please post ! Or even better if you know of a app in mind which works !
Click to expand...
Click to collapse
Screen off and Lock
https://play.google.com/store/apps/details?id=com.katecca.screenofflock
put a shortcut to the app and it'll lock your device
i'm now looking for a way to capture the 'home button' to run this app
karoolus said:
Screen off and Lock
https://play.google.com/store/apps/details?id=com.katecca.screenofflock
put a shortcut to the app and it'll lock your device
i'm now looking for a way to capture the 'home button' to run this app
Click to expand...
Click to collapse
I tried this particular application, although it FC's here..
fOmey said:
I tried this particular application, although it FC's here..
Click to expand...
Click to collapse
yeah, you have to enable the device administrator somehow.. on my phone, it works just fine, now to get it to the watch
karoolus said:
yeah, you have to enable the device administrator somehow.. on my phone, it works just fine, now to get it to the watch
Click to expand...
Click to collapse
Yes im aware of that, you obviously didn't read the OP very well.. Thanks anyway..
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Brendo said:
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Click to expand...
Click to collapse
Genius. Worked a charm.. I sussed the keylayouts out previously.. I was looking at Generic.kl..
Modified Key 172 to POWER and it works a charm.
fOmey said:
Genius. Worked a charm.. I sussed the keylayouts out previously.. I was looking at Generic.kl..
Modified Key 172 to POWER and it works a charm.
Click to expand...
Click to collapse
Brendo said:
Can you try editing gpio-keys.kl in /system/usr/keylayout
I think that is the file that tells the os what hardware buttons do
btw this idea got me thinking about enabling mass storage, but I had no luck with the couple of apps I tried. I think kernel needs ums module
Click to expand...
Click to collapse
Awesome tag team. Works great with Nova!
How do you modify the key?
Sent from my SM-N900V using xda app-developers app
bosshogg38 said:
How do you modify the key?
Sent from my SM-N900V using xda app-developers app
Click to expand...
Click to collapse
Root file explorer.. Open the file as a text file.
can you guys please post instructions thank you!
jrdejavux said:
can you guys please post instructions thank you!
Click to expand...
Click to collapse
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
fOmey said:
MUST BE ROOTED
1. Push a Root File Manager or adb to your gear.
2. Navigate to "/system/usr/keylayout", Open/pull the "gpio-keys.kl" file.. Confirm any root permission popup's.
3. Modify "Key 172 HOME" to "Key 172 POWER", Using a text editor.
4. Save/Push changes.
5. Restart gear.
I like to use adb to pull the files I want to modify to my desktop, Modify them, Place them on the SDCARD of the gear and then manually place them using a root file browser to their original locations. Also remember to set permissions, Imitate any other permissions in the same directory.
Click to expand...
Click to collapse
Do you happen to have the stock file setup? I think I may have accidentally edited the wrong key, so now i have two lines with "Key 172 POWER".
MaTtKs said:
Do you happen to have the stock file setup? I think I may have accidentally edited the wrong key, so now i have two lines with "Key 172 POWER".
Click to expand...
Click to collapse
I do not, Although this is what it should look like:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 POWER WAKE
fOmey said:
I do not, Although this is what it should look like:
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 172 POWER WAKE
Click to expand...
Click to collapse
Awesome. Thanks buddy.
MaTtKs said:
Awesome. Thanks buddy.
Click to expand...
Click to collapse
I can't get this to stick...I make the changes, and save, but when I go back in they are different again.
Using root explorer.
Sent from my SM-N900V using xda app-developers app

How to remap hardware button on Ivan lollipop?

Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
erto90 said:
Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
Click to expand...
Click to collapse
of course you know that long-pressing it show up recent apps right? you want the recents with single tap only?
moly82 said:
of course you know that long-pressing it show up recent apps right? you want the recents with single tap only?
Click to expand...
Click to collapse
yes, want recents with a single tap!
Do you know how to do?
However i'm italian like oyu, if you got a solution, hit me on hangout ([email protected])
erto90 said:
yes, want recents with a single tap!
Do you know how to do?
However i'm italian like oyu, if you got a solution, hit me on hangout ([email protected])
Click to expand...
Click to collapse
don't know sorry. but maybe @deepesh.tickoo (author of this nice how-to http://forum.xda-developers.com/xiaomi-mi-3/general/guide-how-to-enable-screen-nav-bar-t2968850) could help you? maybe you just need to change somehow the /usr/keylayout/atmel-maxtouch.kl file?
It's a kernel feature. So your out of luck.
Also you might want to post in his thread as that rom is not here
Alternative method:-
Install xposed framework.
soft reboot.
download gravity box module.(KitKat version).
Activate it.
soft reboot.
open gravity box,
goto navigation key actions
remap keys.
Done.
on phone now,
will upload ss later.
Xposed and lollipop... No way
erto90 said:
Hello, I'm running Ivan lollipop on my phone.. But I wanted the menu button to act as APP_SWITCH button..
I tried to play with the file generic.kl but I'm not expert..
Someone can help me please?
Click to expand...
Click to collapse
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
How can I excess menu...? Is 3 dot menu option appears........
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
It works but I lost vibration and button backlight..
reddygun2848 said:
Hi, try go to system/usr/keylayout and open atmel-maxtouch.kl
From there, rename "key 139 MENU VIRTUAL" to "key 139 APP_SWITCH VIRTUAL"
Then save and reboot. Worked for me.
Click to expand...
Click to collapse
After doing this 3dot menu option is not showing in Chrome... I am not able to access menu in Chrome... ?

Categories

Resources