Disable power button with mcetool
Question:
Using mcetool (or anything else too!), is it possible to make Sailfish ignore the power button? Short press and long press. The only issue I see is the very long press used to reboot the device when stuck/freezed. Something similar to:
mcetool --set-volume-key-policy=default
Explanation:
I need some help to keep my nexus 5 alive. I already had the power button replaced one year ago, which was causing a boot loop. Since that day I rarely used that button, using instead the volume key to lock/unlock the screen. Combined with the sneak peek/LPM and double tap to unlock everything works quite well now.
Unfortunately it seems it is a crappy button, because now it starts to have the same problem without having used it much. Before it goes in a boot loop I would like to do something software wise, since the repair stores are closed and I don't have the tools to do it on my own.
Thanks to everyone in advance! Cheers
hey take a look at coderus Powermenu, from storeman. I'm not 100% sure if possible, but in there you can remap the powerbutton, for both short-/long press and leave the function empty.
santeira ( 2020-04-20 00:53:58 +0200 )editHow to simulate the power button press then? Using dbus? I'll have to check that the system ignores the power button without pressing it physically.
claustn ( 2020-04-20 13:40:32 +0200 )edit