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 (6.12 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with pmOS/SXMO on eMMC
#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
  Calls 4G not working oliwierzgorniak 2 2,238 08-06-2024, 02:20 PM
Last Post: baptx
  Mobile internet via cellular network mostly not working Anna 18 14,131 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 2,723 01-17-2024, 05:53 PM
Last Post: anonymous
  No volume control after latest updates Zebulon Walton 19 10,159 09-08-2023, 08:28 AM
Last Post: jessencan
  APN settings not working with new operator SIM card user641 1 1,436 03-01-2023, 04:43 PM
Last Post: anonymous
  Possible Solution for Microphone Not Working Ferriah 0 1,230 02-13-2023, 01:09 PM
Last Post: Ferriah
  Squeekboard stopped working Zebulon Walton 2 1,696 11-24-2022, 08:41 PM
Last Post: Zebulon Walton
  suspend inhibit no longer working jsch 3 2,727 10-23-2022, 09:20 AM
Last Post: LibrePhoneUser
  Rescue Your Mobian post Update Aug22 faster fix to working guide biketool 9 6,896 09-05-2022, 12:10 AM
Last Post: biketool
  How to get Pinetime working with Pinephone arkadione 12 9,780 08-28-2022, 12:30 PM
Last Post: Fish

Forum Jump:


Users browsing this thread: 2 Guest(s)