如何探测显示器是否接上,求解决?
-
- 帖子: 2
- 注册时间: 2015-07-21 10:31
- 系统: ubuntu 12.04
如何探测显示器是否接上,求解决?
设备支持接多个显示器,现在程序中想探测显示器是否插上,插上了几个,用xrandr命令可以实现,但是没调用一次该命令,显示有点卡顿感,不知道还有没其他的方法可以实现呢?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 如何探测显示器是否接上,求解决?
http://unix.stackexchange.com/questions ... -unplugged
How can I detect when a monitor is plugged in or unplugged?
How can I detect when a monitor is plugged in or unplugged?