home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.slackware      I think its the one without Selinux crap      87,272 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 85,440 of 87,272   
   S.K.R. de Jong to Rich   
   Re: Detecting whether a monitor is on or   
   30 Sep 21 15:16:11   
   
   From: SKRdJ@nowhere.net   
      
   On Wed, 29 Sep 2021 13:13:55 +0000, Rich wrote:   
      
   > S.K.R. de Jong  wrote:   
   >>        I frequently connect over VNC to a system running Slackware 14.2   
   >> where an X windows session is running on a monitor connected over   
   >> DisplayPort to that system.   
   >>   
   >>        Without being physically there, would it be possible to detect,   
   >> from the 14.2 command line, whether or not the monitor is turned on? I   
   >> have done an online search for solutions and came across a number of   
   >> things that seem to work for some people under Red Hat or Ubuntu - but   
   >> have yet to find anything that works under Slackware.   
   >   
   > Provided you have the DISPLAY variable set to point at the remote X   
   > server, then it is possible that "xset q" will tell you what you want.   
   >   
   > One of the things that it returns is:   
   >   
   >    DPMS (Energy Star):   
   >      Standby: 600    Suspend: 600    Off: 600 DPMS is Enabled Monitor is   
   >      On   
   >   
   > Note the "Monitor is On" line.   
      
   	I tried that first, but this is what I get:   
      
   DPMS (Energy Star):   
     Standby: 7200    Suspend: 7200    Off: 14400   
     DPMS is Disabled   
      
   	I don't know why DPMS is disabled, and before enabling it I would   
   like to have the certainty that doing such a thing is not going to mess   
   up with my existing X session.   
      
   	This aside, many people report that the output from xset q is not   
   reliable in this respect: it may tell you that the monitor is on when it   
   really is off, or vice-versa.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca