[Q] Using Camera Button to Wake Phone - Motorola Atrix 2

I wanted to assign the camera shutter button to wake up the phone. I've used other lockscreen apps like Go Locker, Live Screen, and Magic Locker and they all allow the volume rocker to wake the screen, but not the camera button. I then tried the app "buttonremapper" or something like that that I found on xda. It didn't work.
I found this folder:
/system/usr/keylayout/
with the files:
AVRCP.kl
cpcap-key.kl
edison-keypad.kl
evfwd.kl
omap-keypad.kl
qwerty.kl
usb_keyboard_102_en_us.kl
Everywhere I saw:
212 Camera
(all but the first two files)
I changed it to:
212 Camera WAKE_DROPPED
(and added this to cpcap-key.kl)
It worked...but not always. Every now and then, it would not wake up with the camera button (especially if I hadn't had the screen on in a while). Any ideas? Is this a foolish endeavor?
Also, the Search button sometimes does not bring up the search function (long-pressing doesn't bring the voice search) right after unlocking the screen. The haptic still works, but the search doesn't pop up. The ability returns if I press the home button first. The same goes for the camera hardware button not opening the camera app but working after I press home first. This was happening even before my modifications and only intermittently.
My mod is not at all important, but I'm curious why it doesn't work all the time. I'm not sure if it's related to my buttons not working regularly, but I suspect it does.
I am using Go Launcher and tried a variety of lockscreen apps. I just did a factory reset last night to see if it fixed it, but it didn't. I reloaded a minimal amount of apps. I am using the stock camera at this point (I didn't reload camera zoom fx--but it had the same issue before the factory reset anyway). Could this be related to an app or is there something deeper at fault? I doubt it's a hardware defect since it is corrected by touching the home button.
If you think you have an idea but need more info, let me know. I appreciate any suggestions!

Related

Re-map Home and Back to SoftKeys

I'm using Butler [ http://forum.xda-developers.com/showthread.php?t=464611 ] to use the extra functionality of the hardware keys ... the only thing missing for me now is the possibility to use the 2 top buttons of the touch pro [Home and Back] for the left and right softkey (that's the only thing I miss from the kaiser). Any ideas how to do it without AEB ?
And is there a program you can launch to go to the today screen?
I'd be interested in this also. Thus far Da_G's latest roms have been able to reprogram every button except volume, home, and back keys.
Unfortunately the Volume, Home, and Back keys give me the most trouble. I always keep my phone on vibrate and I never use the Home/Back buttons. Even a good way to simply disable these keys would be a start. I'd much rather be able to use my dpad without ending up at the today screen.
Although someone said they used AEB to remap the Home/Back buttons to ONLY function on a double tap.
i was just thinking about this. i noticed i could change long press for send and end as soft keys. not enough buttons on the device you know.
I also would love to be able to reprogram the home and back keys to be the left and right softkeys. There has to be some way to do it...
I did some more searching on this topic. Try DredSensor. It works for me so far.
drcursor said:
I'm using Butler [ http://forum.xda-developers.com/showthread.php?t=464611 ] to use the extra functionality of the hardware keys ... the only thing missing for me now is the possibility to use the 2 top buttons of the touch pro [Home and Back] for the left and right softkey (that's the only thing I miss from the kaiser). Any ideas how to do it without AEB ?
And is there a program you can launch to go to the today screen?
Click to expand...
Click to collapse
If we can get the home, back button, set as left and right softkeys as well as set pressing the center button in as OK button then i would have zero complaints about my att fuze. Sometimes i turn my tilt back on just to use programs such as opera mini, life is so much easier with softkeys!
DarrenUtd said:
I also would love to be able to reprogram the home and back keys to be the left and right softkeys. There has to be some way to do it...
Click to expand...
Click to collapse
Yes im sure everyone is aware of dredsensor which is what i have to use when running opera mini on my fuze. What we are talking about is setting the home and back button as softkeys for good for all apps by default and also having the center button as OK as well. Do we really need a home and back button anyways? I mean we have touch screen phones, i can drag my thumb to get to home screen and press the center button to go back if set to OK button.
No we don't need an Home and Back button. The home button works the exact same as the End key. The back button is iffy. While I don't use it much, I'm sure "some" people do. There are the occasional situations when the back button is useful.
If you make the Center button "Close/Ok", then you won't have a select button. What WOULD work is set the center button to default, but do an "Close/Ok" on Center Hold.
I wish we had all the buttons unlocked to do what we wish. Using Home/Back as softkeys aren't a big deal to me, BUT being able to at least disable them or remap them in games would be sweet. (yes I know about DredSensor... I'm talking about permanent).
Another thing I am aiming for is a "virtual D-pad" using the touch pad area around the center button. Allowing us to navigate simply by making contact to the "hotspots". This would at least fix the problem with using the Dpad in games without ending up at the today screen.
If we could offload the navigational functions to the touchpad... then we could remap the buttons up/down to launch programs or whatever (left and right too).
So Pressing the buttons on the touchpad could launch apps or be used as softkeys or whatever but touching the touchpad would navigate.
Here is the thread; http://forum.xda-developers.com/showthread.php?t=473023
The last couple of posts have been playing down my earlier suggestion to use dredsensor to remap the home and back buttons to be the left and right softkeys (the topic of this thread). I'm not affiliated with dredsensor in any way, but I wanted to clear up this issue.
Since version 1.1 was posted on 1/17, you can in fact remap the buttons as stated above. In your config.ini file, for the [Default] profile with WindowTitle=* and ClassName=*, you have the entries:
HardKey_Launch1=Key:SoftKey1​and
HardKey_Launch3=Key:SoftKey2​
I'm not sure what you guys mean by "permanent" or "for good for all apps by default", but with this configuration these rules should apply in any app, which would seem to be what you want. I've been using this for a few days now and it works for me in the applications I've used. Anyway, it's just a suggestion. Maybe give it a try and I hope it helps.
i followed your suggestion..but i find the behavior erratic..sometimes it looks like it just goes to sleep and the keys are back to normal, and then out of nowhere starts to run again :\
drcursor said:
i followed your suggestion..but i find the behavior erratic..sometimes it looks like it just goes to sleep and the keys are back to normal, and then out of nowhere starts to run again :\
Click to expand...
Click to collapse
From what I've read, there could be problems if you have G-Scroll installed, or maybe on some specific ROMs. Maybe post the issues you are having so that the developer can fix it in the next version.
http://forum.xda-developers.com/showthread.php?t=472280&page=2

Add options to power button menu or double press hardware keys

I don't see a physical camera button on my captivate. i was wondering if i can add the option to the power button menu to open the camera. If not, is there an app or way to hold down a volume button or click a certain amount of times to get it to open the camera?
reason i ask is because I have a 19 month daughter and would need to open camera asap to take pictures as they happen.
if this have been covered sorry... ideally i would love to add the option and few more to that power button menu..
thanks
I'd like to see the capability to program all of them for click, double click, triple click, and long press. There is an app for htat for WinMO.
I have a very nice app that adds a lot of that type of functionality, Tasker, but that is not one of them.
I'm going to suggest it. What we may hear is that Android won't allow it. Seems I have bumped my head into that response two or three times, with comment that Android considers it a security issue.
Yes this is what i am looking for. Such as the search button. Replace that with a short cut button to open camera. I wish devs are seeing this. This will be an awesome mod.
arrrghh...
power strip o power control, takes over the search long hold action to come up with widgets and things... So i think the mapping is there.
Krad said:
I don't see a physical camera button on my captivate. i was wondering if i can add the option to the power button menu to open the camera. If not, is there an app or way to hold down a volume button or click a certain amount of times to get it to open the camera?
reason i ask is because I have a 19 month daughter and would need to open camera asap to take pictures as they happen.
if this have been covered sorry... ideally i would love to add the option and few more to that power button menu..
thanks
Click to expand...
Click to collapse
Just move the camera icon to one of the bottom 4 location. Since you have to unlock the phone before you can start the camera anyway, using the hardware button or clicking the screen make very little different.
You can try using the Widget Locker app. With it I placed the camera shortcut on my lockscreen. Much faster access but not exactly what you are looking for.
Sent from my SAMSUNG-SGH-I897 using XDA App
I second widget locker. Use it with pure messenger and pure calendar to make the lock screen useful.

[Q] Screen Capture launches itself?

So this is a strange sort of behavior which isn't exactly crippling, but is rather annoying.
I'm using a deodexed, de-bloated version of EH09, although this happened on earlier ROMs I used so I wouldn't attribute it specifically to the ROM. To the best of my knowledge, I'm using the latest beta version of Swype.
Sometimes, after writing a text message or news post or something of the like, when I hit the power button afterwards to turn off the screen, it will instead trigger a screen capture and save it to the SD card. This behavior stops once I hit the back softkey a few times, but today (and for the first time so far) the softkeys were nonresponsive. Because it happens after writing something of reasonable length, I'm suspecting that some combination of keypresses are responsible for launching the screen capture service.
I don't have any screen capture apps installed, so it must be something integrated into the ROM. Anyone else experience similar behavior, or have any thoughts?
Known problem with our phones; the back and menu buttons sometimes press themselves in low signal areas or during data usage. Reason is not known.
Right, I've noticed that behavior as well. But what does that have to do with the screen capture service?
IanM32 said:
Right, I've noticed that behavior as well. But what does that have to do with the screen capture service?
Click to expand...
Click to collapse
It's built into touchwiz that if you hold menu and hit the power button it takes a screenshot, if I recall correctly. So if the button glitch is happening and causing the menu button to be pressed, and you press the power button, it takes a screenshot.
Sent from my MIUI SCH-i500
Oh, I see. Well, I believe the ROM I'm using has Touchwiz stripped out, though I'll admit to being a bit unclear as to how much of the underpinnings consist of TW stuff. But I just tried the menu-long-press shortcut, and it didn't initiate the screen capture service.
Thanks, though.

[Q] 3D Button expanded functionality mod request

Not allowed to post in the developer section yet or I would've requested it to be added to the CameraMOD 3D posted by ErosizeD.
My biggest problem with the O3D is that the screen constantly switches off, your in the middle of doing something, or even just answer a call and instead of the in-call screen it will just swich off disabling the capacitive buttons. The only way to get it to come back on is to fiddle around trying to find the lock/on/off key....
I've requested this in the LG forum but doubt they listen to their customers. Hence, it would be great if one of the developers on xda could do a mod for the 3D button, making it smarter by incorporating the following functionality:
1. With the screen off, a single press of the button switches the screen on.
2. With the screen locked and on or off, keeping the button depressed for 3 to 4 seconds unlocks the screen and also switches it on if it was already off.
3. With the screen on and unlocked, it functions as it does now, as in launching the ‘3D Space’ app and if pressed whilst viewing 3D pictures, it switches between 2D and 3D view.
4. If the button is pressed whilst watching a video it works the same way as the Samsung i8910 whereby keeping the video playing with the screen ON but disabling the capacitive icons and the touch screen sensors/input (very useful for children). Holding the button down again would re-enable the touch screen.
5. If the button is pressed whilst the camera is on, it acts as the capture button to take pictures or start/stop video recording.
It does not need it to lock and switch off the screen as the current on/off button is fine for that purpose. It would also be very useful if pressing either of the volume buttons when the screen is OFF, simply switches the screen on!
Hope this is possible and thanks for reading this request.
If anyone else would like to have similar functionality added to the 3D button please feel free to add any suggestions/changes.
Thanks.
Sent from LG-P920 using Tapatalk and TouchPal
Just wanted to say...
I only agree about #5 on your list. The 3D key is indeed in the perfect position for taking pictures.
However, I don't agree with the other 4 points on your list.
#1, pressing the 3D button to unlock the phone is actually a much worse idea than the lock/unlock button. I don't know how you hold your phone, but I've just tried it out. With the way you normally hold your phone, the lock/unlock button is in a very nice place to lock the phone. A better place would be the volume up button. The 3D button... well unless you use phone on left hand a lot and press with pinky or you press with your palm on right hand, its a very bad place to put an unlock button.
#2 I have no idea what you are talking about. What do you mean holding it for 3 or 4 seconds and then it'll unlock screen and turn it on? If you unlock the screen the phone is already on. If your phone is off, then the screen can't unlock.
#3 I don't have anything to say about this becuase this is exactly how the 3D button works right now.
#4 I believe this is a useless attempt to stuff too much into one button. Just know that to make this feature work, you dont' make any changes to the button rather you got to make changes to the video player. And it'll only work for that video player. For example, we mod the stock Video Player, it works perfectly.. the way you suggested. Then you download a flv video and it won't play. You download MoboPlayer and it plays perfectly. You hold down the 3D button and it launches 3D space. Personally, I would suggest just downloading MoboPlayer because if you're watching something, you can press Settings button to disable all inputs.
5. Like I said, I would appreciate if the 3D button became a Camera button during camera apps. But this would only be for the stock camera app, which would mean modding the camera app to make this work. Personally, I would prefer pressing anywhere on the screen to take a picture as opposed to using the 3D button as a shutter button, but then...that's just my preference.
I don't know, but I want to wake up my screen with any of buttons like MENU/HOME/BACK/SEARCH
i would LOVE the 3d button to also be the shutter button.
the fact that it's not by default is pretty idiotic if you ask me.
so there is a way to make photo with the 3d button on Optimus 3d?!?!?
Plssss is so important for me....
lamehh said:
I don't know, but I want to wake up my screen with any of buttons like MENU/HOME/BACK/SEARCH
Click to expand...
Click to collapse
hefonthefjords said:
i would LOVE the 3d button to also be the shutter button.
the fact that it's not by default is pretty idiotic if you ask me.
Click to expand...
Click to collapse
if those mod can be applied (pls for someone here to make it real...), just gonna make this HH way much better....
I could think of creating something that does those features. But like other ppl said, everyone doesn't want all of those features, that's why we'll need an app that could let ppl choose the exact actions they want for the 3D button because seriously, how unimportant isn't the button really? A button that says "3D" is completely wasted and that's why something should be done, letting ppl choose the actions for their buttons, lol.
I'm new to LG Development but it's definitely not impossible by just an app, would required root though. I'll look further in too it when I got some spare time.
KurdX said:
I could think of creating something that does those features. But like other ppl said, everyone doesn't want all of those features, that's why we'll need an app that could let ppl choose the exact actions they want for the 3D button because seriously, how unimportant isn't the button really? A button that says "3D" is completely wasted and that's why something should be done, letting ppl choose the actions for their buttons, lol.
I'm new to LG Development but it's definitely not impossible by just an app, would required root though. I'll look further in too it when I got some spare time.
Click to expand...
Click to collapse
I for one would definitely love such an app! But the one function I really care about, that's switching the screen on with another button, different from the power key. I would even go for switching the screen on with the volume rocker if that idea isn't too bad! Hope you can really do something about it
1&2 - I don't really see the point in 3d camera screen on. Its not as if the power button is hard to press (Compared to other smart phones at least)
3 - I would prefer if the 3d button launched the Camera. There's pretty much no point in opening 3d space, besides showing off. Editing the \system\usr\keylayout\omap-keypad.kl from
Code:
key 249 3D_MODE
to
Code:
key 249 CAMERA
disables all other functions of the button, such as taking photos, 3d switching etc.
4 - This would be somewhat useful, but probably difficult as it would have to be coded into the stock video player, which i don't use since it seems to lag while playing some video formats.
5.The 3d button already takes photos with Stock GB ROMs.
what do u want this one button to do everything... Get over it long press = 3d menu and in camera mode on 2.3.3 it takes pics i say that is more then enough... I don't want it to turn my screen on etc.. I have other perfectly working buttons to do that...
I'm using ThiaZO3D on my LG Thrill with v18a baseband and the 3D button is great! pressing it now won't immediately launch the 3D launcher, you must hold it down. While in the camera app, you can press the 3D button to take a picture or start recording a video. You may even press and hold to keep the focus, then let go to take the picture. I've found that if you're in the middle of focusing it and you don't want to take a picture you can tap the screen twice or just hit the back button.
With this rom, it's perfect, no need for it to be anything else. Haven't tested with binding the 3D button as a key in N64oid or any other emulator yet, I assume it works fine as long as you don't hold the button too long.
have you try "No Lock " App? it 's work great if you dont' want the power button to be press while the screen off.

[Q] Remap volume-up button to power button

Hello all,
Recently the power button on my Nexus 5 has been acting really weird. Sometimes it works flawlessly, others it requires pressing it really hard to work. In order to prevent it to stop working indefinetely, I am looking for a way to remap my volume-up button so it can work as a power button. I don't need it to turn my phone on or to work in the recovery mode (from what I read, it seems to be impossible), only when Android is running.
I've already tried some workarounds:
1) Volume Unlock Power Button Fix app: I tried it, but it just allowed me to turn on my phone with volume but not turning off. Also, it drains a LOT of power.
2) Buttonremapper app: It would theoretically do exactly what I wanted, but did not work at all.
3) Editing generic.kl: I tried switching volume-up and power buttons codes in generic.kl, but also did not work. Maybe I need to modify another file?
3) Xposed Framework + Additions: The installation of Xposed went Ok, but after installing Additions module I got stucked in bootloop. I am running Android 5.1 stock, maybe this module is not yet compatible.
So, can anyone help me? Do I need to install a custom ROM?
PS: I live outside US, so no warranty for me. Otherwise I would just use it
Thanks in advance for any help!
Cheers,
Humberto
Hi folks,
Just a heads up for anyone who might be facing the same issue. I decided to change from stock to Cataclysm ROM due to some specific features (listed below). After the installation, here's what I did to work around this problem:
1) Enabled "Volume wake" and "Sleep button on status bar" in "Cataclysm Settings / Miscellaneous".
2) Enabled "Swipe to sleep" and resized NavBar to 115% in "Cataclysm Settings / Navigation bar options". -> This way I can swipe in NavBar at any time (except lockscreen) to turn off screen. I raised it a little to facilitate the swipe gesture.
3) Changed Lockscreen Dialer shortcut to ""Turn off Screen" app shortcut (just search for it in the play store) in "Cataclysm Settings / Lockscreen options" -> This allows me to just swipe right and turn off the screen when my security settings are disabled (which accounts for most of the time). I found it way faster than pressing sleep button in status bar, especially when I'm driving and I can't look at the screen. Plus, I don't really use the dialer function of my phone so often since the invention of Whatsapp ;P
I realize this is not the perfect solution, but I don't see a better way to deal with this power button malfunction problem (except from a hardware fix).
Hope this helps!
Cheers,
Humberto
PS: I am really enjoying Cataclysm. It's a very nice ROM, completely stable and with a lot of other interesting features aside from the ones mentioned above. I strongly encourage anyone to give it a try!
I'm facing the exact same problem but I really need to eliminate the power button or I will need a power button fix soon.
The solutions you found hthiengo are good if not needing to turn off (or worst: running out of battery, something that happens me sometimes). I'm in the situation that next time I hit power button I will need to replace the button, or throw the nexus away
I did installed the xposed additions for lollipop but it is not working, and the Cataclysm trick is not enough in this case
Ok, after some research I've found a temporary solution:
For the power button you can remap modifying the file gpio-keys.kl under system/usr/keylaout (i wonder why anyone could figure out thise before, no that difficult). I would like to map power button leeaving it useless but I've found it impossible to remap the power button (probably because the key number is not 116). I would have liked to see xposed additions to help me map the keys but is not functional at least for me.
If the phone runs out of battery I've found that if I plug the power cable by pressing both volume buttons at the same time, eventually it starts up with the bootloader so I can plug the pc cable and it will reboot sucessfully.
So despite the phone know is pretty disfunctional (not the best phone for a hurry without battery), I can still use it for some weeks before I plan buying a new one or something (or I find a place for reparing). Its a shame I could not find a better solution for example, ADT when powered off so I could just reboot it by using ADT reboot command while powered off.
And It would be really amazing if the volume up button could also power it on from the powered off state.
In my case the power button is broken, but sometimes it gets stuck and puts the phone in a reboot loop: To avoid pressing the power button accidentally I've made a hole in the protective case so its pretty difficult to access it.
That's all for now. If anyone can make it better I will be glad to hear him/her

Categories

Resources