03-12-2025, 05:51 PM
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:
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:
Don't forget to give execute permissions:
Now create the systemd service unit:
Now enable the service unit:
From now on the volume keys should be disabled from startup and you can again enjoy your PPP :-)
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 :-)