jouyouyun / screen-poller

Poll screen monitors infos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screen Poller

Purpose

Poll monitor number, if not equal with above, refreash screen infos.

Because sometimes plug or unplug VGA no event emitted by kernel.

Implementation

The number of monitors via calling libdrm drmModeGetResources

The refrash operation via calling libxrandr XRRGetScreenResources

Install

Depends: libx11, libdrm, libxrandr

make && sudo make install

It will autostart after user logined.

About

Poll screen monitors infos


Languages

Language:C 88.9%Language:Makefile 11.1%