timekpr - Keep control of computer usage

Does not count time

Reported by pickliotus on 2012-03-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
timekpr
Undecided
Unassigned

Bug Description

Hello, I'm running a brand-new installation of Ubuntu 11.10.
I followed the workarounds for lightdm and unity reported elsewhere in this bug reports section, and so far users are successfully locked out of the login page if their time is up or they're outside their usage period. Also, the icon successfully displays in the dock. The problem comes in when clicking the icon. The remaining time displays correctly, but then, future testing reveals that the time has not been counting down at all. A bit of experimenting has shown me that when I look at relevant files (i.e., timekpr.log), it suddenly updates, but doesn't take account of the actual time that has elapsed, it merely subtracts an additional 45 seconds. As long as the file is open, it continues to subtract time correctly, but once it closes, it simply reverts to standing still.
The version gives:
timekpr:
  Installiert: 0.3.2~ppa1~ubuntu2
  Kandidat: 0.3.2~ppa1~ubuntu2
  Versionstabelle:
 *** 0.3.2~ppa1~ubuntu2 0
        500 http://ppa.launchpad.net/timekpr-maintainers/ppa/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status

Here is a look at the timekpr.log:
(note that all of the times when it says "configuration file for mike exists" are times when this file was opened.
2012-03-06 14:58:46 Starting timekpr version 0.3.0
2012-03-06 14:58:46 Variables: GRACEPERIOD: 120 POLLTIME: 45 DEBUGME: True LOCKLASTS: 1 hour
2012-03-06 14:58:46 Directories: LOGFILE: /var/log/timekpr.log TIMEKPRDIR: /etc/timekpr TIMEKPRWORK: /var/lib/timekpr TIMEKPRSHARED: /usr/share/timekpr
2012-03-06 14:58:46 checklockacct called
2012-03-06 14:58:46 Finished checking all users, sleeping for 45 seconds
2012-03-06 14:59:32 checklockacct called
2012-03-06 14:59:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:00:17 checklockacct called
2012-03-06 15:00:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:01:02 checklockacct called
2012-03-06 15:01:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:01:47 checklockacct called
2012-03-06 15:01:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:02:32 checklockacct called
2012-03-06 15:02:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:03:17 checklockacct called
2012-03-06 15:03:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:04:02 checklockacct called
2012-03-06 15:04:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:04:47 checklockacct called
2012-03-06 15:04:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:05:32 checklockacct called
2012-03-06 15:05:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:06:17 checklockacct called
2012-03-06 15:06:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:07:02 checklockacct called
2012-03-06 15:07:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:07:47 checklockacct called
2012-03-06 15:07:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:08:32 checklockacct called
2012-03-06 15:08:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:09:17 checklockacct called
2012-03-06 15:09:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:10:02 checklockacct called
2012-03-06 15:10:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:10:47 checklockacct called
2012-03-06 15:10:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:11:32 checklockacct called
2012-03-06 15:11:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:12:17 checklockacct called
2012-03-06 15:12:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:13:02 checklockacct called
2012-03-06 15:13:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:13:47 checklockacct called
2012-03-06 15:13:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:14:32 checklockacct called
2012-03-06 15:14:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:15:17 checklockacct called
2012-03-06 15:15:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:16:02 checklockacct called
2012-03-06 15:16:02 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:16:47 checklockacct called
2012-03-06 15:16:47 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:17:32 checklockacct called
2012-03-06 15:17:32 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:18:17 checklockacct called
2012-03-06 15:18:17 configuration file for mike exists
2012-03-06 15:18:17 This day's mike.time file exists, adding time
2012-03-06 15:18:17 User: mike Day-Index: 2 Seconds-passed: 1890
2012-03-06 15:18:17 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:19:02 checklockacct called
2012-03-06 15:19:02 configuration file for mike exists
2012-03-06 15:19:02 This day's mike.time file exists, adding time
2012-03-06 15:19:03 User: mike Day-Index: 2 Seconds-passed: 1935
2012-03-06 15:19:03 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:19:48 checklockacct called
2012-03-06 15:19:48 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:20:33 checklockacct called
2012-03-06 15:20:33 configuration file for mike exists
2012-03-06 15:20:33 This day's mike.time file exists, adding time
2012-03-06 15:20:33 User: mike Day-Index: 2 Seconds-passed: 1980
2012-03-06 15:20:33 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:21:18 checklockacct called
2012-03-06 15:21:18 configuration file for mike exists
2012-03-06 15:21:18 This day's mike.time file exists, adding time
2012-03-06 15:21:18 User: mike Day-Index: 2 Seconds-passed: 2025
2012-03-06 15:21:18 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:22:03 checklockacct called
2012-03-06 15:22:03 configuration file for mike exists
2012-03-06 15:22:03 This day's mike.time file exists, adding time
2012-03-06 15:22:03 User: mike Day-Index: 2 Seconds-passed: 2070
2012-03-06 15:22:03 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:22:48 checklockacct called
2012-03-06 15:22:48 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:23:33 checklockacct called
2012-03-06 15:23:33 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:24:19 checklockacct called
2012-03-06 15:24:19 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:25:04 checklockacct called
2012-03-06 15:25:04 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:25:49 checklockacct called
2012-03-06 15:25:49 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:26:34 checklockacct called
2012-03-06 15:26:34 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:27:19 checklockacct called
2012-03-06 15:27:20 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:28:05 checklockacct called
2012-03-06 15:28:05 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:28:50 checklockacct called
2012-03-06 15:28:51 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:29:36 checklockacct called
2012-03-06 15:29:36 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:30:21 checklockacct called
2012-03-06 15:30:21 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:31:06 checklockacct called
2012-03-06 15:31:07 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:31:52 checklockacct called
2012-03-06 15:31:52 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:32:37 checklockacct called
2012-03-06 15:32:37 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:33:23 checklockacct called
2012-03-06 15:33:23 Finished checking all users, sleeping for 45 seconds
2012-03-06 15:34:08 checklockacct called
2012-03-06 15:34:08 configuration file for mike exists
2012-03-06 15:34:08 This day's mike.time file exists, adding time
2012-03-06 15:34:16 User: mike Day-Index: 2 Seconds-passed: 2115
2012-03-06 15:34:16 Finished checking all users, sleeping for 45 seconds

Time.conf:
## TIMEKPR START
*;*;mike;Su0700-2200 | Mo0900-2000 | Tu0900-2000 | We0900-2000 | Th0900-2000 | Fr0900-2000 | Sa0700-2200
## TIMEKPR END

Access.conf:
## TIMEKPR START
## TIMEKPR END

Any help would be greatly appreciated! I feel so close to having it work flawlessly.

Roman Bazalevsky (rvbglas) wrote :

Looks like duplicate of bug #881098 (https://bugs.launchpad.net/timekpr/+bug/881098), so apply patch from 881098 or just upgrade lightdm to new version.

Actually it is lightdm bug, not timekpr.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers