Avance de l'aiguille des secondes

J’ai créé un composant horloge analogique.

Je crée un widget kwgt avec ce composant.

Dans l’éditeur tout va bien mais dans le widget sur l’écran d’accueil l’aiguille des secondes n’avance que par 5 ou 30 secondes d’un coup.

Que puis-je faire pour corriger cela ?

I created an analog clock component and used it to make a KWGT widget. Everything looks fine in the editor, but on the home screen, the second hand only moves in 5- or 30-second jumps. How can I fix this?

Look, this post … the same settings.

Thanks, but I’ve already done that and nothing has changed.

Did you set the battery to Unrestricted? Try restarting your phone.

It’s better, but it’s still stuttering every 5 seconds.

Actually, it’s always the same.

If you create a text element with the formula $df(s)$, does the issue still happen? I’m asking just to make sure everything is fine inside your component. If all the settings are correct, KWGT is unrestricted, and the second hand still jumps, then it’s most likely something on the level of your OS or Android itself.

But honestly, KWGT isn’t designed for this kind of task check the time settings, there’s no function for smooth second‑hand rotation. Imagine the widget having to update and redraw itself 60 times per second. For things like that, it’s better to use KLWP your seconds will move smoothly there.

Thanks for the reply.
I’ll give KLWP a try.

I’m having the same issue with KWLP.
I’m on a new Pixel 11 Pro running Android 17; that might be the problem.

The problem is almost certainly down to system permissions. Check the following:

Make sure your battery settings for KLWP are set to Unrestricted.

As a simple test, just add a default time text element in KLWP by default, it includes hours, minutes, and seconds, which will show us if the global ticker is working.

If you want, share your component here and I’ll take a look at it to see how it’s built.

Hello, I made a surprising discovery this morning. My KWGT widget—based on my own component—works perfectly while the phone is charging. However, as soon as I unplug the charger, the second hand starts stuttering again, even with the battery level above 90%. What do you think?

That actually makes total sense and confirms it’s a system-level restriction. When your phone is plugged in, Android disables aggressive power-saving policies, allowing the app to render smoothly. But as soon as you unplug it, the OS enforces its strict background limitations again.

Since you’ve already set everything to unrestricted, there’s unfortunately nothing more you can tweak inside the app settings. It’s quite possible that on Android 17 and specific Google Pixel models, the system has even harsher restrictions built-in. I honestly wouldn’t know for sure, because I’m still running Android 15 where everything flies smoothly, and looking at how Google keeps tightening the screws with every new release, I’m not even sure I want to update

Thank you for your reply.
However, I think there is a specific issue with KLWP or KWGT, as other analog clock widgets work without restrictions.

Hi @chrmagnin ,

I tried to create a simple clock widget using the latest version of KWGT. It looks fine, no lag/delay in the clock’s Second arm movement ONLY if the Update Mode is set to every second (with the cost of battery juice).

Below is an animated GIF image showing the effects of the Update Mode setting in KWGT.

Simple Clock Widget • KWGT

So, I think there’s something that cause your issue, either one of those that was explained by @MaxP above.

I hope this would help.

:smiling_face::+1:

It actually works with the lowest update setting (the one that consumes more battery).
Problem solved—thanks everyone.