The Mysterious XF86AudioPlay Issue
The article discusses an issue with the XF86AudioPlay key event being triggered repeatedly in Emacs. The author investigates the source of the problem, which turns out to be linked to a device identified as 'sof-hda-dsp Headphone'. By using various debugging tools, the author is able to trace the event back to this specific device, confirming it was not a keyboard malfunction.
- ▪The XF86AudioPlay key event was causing an undefined message in Emacs.
- ▪The issue was traced back to the 'sof-hda-dsp Headphone' device.
- ▪Debugging tools like libinput and evtest were used to identify the source of the repeated key events.
Opening excerpt (first ~120 words) tap to expand
I was getting “<XF86AudioPlay> is undefined” in the status bar of Emacs displayed every 2-3 seconds. Nowhere else I noticed any misbehavior or problems, and also couldn’t find any related log entries. It didn’t stop, though didn’t want to reboot my system to see whether that would fix the problem, but it was driving me nuts. Now, as a starting point I adjusted my sway configuration, to react to the XF86AudioPlay key press event: bindsym XF86AudioPlay exec playerctl play-pause After reloading sway, my music player started to play for 2-3 seconds, stopped playing, started again, etc. It wasn’t a Emacs bug, but something indeed seemed to send the XF86AudioPlay key event every 2-3 seconds. It wasn’t my USB keyboard or any stuck key on it, as verified also by unplugging it.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Michael-prokop.