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


Messages In This Thread
Get volume keys working - by Boern - 05-28-2020, 03:54 PM
RE: Get volume keys working - by dukla2000 - 05-30-2020, 02:01 AM
RE: Get volume keys working - by Boern - 05-30-2020, 04:07 AM
RE: Get volume keys working - by rico - 05-31-2020, 09:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calls 4G not working oliwierzgorniak 2 2,288 08-06-2024, 02:20 PM
Last Post: baptx
  Mobile internet via cellular network mostly not working Anna 18 14,220 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 2,776 01-17-2024, 05:53 PM
Last Post: anonymous
  No volume control after latest updates Zebulon Walton 19 10,301 09-08-2023, 08:28 AM
Last Post: jessencan
  APN settings not working with new operator SIM card user641 1 1,460 03-01-2023, 04:43 PM
Last Post: anonymous
  Possible Solution for Microphone Not Working Ferriah 0 1,239 02-13-2023, 01:09 PM
Last Post: Ferriah
  Squeekboard stopped working Zebulon Walton 2 1,718 11-24-2022, 08:41 PM
Last Post: Zebulon Walton
  suspend inhibit no longer working jsch 3 2,758 10-23-2022, 09:20 AM
Last Post: LibrePhoneUser
  Rescue Your Mobian post Update Aug22 faster fix to working guide biketool 9 6,945 09-05-2022, 12:10 AM
Last Post: biketool
  How to get Pinetime working with Pinephone arkadione 12 9,896 08-28-2022, 12:30 PM
Last Post: Fish

Forum Jump:


Users browsing this thread: 2 Guest(s)