How to refresh the list of outputs detected by xrandr?

Łukasz Maśko ed at yen.ipipan.waw.pl
Mon Nov 23 05:05:33 PST 2015


Dnia czwartek, 19 listopada 2015 15:46:33 Łukasz Maśko pisze:
> Dnia czwartek, 19 listopada 2015 14:01:26 Chris Wilson pisze:
> [...]
> 
> > > Is there a way to generate such notification using currently available
> > > software tools, or am I limited to fix in the kernel to make it notify
> > > dock change?
> > 
> > Hmm, can't see a way to synthesize uevents. But still calling xrandr
> > should be enough to do a forced reprobe of outputs. Without a hotplug
> > event, there is a small 15s cache of the most recent probe.
> 
> As far as I've noticed - it does not. But maybe I should wait a bit longer.
> I'll check it as soon as possible.

Unfortunately, in my case xrandr does not refresh its state. I left my laptop 
connected for more than a minute, but it was still reporting "home settings", 
not the ones, it really should see at work. I had to un-dock it and re-dock it 
while it was on, then xrandr started reporting proper outputs and modes.

So I need a way to generate undock/dock event by software.
-- 
Łukasz Maśko                                                            _o)
Lukasz.Masko(at)ipipan.waw.pl                                           /\\
Registered Linux User #61028                                           _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"


More information about the xorg mailing list