Skip to content

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

1 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
142ffd5

Author

2
posts
14
comments
0
media
View profile

4 comments

Have you tried to see if maybe the script is running multiple times? You could use ps aux | grep "handler.sh"

1 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.