How to make volume and power buttons do things
#1
Hi

I got the pinephone UBports community edition but its terminal app was way too slow!

I decided I would rather start with a minimal as possible pinephone (just a console) and work my way up from there. So I have been exploring postMarketOS. 

So far I have flashed both the "None" and "Fmbootstrap" options of the pinephone, but the screen doesn't turn off when I tap the power button. This is a tremendous waste of battery. It should suspend when I press the power button (like ubuntu's Suspend function).

Also, changing the system volume with the volume keys would be ideal on these installations. But only the volume down button seems to input [^26] to the phone as if that were a key people needed to type.

It would be nice to know how to change these buttons to run custom commands too!

For me, the phone has to have a fast terminal to code on the go. The battery life should also be long! As far as I'm concerned, a GUI would be nice, but on such a small screen, it isn't going to do much anyway.
#2
you might be interested in sxmo-ui. It used dwm and you can configure the volume and power keys in the config.h for dwm.
#3
There is a MR open to make the volume buttons do stuff under Phosh, https://gitlab.com/postmarketOS/pmaports...uests/1451

The power button, at least under Phosh, already turns off the screen. We are still working on making it work with Crust though so pressing it will bring the phone into a deep sleep.
#4
You can use actkbd to make the keys do almost anything. See here: https://forum.pine64.org/showthread.php?tid=9976


Forum Jump:


Users browsing this thread: 1 Guest(s)