![]() |
PinePhone Pro disable Volume Buttons when malfunctioning - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177) +--- Forum: PinePhone Pro Hardware (https://forum.pine64.org/forumdisplay.php?fid=180) +--- Thread: PinePhone Pro disable Volume Buttons when malfunctioning (/showthread.php?tid=19735) |
PinePhone Pro disable Volume Buttons when malfunctioning - ArchBene - 03-12-2025 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 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 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 :-) |