Get volume keys working
#1
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 http://users.softlab.ntua.gr/~thkala/pro....8.tar.bz2
2. Untar the downloaded file
Code:
tar xjf actkbd-0.2.8.tar.bz2
3. Install build-essential so that you can compile programs
Code:
sudo apt install build-essential
4. Enter the untarred directory and compile actkbd
Code:
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
Code:
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:
Code:
[Unit]
Description=actkbd keyboard shortcut daemon

[Service]
Type=simple
ExecStart=/home/mobian/.local/bin/actkbd -c /home/mobian/.config/actkbd.conf -d /dev/input/by-path/platform-1c21800.lradc-event
Restart=always
RestartSec=5s

[Install]
WantedBy=default.target
9. Reload systemd
Code:
systemctl --user daemon-reload
10. Enable actkbd to autostart
Code:
systemctl --user enable actkbd
11. Start actkbd
Code:
systemctl --user start actkbd
#2
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
#3
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.
#4
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
  Programs unable to open display via sudo or pkexec (linssid not working) Zebulon Walton 1 146 Yesterday, 09:16 AM
Last Post: nelstomlinson
  firefox-esr stopped working after June 18 update HLing 17 1,827 07-21-2021, 02:40 PM
Last Post: dante404
  Disabling Volume Rocker? jfenn2199 0 94 07-15-2021, 02:25 PM
Last Post: jfenn2199
  mobile data on mobian not working synaption 1 323 06-02-2021, 03:16 PM
Last Post: Aberts10
  can't get file transfer working. Help, please! quixote 25 2,328 05-28-2021, 06:53 PM
Last Post: Rainer
  chats not working rvh 0 223 05-18-2021, 07:48 AM
Last Post: rvh
  Run Mobian Unstable without risking being stuck without a working phone C0ffeeFreak 3 1,083 04-23-2021, 01:10 PM
Last Post: RTP
  UFW (uncomplicated firewall) Start On Boot - Mobian (working) theD0ctor 2 670 02-28-2021, 09:58 PM
Last Post: theD0ctor
  some flatpaks not working sfb 2 655 02-15-2021, 10:31 AM
Last Post: C0ffeeFreak
  Keypad not working during call Zebulon Walton 4 740 02-10-2021, 06:56 AM
Last Post: Zebulon Walton

Forum Jump:


Users browsing this thread: 1 Guest(s)