Bug 28748 - Digital clock in system tray not displayed after upgrade to Mageia 8
Summary: Digital clock in system tray not displayed after upgrade to Mageia 8
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-08 18:00 CEST by John Hardie
Modified: 2021-04-20 20:21 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Screenshot of system tray (121.73 KB, image/png)
2021-04-08 18:08 CEST, John Hardie
Details
Display of incomplete clock and calendar display (46.17 KB, image/png)
2021-04-08 18:13 CEST, John Hardie
Details
Screenshot of what it should look like, Systray & Calendar (72.44 KB, image/png)
2021-04-08 20:49 CEST, Lewis Smith
Details
Screenshot of analog clock and calendar (538.38 KB, image/png)
2021-04-09 20:15 CEST, John Hardie
Details
Time Zone in System Settings (541.77 KB, image/png)
2021-04-14 19:34 CEST, John Hardie
Details
Digital Clock Settings Window (473.23 KB, image/png)
2021-04-19 19:40 CEST, John Hardie
Details
Konsole output when restarting Plasma (28.53 KB, text/plain)
2021-04-19 20:24 CEST, John Hardie
Details
Parallels Configuration window on OS X (570.74 KB, image/png)
2021-04-20 19:32 CEST, John Hardie
Details
Correct Time Zone and Working Clocks (530.66 KB, image/png)
2021-04-20 19:40 CEST, John Hardie
Details

Description John Hardie 2021-04-08 18:00:47 CEST
Description of problem:Digital clock no longer displayed in system tray.


Version-Release number of selected component (if applicable): Mageia 8


How reproducible: Upgrade from Mageia 7 to Mageia 8


Steps to Reproduce:
1. Run Mageia 7.
2. Upgrade to Mageia 8 using Mageia Online update notification applet.
3. Note missing digital clock in system tray.
Comment 1 Aurelien Oudelet 2021-04-08 18:01:51 CEST
Hi, which desktop do you use?

CC: (none) => ouaurelien

Comment 2 John Hardie 2021-04-08 18:08:57 CEST
Created attachment 12596 [details]
Screenshot of system tray

Note the missing digital clock, which should be displayed between the up arrow (Show hidden icons) and the padlock (Lock the screen).
Comment 3 John Hardie 2021-04-08 18:13:59 CEST
Created attachment 12597 [details]
Display of incomplete clock and calendar display

There is something in the location between the up arrow and padlock, and this is what's displayed when you click on it.
Comment 4 John Hardie 2021-04-08 18:15:59 CEST
(In reply to Aurelien Oudelet from comment #1)
> Hi, which desktop do you use? Plasma
Comment 5 Lewis Smith 2021-04-08 20:49:34 CEST
Created attachment 12598 [details]
Screenshot of what it should look like, Systray & Calendar
Comment 6 Lewis Smith 2021-04-08 21:18:54 CEST
John's screenshot comment 3 shows what is missing/wrong. Not only is the Systray time/date display missing, the Calendar is a nonsense.
This bug is the only one of its kind, so the problem is not generic or reproduceable.
Is this a Plasma thingy one can uninstall then re-install? Aurélien will know.
Just experimented, it is tortuous; there might be an easier way.
- Right-click the panel, choose Edit Panel.
- Hover where th clock is/should be. It should show "Digital Clock", with Remove in its menu. Do that, it disappears.
- Click at the top 'Add Widgets'
- Select the 'Digital Clock'
- Right-click/drag it down to the Systray.
You my find it lands up elsewhere on the desktop, in which case right-click it, Remove it from its wrong place, and try again.

Of course, if this does not re-instate the correct clock, there must be a way of removing then re-installing the widget, the re-adding it.

Source RPM: (none) => plasma5-applets-system-panel-1.6.0-2.mga8.src.rpm
CC: (none) => lewyssmith

Lewis Smith 2021-04-08 21:19:19 CEST

Component: Release (media or process) => RPM Packages

Comment 7 Aurelien Oudelet 2021-04-09 15:46:28 CEST
No, by default, plasma5-applets-system-panel is not installed as it is a packaged KNewStuff from kde-apps.org.

I don't think this is involved here.

@John, normally, all Plasma settings are carried over the upgrade.
Please remove ~/.config/plasma-org.kde.plasma.desktop-appletsrc and restart plasmashell:

$ rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc
$ plasmashell --replace &

This will reset Plasma Workspace to default values and normally digital clock will be there.
Aurelien Oudelet 2021-04-09 15:46:36 CEST

Source RPM: plasma5-applets-system-panel-1.6.0-2.mga8.src.rpm => (none)

Comment 8 John Hardie 2021-04-09 20:15:43 CEST
Created attachment 12607 [details]
Screenshot of analog clock and calendar

I did what you suggested, but the digital clock still shows up invisible and with a bad calendar, as before.  I removed the digital clock altogether.  I think something else completely is happening here.  You will notice that the screenshot time (which is in the filename) matches the time shown in the Systems Settings window, so Linux definitely knows the correct time and date. But the analog clock widget and the calendar widget are both incorrect. All the widgets shown in the Alternative Widgets popup appear to not be receiving the correct time and date information in order to either display correctly or indeed display at all (in the case of the digital clock).  So whatever is wrong is affecting more than just the digital clock.  Maybe a service which hasn't started?  Let me know if there are any relevant log files I can send you.
Comment 9 Lewis Smith 2021-04-10 21:30:00 CEST
Thank you John for battling on. Your ideas look sensible.
Aurélien knows KDE well, and may be able to suggest what to look for. Given that the system itself has the correct date & time, this is definitely a Plasma affair.
CC'ing the KDE team in advance of probably passing the bug to them.

CC: (none) => kde

Comment 10 h mj 2021-04-11 09:17:51 CEST
(In reply to John Hardie from comment #8)
> Created attachment 12607 [details]
> Screenshot of analog clock and calendar
> 
> I did what you suggested, but the digital clock still shows up invisible and
> with a bad calendar, as before.  I removed the digital clock altogether.  I
> think something else completely is happening here.  You will notice that the
> screenshot time (which is in the filename) matches the time shown in the
> Systems Settings window, so Linux definitely knows the correct time and
> date. But the analog clock widget and the calendar widget are both
> incorrect. All the widgets shown in the Alternative Widgets popup appear to
> not be receiving the correct time and date information in order to either
> display correctly or indeed display at all (in the case of the digital
> clock).  So whatever is wrong is affecting more than just the digital clock.
> Maybe a service which hasn't started?  Let me know if there are any relevant
> log files I can send you.

I suffered the same problem a week ago, although it was not triggered by an upgrade process but after I ran the ntp wizard included in the "drakwizard" package. I solved it by resetting the time zone. I hope this can serve you.

CC: (none) => hector

Comment 11 John Hardie 2021-04-14 19:19:34 CEST
(In reply to h mj from comment #10)
> (In reply to John Hardie from comment #8)
> > Created attachment 12607 [details]
> > Screenshot of analog clock and calendar
> > 
> > I did what you suggested, but the digital clock still shows up invisible and
> > with a bad calendar, as before.  I removed the digital clock altogether.  I
> > think something else completely is happening here.  You will notice that the
> > screenshot time (which is in the filename) matches the time shown in the
> > Systems Settings window, so Linux definitely knows the correct time and
> > date. But the analog clock widget and the calendar widget are both
> > incorrect. All the widgets shown in the Alternative Widgets popup appear to
> > not be receiving the correct time and date information in order to either
> > display correctly or indeed display at all (in the case of the digital
> > clock).  So whatever is wrong is affecting more than just the digital clock.
> > Maybe a service which hasn't started?  Let me know if there are any relevant
> > log files I can send you.
> 
> I suffered the same problem a week ago, although it was not triggered by an
> upgrade process but after I ran the ntp wizard included in the "drakwizard"
> package. I solved it by resetting the time zone. I hope this can serve you.

Thanks for the suggestion.  I downloaded the drakwizard and ran the NTP wizard, but alas, it didn't help my problem.  That NTP wizard appears to be the same as the "Configure time" function under "Network Services" in the "Mageia Control Center".
Morgan Leijström 2021-04-14 19:24:26 CEST

CC: (none) => fri

Comment 12 John Hardie 2021-04-14 19:34:17 CEST
Created attachment 12625 [details]
Time Zone in System Settings

This may or may not have any bearing on my problem, but I thought I'd include it anyway.  After selecting the Brisbane area the "Current local time zone:" continues to show UTC.  Shouldn't this be AEST?  That's what the digital clock used to display before it disappeared.
Comment 13 Dave Hodgins 2021-04-15 00:34:15 CEST
Try right clicking on the panel, selecting add widget (unlock widgets first
if needed), then add the digital clock widget.

CC: (none) => davidwhodgins

Comment 14 Dave Hodgins 2021-04-15 00:36:38 CEST
Also, the timezone is normally set in mcc/System/Manage date and time. I'm
not sure if systemsettings5 can be used to override that or not.
Comment 15 h mj 2021-04-15 11:04:37 CEST
(In reply to John Hardie from comment #11)
> (In reply to h mj from comment #10)
> > (In reply to John Hardie from comment #8)
> > > Created attachment 12607 [details]
> > > Screenshot of analog clock and calendar
> > > 
> > > I did what you suggested, but the digital clock still shows up invisible and
> > > with a bad calendar, as before.  I removed the digital clock altogether.  I
> > > think something else completely is happening here.  You will notice that the
> > > screenshot time (which is in the filename) matches the time shown in the
> > > Systems Settings window, so Linux definitely knows the correct time and
> > > date. But the analog clock widget and the calendar widget are both
> > > incorrect. All the widgets shown in the Alternative Widgets popup appear to
> > > not be receiving the correct time and date information in order to either
> > > display correctly or indeed display at all (in the case of the digital
> > > clock).  So whatever is wrong is affecting more than just the digital clock.
> > > Maybe a service which hasn't started?  Let me know if there are any relevant
> > > log files I can send you.
> > 
> > I suffered the same problem a week ago, although it was not triggered by an
> > upgrade process but after I ran the ntp wizard included in the "drakwizard"
> > package. I solved it by resetting the time zone. I hope this can serve you.
> 
> Thanks for the suggestion.  I downloaded the drakwizard and ran the NTP
> wizard, but alas, it didn't help my problem.  That NTP wizard appears to be
> the same as the "Configure time" function under "Network Services" in the
> "Mageia Control Center".

Sorry, I intended to say that the wizard was what caused my misconfiguration, not what solved it. System time was OK. The time zone panel in systemsettings5 (Regional preferences > Date & Time) showed no selection in the list and the current zone was set to UTC, so I used "reset to default" and then I selected again my time zone. After that, the clock widget displayed content again.
Comment 16 Aurelien Oudelet 2021-04-18 20:09:20 CEST
(In reply to Dave Hodgins from comment #14)
> Also, the timezone is normally set in mcc/System/Manage date and time. I'm
> not sure if systemsettings5 can be used to override that or not.

In facts, there is currently 4 ways to manage Timezone in Mageia.

Graphically:
1- Use Mageia Control Centre => System => Manage Date and Time (drakclock)

2- Systemsettings5 => Personalization => Regional Settings => Date and Time => Time Zone tab. It will prompt for root password to validate.

Command Line ways:
3- as root (for example)
timedatectl set-timezone Europe/Paris

4- as root in /etc directory:
ln -sf /usr/share/zoneinfo/Zone/SubZone /etc/localtime

========================

Regarding this bug report, I really can't reproduce the screen shots of this bug using multiples tries in Virtualbox.

Steps in Comment 7 are not useful?

So, this can due to the theme in use. I wonder you use legacy oxygen.

I suggest try to switch back to Breeze theme and see if this reproduces AFTER reinitializing Plasma Workspace with the Comment 7 steps.

If switching pack to Breeze for all Plasma part gives you the correct result, I wonder if you should uncheck "Show the date" in Apparence tab of the plasmoid's Numeric Clock" Settings.
Comment 17 John Hardie 2021-04-19 19:40:33 CEST
Created attachment 12651 [details]
Digital Clock Settings Window

My comment 8 didn't make it clear, but I had tried restarting Plasma as per the steps in comment 7, to no avail.  I've changed the theme to Breeze (I must say the icons do not help at all in explaining to me what the difference is between Global Theme and Plasma Style) and also the colors (the Instant Messaging icon is all but invisible except with the dark color schemes). After restarting Plasma there is now a small space between the up arrow and the padlock indicating the presence of the invisible digital clock (this space is not there if there is no digital clock), and sure enough if you right click you get the Digital Clock Settings window.  I did as you suggested and unchecked the Show date box, and also tried various other combinations of settings several times.  At no time did the Digital Clock become visible.  As per my comment 8, you can see the Analog Clock is wrong and the Calendar has no data displayed.  So whatever is wrong is affecting all the widgets which rely on time and date information.
Comment 18 John Hardie 2021-04-19 19:43:32 CEST
(In reply to Aurelien Oudelet from comment #16)
> (In reply to Dave Hodgins from comment #14)
> > Also, the timezone is normally set in mcc/System/Manage date and time. I'm
> > not sure if systemsettings5 can be used to override that or not.
> 
> In facts, there is currently 4 ways to manage Timezone in Mageia.
> 
> Graphically:
> 1- Use Mageia Control Centre => System => Manage Date and Time (drakclock)
> 
> 2- Systemsettings5 => Personalization => Regional Settings => Date and Time
> => Time Zone tab. It will prompt for root password to validate.
> 
> Command Line ways:
> 3- as root (for example)
> timedatectl set-timezone Europe/Paris
> 
> 4- as root in /etc directory:
> ln -sf /usr/share/zoneinfo/Zone/SubZone /etc/localtime
> 
> ========================
> 
> Regarding this bug report, I really can't reproduce the screen shots of this
> bug using multiples tries in Virtualbox.
> 
> Steps in Comment 7 are not useful?
> 
> So, this can due to the theme in use. I wonder you use legacy oxygen.
> 
> I suggest try to switch back to Breeze theme and see if this reproduces
> AFTER reinitializing Plasma Workspace with the Comment 7 steps.
> 
> If switching pack to Breeze for all Plasma part gives you the correct
> result, I wonder if you should uncheck "Show the date" in Apparence tab of
> the plasmoid's Numeric Clock" Settings.

Thanks Aurelien, see my Comment 17 with my latest attahment.
Comment 19 John Hardie 2021-04-19 20:24:10 CEST
Created attachment 12653 [details]
Konsole output when restarting Plasma

There are a few lines referencing both the digital and analog clock.  I don't know if they are normal or if they refer to any kind of problem situation, but I thought you might like to have a look and see what you think.
Lewis Smith 2021-04-19 21:28:52 CEST

CC: lewyssmith => (none)

Comment 20 Aurelien Oudelet 2021-04-20 09:47:11 CEST
They are irrelevant.

But, your system seems to have faulty localtime set.

Do you dual-boot Windows ?
Where Time Zone are you ?
Comment 21 John Hardie 2021-04-20 14:47:34 CEST
(In reply to Aurelien Oudelet from comment #20)
> They are irrelevant.

OK, thanks.
> 
> But, your system seems to have faulty localtime set.

See my comment 12 and its screenshot
> 
> Do you dual-boot Windows ?

No, I'm running a Mid-2012 13" MacBook Air with OS X 10.15.7 (Catalina).  I use Parallels Desktop 16 for Mac Pro Edition version 16.5.0 (49183), which they claim supports Linux Kernel 5.11.  The last year or two Parallels has been a bit slow at keeping up with both Mageia upgrades and Kernel updates.  When a Mageia upgrade has been unsupported it just plain doesn't work, and when a Kernel update is too new it hangs on startup.  I am using Kernel 5.7.19-desktop-3.mga7, and yes this works fine with Mageia 8 (newer Kernels hang on startup, even 5.10)!  Apart from this current problem everything else in Mageia 8 is working well, so I'll go out on a limb and state that I doubt that running Mageia 8 under Parallels on my Mac is in itself the cause of the invisible digital clock.

> Where Time Zone are you ?

Brisbane Australia, AEST
Comment 22 Aurelien Oudelet 2021-04-20 14:54:59 CEST
Uh! I see.

So, I sum up: you are running Mageia under a Virtual machine with Parallels Desktop under macOS which is the host system.

Under Parallels Desktop, try to set under the VM preference that the time of the VM is set to UTC.

Next, under Mageia, as root:

# timedatectl set-timezone Australia/Brisbane

# hwclock --systohc

Reboot.

Under Plasma, try to rise the panel size.
Comment 23 John Hardie 2021-04-20 19:27:13 CEST
(In reply to Aurelien Oudelet from comment #22)
> Uh! I see.
> 
> So, I sum up: you are running Mageia under a Virtual machine with Parallels
> Desktop under macOS which is the host system.
> 
> Under Parallels Desktop, try to set under the VM preference that the time of
> the VM is set to UTC.
The Parallels Configuration window allows the VM time to either sync or not sync with the Mac.  There are no other time settings available.  Ever since I started with Parallels back with Mageia 3 I have left this setting to sync with the Mac.  For the purposes of this exercise I changed this to not sync.
> 
> Next, under Mageia, as root:
> 
> # timedatectl set-timezone Australia/Brisbane
> 
> # hwclock --systohc
> 
> Reboot.
This all worked! I have done a bit of further experimenting to see if I could determine just what was going on.  It looks as if having the VM sync to the Mac now sets the Time Zone in "Date & Time - System Settings" to UTC and also prevents any change you make here from taking effect.  This in turn prevents any widgets which rely on date and time information from working properly.  So my suspicions as per Comment 12 look like I was on the right track.  So you can now consider this issue resolved.  Thanks very much for all your help and patience.  I have another couple of screenshots which I'll send you to finish off with.
> 
> Under Plasma, try to rise the panel size.
Comment 24 John Hardie 2021-04-20 19:32:26 CEST
Created attachment 12656 [details]
Parallels Configuration window on OS X

This shows the two Time options to either sync or not sync with the Mac.
Comment 25 John Hardie 2021-04-20 19:40:14 CEST
Created attachment 12657 [details]
Correct Time Zone and Working Clocks

This shows the now correct Time Zone in the System Settings window.  The digital clock now displays correctly, and other widgets like the analog clock and the calendar now display the appropriate information.  Bravo!  Thanks again.  Issue resolved.
Comment 26 Aurelien Oudelet 2021-04-20 20:21:53 CEST
Happy user, happy devs, happy Bugsquad ;)

Closing this.

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.