Commit Graph
6 Commits
Author SHA1 Message Date
Ingo Feinereranddrkhsh 3b699c127d Reset sndiod initialization flag on disconnects
If the connection is lost to the sndiod(8) daemon reset the
initialization to allow for a graceful restart.
2022-10-26 21:24:16 +02:00
Ingo FeinererandAaron Marcher 9ac721c23f Use the sioctl_open(3) OpenBSD API to access vol
Starting with OpenBSD 6.7 regular users cannot access raw audio devices
anymore, for improved security.

Instead use the sioctl_open(3) API to access and manipulate audio
controls exposed by sndiod(8). On the first call a permanent connection
is established with the running sndiod daemon, and call-back functions
are registered which are triggered when audio controls are changed
(e.g., a USB headset is attached) or when the volume is modified. On
subsequent calls we poll for changes; if there are no volume changes
this costs virtually nothing.

Joint work with Alexandre Ratchov
2020-11-30 21:24:33 +01:00
Ingo FeinererandAaron Marcher b14e039639 Follow International System of Units spacing rules 2019-02-17 16:53:56 +01:00
Ingo FeinererandAaron Marcher 10bdf01b71 cpu_perc: Check for division by zero 2019-02-16 16:56:55 +01:00
Ingo FeinererandAaron Marcher d518472e62 Fix CPU frequency on OpenBSD 2019-02-13 18:04:14 +01:00
Ingo FeinererandAaron Marcher c1dc896c80 Add native OpenBSD support for mute/volume
Based on functionality in dstat by Joerg Jung.
2019-02-13 13:35:44 +01:00