From 0dcd071e79365d621f75c9c4ca4ba38ade2dc389 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 12 Aug 2018 22:11:58 +0200 Subject: Backport two kscreenlocker patches from the 5.14 branch - Force software rendering when greeter crashed: - Load QtQuickSettings for software rendering (KDEBUG #347772): In particular the second patch eliminates 100% CPU usage in the lockscreen in case you have older hardware and rely on software rendering. I think this warrants the backport into Slackware's Plasma5 Desktop. --- .../kscreenlocker_rendersettings.patch | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch (limited to 'kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch') diff --git a/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch b/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch new file mode 100644 index 0000000..2802a1a --- /dev/null +++ b/kde/patch/kscreenlocker/kscreenlocker_rendersettings.patch @@ -0,0 +1,49 @@ +From 3f104cbb0a34024dc1aa45538d2ef2403a7a45f0 Mon Sep 17 00:00:00 2001 +From: David Edmundson +Date: Fri, 10 Aug 2018 01:18:42 +0200 +Subject: Load QtQuickSettings for software rendering + +We had support for falling back on errors yet somehow +the initial basic loading was missing. + +Summary: BUG: 347772 + +Test Plan: Compiles + +Reviewers: #plasma, broulik + +Reviewed By: #plasma, broulik + +Subscribers: plasma-devel + +Tags: #plasma + +Differential Revision: https://phabricator.kde.org/D14708 +--- + greeter/main.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/greeter/main.cpp b/greeter/main.cpp +index ff64a55..6db87e1 100644 +--- a/greeter/main.cpp ++++ b/greeter/main.cpp +@@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License + along with this program. If not, see . + *********************************************************************/ + #include ++#include + + #include + #include +@@ -85,6 +86,8 @@ int main(int argc, char* argv[]) + QCoreApplication::setApplicationVersion(QStringLiteral("0.1")); + QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org")); + ++ KQuickAddons::QtQuickSettings::init(); ++ + // disable session management for the greeter + auto disableSessionManagement = [](QSessionManager &sm) { + sm.setRestartHint(QSessionManager::RestartNever); +-- +cgit v0.11.2 + -- cgit v1.2.3