ACPI handler.sh duplicate key press
Greetings everyone!
So, I am using acpi handler.sh script in order to bind my keyboard's multimedia keys (play, pause, volume up, volume down, etc)
The problem is, I get duplicate events, meaning if I press volup once I get 2 instances of the event instead of one.
If I restart the acpid service the problem goes away until the next reboot.
Does anyone have any idea as to how to prevent this problem? my handler.sh code is in the link below.
https://pastebin.com/2MCHBGXF
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- 142ffd5
4 comments
Have you tried to see if maybe the script is running multiple times? You could use
ps aux | grep "handler.sh"Worth checking! But no, no duplicate instances according to PS
Had the same issue with some other rules on Debian. I enabled acpid event logs and realized that my rules where to capturing more events than i thought they would. Just made my rules a bit more specific and everything works fine
Interesting. Thanks for sharing. I will give this a shot!