Get volume keys working
I was fed up with the volume keys not working in Phosh, so I set up actkbd to control them.

1. Download the source code of actkbd
2. Untar the downloaded file
tar xjf actkbd-0.2.8.tar.bz2
3. Install build-essential so that you can compile programs
sudo apt install build-essential
4. Enter the untarred directory and compile actkbd
cd actkbd-0.2.8 ; make
5. Copy the resulting actkbd binary somewhere sensible. I chose ~/.local/bin/
6. Create a config file somewhere sensible. I chose ~/.config/actkbd.conf. The default is /etc/actkbd.conf. If you use the default location you don't have to specify it when launching actkbd.
7. Add the following to the config file
114:key::pactl set-sink-volume @DEFAULT_SINK@ -5%
115:key::pactl set-sink-volume @DEFAULT_SINK@ +5%
8.Setup actkbd to autostart by creating the file ~/.config/systemd/user/actkbd.service with the contents:
Description=actkbd keyboard shortcut daemon

ExecStart=/home/mobian/.local/bin/actkbd -c /home/mobian/.config/actkbd.conf -d /dev/input/by-path/platform-1c21800.lradc-event

9. Reload systemd
systemctl --user daemon-reload
10. Enable actkbd to autostart
systemctl --user enable actkbd
11. Start actkbd
systemctl --user start actkbd
This is great. This is the "pleasing" gains of linux on a phone as opposed to the alternatives!

A question - does actkbd intercept the key press before they go anywhere else? In particular I am thinking of the power key (appreciate the volume keys were not going anywhere!). 1 click off, long or double click on. If I lose the 6 second hard power-off that is not a train smash as I can always pull the battery!

I am fed up with phosh, having to slide up and then enter my PIN - I don't need the security and it is just wasting my time*. I am nearly as fed up with the digitizer still being active when the display is off. I guess I need to find the time to play but converting the power button could make me a very happy bunny!

* - I have spent days on DuckDuckGo trying to find phosh specs how to tune its function, how to disable PIN screen etc without success. Or even find a description of what else can go in /etc/phosh/phoc.ini etc.
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.13 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
Looking at the readme you should be able to block others from receiving the events with the grab attribute. You'll have to start another instance of actkbd for the power button events, as they are emitted by another device. I think /dev/input/event0.

Definitely report your digitizer findings, as I am fed up with that as well. I think instead of creating a whole new compositor Purism should've tried to get Plasma or Gnome up to snuff. They both work almost perfectly fine with just a small minor annoyances. Even the respective virtual keyboards have almost every feature squeekboard is missing.
I really prefer onboard with lightdm.
Gdm3 and it's default keyboard is not suitable for command lines.
Perfect on a tv/login screen but useless if you need some ctrl-c or other options.

Possibly Related Threads…
Thread Author Replies Views Last Post
  SSH not working ragreenburg 0 14 1 hour ago
Last Post: ragreenburg
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 0 51 07-28-2021, 05:46 PM
Last Post: cowsay
  Programs unable to open display via sudo or pkexec (linssid not working) Zebulon Walton 3 267 07-24-2021, 06:11 PM
Last Post: Zebulon Walton
  firefox-esr stopped working after June 18 update HLing 17 1,896 07-21-2021, 02:40 PM
Last Post: dante404
  Disabling Volume Rocker? jfenn2199 0 130 07-15-2021, 02:25 PM
Last Post: jfenn2199
  mobile data on mobian not working synaption 1 343 06-02-2021, 03:16 PM
Last Post: Aberts10
  can't get file transfer working. Help, please! quixote 25 2,462 05-28-2021, 06:53 PM
Last Post: Rainer
  chats not working rvh 0 241 05-18-2021, 07:48 AM
Last Post: rvh
  Run Mobian Unstable without risking being stuck without a working phone C0ffeeFreak 3 1,128 04-23-2021, 01:10 PM
Last Post: RTP
  UFW (uncomplicated firewall) Start On Boot - Mobian (working) theD0ctor 2 707 02-28-2021, 09:58 PM
Last Post: theD0ctor

Forum Jump:

Users browsing this thread: 1 Guest(s)