Compare commits
No commits in common. "ubuntu/plucky" and "ubuntu/1.4.0-0ubuntu2" have entirely different histories.
ubuntu/plu
...
ubuntu/1.4
30
debian/changelog
vendored
30
debian/changelog
vendored
@ -1,33 +1,3 @@
|
||||
lxqt-powermanagement (2.1.0-0ubuntu3) plucky; urgency=medium
|
||||
|
||||
* Update Standards-Version to 4.7.1, no changes needed.
|
||||
|
||||
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 21 Feb 2025 16:37:50 -0600
|
||||
|
||||
lxqt-powermanagement (2.1.0-0ubuntu2) plucky; urgency=medium
|
||||
|
||||
* No-change rebuild for lxqt-build-tools C++17 -> C++20.
|
||||
|
||||
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 03 Jan 2025 03:58:19 -0600
|
||||
|
||||
lxqt-powermanagement (2.1.0-0ubuntu1) plucky; urgency=medium
|
||||
|
||||
* New upstream release.
|
||||
- Bump build dependencies.
|
||||
|
||||
-- Simon Quigley <tsimonq2@ubuntu.com> Fri, 15 Nov 2024 15:33:02 -0600
|
||||
|
||||
lxqt-powermanagement (2.0.0-0ubuntu1) oracular; urgency=medium
|
||||
|
||||
* New upstream release.
|
||||
* Fix DPMS-related patch.
|
||||
* Update copyright file.
|
||||
* Adjusted build dependencies.
|
||||
* Fix battery notification patch.
|
||||
* Bump Standards-Version to 4.7.0, no changes necessary.
|
||||
|
||||
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Thu, 15 Aug 2024 16:29:08 -0500
|
||||
|
||||
lxqt-powermanagement (1.4.0-0ubuntu2) noble; urgency=medium
|
||||
|
||||
* Patched out DPMS-related code (it was causing constant crashes)
|
||||
|
27
debian/control
vendored
27
debian/control
vendored
@ -1,28 +1,29 @@
|
||||
Source: lxqt-powermanagement
|
||||
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
|
||||
Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
|
||||
XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
|
||||
Uploaders: Alf Gaida <agaida@siduction.org>,
|
||||
ChangZhuo Chen (陳昌倬) <czchen@debian.org>,
|
||||
Andrew Lee (李健秋) <ajqlee@debian.org>
|
||||
Section: x11
|
||||
Priority: optional
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
libkf6idletime-dev,
|
||||
libkf6solid-dev,
|
||||
libkf6windowsystem-dev,
|
||||
liblxqt-globalkeys-ui2-dev (>= 2.1.0),
|
||||
liblxqt-globalkeys2-dev (>= 2.1.0),
|
||||
liblxqt2-dev (>= 2.1.0),
|
||||
libkf5idletime-dev,
|
||||
libkf5solid-dev,
|
||||
libkf5windowsystem-dev,
|
||||
liblxqt-globalkeys-ui1-dev (>= 1.4.0),
|
||||
liblxqt-globalkeys1-dev (>= 1.4.0),
|
||||
liblxqt1-dev (>= 1.4.0),
|
||||
libqt5svg5-dev,
|
||||
libqt5x11extras5-dev,
|
||||
libx11-dev,
|
||||
libxcb-dpms0-dev,
|
||||
libxcb-screensaver0-dev,
|
||||
qt6-base-private-dev (>= 6.6.0),
|
||||
qt6-svg-dev (>= 6.6.0)
|
||||
Standards-Version: 4.7.1
|
||||
qtbase5-private-dev
|
||||
Standards-Version: 4.6.2
|
||||
Vcs-Browser: https://git.lubuntu.me/Lubuntu/lxqt-powermanagement-packaging
|
||||
Vcs-Git: https://git.lubuntu.me/Lubuntu/lxqt-powermanagement-packaging.git
|
||||
Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/lxqt-powermanagement
|
||||
Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-powermanagement.git
|
||||
XS-Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/lxqt-powermanagement
|
||||
XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/lxqt-powermanagement.git
|
||||
Rules-Requires-Root: no
|
||||
Homepage: https://github.com/lxqt/lxqt-powermanagement
|
||||
|
||||
@ -39,7 +40,7 @@ Package: lxqt-powermanagement-l10n
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Section: localization
|
||||
Depends: qt6-translations-l10n, ${misc:Depends}
|
||||
Depends: qttranslations5-l10n, ${misc:Depends}
|
||||
Description: Language package for lxqt-powermanagement
|
||||
The l10n files for lxqt-powermanagement
|
||||
.
|
||||
|
4
debian/copyright
vendored
4
debian/copyright
vendored
@ -3,7 +3,7 @@ Upstream-Name: lxqt-powermanagement
|
||||
Source: https://github.com/lxqt/lxqt-powermanagement
|
||||
|
||||
Files: *
|
||||
Copyright: 2013-2024, LXQt team
|
||||
Copyright: 2013-2023, LXQt team
|
||||
2011-2012, Razor team
|
||||
License: LGPL-2.1+
|
||||
|
||||
@ -24,7 +24,7 @@ Copyright: 2013, Alec Moskvin <alecm@gmx.com>
|
||||
License: LGPL-2.1+
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2021-2025, Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
|
||||
Copyright: 2021-2023, Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
|
||||
2014-2019, Alf Gaida <agaida@siduction.org>
|
||||
2015, Andrew Lee (李健秋) <ajqlee@debian.org>
|
||||
License: LGPL-2.1+
|
||||
|
@ -1,4 +0,0 @@
|
||||
# This is expected
|
||||
lxqt-powermanagement: desktop-entry-lacks-keywords-entry [usr/share/applications/lxqt-config-powermanagement.desktop]
|
||||
lxqt-powermanagement: desktop-entry-invalid-category LXQt [usr/share/applications/lxqt-config-powermanagement.desktop]
|
||||
lxqt-powermanagement: no-manual-page *
|
4
debian/patches/battery-ux.patch
vendored
4
debian/patches/battery-ux.patch
vendored
@ -57,7 +57,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
+ bool discharging;
|
||||
double chargeLevel;
|
||||
|
||||
- for (const Solid::Battery *battery : std::as_const(mBatteries))
|
||||
- for (const Solid::Battery *battery : qAsConst(mBatteries))
|
||||
- {
|
||||
- totalEnergyFull += battery->energyFull();
|
||||
- totalEnergyNow += battery->energy();
|
||||
@ -80,7 +80,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
+ bool batteries = false;
|
||||
+ discharging = true;
|
||||
+
|
||||
+ for (const Solid::Battery *battery : std::as_const(mBatteries))
|
||||
+ for (const Solid::Battery *battery : qAsConst(mBatteries))
|
||||
+ {
|
||||
+ batteries = true;
|
||||
+
|
||||
|
118
debian/patches/revert-dpms-changes.patch
vendored
118
debian/patches/revert-dpms-changes.patch
vendored
@ -7,48 +7,87 @@ Description: Remove DPMS-related and screensaver-suspending-related code
|
||||
sets DPMS timeouts. This patch removes all of that code, fixing the crashes.
|
||||
Author: Aaron Rainbolt
|
||||
Origin: ubuntu
|
||||
Last-Update: 2024-06-26
|
||||
Last-Update: 2023-11-14
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 07f9549..6215d9c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -15,22 +15,18 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
--- lxqt-powermanagement-2.0.0.orig/CMakeLists.txt
|
||||
+++ lxqt-powermanagement-2.0.0/CMakeLists.txt
|
||||
@@ -29,7 +29,6 @@ find_package(KF6IdleTime ${KF6_MINIMUM_V
|
||||
find_package(KF6Solid ${KF6_MINIMUM_VERSION} REQUIRED)
|
||||
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
|
||||
|
||||
-set(LXQTBT_MINIMUM_VERSION "0.13.0")
|
||||
set(KF5_MINIMUM_VERSION "5.101.0")
|
||||
set(LXQT_MINIMUM_VERSION "1.4.0")
|
||||
set(QT_MINIMUM_VERSION "5.15.0")
|
||||
|
||||
-find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(Qt5DBus ${QT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(Qt5LinguistTools ${QT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(Qt5Svg ${QT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(Qt5Widgets ${QT_MINIMUM_VERSION} REQUIRED)
|
||||
-find_package(Qt5X11Extras ${QT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(KF5IdleTime ${KF5_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(KF5Solid ${KF5_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(lxqt ${LXQT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(lxqt-globalkeys-ui ${LXQT_GLOBALKEYS_MINIMUM_VERSION} REQUIRED)
|
||||
-find_package(XCB REQUIRED COMPONENTS xcb-dpms xcb-screensaver)
|
||||
|
||||
message(STATUS "Building with Qt${Qt6Core_VERSION}")
|
||||
message(STATUS "Building with Qt${Qt5Core_VERSION}")
|
||||
|
||||
--- lxqt-powermanagement-2.0.0.orig/src/idlenesswatcher.cpp
|
||||
+++ lxqt-powermanagement-2.0.0/src/idlenesswatcher.cpp
|
||||
@@ -35,8 +35,6 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index b29362a..177ddb1 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -57,8 +57,6 @@ target_link_libraries(lxqt-powermanagement
|
||||
KF5::Solid
|
||||
KF5::IdleTime
|
||||
lxqt-globalkeys
|
||||
- Qt5::X11Extras
|
||||
- ${XCB_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS
|
||||
diff --git a/src/idlenesswatcher.cpp b/src/idlenesswatcher.cpp
|
||||
index ecaa641..cb9d9e1 100644
|
||||
--- a/src/idlenesswatcher.cpp
|
||||
+++ b/src/idlenesswatcher.cpp
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "idlenesswatcher.h"
|
||||
|
||||
-#include <QGuiApplication>
|
||||
+#include <QCoreApplication>
|
||||
#include <QTimer>
|
||||
#include <KIdleTime>
|
||||
#include <Solid/Device>
|
||||
@@ -35,9 +35,6 @@
|
||||
#include <QDebug>
|
||||
#include <LXQt/lxqtnotification.h>
|
||||
#include <QObject>
|
||||
-#include <QX11Info>
|
||||
-#include <xcb/dpms.h>
|
||||
-#include <xcb/screensaver.h>
|
||||
|
||||
IdlenessWatcher::IdlenessWatcher(QObject* parent):
|
||||
Watcher(parent)
|
||||
@@ -70,47 +68,14 @@ IdlenessWatcher::IdlenessWatcher(QObject
|
||||
@@ -71,43 +68,14 @@ IdlenessWatcher::IdlenessWatcher(QObject* parent):
|
||||
|
||||
connect(&mPSettings, &LXQt::Settings::settingsChanged, this, &IdlenessWatcher::onSettingsChanged);
|
||||
|
||||
- // retrieve DPMS timeouts
|
||||
- mDpmsStandby = mDpmsSuspend = mDpmsOff = 0;
|
||||
- if (QGuiApplication::platformName() == QStringLiteral("xcb")) {
|
||||
- if (auto x11NativeInterface = qGuiApp->nativeInterface<QNativeInterface::QX11Application>()) {
|
||||
- xcb_connection_t* c = x11NativeInterface->connection();
|
||||
- xcb_dpms_get_timeouts_cookie_t cookie = xcb_dpms_get_timeouts(c);
|
||||
- xcb_dpms_get_timeouts_reply_t* reply = xcb_dpms_get_timeouts_reply(c, cookie, nullptr);
|
||||
- if (reply) {
|
||||
- mDpmsStandby = reply->standby_timeout;
|
||||
- mDpmsSuspend = reply->suspend_timeout;
|
||||
- mDpmsOff = reply->off_timeout;
|
||||
- free(reply);
|
||||
- }
|
||||
- xcb_connection_t* c = QX11Info::connection();
|
||||
- xcb_dpms_get_timeouts_cookie_t cookie = xcb_dpms_get_timeouts(c);
|
||||
- xcb_dpms_get_timeouts_reply_t* reply = xcb_dpms_get_timeouts_reply(c, cookie, nullptr);
|
||||
- if (reply) {
|
||||
- mDpmsStandby = reply->standby_timeout;
|
||||
- mDpmsSuspend = reply->suspend_timeout;
|
||||
- mDpmsOff = reply->off_timeout;
|
||||
- free(reply);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
@ -63,16 +102,14 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
|
||||
-void IdlenessWatcher::setDpmsTimeouts(bool restore) {
|
||||
- if (QGuiApplication::platformName() == QStringLiteral("xcb")) {
|
||||
- if (auto x11NativeInterface = qGuiApp->nativeInterface<QNativeInterface::QX11Application>()) {
|
||||
- xcb_connection_t* c = x11NativeInterface->connection();
|
||||
- if (restore) {
|
||||
- xcb_dpms_set_timeouts(c, mDpmsStandby, mDpmsSuspend, mDpmsOff);
|
||||
- xcb_screensaver_suspend(c, 0); // WARNING: This is not documented but works.
|
||||
- }
|
||||
- else {
|
||||
- xcb_dpms_set_timeouts(c, 0, 0, 0);
|
||||
- xcb_screensaver_suspend(c, XCB_SCREENSAVER_SUSPEND);
|
||||
- }
|
||||
- xcb_connection_t* c = QX11Info::connection();
|
||||
- if (restore) {
|
||||
- xcb_dpms_set_timeouts(c, mDpmsStandby, mDpmsSuspend, mDpmsOff);
|
||||
- xcb_screensaver_suspend(c, 0); // WARNING: This is not documented but works.
|
||||
- }
|
||||
- else {
|
||||
- xcb_dpms_set_timeouts(c, 0, 0, 0);
|
||||
- xcb_screensaver_suspend(c, XCB_SCREENSAVER_SUSPEND);
|
||||
- }
|
||||
- }
|
||||
-}
|
||||
@ -80,7 +117,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
void IdlenessWatcher::setup()
|
||||
{
|
||||
if(mPSettings.isIdlenessWatcherEnabled()) {
|
||||
@@ -144,13 +109,6 @@ void IdlenessWatcher::setup()
|
||||
@@ -141,13 +109,6 @@ void IdlenessWatcher::setup()
|
||||
milliseconds = 1000;
|
||||
mIdleBacklightWatcher = KIdleTime::instance()->addIdleTimeout(milliseconds);
|
||||
}
|
||||
@ -94,8 +131,10 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
}
|
||||
}
|
||||
|
||||
--- lxqt-powermanagement-2.0.0.orig/src/idlenesswatcher.h
|
||||
+++ lxqt-powermanagement-2.0.0/src/idlenesswatcher.h
|
||||
diff --git a/src/idlenesswatcher.h b/src/idlenesswatcher.h
|
||||
index dce9cc6..af0b585 100644
|
||||
--- a/src/idlenesswatcher.h
|
||||
+++ b/src/idlenesswatcher.h
|
||||
@@ -45,8 +45,6 @@ private Q_SLOTS:
|
||||
void onSettingsChanged();
|
||||
|
||||
@ -113,3 +152,16 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
};
|
||||
|
||||
#endif // IDLENESSWATCHER_H
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index eedd360..493bf8b 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -34,7 +34,7 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
- LXQt::Application a(argc, argv, true);
|
||||
+ LXQt::Application a(argc, argv);
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
|
||||
QCommandLineParser parser;
|
||||
|
2
debian/source/lintian-overrides
vendored
2
debian/source/lintian-overrides
vendored
@ -1,2 +0,0 @@
|
||||
# We won't be forwarding this patch upstream
|
||||
lxqt-powermanagement source: patch-not-forwarded-upstream [debian/patches/revert-dpms-changes.patch]
|
Loading…
x
Reference in New Issue
Block a user