You are not logged in.

#1 2019-02-14 21:39:19

Leonsbane
Member
From: Germany
Registered: 2019-02-14
Posts: 1

udev does not fire hotplug event, when unplugging slowly

Hello,

I was fiddling around with autorandr today. Trying to achieve an automated switching of displays when connecting/disconnecting an external display.
From what i understand, autorandr listens for a udev-event via a udev-rule to know if a display is being connected or disconnected and then runs:

/bin/systemctl start --no-block autorandr.service

Yet I encountered a problem, that sometimes it wont work. In these cases, no udev event is fired.
It works everytime when plugging the cable in, but only sometimes when unplugging.
There is an older topic: udev not detecting monitor unplug event, which describes a similar problem, but has no answer.

Interestingly enough, I noticed that when i disconnect the cable "fast" enough, it works more reliable.
By "fast" I mean, no wiggling to disconnect it (since the plug sits rather firm inside the socket), instead getting a good grip and pulling it out in one go.

Is this a oddity of my laptop? Or is this "normal"?

Offline

Board footer

Powered by FluxBB