Icon, but no notifications on new Raspian bullseye install

Asked by mark

Love Timekpr-nExT and I think it is just what I need. Thank you for your work on this!

My problem: I've set up the timekeeping limits as I want it (one hour per day for two accounts on our Raspberry Pi 400). It works, as in: it kills all processes of a user once their time is up.

But I am missing some of the features:
* No notifications or warnings (I have not changed any of the default notification settings)
* Icon shows up on taskbar, but not the counter I have seen in screenshots of Timekpr-nExT. Right click on icon provides " Time left" option, but clicking that doesn't yield a response. Only Limits & Configuration in that menu brings up something.

This is a default Raspbian Bullseye installation:

> Operating System: Raspbian GNU/Linux 11 (bullseye)
> Kernel: Linux 6.1.21-v8+
> Architecture: arm64

Using Timekpr-nExT 0.5.0. I read in the only other Raspberry related question around here that this is a rather old version, but "[notifications] should work just fine in 0.5.0 version."

If I get it to work I'd be happy to help out on a Dutch translation, which I don't think there is yet (or which is not approved yet?). But currently my kids are very confused at getting logged out without warning and without seeing the timer.

Question information

Language:
English Edit question
Status:
Answered
For:
Timekpr-nExT Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mark (pi400user) said :
#1

(BTW, I have looked into upgrading to 0.5.4 or even 0.5.6 to see if that solves it, but raspbian bullseye only offers 0.5.0. Raspbian bookworm does offer 0.5.4 but since that has Wayland rather than X11 I don't want to risk breaking stuff by installing a bookworm version on a bullseye OS -- and I am not ready yet to update my Pi400 to bookworm.

If there are any tips on how to install a new stable version of Timekpr-nExT on a standard issue Raspbian bullseye version, preferably without losing my current timekeeper settings, they are much appreciated.)

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#2

I would say to get the latest one you can and just install it over the current one.
Timekpr is python, nothing should break, config files willl be upgraded.

Revision history for this message
mark (pi400user) said :
#3

Thank you. Now upgraded to 0.5.4 from the bookworm release. All settings imported and tracking works well.

However, still the same problem of timer and notifications not showing on task bar, and notifications not coming up.

Not sure how to share screenshots here on Launchpad so here's a few via snipboard.io:

icon shows:
https://snipboard.io/siaZvz.jpg

tracking works:
https://snipboard.io/sATcDK.jpg

notification settings are on:
https://snipboard.io/YbFZWN.jpg

I have done all this in a newly created user account test with default desktop settings just to make sure no custom settings interfere with notifications showing up.

Thanks for your help!

Revision history for this message
Eduards Bezverhijs (mjasnik) said :
#4

Well, the indicator may not show the time, it depends on how that indicatorbis implemented in that setup.

Notifications should show, they are user configurable. The issue is that I do not have RPI that I can test this on.

Please enable logging level in client app (the one you took screenshots of) to level 2, log oit and bqck in and use it until notification should show up. Please make sure notifications are actually configured to show up.
Then send log file /tmp/ timekprc.USERNAME.log to me via email.

I have never heard that notifications fail, however not much ppl (to my knowledge) use timekpr on RPI.

Revision history for this message
mark (pi400user) said :
#5

Thank you. I set the limit to 5min for user test and waited for notifications. None appeared. Then at time 0:00:00 the system logged me out. Log sent to your email.

Revision history for this message
mark (pi400user) said :
#6

Gee. Inspecting the log myself I see that I'm missing a notification daemon: Raspbian doesn't come with one by default. Installing one and adding it to the services gives me notifications!

Install a notification manager:
sudo apt install -y notification-daemon

Add it to the services file
sudo nano /usr/share/dbus-1/services/org.freedesktop.Notifications.service

add these lines:

[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/lib/notification-daemon/notification-daemon

I also see that I'm missing a screensaver, which means Timekpr-nExT can't track idle time. I will see whether I can fix that too.

Still missing: the countdown on taskbar, but this is the least of my problems now.

Revision history for this message
Eduards Bezverhijs (mjasnik) said (last edit ):
#7

>> Still missing: the countdown on taskbar, but this is the least of my problems now.

Just to reiterate, it may not show countdown on taskbar because of tray implementation for particular DE, chances are you may not get it at all. For instance, KDE, which I use daily, there is no countdown on taskbar ever, however in gnome and old unity, there is.

To sum it up: we exchanged e-emails, I got log files and there is nothing I can do from timekpr POV, however Mark has solved part of it already.

Can you help with this problem?

Provide an answer of your own, or ask mark for more information if necessary.

To post a message you must log in.