Bug 6439 - Idle time will get reset to 0 after 20 minutes
Summary: Idle time will get reset to 0 after 20 minutes
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.0.0
Hardware: Other Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 08:24 UTC by Tom Albers
Modified: 2018-06-11 18:31 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Tom Albers 2006-03-31 08:24:38 UTC
Hi,   
  
When you are 20 minutes idle the screen is turned off, at that moment the  
reported amount of seconds idle gets resetted to 0 as well.  
  
--- 
     XScreenSaverInfo*  _mit_info; 
    _mit_info= XScreenSaverAllocInfo(); 
    XScreenSaverQueryInfo(qt_xdisplay(), qt_xrootwin(), _mit_info); 
    totalIdle = (_mit_info->idle/1000); 
    XFree(_mit_info); 
--- 
 
_mit_info->idle will be 0 after 1199 seconds. Exactly the moment the screen is 
turned off. 
 
---- 
idle :: date 
1195 :: do mrt 30 22:19:46 2006 
1196 :: do mrt 30 22:19:47 2006 
1197 :: do mrt 30 22:19:48 2006 
1198 :: do mrt 30 22:19:49 2006 
0 : do mrt 30 22:19:50 2006 
0 :: do mrt 30 22:19:51 2006 
1 :: do mrt 30 22:19:52 2006 
3 :: do mrt 30 22:19:53 2006 
4 :: do mrt 30 22:19:54 2006 
5 :: do mrt 30 22:19:55 2006 
---- 
 
I expect: as long as the user does not move keyboard or mouse the reported 
amount of seconds for idle should increase. 
 
Applications that query this idle time should be able to rely on this figure to 
determine how long the user has been idle. 
 
Tom
Comment 1 Tom Albers 2006-04-04 03:16:34 UTC
Just a small note to let you know that it is the dpms which causes it, when it 
turns off the monitor, the idle is reset. 
Comment 2 Daniel Stone 2007-02-27 01:31:18 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 3 james 2009-05-25 13:51:17 UTC
Hi, Sorry to disturb anyone as I appreciate their efforts, but I was wondering if there are any updates on this bug. Cheers,

_J
Comment 4 Richard Hughes 2009-06-01 02:37:15 UTC
Also affects gnome-session and gnome-power-manager. We've got a funky workaround in gnome-power-manager, but it's obviously not ideal.
Comment 5 Bastien Nocera 2013-01-19 00:25:54 UTC
Dupe of (fixed) bug 22155?
Comment 6 Adam Jackson 2018-06-11 18:31:18 UTC
(In reply to Bastien Nocera from comment #5)
> Dupe of (fixed) bug 22155?

Probably.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.