On 03/01, Marcus MERIGHI wrote:
sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET):
I'm polling using xrandr to check whether a new display was plugged
in, so I can run a script to switch to it, i.e. plug in an external
VGA monitor and it lights up automatically, unplug it and my laptop
automatically switches back to using its internal display.
I have wanted the same and found no way to avoid polling xrandr(1).
If you find a way, would you be so kind to share the solution?
yes
But, every time I run xrandr my (USB connected) audio stutters, which
makes me sad because I was hoping to poll for a new display every 5
seconds, but that's not so great while listening to music.
Does the --nograb parameter of xrandr(1) help?
no, the sound still stutters, but that was a good idea