beep icon indicating copy to clipboard operation
beep copied to clipboard

Check for supported events first, send SND_BELL as fallback

Open Bastian-Krause opened this issue 5 years ago • 3 comments

The device might not support SND_TONE events, so check it and print an error if this event type is not supported.

The gpio-beeper driver does not support SND_TONE, but SND_BELL. So send that instead if SND_TONE is not supported.

Bastian-Krause avatar Mar 05 '20 10:03 Bastian-Krause

Due to https://github.com/johnath/beep/issues/11#issuecomment-454056858, I will evaluate this and pick it up over at https://github.com/spkr-beep/beep.

ndim avatar Mar 07 '20 07:03 ndim

Are there well known device names for the gpio-beeper on platforms supporting gpio-beeper? On PCs, /dev/input/by-path/platform-pcspkr-event-spkr is the well-known device name which you can just use and expect to be present.

ndim avatar Mar 07 '20 11:03 ndim

Are there well known device names for the gpio-beeper on platforms supporting gpio-beeper? On PCs, /dev/input/by-path/platform-pcspkr-event-spkr is the well-known device name which you can just use and expect to be present.

Yep, it's /dev/input/by-path/platform-gpio-beeper-event.

Bastian-Krause avatar Mar 09 '20 12:03 Bastian-Krause