Time ticking despite of TRACK_INACTIVE: False and locked screen
Hello and thanks for maintaining this app!
I have Ubuntu 19.10, X11 user session, the TRACK_INACTIVE is False for the user.
When user locks screen (screen went black), all works fine, but only up to the moment when screen awakes (mouse moved or key pressed). From this moment the user session is considered active. User does not unlock screen, only touched the mouse.
Here is the log pieces (the user name is rightrat):
1. Locked screen, all right:
2020-04-09 19:53:21.225163: ---=== start isUserActive for "rightrat" ===---
2020-04-09 19:53:21.225249: supported session types: ['x11', 'wayland', 'mir']
2020-04-09 19:53:21.226372: user stats, state: active, idleState: True
2020-04-09 19:53:21.226502: ---=== start cacheUserSessio
2020-04-09 19:53:21.227002: got 1 sessions, start loop
2020-04-09 19:53:21.227132: session already cached: 13
2020-04-09 19:53:21.227222: ---=== finish cacheUserSessio
2020-04-09 19:53:21.228338: got session - type: x11, VTNr: 2, state: active, idle: True
2020-04-09 19:53:21.228473: session 13 inactive
2020-04-09 19:53:21.228571: ---=== finish isUserActive: False ===---
2. User touched the mouse (but did not enter the password and did not unlock screen):
2020-04-09 19:55:48.893139: ---=== start isUserActive for "rightrat" ===---
2020-04-09 19:55:48.893224: supported session types: ['x11', 'wayland', 'mir']
2020-04-09 19:55:48.894238: user stats, state: active, idleState: False
2020-04-09 19:55:48.894348: ---=== start cacheUserSessio
2020-04-09 19:55:48.894785: got 1 sessions, start loop
2020-04-09 19:55:48.894917: session already cached: 13
2020-04-09 19:55:48.895018: ---=== finish cacheUserSessio
2020-04-09 19:55:48.896162: got session - type: x11, VTNr: 2, state: active, idle: False
2020-04-09 19:55:48.896298: session 13 active
2020-04-09 19:55:48.896395: ---=== finish isUserActive: True ===---
And from this moment user considered active even when screen blanks afterwards.
If user clicks then "log in as another user", he became inactive again because state changes from active to online:
2020-04-09 20:10:26.343805: ---=== start isUserActive for "rightrat" ===---
2020-04-09 20:10:26.343901: supported session types: ['x11', 'wayland', 'mir']
2020-04-09 20:10:26.344693: user stats, state: online, idleState: False
I don't understand much in dbus etc, but may be there is some other signs of the fact that screen is locked now, on which app can rely on?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Eduards Bezverhijs Edit question
- Solved by:
- Eduards Bezverhijs
- Solved:
- Last query:
- Last reply: