I've been having some strange issues where the "orange dot" (microphone supposedly active/on/listening/recording), but I have no visible apps that actually should have the microphone active.
Is there a way to query the system to find out what apps are accessing such devices as the microphone from the shell or otherwise? I would very much like to find out what app is "needing" to use the microphone for days and weeks on end...