Results 1 to 6 of 6

Thread: How to disable media controls on lock screen?

  1. #1
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default How to disable media controls on lock screen?

    Hello everyone,

    The new feature "media controls on lock screen" from Plasma 5.10 seems amazing but in my case I don't the controls to be displayed on the lock screen. Anyone knows how to disable it?

    Thanks in advance,
    CnZhx
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  2. #2
    Join Date
    Apr 2009
    Location
    Stuttgart, Germany
    Posts
    113

    Default Re: How to disable media controls on lock screen?

    I'm researching this as well, no success so far.

    Posting the resources I found so far:
    - blog post when these were introduced: https://blog.martin-graesslin.com/bl...e-lock-screen/
    - possibly a commit that introduces the media controls: https://phabricator.kde.org/D3684

    It seems that there was supposed to be a config setting for it but it wasn't added at first.

    Oh, look:
    Code:
    /usr/share/plasma/look-and-feel/org.openSUSE.desktop/contents/lockscreen/LockScreenUi.qml
    /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml
    This is part of the plasma5-workspace-5.10.4-1.1.x86_64 package.

    Uh oh:
    Code:
                    Loader {
                        Layout.fillWidth: true
                        Layout.preferredHeight: item ? item.implicitHeight : 0
                        active: true // TODO configurable
                        source: "MediaControls.qml"
                    }
    Seems it's still not configurable.

    At least I think if we manually set "active: false" then it would disable it... until the next package update.

  3. #3
    Join Date
    Apr 2009
    Location
    Stuttgart, Germany
    Posts
    113

    Default Re: How to disable media controls on lock screen?

    If this source code is recent, it seems it hasn't been fixed in an upcoming version: https://github.com/KDE/plasma-worksp...eenUi.qml#L183

  4. #4
    Join Date
    Apr 2009
    Location
    Stuttgart, Germany
    Posts
    113

    Default Re: How to disable media controls on lock screen?

    I made a ticket, let's follow up there: https://bugs.kde.org/show_bug.cgi?id=384264#add_comment

  5. #5
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    279

    Default Re: How to disable media controls on lock screen?

    Quote Originally Posted by PVince81 View Post
    This is part of the plasma5-workspace-5.10.4-1.1.x86_64 package.
    Cool! You dug to such depth.

    I try to hard change the item in both files to `false`, and woo~~, the media control on lockscreen is gone.

    Quote Originally Posted by PVince81 View Post
    I made a ticket, let's follow up there: https://bugs.kde.org/show_bug.cgi?id=384264#add_comment
    Add myself there. Hopefully there is a fix soon. It's very embarrassing to have a name of song on the lock screen while at work although it is not bad to listen to music while working.
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  6. #6
    Join Date
    Apr 2009
    Location
    Stuttgart, Germany
    Posts
    113

    Default Re: How to disable media controls on lock screen?

    Raised https://bugzilla.opensuse.org/show_bug.cgi?id=1056919 to explore the "look and feel specific setting" approach.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •