PinePhone Pro disable Volume Buttons when malfunctioning
#1
Hi together,

here comes a solution for a problem I had with the PinePhone Pro, hoping that it helps someone else. When I started installing different distributions, there was the same problem all over again. The volume buttons were randomly sending signals to the phone although I didn't press them, constantly changing the volume. This was very annoying as the pop-up message interrupted anything I wanted to do on the phone. After some research I found the following work around. Tested it on Arch with Phosh and on Manjaro with Plasma Mobile, but should work on other distros too. The solution works by unbinding the volume keys from the driver. The volume keys will stop working then, but the power key can still be used normally. Up to now I didn't miss the volume keys, as it can easily be adjusted in the settings. You can find more information about driver unbinding in this article: https://lwn.net/Articles/143397/

First open a terminal and issue the following command to stop the nuisance:

Code:
sudo echo -n "adc-keys" > /sys/bus/platform/drivers/adc_keys/unbind

Now to permanently deactivate the volume keys on startup we can create a systemd-service.
All of the following code-snippets should be executed as root-user.
First create the shell-script, for example in /opt or wherever you like to have it:

Code:
cat > /opt/unbind-adc-keys.sh << EOF
#!/bin/bash

echo -n "adc-keys" > /sys/bus/platform/drivers/adc_keys/unbind

exit 0

EOF

Don't forget to give execute permissions:

Code:
chmod a+x /opt/unbind-adc-keys.sh

Now create the systemd service unit:

Code:
cat > /etc/systemd/system/unbind-adc-keys.service << EOF
[Unit]
Description=Unbinds the Volume Keys on startup

[Service]
ExecStart=/bin/bash /opt/unbind-adc-keys.sh

[Install]
WantedBy=mulit-user.target

EOF

Now enable the service unit:

Code:
systemctl enable unbind-adc-keys.service

From now on the volume keys should be disabled from startup and you can again enjoy your PPP :-)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Pro Explorer's edition Qualcomm modem recovery shifras 11 4,569 02-28-2025, 07:03 AM
Last Post: tensa1000
  PinePhone Pro EDL boot by shorting contacts ozkenlc 3 2,318 09-18-2024, 04:59 AM
Last Post: biketool
  PinePhone's LED is blinking, but doesn't start zvavybir 0 398 09-06-2024, 02:39 AM
Last Post: zvavybir
  Pinephone pro shuts down immediately after login covar 4 1,486 07-03-2024, 10:59 AM
Last Post: covar
Thumbs Up Pinephone Pro + Keyboard for sale Jimmy88 2 1,862 04-22-2024, 08:38 PM
Last Post: AegisWages
  PinePhone only turns on sometimes zvavybir 1 1,123 03-27-2024, 12:19 PM
Last Post: zvavybir
Question Screen turning off and booting problems with the Pinephone Pro xnZwJR6vys9a2wm7yWE4 0 770 01-16-2024, 02:38 PM
Last Post: xnZwJR6vys9a2wm7yWE4
  Pinephone Pro LCD and Touchscreen Hobgoblin 8 6,257 01-14-2024, 02:50 PM
Last Post: shifras
  Recurrent problems with broken charger chip on the pinephone/pinephone pro keyboard Jite 4 2,627 11-18-2023, 07:25 AM
Last Post: crocspot
  is it possible to install a pinephone pro mainboard in a pinephone hannescam 7 4,915 08-13-2023, 04:50 AM
Last Post: fxc

Forum Jump:


Users browsing this thread: 1 Guest(s)