Bug 457142 - I am *never* seeing the clock on the lock screen
Summary: I am *never* seeing the clock on the lock screen
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Theme - Breeze (show other bugs)
Version: 5.25.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-25 21:54 UTC by MountainX
Modified: 2024-08-23 02:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
LockScreen_20220727_190914 screen shot (1.59 MB, image/png)
2022-07-27 23:13 UTC, MountainX
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MountainX 2022-07-25 21:54:19 UTC
I am *never* seeing the clock on the lock screen

This issue was previously discussed in Bug 454074, but my issue is slightly different from that bug.

Plasma Workspace  is installed from the "Extra" Arch Linux repo. All my files in /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/ appear to be original and unmodified.

usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockOsd.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreen.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MainBlock.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/MediaControls.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/NoPasswordUnlock.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/config.qml
usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/config.xml

All those files are owned by the plasma-workspace 5.25 package.

My theme is Breeze Dark. My Plasma Style is Breeze Dark. Splash Screen is Breeze.

The only non-standard components I'm using are:
1. Sugar Dark sddm login theme, but I have read that the login and lockscreen themes are independent.
2. the ClassiK application style, but this clock issue  existed long before I ever install ClassiK.
3. Window Decorations are ClassiK.


# STEPS TO REPRODUCE

1.  Use Breeze Dark theme
2.  In System Settings > Workspace Behavior > Screen Locking > Configure, check the box: Show [x] Clock
3.  Lock the screen and look to see Clock either when the auth prompt is visible or when it's not visible. In my case, no clock is ever shown.

Strangely, the issue is present on my laptop and desktop and another Arch Linux device too.

OBSERVED RESULT
Clock is not shown when the auth prompt is visible 
Clock is not shown when the auth prompt is invisible 

EXPECTED RESULT
I used to have a clock on the lock screen. It disappeared some time ago and I don't know why. Have been trying for a long time to get it back.


SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.25
KDE Frameworks Version: 5.95.0
Qt Version:  5.15.4 (built against 5.15.4)
Comment 1 MountainX 2022-07-25 22:02:16 UTC
output of kscreenlocker_greet --testing

[code]
    $ /usr/lib/kscreenlocker_greet --testing
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:8:1: module "QtQuick.VirtualKeyboard" is not installed
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:222: ReferenceError: wallpaper is not defined
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:8:1: module "QtQuick.VirtualKeyboard" is not installed
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:0: ReferenceError: wallpaper is not defined
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:8:1: module "QtQuick.VirtualKeyboard" is not installed
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:0: ReferenceError: wallpaper is not defined
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/VirtualKeyboard.qml:8:1: module "QtQuick.VirtualKeyboard" is not installed
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml:0: ReferenceError: wallpaper is not defined
    Locked at 1658786137
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:43:9: Unable to assign [undefined] to bool
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:43:9: Unable to assign [undefined] to bool
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:43:9: Unable to assign [undefined] to bool
    file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:43:9: Unable to assign [undefined] to bool
    QXcbClipboard: SelectionRequest too old
    QXcbClipboard: SelectionRequest too old
    QXcbClipboard: SelectionRequest too old
...
    QXcbClipboard: SelectionRequest too old
    QXcbClipboard: SelectionRequest too old
    QXcbClipboard: SelectionRequest too old
[/code]

Sorry, can't seem to find the right method to format code here or in bugzilla.readthedocs.io
Comment 2 Nate Graham 2022-07-25 22:47:48 UTC
Hmm, none of those errors seem related to the clock. Do you have anything in ~/.local/share/plasma/desktoptheme/? If so, can you print the contents?
Comment 3 MountainX 2022-07-25 23:43:28 UTC
(In reply to Nate Graham from comment #2)
> Hmm, none of those errors seem related to the clock. Do you have anything in
> ~/.local/share/plasma/desktoptheme/? If so, can you print the contents?

I do not have that folder. And inside ~/.local/share/plasma/, I only have:

plasmoids:
Comment 4 Nate Graham 2022-07-26 14:41:35 UTC
That's really odd. Can you attach a screenshot of your lock screen when the auth prompt is visible, and a screenshot of your lock screen when the auth prompt disappears?
Comment 5 MountainX 2022-07-26 22:02:40 UTC
(In reply to Nate Graham from comment #4)
> That's really odd. Can you attach a screenshot of your lock screen when the
> auth prompt is visible, and a screenshot of your lock screen when the auth
> prompt disappears?

I can, but it is also very simple to describe it completely in text:

1. when the auth prompt is visible:

- upper left area of screen: nothing is displayed
- upper right area: nothing 
- lower left: keyboard icon with text description of my keyboard layout
- lower right: battery icon with percent charging text
- center, upper: user avatar with text of username below it
- center middle: text input box for password with ">" button to right.
- center lower: hibernate and suspend clickable icons
- background: my wallpaper

If I enable media controls in settings, they are visible. When I uncheck them (as they are currently), they are not visible.
Checking or unchecking the clock setting has no effect whatsoever.

2. when the auth prompt disappears:
- background: my wallpaper (exactly the same wallpaper as in #1)
Nothing else is shown at all.
Comment 6 Nate Graham 2022-07-27 15:18:39 UTC
How exceptionally strange. Nonetheless, could you attach at least the screenshot of your lock screen with the auth prompt visible? I want to make absolutely sure it (otherwise) looks how I would expect.
Comment 7 MountainX 2022-07-27 23:13:18 UTC
Created attachment 150957 [details]
LockScreen_20220727_190914 screen shot

lock screen as requested
Comment 8 Nate Graham 2022-07-29 14:55:00 UTC
Yep, just as you described. Thanks.

I have no idea what could possibly cause this, unfortunately.
Comment 9 Nate Graham 2024-08-23 02:38:15 UTC
In Plasma 6.2 there's an explicit option to either always or never show the clock, which removed a bit of the conditional logic that might have been going wrong here. Let's assume it's fixed in Plasma 6.2. However, if after upgrading to Plasma 6.2, you can still reproduce the issue, please feel free to re-open this Bugzilla ticket. Thanks!