Broken Power Button. Recommend ROM - ONE Q&A, Help & Troubleshooting

Looking for a custom ROM that allows rebooting.
Currently using Lineage 14. But there's no option to reboot. Only root + some 3rd party app. To reboot, I connect USB cable and "adb reboot".
Or, can I execute "adb reboot" command within OPO without connecting to PC?

If you have root you can reboot your device by typing:
su
reboot
In terminal app (you can enable it in developer options).
Or you can use AOSP Extended which has the feature to call the power menu using gestures (if you're comfortable using AOSP Extended gesture navigation bar).

Personally I use the xposed manager fot reboots (since my Power button is also broken) But if you use the Nav bar instead of the capacitive buttons you could add a power button there to show you the power menu.
Do you use your vol buttons to turn on the screen?

@Atanasov Goran
I use Nav bar but there's no "power" button option to add in Lineage14. Which ROM do you use?
(To turn on screen, I double tab or use vol button.)

Related

Tethering doesnt work + using other keys as power button

as my phone approaches a year, I'm finding issues with my phone already.
1. Tethering doesn't work anymore - it used to with a diff. rom (could that have affected it?)
2. I lost my root apparently - can't install any screen shot apps because it always says "must be rooted", which I find strange since I already have done it before
3. my power button doesn't work anymore so now I'm using an app called "any unlock" in which it turns the screen back on when I hit the volume up key. anyway I can use the volume down key as a power button (or even the touch keys on the bottom?)
Thanks in advance.

[Q] Change power button to use custom shutdown app?

I have this app called Quick Reboot. It let's you go into shutdown/reboot/recovery mode.
Any way to make it so Quick Reboot launches when I hold down the power button instead of the default which only gives me the option to Power Off?
I have a Nexus 6 if it makes a difference
Thanks for any help

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.

A feature that Long Pressing the Status Bar would open the Power Menu?

Are there any Xposed Modules or Apps that its feature is capable of acting as a Power Button by Long Pressing the Status Bar? Basically, Long Pressing the Status Bar acts just like what the Power Button would do when you Long Press the Power Button (The Power Menu would show up when long pressed). A "Very Long" Press on the Status Bar would restart the Device.
I need this kind of feature to my ROM and Device because the Power Button in my Tablet is not responding properly as of late and I have decided to use it only in the case of emergencies, so that I won't worsen its already bad condition.
I am well aware of apps like Quick Boot and there may be apps that are already capable of doing this but I would want this feature to be noticed and made possible so that this feature would be added in Custom ROMs just like the "Double Tap the Status Bar to Sleep" feature of CyanogenMod. I'm also hoping that this kind of feature would also be included in the Lineage OS ROM.

Themes / Apps / Mods [APP][ONEUI4] Flashlight as keycombo

FlashlightAccessibilityService​
I provide here this basic app to toggle flashlight from vol up + vol down and/or power + vol up.
It uses a new feature introduced with Android 12 to toggle accessibility services from these key combos.
How to use:
Install the app.
Go to Settings app, then Accessibility, and Advanced settings.
Select your key combo, then go down and select Activate flashlight.
Enjoy!
Requirements:
Since it is an Android 12 exclusive feature, this will only work on One UI 4.
To get a proper cohesion between this app and the quick setting flashlight tile.
You should consider, but it is not mandatory, to give WRITE_SECURE_SETTINGS permission to this app.
Here it is only used to read secure settings but we need the permission as well.
To do that, two choices:
Using ADB :​adb shell pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​Using terminal app (as Termux) :​pm grant com.android.flashlightaccessibilityservice android.permission.WRITE_SECURE_SETTINGS​
Changelog:
v1: Initial release
v1.1 : Drastic size reduction (removed unneeded dependencies + build optimisation)
v1.2 : Proper handling between the key combination and the quick setting torch tile
Love it mate. I used Key Mapper before to remap volume up long press to flashlight but this breaks holding vol up to raise volume and I had to tap it to raise volume. This works quite a lot better.
Shame it still doesn't work screen off tho but I guess that's impossible without root and I wanna keep my Knox + bootloader lock intact due to some software from work needing it.
Imprezzion said:
Love it mate. I used Key Mapper before to remap volume up long press to flashlight but this breaks holding vol up to raise volume and I had to tap it to raise volume. This works quite a lot better.
Shame it still doesn't work screen off tho but I guess that's impossible without root and I wanna keep my Knox + bootloader lock intact due to some software from work needing it.
Click to expand...
Click to collapse
Thanks!
Same here I leave Key Mapper since it doesn't recognize power button. Thanks Google for this accessibility feature.
Yep as well shame for screen on only. This is not in my hands btw.
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Sdaro said:
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Click to expand...
Click to collapse
That worked in 11 as well but me at least wants to keep camera on double press side key. How else should we open the camera quickly lol.
Sdaro said:
In android 12 this can be done without any additional applications. It is enough to enter advanced functions, side key, double-press, open applications, select a flashlight
Click to expand...
Click to collapse
For sure
But this way you can use anything else with double press
I'm with @Sdaro on this. I double tap my power key to turn the flashlight on/off. No external apps needed. Did it on Android 11 and still with 12.
Settings -> Advanced Features -> Side Key -> Turn on Double Press, select Open app then choose an app.
DrRyder said:
I'm with @Sdaro on this. I double tap my power key to turn the flashlight on/off. No external apps needed. Did it on Android 11 and still with 12.
Settings -> Advanced Features -> Side Key -> Turn on Double Press, select Open app then choose an app.
Click to expand...
Click to collapse
Again no doubt about that.
But this way you can use flashlight and a second quick launch like camera. Even a third one with the other accessibility key combo.
Thanks for sharing.

Categories

Resources