nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Programmatically detect monitor (http://www.nvnews.net/vbulletin/showthread.php?t=156759)

bobleponge 11-03-10 10:49 AM

Programmatically detect monitor

I'm trying to detect when the user plugged / unplugged his monitor.
I've used the code from nvidia settings, and I'm able to detect a monitor plug / unplug with NV_CTRL_PROBE_DISPLAY, but I have to run a loop for this, and this is not possible in my application.
The issue with polling that way, is that unless my application does this 100% of the time, I can miss one event (unplug & plug).

I wonder if it's possible to get a X event on such detection, instead of probing in loop ?
Ideally, the event should be timestamp'd so the application can react afterward with never loosing such detection.

bobleponge 11-05-10 09:00 AM

Re: Programmatically detect monitor

bobleponge 11-08-10 02:42 AM

Re: Programmatically detect monitor

All times are GMT -5. The time now is 05:19 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.