Volume wake / s2w / alternative wake methods - HTC One S

One of the main reasons I rooted my HOS was that my power button is quite unresponsive. I had read about volume wake in CM10, but this bug http://code.google.com/p/cyanogenmo...Summary Stars Priority&groupby=&sort=&id=6720
prevents it from working properly. I've looked around for various solutions, including sweep2wake, but none of them seem to work on AOSP roms at the moment, or are discontinued (like the s2w kernel AOZP).
My question is this: if I don't want to use the power button to wake my HOS, and I want to use an AOSP rom, what should I do?What's the "preferred method"?

Related

[Q] CM9/CM10/PA Volume Rocker Wake

I'm just wondering if everyone else is having issues with the volume rocker wake on the various CM and PA builds or if it's just my device. When the option is ticked in settings and the when the device's screen first goes off the volume keys WILL wake the device. If I allow the device the sit for a few minutes and then attempt to wake with the volume keys then they do not function.
I have a Galaxy SII (i9100 which I believe shares the same kernel that we're running) running CM9 and use this feature daily as it saves wear-and-tear on the power key.
I've looked for keymap files thinking that perhaps the issue may lay there but on both my phone and on the tablet the CM builds don't define specific keymaps for these devices so I don't suspect that's the issue.
Any help/thoughts/suggestions would be greatly appreciated.

[Q] Hardware touch keys with screen off

The power button of my i9023 completely died so I remapped the search button as power button by modifying the key layout file in /system/usr/keylayouts/ but it seems that hardware touch keys are inactive when the screen is off.
Is there a way to enable them? I already tried adding the WAKE flag but it doesn't work.
Ansa93 said:
The power button of my i9023 completely died so I remapped the search button as power button by modifying the key layout file in /system/usr/keylayouts/ but it seems that hardware touch keys are inactive when the screen is off.
Is there a way to enable them? I already tried adding the WAKE flag but it doesn't work.
Click to expand...
Click to collapse
These keys are not kept on when the screen is off. You'd be better using something such a volume wake (wake phone by pressing vol + or -) instead. Lots of roms have it in their options.
polobunny said:
These keys are not kept on when the screen is off. You'd be better using something such a volume wake (wake phone by pressing vol + or -) instead. Lots of roms have it in their options.
Click to expand...
Click to collapse
I already have the volume wake but it doesn't work when listening to music so I installed Tap Tap to unlock also with the proximity sensor; this thread was more for curiosity and aesthetic reasons than for real need.
So, from what I understand, that behaviour is hardware related thus impossible to be changed by software.
Hm, I have one question, is something like this:[KERNEL]Slide 2 Wake possible on our device?
Ansa93 said:
I already have the volume wake but it doesn't work when listening to music so I installed Tap Tap to unlock also with the proximity sensor; this thread was more for curiosity and aesthetic reasons than for real need.
So, from what I understand, that behaviour is hardware related thus impossible to be changed by software.
Click to expand...
Click to collapse
Ted Mosby said:
Hm, I have one question, is something like this:[KERNEL]Slide 2 Wake possible on our device?
Click to expand...
Click to collapse
I believe it would need to be implemented in the kernel. I don't think anybody took the time to check deep enough to do that for our Nexus.
Kinda wish we had it too.

[Q] How to enable volume rocker wake?

The power button on my G2X has stopped working and I would like to know how to enable wake using volume rocker.
I'm using CM7.2 with Mazout's GB Kernel, and have enabled volume rocker wake in CM settings, but that does not seem to work, once the phone goes to sleep. Does anyone actually use this feature?
Yeah I could never get that to work consistently no this phone.
Any idea why?
I see some old threads here and on the cyanogenmod forum, but no conclusive answer.

Power button dead - T/C possible?

Hi all,
So it's a few days the power button seems to be kaput! The phone only wakes up by removing and re-inserting the battery and after the screen turns off there is no way to turn it on again (unless I receive a call for example). So first I thought I'd just replace the power key as I thought it would be just a clip-on circuit but no! it's soldered to the main board.
Right, next thought was to look whether Touch Control / Sweep 2 Wake-Sleep etc. is possible. I've used this feauture on newer Nexus devices so hoped something would be available for poor old I9023 as well. However, bponury's T/C app is not available for Nexus S and I can't seem to find any S2W/S2S kernel either. It's a long time since I was following Nexus S development closely so is there something similar that will allow me to not throw away the phone or am I looking in vain?
Thanks!
Use volume rocker to wake phone and remap the search button for power
Mawtin said:
Use volume rocker to wake phone and remap the search button for power
Click to expand...
Click to collapse
Volume Rocker Wake should be a custom rom's option I suppose? I will look into it.
Regarding remapping search button, I've searched at Play for "button remap" but seems this kind of apps have disappeared! Any link?
mclisme said:
Hi all,
So it's a few days the power button seems to be kaput! The phone only wakes up by removing and re-inserting the battery and after the screen turns off there is no way to turn it on again (unless I receive a call for example). So first I thought I'd just replace the power key as I thought it would be just a clip-on circuit but no! it's soldered to the main board.
Right, next thought was to look whether Touch Control / Sweep 2 Wake-Sleep etc. is possible. I've used this feauture on newer Nexus devices so hoped something would be available for poor old I9023 as well. However, bponury's T/C app is not available for Nexus S and I can't seem to find any S2W/S2S kernel either. It's a long time since I was following Nexus S development closely so is there something similar that will allow me to not throw away the phone or am I looking in vain?
Thanks!
Click to expand...
Click to collapse
This might be sort of an overkill solution....
Install SlimBean 4.2.2 ROM. It has volume rocker wake AND button remapping.
I've been using the ROM since months and haven't used the power button at all.

Life after power button, tips on how to make it possible?

Disclaimer: I have fixed the infamous power button several times successfully, but now it's no longer possible so let's not go into that any more. For anyone who really wish to altogether replace the button, the following article is a good read, especially the comments on experiences. https://protyposis.net/blog/replacing-the-nexus-5-power-button/ TL;DR: it's tough.
So, my power button finally died permanently, and I'm now trying to figure out how to manage using a phone without a power button. The following things are doable and absolutely fine:
Turning on the phone: requires a PC with Fastboot, and attached USB cable. Press volume down and attach cable, phone will enter fastboot. Then do "fastboot reboot". This is quite problematic if you're not near a PC, but only really is an issue if the battery runs out.
Shutting down the phone: I use third party app like TWRP manager. Requires root I presume. Can be done with ADB as well e.g. by issuing "svc power shutdown" as root. Anyway a non-issue.
Rebooting: No problem, works basically similarly as shutting down.
My main concern is turning on the display. Currently I'm using CM13 CAF and I've set the volume buttons to turn on the display. It's fine, BUT - there is a long lasting bug where sometimes after phone call the display goes dark, and suddenly the volume buttons do not turn on the display. Only way to use the phone then is to find a computer to reboot it. Even attaching a USB cable does not turn on the display if this bug occurs. Not fun!!! I'm not completely sure about AOSP CM13 if the bug exists there, might have to test.
What are the good options for turning on the display other than CM13 / volume button? Are there some Xposed modules to specifically help with using the phone without power button? Any other tips / ideas?
Would you actually use the phone if your power button really died for good?
Edit: Here are some great suggestions given by you so far:
Gravity Screen - Additional service to unlock screen when necessary using proximity sensor. Has some battery usage concerns though.
Another non-CM13(CAF) ROM that do not perhaps have the "blank screen after phone call" issue, and hope that you won't actually need the power button by any incident
Setting up Xposed and using a module e.g. Xposed Additons to mimic power button behavior on volume button(s)
Use an external Pressy-like gadget to have a ROM-independent way to mimic the power button
Use a kernel that supports DT2W (double tap to wake) feature to turn on the screen. Also has some battery usage concerns.
Modify key mapping (gpio-keys.kl) to assign power button function to a volume button (see below)
So there certainly are options! And stuff like Pressy was even new to me. Can you think of more workarounds?
Gravity Screen.
Hi
I used Chroma which is working very good with volume buttons unlock. Now using my build from AOSP also with volume button wake and navigation button for locking.
Using terminal for reeboting/recovery/bootloader/shutdown.
Thanks for the suggestion, I will check them as well.
I'm testing currently Xposed Additions which allows remap any button to perform actions. I've set the volume key down to wake the phone, and long press volume down to lock it. This way I can still enjoy screen off music controls (at least next track by volume up).
Unfortunately this would not mimic the long pressing of power button for hard reboot. So in case display would just not turn on, the phone is still useless until you can get to a computer. But let's see.
Fihlvein said:
Thanks for the suggestion, I will check them as well.
I'm testing currently Xposed Additions which allows remap any button to perform actions. I've set the volume key down to wake the phone, and long press volume down to lock it. This way I can still enjoy screen off music controls (at least next track by volume up).
Unfortunately this would not mimic the long pressing of power button for hard reboot. So in case display would just not turn on, the phone is still useless until you can get to a computer. But let's see.
Click to expand...
Click to collapse
Not a big fan of Xposed and i dont listen to music on my N5 so a bit easier for me.
su | reboot
su | reboot recovery
su | reboot bootloader
su | reboot -p /power off/
I did not found a way for turning it on but connecting via fastboot and than reboot.
I have the exact same setup, but as backup, I use one of those cheap chinese Pressy clones. I use Headset Button Controller to unlock the screen on click, and it usually works when the download buttons refuse to. The only problem with this is not being able to use hedphones, and having the extra service running "just in case".
Use a ROM/kernel that supports Double Tap 2 Wake?
there is 2 options its a bit risky 1 try running normal CM13 and install ElementalX kernel it supports double tap 2 unlock the second option is just get on ebay buy new button and just replace it had this problem thought that i bricked the phone thanks for good information how to get it back up
I've updated the suggestions so far to the OP, thanks a lot!
By the way, do you know if the "10sec long press power button to force hard reboot" feature is mapped somehow physically to power button only? I'm guessing so as it works independently from where you are, in bootloader, recovery, ROM, etc. I was trying to mimic it using volume button (which is mapped to work as power button), and while the regular power button presses work within ROM, the 10sec long-pressing won't work. That would have be too cool to be possible.
Fihlvein said:
I've updated the suggestions so far to the OP, thanks a lot!
By the way, do you know if the "10sec long press power button to force hard reboot" feature is mapped somehow physically to power button only? I'm guessing so as it works independently from where you are, in bootloader, recovery, ROM, etc. I was trying to mimic it using volume button (which is mapped to work as power button), and while the regular power button presses work within ROM, the 10sec long-pressing won't work. That would have be too cool to be possible.
Click to expand...
Click to collapse
it is a qboot thing(one of the bootloaders from qualcomm, that loads before fastboot mode)
Okay I don't know how I didn't realize this earlier but mapping the power key to a volume button is by far the simplest way for me, if one has root. No extra apps needed. Here's how:
Option 1: on existing ROM:
- Boot into TWRP
- Mount /systen
- Modify e.g. with vim /system/usr/keylayout/gpio-keys.kl (I had to use Linux as Windows adb messed up the characters totally while editing)
Original:
key 115 VOLUME_UP
key 114 VOLUME_DOWN
New (volume down as power):
key 115 VOLUME_UP
key 114 POWER​- Save & reboot, and enjoy volume down functioning as a power button (minus 10s long press, that won't work sadly)
Option 2: directly to source when building ROM by yourself:
- Go to your synced source tree root location and locate your device tree (in this example I'm using CM13-CAF)
cd ./devices/lge/hammerheadcaf/​- Create a new local Git branch:
git checkout -b newbranchname​- Modify the button layout file
nano ./gpio-keys.kl
Original:
key 115 VOLUME_UP
key 114 VOLUME_DOWN
New (volume down as power):
key 115 VOLUME_UP
key 114 POWER​- Commit the change:
git commit -am "change button layout"​- Build & enjoy volume down acting as a power button!
I've tried this, along with other methods such as installing apps with root access. nothing seems to be working. I'm on the pixel experience rom (android 9.0). any help would be appreciated.
nigelrodrigues95 said:
I've tried this, along with other methods such as installing apps with root access. nothing seems to be working. I'm on the pixel experience rom (android 9.0). any help would be appreciated.
Click to expand...
Click to collapse
Although my power button currently works, the case I have makes it really hard to use (and I prefer not to anyway):
"WaveUp" app from F-droid to wake the screen with the proximity sensor.
Double-tap the status bar in lineage-16 to shut off the screen.
For any kind of rebooting, I just open a terminal and type the commands.

Categories

Resources