Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检测 HDMI 电缆何时插入或拔出。最好是收到通知,但也可以进行轮询。我正在使用 Qt(和 Qt Creator 作为 IDE)。我不需要它是跨平台的,我可以使用特定于操作系统的系统调用。
Just from the top of my head: you can write a udev rule which sends a message via dbus to your application.
udev
dbus