开发者

Detection screen disconnection in linux

开发者 https://www.devze.com 2022-12-30 10:57 出处:网络
We have a nasty little problem.In short we can detect if a screen is c开发者_Python百科onnect when x11 boots (we do this by looking at the log - Xorg.0.log), but we are having trouble detect when are

We have a nasty little problem. In short we can detect if a screen is c开发者_Python百科onnect when x11 boots (we do this by looking at the log - Xorg.0.log), but we are having trouble detect when are screen is disconnected while the machine is running (ie post x11 boot)

Any one have any ideas?

Cheers


xrandr prints the status of a screen ("connected", "disabled", "disconnected").

Edit: But at least on my binary-nvidia-driver machine it always reports "connected". I suspect a better driver (e.g. intel, radeon) could work though.

0

精彩评论

暂无评论...
验证码 换一张
取 消