Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-03-10, 10:49 AM   #1
bobleponge
Registered User
 
Join Date: Nov 2010
Posts: 3
Default Programmatically detect monitor

Hi,

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 is offline   Reply With Quote
Old 11-05-10, 09:00 AM   #2
bobleponge
Registered User
 
Join Date: Nov 2010
Posts: 3
Default Re: Programmatically detect monitor

bump
bobleponge is offline   Reply With Quote
Old 11-08-10, 02:42 AM   #3
bobleponge
Registered User
 
Join Date: Nov 2010
Posts: 3
Default Re: Programmatically detect monitor

bump
bobleponge is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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


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