-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicate events #9
Comments
I'm also experiencing this. Built against master (4e4b754) on Arch. |
Having the same problem. A similar project (troglobit/xplugd#8) seems to have the same problem as well. I can't speak to other people's setups, but the problem seems to be when you call xrandr inside of your srandrd script. I recommend using In my setup, I have a laptop with an internal display (eDP-1), and an external HDMI display (HDMI-1). If I plug in the HDMI display without srandrd running, here's the event output I see:
But my srandrd script normally runs an
As you can see, the second output has two XRROutputChangeNotifyEvent events with an I tried replacing my |
Hmm, my initial idea was "ignore all events with
The problem is that, if all the I wound up with a more complex approach, where I ignore connected events with a mode, and disconnected events without a mode. Frankly I'm not sure this is a good idea. Maybe the behavior should be gated behind a CLI option? But I'll share it here if other people want to try: tummychow@9016750 The conditionals come from https://cgit.freedesktop.org/xorg/app/xev/tree/xev.c?h=xev-1.2.4#n956 . e: Perhaps a better solution is to add an SRANDRD_MODE envar that contains the mode (or is empty if the mode is unset). This would allow users to debounce the duplicate events themselves if they wanted to. But I'm too lazy to implement that now that my setup works. |
Is this still an issue? |
Yes, still an issue. |
Hi, thanks for sharing this tool, it appears to be exactly what I was looking for.
Currently events are duplicated whenever I plug/unplug my 2nd display, similar to behavior described in issue #5.
Environment info:
Command:
srandrd -v -n display_handler.sh
display_handler.sh ...
Command output for one plug/unplug "cycle":
Any thoughts? Thanks for your time.
The text was updated successfully, but these errors were encountered: