If you own a pretty cheap android phone like xiaomi or any other, after some time (say 1 year) your buttons will stop working one by one. Currently in my
redmi note 2, all buttons are not pressable anymore. 😀
You get what you get for your money, can’t expect more.
Usually, if your phone comes with plastic buttons for
power and volumes +/- buttons, well give it some time and observe. You’ll need this article someday. 😛
The actual reason for buttons not working is not actually with the button materials itself, but it reflects the quality of the internal accessory. 😀 Real reason behind this is flex cable getting jammed. If you can remove the phone’s back cover and look at the place where buttons actually lie, you can see a small cable fixed-in, in that area with small 3 bubbles which represent the hardware keys in your mobile.
So if your power button is not working anymore, you’ll find lots of troubles. You can’t power off / on the phone from the hardware button, especially when the battery is drained and connected to the charger. you can’t wake /lock your screen ? The troubles will get really embarrassing if you didn’t go for a solution quickly.
Owkey. time to explore solutions. 😉
1. PERMANENT SOLUTION
Just replace the flex cable with a new one. If you are a DIY fan, you can order a one from ebay, watch some DIY videos on youtube and get it done by yourself. It’s not that hard, but here you have to find a temporary solution till your flex cable arrives and till u get some free time to do it.
I am still having this problem, my flex cable didn’t arrive yet. So I had to go with below steps to get my device working till then.
2. TEMPORARY SOLUTION, OR IS IT ?
So your power buttons and volume buttons are not working. Can’t turn the screen on or off. Can’t boot the device? Let’s solve one by one.
2.1 CAN’T WAKE / LOCK SCREEN
A solution for this would be using alternative ways to wake/lock the screen.
2.1.1 WAKING UP
18.104.22.168 WAKE WITH VOLUME BUTTONS
You can use volume buttons (if working) to wake up the screen. In MIUI (xiaomi ROM) this functionality can be enabled in settings. But in my case my volumes buttons are also not working, so had to dig deeper.
22.214.171.124 DOUBLE TAP TO WAKE
Another way is to use a mechanism like
double tap to wake. So you double tap on screen while its off, and the screen will wake up. Some ROM vendors had integrated this functionality inside their ROM. If so it’s recommended to enable it from there, rather than depending on a third party app. In MIUI 8 (xiaomi) this functionality can be enabled in settings.
I found an app called
knockon which provides the same functionality. Didn’t test in on my device though.
126.96.36.199 WAKE WITH MOTION
Imagine a scenario, your device will automatically wake up when you needed and it’ll automatically lock when you are not using the phone. This solution is very effective even if your buttons are working, but you are too bored to press it every time you need to wake it up.
Using your phone’s inbuilt sensors (context) and with sensor fusion this app (gravity screen) can do an educated guess whether you are holding your phone, lying it on table, it’s in your pocket, you are watching something, etc.
So depending on the conclusion, the app will automatically wake the screen or lock the screen. I was using it for a couple of weeks and it’s surprisingly reliable.
Once you configured the app as you need, you will never have to press your power button anymore. 😉 (even if it’s working)
2.1.2 TURN OFF SCREEN
This is simple, because unlike in waking up the screen you can be the one whom in-charge of this action.
188.8.131.52 TOGGLE BUTTON WIDGET
Just place a toggle widget to turn off the screen on your home screen.
184.108.40.206 ASSISTIVE TOUCH
Or you can be more creative and use an app like assistive touch to have a assitive touch ball on your android like in ios and lock the screen using that.
MIUI 8 (xiaomi) users can enable this feature without any third party app by simply enabling the quick ball feature in settings.
220.127.116.11 LET SENSORS DECIDE
As described in 18.104.22.168 section, you can use gravity screen app to automatically turn off screen when you are not using the phone. Just put the phone lying down once you are done, it’ll automatically turn off.
2.2 TURN ON (BOOT) DEVICE
All the solutions i explained earlier are solved using software approaches. but when your device is powered off, we should look at another way to get it booted. 😛
Okay, let’s approach it step by step. first of all, when do u need to power on your device? it should be one of below.
- your battery is empty and it was switched off
- you intentionally turned it off
2.2.1 BATTERY IS EMPTY AND SWITCHED OFF
The first thing you have to do when the battery is empty is to plug your phone to the charger.
When you connect the charger to your phone while it’s switched off, it’ll show a charging indicator but won’t power on. So what if, we could modify that functionality and make it boot when the charger is connected instead of showing the charging indicator screen.
This can be done. For that you will need to first boot the device into
fastboot mode and modify some configurations. You need
adb tools installed in your PC to continue. If not install them. Also, make sure you have enabled
developer mode and USB debugging in your phone as well.
Now connect your phone to PC (while it’s ON), carefully issue below commands. First lets get it booted to
Now, your device will reboot into
fastboot mode, which we continue to do our modifications.
Issue below command and see if your device is identified.
Issue below command and it will print all the system variables on the terminal. Examine the value returned to
off-mode-charge. it should be 1.
fastboot getvar all .. (bootloader) off-mode-charge: 1 # if its disabled
Now we have to set
off-mode-charge in to 0 in order to boot the device while the charger is connected. Issue below command and verify that you get similar output.
fastboot getvar all fastboot oem off-mode-charge 0 ..
Next reboot the device. Issue below command.
Time to check if it’s working. Turn off the phone with assistive touch or any other method and plug in the charger. Now your device should boot instead of showing you the charging indicator. 🙂
2.2.2 INTENTIONALLY TURNED IT OFF
Simple, just connect the charger, USB cable or a power bank to phone. 😛 It’ll turn on now according to section 2.2.1.
There is always an alternative way. all you have to do it dig deeper. 😉