Browse Source

Change default power management to Gnome Session Manager

As seen on https://www.freedesktop.org/wiki/Specifications/power-management-spec/,
the `org.freedesktop.PowerManagement` is obsolete.
adaptive-webui-19844
Chocobo1 1 year ago
parent
commit
38d773ca46
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/gui/powermanagement/powermanagement_x11.cpp

8
src/gui/powermanagement/powermanagement_x11.cpp

@ -48,7 +48,7 @@ PowerManagementInhibitor::PowerManagementInhibitor(QObject *parent)
m_intendedState = Idle; m_intendedState = Idle;
m_cookie = 0; m_cookie = 0;
m_useGSM = false; m_useGSM = true;
} }
void PowerManagementInhibitor::requestIdle() void PowerManagementInhibitor::requestIdle()
@ -135,9 +135,9 @@ void PowerManagementInhibitor::onAsyncReply(QDBusPendingCallWatcher *call)
if (reply.isError()) { if (reply.isError()) {
qDebug("D-Bus: Reply: Error: %s", qUtf8Printable(reply.error().message())); qDebug("D-Bus: Reply: Error: %s", qUtf8Printable(reply.error().message()));
if (!m_useGSM) { if (m_useGSM) {
qDebug("D-Bus: Falling back to org.gnome.SessionManager"); qDebug("D-Bus: Falling back to org.freedesktop.PowerManagement");
m_useGSM = true; m_useGSM = false;
m_state = Idle; m_state = Idle;
if (m_intendedState == Busy) if (m_intendedState == Busy)
requestBusy(); requestBusy();

Loading…
Cancel
Save