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
I got a udev rule which launches a go routine when a monitor was connected/disconnected. That routine is using xgb. I configure the monitors depening on how they are (dis)connected. The udev rule works reliable in determining changes on the monitor setup. The problem is, that X or xgb needs some time to realize the change. Means: when my go routine is launched and checks for connected monitors it usually delivers the pre-plug/unplug state. I tried to wait for it with xgb.Sync but it didn't help. I tried to wait for events with xgb.Conn.WaitForEvent or xgb.Conn.PollForEvent but those never got me any events. Any recommendation how to solve that?
The text was updated successfully, but these errors were encountered:
plazmakeks
changed the title
Determine till X recognized new monitors
Determine if X recognized new monitors
Jun 27, 2018
Hi,
I got an issue:
I got a udev rule which launches a go routine when a monitor was connected/disconnected. That routine is using xgb. I configure the monitors depening on how they are (dis)connected. The udev rule works reliable in determining changes on the monitor setup. The problem is, that X or xgb needs some time to realize the change. Means: when my go routine is launched and checks for connected monitors it usually delivers the pre-plug/unplug state. I tried to wait for it with xgb.Sync but it didn't help. I tried to wait for events with xgb.Conn.WaitForEvent or xgb.Conn.PollForEvent but those never got me any events. Any recommendation how to solve that?
The text was updated successfully, but these errors were encountered: