Related
[THINK TANK] Remap Power/Lock to Camera Functions & Remove Low Battery Limitations
Hi all, i've had a thread about this in general for a while, but i think I would get more attention to this matter here.
I may not be a dev, but I do believe this is very doable, especially because Ive read this in a thread posted by rhcp0112345 titled Debug Codes which proves that the power button can be remapped to do certain functions just like my old G1 could do:
*#*#7594#*#*
This one is my favorite one. This code can be used to change the "End Call / Power" button action in your phone. Be default, if you long press the button, it shows a screen asking you to select any option from Silent mode, Airplane mode and Power off.
You can change this action using this code. You can enable direct power off on this button so you don't need to waste your time in selecting the option.
Click to expand...
Click to collapse
I also remember devs adding support for a Reboot Option to the Power Off Menu, so I think if that is possible, then it should be possible to add a Camera option to that list, and when the Camera is open, rather than use the power button to lock the screen and capacitive buttons, we can allow it to take pictures, and if you long press it, it will show the usual Power Off Menu plus the Lock option.
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
speedysilwady said:
Hi all, i've had a thread about this in general for a while, but i think I would get more attention to this matter here.
I may not be a dev, but I do believe this is very doable, especially because Ive read this in a thread posted by rhcp0112345 titled Debug Codes which proves that the power button can be remapped to do certain functions just like my old G1 could do:
I also remember devs adding support for a Reboot Option to the Power Off Menu, so I think if that is possible, then it should be possible to add a Camera option to that list, and when the Camera is open, rather than use the power button to lock the screen and capacitive buttons, we can allow it to take pictures, and if you long press it, it will show the usual Power Off Menu plus the Lock option.
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
Click to expand...
Click to collapse
If I remember correctly, the key mapping is actually in the kernal, which means that someone who was cooking up a full blown ROM would directly have to go in and map the driver function to the kernal. I don't think this is impossible, but it may not happen for a while. I do agree though, this is a very good idea except for moving Screen Lock to the menu for holding the power button. I think something simple like double press or Power+Volume Up. If I ever find time to muck around in the kernal source, I'll give this a look
speedysilwady said:
Also I was wondering if it was possible to remove what I call the Low Battery Limiter which denies the user access to the Camera, Avatar, Video Player and Music apps.
Opinions? Ideas?
Thanks for your time everyone! Our community is awesome!
Click to expand...
Click to collapse
This would be great!
Tydiz said:
If I remember correctly, the key mapping is actually in the kernal, which means that someone who was cooking up a full blown ROM would directly have to go in and map the driver function to the kernal. I don't think this is impossible, but it may not happen for a while. I do agree though, this is a very good idea except for moving Screen Lock to the menu for holding the power button. I think something simple like double press or Power+Volume Up. If I ever find time to muck around in the kernal source, I'll give this a look
Click to expand...
Click to collapse
ah so its all in the kernel i see. Yeah your idea the double tap sounds good too! I appreciate your interest in the idea! Do you know how to disable the Low Battery Limiter? would that be in the kernel too?
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
thegreatcity said:
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
maybe someone could make an apk along with the kernel to remap it to any button you want. i remember the g1 had a hack that allowed that possibility so im sure the vibrant can do it if someone had the will and know-how
The battery thing is here:
http://forum.xda-developers.com/showthread.php?t=748400
rhcp0112345 said:
The battery thing is here:
http://forum.xda-developers.com/showthread.php?t=748400
Click to expand...
Click to collapse
Thats not quite what I think they are talking about. That will simply make the popup that says "battery full, please unplug" go away. The issue is when your battery is low, the phone will deny you going into certain applications, such as the video player or other things.
Any progress on the low battery limiter?
thegreatcity said:
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
Then what would you do with the zoom in/out function that's currently mapped to the volume rocker?
I think the current "Lock Screen" function of the power button is useless, and would make way more sense as a physical button for the shutter.
While they might not be in the right place, I think remapping the volume keys for the camera just makes more sense.
Click to expand...
Click to collapse
Then what would you do with the zoom in/out function that's currently mapped to the volume rocker?
I think the current "Lock Screen" function of the power button is useless, and would make way more sense as a physical button for the shutter.
Click to expand...
Click to collapse
I second this statement.
No offense to anyone, but using the volume buttons is a stupid idea!
Sent from my SGH-T959 using Tapatalk
so i tried contacting JAC about this through a Private Message a few days ago, he hasnt responded yet but he's been active on twitter lately, so maybe he doesnt check his PMs, i dont have a twitter so i was wondering if anyone that does could tweet this thread to him and ask if he would be interested in implementing it in his kernel?
remapping the volume keys isn't necessarily in the kernel. just install adw launcher or launcher pro and add the camera app to your dock. it's easier.
xREVOx, I think you misunderstood the OP. I believe he is suggesting the power button be remapped to the camera shutter, which I believe is an excellent idea. I would love to help, if I could. I know c++, but have never messed with the linux kernel or android rom dev so I doubt I would be of much use. Either way, I would lover to see it a part of CM 6.1 when that comes out
Sent from my SGH-T959 using XDA App
xREVOx said:
remapping the volume keys isn't necessarily in the kernel. just install adw launcher or launcher pro and add the camera app to your dock. it's easier.
Click to expand...
Click to collapse
Like MinosDis said I was thinking of having an option to add Launch Camera to the power button menu, and once the camera app is launched the power button could be used as a physical shutter button.
Also I really wanna get rid of that low battery popup that prevents access to the music player video player and camera.
If anyone with a twitter echoes my sentiments perhaps they can retweet this thread to @wesgarner or @justanotherdev because I can't get ahold of them on here and I have no twitter.
I use mixzing, and it will play up until you phone powers off. Not quite a hack, but a viable workaround for now
Sent from my SGH-T959 using XDA App
adamcooks said:
I use mixzing, and it will play up until you phone powers off. Not quite a hack, but a viable workaround for now
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Thanks for the tip, I use rock player for videos, and I tried some free camera apps but they all aren't as good as the stock one so I'm hoping jac or kingklick will implement this into one of their kernels
Did you guys Manage to Remove Low Battery Limitations? If not I have, mine is now set to warn / warning level at 5%
eugene373 said:
Did you guys Manage to Remove Low Battery Limitations? If not I have, mine is now set to warn / warning level at 5%
Click to expand...
Click to collapse
Hey eugene thanks for your input and contribution I don't think anyone made any progress on this front. JAC told me it is rom AND kernel related if I wanted the battery limits removed and the camera button remapped so it's not that easy. I'm very glad and thankful that you handled the low battery limitations thank you so much!
Just in case anyone subscribed to this thread.
There's an app in the market called "SGS Tools". You can now use the power button as a shutter button, take pictures when battery is low, and pinch to zoom on the camera (it's a little sluggish). Thanks to Fr4gg0r for developing this.
Article here
http://androidspin.com/2010/12/12/update-your-galaxy-s-camera-to-support-push-to-zoom/
Edit:Do Not Download. There has been reports of it messing up the camcorder and force closes.
Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
If you're using nookie Froyo, you can try the MENU/BACK soft buttons in the status bar mod, instead of remapping the vol+/- buttons. I've been using it since it came out, and can confim it works for nookie Froyo 6.7. Here's the link to the original thread: http://forum.xda-developers.com/showthread.php?t=932631
It does have it's issues, mainly with the stock browser, and causing it to FC. Other than that I have not noticed any other problems.
If you are interested in useing the mod, but don't know how to install it, let me know. I'll pm you or post instructions.
I absolutely recommend remapping the volume buttons. Softkeys is nice, but kind of a pain sometimes. For instance, when I would view pictures in the XDA APP, I would have to restart the app instead of backing out, for some reason softkeys wouldnt let me back out of the picture viewer. It's just much easier to have the menu and back buttons always available than rely on software. I installed volume volume control if I need to adjust volume for some reason.
Is there an app that puts volume in the status bar that anyone knows of?
buffnutz1 said:
Just wondering if people have done it and didn't like it, or vice-versa. It does seem bad for the hardware, but I can't stand softkeys/button saviour.
Click to expand...
Click to collapse
Yup... I've got a Pandigital Novel(white v2) w/custom fw and it'd be essentially useless w/o re-mapping the vol keys to menu and back along with soft-keys in the notification bar...
NC has one up on the WPDN though, it has the n home key plus the 2 vol keys and volume can be controlled through setting or a quick-settings app anyways or by adding soft-keys... still no substitue for physical keys or capacitive screen keys though, unfortunately... (spoilt by gtab with the full complement...)
-------------
buffnutz1 said:
I'm sure you guys know where I'm screwing up. After I adb pull, I only get this
/system/usr/keylayout/twl4030-keypad.kl -> ./twl4030-keypad.kl
/system/usr/keylayout/qwerty.kl -> ./qwerty.kl
/system/usr/keylayout/AVRCP.kl -> ./AVRCP.kl
but it says to edit " 'TWL4030_Keypad.kl' and 'omap_twl4030keypad.kl' "with your text editor of choice; I used vi, always a safe choice.
I don't have the omap. what should I do?
Click to expand...
Click to collapse
Just modify the qwerty.kl in the place of omap. That's what I did and things are working fine.
--ex
Love my remapped buttons and i saved the originals so i can go back anytime i wish.
buffnutz1 said:
Is there an app that puts volume in the status bar that anyone knows of?
Click to expand...
Click to collapse
I am on the stock 1.1 rooted and have mapped my volume buttons - I have tried the other ones, and I MUCH prefer having hard buttons.
I downloaded a volume app "Volume Master Free". It has about 5 different volume controls, but I only use the system volume and the media volume controls.
I use Zeam as home screen; and I put a shortcut to Volume Master on the bottom right of my Zeam shortcut bar. It works very well. I do need to go to the home screen to change volume; but I can tap on the notification bar and toggle mute, so that works for me.
Yes, it makes a huge difference on the stock rom and froyo -- though honeycomb's soft buttons eliminate the need to do so.
Can't recommend remapping the keys enough. On froyo it makes a huge difference in functionality on. The device, life is a pain without it.
how do you remap the vol buttons? i would love to do it
TweetyBear said:
how do you remap the vol buttons? i would love to do it
Click to expand...
Click to collapse
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
I remapped.
I also recommend remapping your volume buttons. It's handy having tactile buttons for the back and menu functions.
What really sold me on remapping was that I didn't like to have a Softkeys button floating on the home screen. Without a floating button, I would have to double tap the hardware "N" button to bring up the Softkeys interface, then hit "menu" or "back." If I have to double tap a hardware button to use "menu" or "back," I might as well just remap those functions to the volume buttons and use a single tap.
evilxenu said:
Go here for instructions:
http://nookdevs.com/NookColor_Remap_volume_buttons_for_back_and_menu
--ex
Click to expand...
Click to collapse
thanks. will attempt over the weekend
can remapping the volume buttons be done when running cm7 nightlies off SD ?
I didn't find a definitive answer
I ran with the CM7 softkeys, Button Savior, remapped volume keys and I just finally settled on zMooth.
I'm not running any extra virtual key apps... What I want to do... is have the physical N button do a BACK on 1 click, and HOME on 2 clicks... Or normal click BACK, and LONG click HOME...
I've looked through some of the settings - can't tell how to set that up (if at all).
Any thoughts?
Why not use the soft keys built in to CM7?
Sometimes the status bar is gone... either because something causes it to hide, or because I hide it.
MHotovec said:
Why not use the soft keys built in to CM7?
Click to expand...
Click to collapse
The best setup so far (imho), is to set the soft keys show up at volume button press.
Since the power button or N button tend to fail sometimes.
By doing that, you can hide soft keys with no fear and just presse volume button to bring they back to the screen, flawless.
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Somehow my "n" button got turned into a back button. Weird. Would much rather haave it be a menu button. but I dont even know how it changed in the first place! lol
DiscoPh3v3r said:
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Somehow my "n" button got turned into a back button. Weird. Would much rather haave it be a menu button. but I dont even know how it changed in the first place! lol
Click to expand...
Click to collapse
I run phiremod so it's in: settings, phiremod settings, tablet tweaks, choose unhide button
DiscoPh3v3r said:
@blauson
I hate doing that because if I need to change volume I need to leave the app, go into settings, and change it manually. :/
Click to expand...
Click to collapse
My volume still works when I use it to recall the status bar.
Rodney
rhester72 said:
My volume still works when I use it to recall the status bar.
Rodney
Click to expand...
Click to collapse
Really? Then I will have to see what's up, last time I was always running around the settings and stuff to change the volume.
Blue6IX said:
I run phiremod so it's in: settings, phiremod settings, tablet tweaks, choose unhide button
Click to expand...
Click to collapse
I am using Rooted Stock 1.2, way better battery life IMO.
rhester72 said:
My volume still works when I use it to recall the status bar.
Rodney
Click to expand...
Click to collapse
I second on that.
I'm running nightly 131.
No problem to change the volume neither to show up soft keys.
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Hrm.. that would work... Where do I configure what the N key does?
dalingrin said:
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Click to expand...
Click to collapse
dalingrin said:
I use the N key to cancel full screen. Its more comfortable to use than the volume keys for me.
Click to expand...
Click to collapse
This is how I've been doing it as well, but sometimes it brings me all the way back to home after showing the status bar. Do you ever experience that? Any tips if so?
Regardless, I like my volume buttons to be... well... volume buttons.
You could use button savior to have a never-hide home only option button located on the very right side by the N button, leaving that slot unused on adw launcher and treat it as a "permanent" home button.
TheAmazingDave said:
This is how I've been doing it as well, but sometimes it brings me all the way back to home after showing the status bar. Do you ever experience that? Any tips if so?
Click to expand...
Click to collapse
That's precisely why I haven't used the n button - if there is a way to avoid it, that would be fantastic!
Rodney
The best thing I ever did was install zMooth. Its a gesture bar that lets you draw the buttons. Almost like my old pre.
Sent from my NookColor using XDA Premium App
jeremymahoney said:
The best thing I ever did was install zMooth. Its a gesture bar that lets you draw the buttons. Almost like my old pre.
Click to expand...
Click to collapse
Looks interesting, but the only gesture I can manage to make it recognize is home. Any special tricks to this?
Rodney
It has always worked well for me. Have you used the nook screen recalibrate app? Before I ran that I had a really hard time getting the lower part of my screen to recognize my touch. I think there are some sensitivity settings in the zMooth app you can play around with too.
Sent from my NookColor using XDA Premium App
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
Hi all.
Currently running CM13 Unofficial on my Mi5.
It appears as though my hardware home button on my Mi5 has failed... Hard press does nothing....
This started on my previous ROM 16/09/2016, and continues on my new ROM 22/09/2016.
I strongly suspect this is a hardware issue rather than a software issue...
My question for you guys is how do I reassign buttons? Is it possible to make the right capacitive (currently app switcher) the home button?
Also, my preferred button to use as a home button would be the soft capacitive touch on the fingerprint scanner on the home button so i can retain my app switcher button....
Any help guys is greatly appreciated.
Many thanks in advance.
When Xiaomi releases Kernel Source there will be an option for non physical home button. On rr you can reassign more options to your buttons. Cm does not work on my device.
Greet
brownhound said:
Hi all.
Currently running CM13 Unofficial on my Mi5.
It appears as though my hardware home button on my Mi5 has failed... Hard press does nothing....
This started on my previous ROM 16/09/2016, and continues on my new ROM 22/09/2016.
I strongly suspect this is a hardware issue rather than a software issue...
My question for you guys is how do I reassign buttons? Is it possible to make the right capacitive (currently app switcher) the home button?
Also, my preferred button to use as a home button would be the soft capacitive touch on the fingerprint scanner on the home button so i can retain my app switcher button....
Any help guys is greatly appreciated.
Many thanks in advance.
Click to expand...
Click to collapse
If your home button is broken, then maybe you should enable 'on screen' (software) buttons from Buttons submenu in Settings?
Capacitive touch is not going to work on prebuilt kernel (every ROM so far, wait for CM's big update).
marcoly said:
If your home button is broken, then maybe you should enable 'on screen' (software) buttons from Buttons submenu in Settings?
Capacitive touch is not going to work on prebuilt kernel (every ROM so far, wait for CM's big update).
Click to expand...
Click to collapse
Have done so. Cheers for the suggestion.. I didn't know this option existed!
As for the capacitive buttons not working, I've seen this mentioned a number of times... My capacitive buttons have always worked since flashing CM?
brownhound said:
Have done so. Cheers for the suggestion.. I didn't know this option existed!
As for the capacitive buttons not working, I've seen this mentioned a number of times... My capacitive buttons have always worked since flashing CM?
Click to expand...
Click to collapse
I meant home button back/recent is always working :fingers-crossed:
marcoly said:
I meant home button back/recent is always working :fingers-crossed:
Click to expand...
Click to collapse
Fingerprint scanner has worked without a hitch too!
brownhound said:
Fingerprint scanner has worked without a hitch too!
Click to expand...
Click to collapse
Yeah, fingerprint to unlock and such.. What about touching (not pressing) home button to return to the launcher? That's what everybody wants to have (and waits for proper kernel)
marcoly said:
Yeah, fingerprint to unlock and such.. What about touching (not pressing) home button to return to the launcher? That's what everybody wants to have (and waits for proper kernel)
Click to expand...
Click to collapse
OK... Thats what I don't have...
Thanks for clarification.
Any idea when there's likely to be a build with this baked in?
brownhound said:
OK... Thats what I don't have...
Thanks for clarification.
Any idea when there's likely to be a build with this baked in?
Click to expand...
Click to collapse
Nobody knows.. No ETA