PersonalAnalytics
PersonalAnalytics copied to clipboard
Logout/Sign-Out/Shutdown Events should be captured and some events added to Windows Activity
- [x] if a user pauses the tracker, there needs to be an entry.
- [x] Logout/Sign-Out/Shutdown Events should be captured
- [x] + re-check IDLE?
New hint (from a participant): When a user is streaming music from the browser, the OS might not send the 'idle' event, which is when the time spent in a program is wrong (i.e. should track 'idle', but is tracking the last used program).
Update 19.12.16: sometimes, there are still some cases where the IDLE event is not logged ... (I need to check it out again)
Details 23.01.17 from @manulita:
Ich hab mir die Daten bei mir mal angeschaut. Ich habe recht selten den Event SystemShutdown. Meistens geht mein Laptop auch nur in den Ruhezustand. Oft funktionert es aber trotzdem. Der letzte Event ist oft idle. Wenn es ein anderes Programm als letzten Event hat, dann passiert es manchmal, dass sich das dann über mehrere stunden (bis zur nächsten Aktivität durchzieht (im pie Chart und auch in der timeline), allerdings nicht immer. Das kann auch tagsüber passieren, wenn ich zb. Weg bin für ein Meeting. Ich weiss nicht wirklich, wieso es manchmal trotzdem funktioniert und manchmal nicht. Also es gibt Fälle wo ein Programm der letzte Event war (z.B. Visual Studio) und das nicht passiert ist, und dann wieder Fälle, sogar mit dem gleichen Programm, wo es dann passiert ist dass es für mehrere stunden «aufgezeichnet» wird, obwohl ich gar nicht am PC war.
Ich denke du kannst dich nicht wirklich darauf verlassen, dass du so einen Shutdown Event kriegst (bei mir fast nie). Ich würde eher einen anderen Ansatz nehmen, wie zb. Nach einer gewissen zeit von Inaktivität einen idle Event reinschreiben oder so. Evt. Kannst du auch beim focuslight projekt reinschauen, sie haben doch auch etwas implementiert um «Away» zu signalisieren. Ich glaube das hat recht gut funktioniert.
@manulita is this still an issue you encounter on your machine?
Update from Meeting with @manulita:
- [x] add process "slidetoshutdown" to IDLE
- [x] check if there is a resume event after sleep/start => could trigger some cleaning (e.g. last entry must be IDLE)
- [x] to test/log: add log event when shutdown happens to see if the problem is that it's not fast enough
- [x] idea to pursue: an issue in combination with a docking station?
Hopefully finally fixed now with commits: 20124d7f868e72bdbffbacd8bb323712dbfe7821 07e65ba25ce842db031681a46724b04a2f8c7a4b 7dc948fdd03f4d0f1160d5b726755ff1dfeb439a 7e4621fd54881f2135a7cb4efaadaae22c128af7 4909bce7513e14622e6ae7d97fa27e1cfdb05585 26e627ad8daa4fd2e79718d067c0bbee49794dfb 4b9342a3e50e19bbf059b3402c47eee5d71cbbb3 a032d095b3b80872fefef60523b9f3e6d4c063f1 7d42d24e8c7d6d69585ebdf861cb66928550f64e 5918769145a4161de34c0a3a5be6c2e597330a7b
Changes:
- Updated WindowsActivity-Table by adding two rows (tsStart, tsEnd). Added a database-migration (version 4) to add the columns, add an index for tsStart and update from the old to the new format. Updated the retrospection-visualizations accordingly.
- The sleep idle validator tests once every 20 minutes if there are missing IDLE entries (because Sleep events were not catched). Adds a manuall entry and updates the previous/wrong entry (tsEnd).
Impact:
- Needs more space (as two more columns are added). E.g. form a 45MB pa.dat file after the migration its 70MB.
- Retrospection is faster as no joins with the WindowsActivityTable itself are needed anymore.
- Much easier to analyze in the future.
Todos:
- [x] Test properly in-situ (with @manulita and @boyangwm)
- [ ] Update Uploader-scripts
- [x] Update TaskDetection-branch (with @katjakevic)
- [ ] Document
- [ ] Merge with Master-Branch
Closing as reported for legacy version of PersonalAnalytics.