You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, audio device names/descriptions are parsed from the dmesg output every time that xsndiomenu is executed. It would preferable if the device name/description mapping was stored and/or cached on disk the be more quickly retrieved when building the xsndiomenu menu options. Part of the reason for this is that dmesg only keeps a set number of output lines and so if a lot of kernel/device changes happen, it's possible for early device logs to no longer be available.
I'm thinking that the daemon (maybe xsndiomenud?) would first parse dmesg, then tail /var/log/messages and parse new lines for audio device changes. Maybe it would save device names to /var/run/xsndiomenud/ for /var/db/xsndiomenud/, which would give xsndiomenu a consistent location to fetch device names without further parsing.
Another alternative to tailing /var/log/messages would be using hotplugd(8), but would require further configuration by the user.
The text was updated successfully, but these errors were encountered:
morgant
changed the title
Caching device names/descriptions as parsed from dmesg in the case of long uptime and/or frequent connects/disconnects resulting in not being found in dmesg
Add caching of device names/descriptions as parsed from dmesgSep 13, 2024
Currently, audio device names/descriptions are parsed from the
dmesg
output every time thatxsndiomenu
is executed. It would preferable if the device name/description mapping was stored and/or cached on disk the be more quickly retrieved when building thexsndiomenu
menu options. Part of the reason for this is thatdmesg
only keeps a set number of output lines and so if a lot of kernel/device changes happen, it's possible for early device logs to no longer be available.I'm thinking that the daemon (maybe
xsndiomenud
?) would first parsedmesg
, then tail/var/log/messages
and parse new lines for audio device changes. Maybe it would save device names to/var/run/xsndiomenud/
for/var/db/xsndiomenud/
, which would givexsndiomenu
a consistent location to fetch device names without further parsing.Another alternative to tailing
/var/log/messages
would be using hotplugd(8), but would require further configuration by the user.The text was updated successfully, but these errors were encountered: