* Bumped compat to 10 * Added build dependency libkf5idletime-dev * Added build dependency libqt5svg5-dev * Bumped minimum version debhelper to />= 10) * Bumped minimum version liblxqt0-dev (>= 0.11.0) * Bumped minimum version libqt5xdg-dev (>= 2.0.0) * Bumped minimum version libqt5xdgiconloader-dev (>= 2.0.0) * Removed build dependency libx11-xcb-dev * Removed build dependency libxcb-dpms0-dev * Removed build dependency libxcb-screensaver0-dev * Removed --parallel from rules, standard in compat 10debian/0.11.0-1
parent
bc606d9f55
commit
f9ea139090
@ -0,0 +1,4 @@
|
||||
build
|
||||
nbproject
|
||||
*kdev4*
|
||||
*/translations/lxqt-powermanagement
|
@ -0,0 +1,218 @@
|
||||
|
||||
lxqt-powermanagement-0.11.0 / 2016-09-24
|
||||
========================================
|
||||
|
||||
* README.md: Replace dependency XCB with KIdleTime
|
||||
* Idleness Watcher: rely on KIdleTime instead of XCB (#33)
|
||||
* fix indents
|
||||
* Update and extend README.md
|
||||
* Add Catalan translation
|
||||
* Add Arabic Translation for Desktop File
|
||||
* I18N: Fix Plural Strings (#38)
|
||||
* Removes the QEventLoop from the Watcher class
|
||||
* build: Use external translations
|
||||
* ts-files removal (#34)
|
||||
* Bump year Fix licenses, lxqt-powermanagement is LGPL only
|
||||
* Fix source language in Italian translation file
|
||||
* Italian translation update
|
||||
* Update Russian translation Remove ru_RU files
|
||||
* Fix typo in Greek translation
|
||||
* update: lxqt-powermanagement_hu.ts
|
||||
* Add German translation
|
||||
|
||||
0.10.0 / 2015-10-31
|
||||
===================
|
||||
|
||||
* Update translations
|
||||
* Fix LICENSE file
|
||||
* Add (re)enabling info message
|
||||
* Rename "On Ac" to "On AC" to have a single string for both
|
||||
* Fix typo in message
|
||||
* Remove "LXQt " from .desktop to follow pattern
|
||||
* Update batteryhelper.cpp
|
||||
* Fixed typo Unkown -> Unknown
|
||||
* lidwatcher: don't listen to Changed signal
|
||||
* Add some missing license headers
|
||||
* OnlyShowIn=LXQt;
|
||||
* Add Greek (el) translation Add the 'Comment' key in desktop file
|
||||
* Add key "Comment" to desktop entry file
|
||||
* Rename LxQt to LXQt everywhere
|
||||
* Handles CMake policy CMP0063
|
||||
* Use the LXQtCompilerSettings CMake module
|
||||
* Make built-in icon move clockwise when charging
|
||||
* Fix red-painting of built-in icon when power low
|
||||
* Adds Runtime install COMPONENT
|
||||
* Coding sytle change
|
||||
* Use GNUInstallDirs
|
||||
* Removes non existent RESOURCES
|
||||
* Use CMAKE_AUTOUIC, drop qt5_wrap_ui()
|
||||
* Remove unneeded include_directories() entries
|
||||
* Minor strings update
|
||||
* Updates the build system to the Targets infrastructure
|
||||
* Remove trailing whitespaces
|
||||
* Enable screen locking from the idleness watcher
|
||||
* Prevent a too small value for the idle watcher
|
||||
* Correctly check for batteries on first run
|
||||
* re-add notification about missing battery
|
||||
* Added italian translations
|
||||
* Hungarian translations added
|
||||
* Support CMake 2.8.11 again
|
||||
* Typos: fix "Idle" capitalization and misspelling
|
||||
* Add icons to the action in the systray icon's menu
|
||||
* Polish translation updated
|
||||
* Only show batteries of type PrimaryBattery. Fixes #535
|
||||
* Make lxqt-powermanagement tray's tooltip work again
|
||||
* Fix warning from clang
|
||||
* Fix some wrong use of Solid::Battery::capacity instead of ..::energy
|
||||
* Align slots and connects with what signals Solid offers
|
||||
* Make batterywatcher react to energylevel- and powersupplystate changes
|
||||
* Port to KF5's Solid
|
||||
|
||||
0.9.0 / 2015-01-26
|
||||
==================
|
||||
|
||||
* Portuguese update
|
||||
* Fix some translation keys
|
||||
* Small layoutchange in batterysettings
|
||||
* Fix strings to be easier translatable
|
||||
* Portuguese update
|
||||
* Add Japanese translation
|
||||
* - Unify naming for a unique lxqt. No more suffixes
|
||||
* Fix battery info dialog's layout
|
||||
* Small tweak to the built-in icon
|
||||
* Added semitransparent background to built in icon
|
||||
* Simplified rendering of built-in icons and added a gradient to them
|
||||
* Use SingleApplication rather than Application
|
||||
* Handle more than one battery
|
||||
* Reordered responsibillities between classes
|
||||
* Some refactoring
|
||||
* Some cleanup
|
||||
* Remove cancel button from batteryinfodialog.ui
|
||||
* Correct one fontsize in batteryinfo.ui
|
||||
* Refactor battery info dialog to handle more than one battery
|
||||
* Cleaned out a lot of old debug statements
|
||||
* Adjusted how chargelevels are mapped to icons
|
||||
* Added icon preview to batterywatcher config
|
||||
* Factor out icon producing in separate class
|
||||
* Clean up code for picking battery icon from theme
|
||||
* Add icon to config window
|
||||
* Fix config gui
|
||||
* Use the new LXQtTranslate modules.
|
||||
* Fixes translations not being loaded.
|
||||
* Updates translations
|
||||
* Adds and uses QtTranslate cmake module for handling .ts translations
|
||||
* Add Russian translation
|
||||
* Include Qt5Gui_PRIVATE_INCLUDE_DIRS for qplatformnativeinterface.h
|
||||
* Clean up CMakeLists.txt, drop Qt4 support
|
||||
* Adds option to disable systray icon in preferences and on the icon's context menu
|
||||
|
||||
0.8.0 / 2014-06-29
|
||||
==================
|
||||
|
||||
* Fix incorrect lib linking.
|
||||
* Add initial Qt5 support.
|
||||
* Add missing lgpl-headers
|
||||
* Recognize Alec Moskvin as author in 'about' dialog
|
||||
* Fix includes, hopefuly correct this time
|
||||
* Clean up includes
|
||||
* Tell logind to not handle lidswitch when lidwatcher is enabled
|
||||
* Added contextmenu to battery systemtray icon
|
||||
* On first run disable lidwatcher/batterywatcher if lid/battery not present
|
||||
* Add missing ${QTXDG_INCLUDE_DIRS} to include_directories().
|
||||
* Use preferred header style
|
||||
* Temporary fix for #86
|
||||
* Corrected badly formed includes. Fix for #81
|
||||
|
||||
0.7.0 / 2014-05-01
|
||||
==================
|
||||
|
||||
* Remove outdated and unused manpage
|
||||
* Add AUTHORS
|
||||
* Strings improvements
|
||||
* Add CPack rules for creating tarball
|
||||
* Fix .desktop icon (thanks, @agaida)
|
||||
* Improvements to .desktop file
|
||||
* Adapt to recent upower api changes
|
||||
* Update README
|
||||
* Fix updating of minutes and seconds in idleness settings
|
||||
* Fix small bugs in idleness-settings, update of seconds
|
||||
* Fix icons in configure-powermanager
|
||||
* Slightly more userfriendly idleness-settings-dialog
|
||||
* Added first-time-run notification with configure-button
|
||||
* Some cleanup + fix idlenesswatcher to use power
|
||||
* More code cleanup
|
||||
* Minor adjustments to config ui's
|
||||
* cleanup
|
||||
* Code cleanup
|
||||
* ui cleanups
|
||||
* Clean up battery-watcher-settings ui
|
||||
* Fixed lxqt-config-powermanagement.desktop file
|
||||
* Renames and cleanup
|
||||
* Lid, Idleness and Battery merged into one application
|
||||
* Normalize imports
|
||||
* Config for idleness and some more options for lidsettings
|
||||
* Removed CMAKE_SOURCE_DIR usage from CMakeLists.txt files
|
||||
* Fix renaming bugs, replacing lxqt-qt with lxde-qt
|
||||
* Finish the crazy razor=>lxqt renaming tasks.
|
||||
* rename razor to lxqt in some strings
|
||||
* Replace lxqt with ${LXQT_LIBRARIES} when linking.
|
||||
* Compile-time dependancy on lxqt library added
|
||||
* Project name fixed
|
||||
* Fix build and adopt new APIs of liblxqt.
|
||||
* Renamed some #ifndef/#define s
|
||||
* Make powermanagement compile and link with liblxqt and libqtxdg
|
||||
* Changed prefix from lz to lxqt for all powermanagement apps
|
||||
* Cleanup of old razor-autosuspend code
|
||||
* cmake-files cleanup
|
||||
* Initial commit
|
||||
* Renames and cleanup in config
|
||||
* Renames and cleanup in idleness
|
||||
* Renames and cleanup in battery
|
||||
* Rename and cleanup in lid
|
||||
* Split razorautosuspend into lid and battery, make stuff compile
|
||||
* Moved razorqt-screenlocker into razor-autosuspend
|
||||
* X-RAZOR changed to Razor in desktop files
|
||||
* razor-autosuspend handle more battery-icon naming schemes
|
||||
* Fix underlinking with QtDbus
|
||||
* Autosuspend: Force icon to update when settings change
|
||||
* Autosuspend: Add config option to start/stop
|
||||
* Autosuspend: Perform a first-run check for a battery
|
||||
* Set battery info dialog title
|
||||
* Trtanslations
|
||||
* Fixes to razor-autosuspend trayicon drawing
|
||||
* New, dynamically generated battery icon for razor-autosuspend
|
||||
* preliminary manpages primary for razorqt and usefully in venenux
|
||||
* autosuspend: fix discharging()
|
||||
* Razor-autosuspend fix missing initialization of Battery
|
||||
* Rename fields in razor-config-autosuspend to comply with code style
|
||||
* Rename variables in razor-autosuspend to comply with coding standards
|
||||
* Now possible to use theme-icons in razor-autosuspend
|
||||
* Translations updated
|
||||
* Translations updated
|
||||
* first part of fixes based on Coverity Scan (code static analysis)
|
||||
* Fix components missing translations
|
||||
* Added copyright headers to constants.h, batteryinfo.h and batteryinfo.cpp in razor-autosuspend
|
||||
* Typos found during translation
|
||||
* Translations
|
||||
* Delete bad en_GB translations
|
||||
* Update translations
|
||||
* Enable translations for some components that were missing them
|
||||
* Load setting on startup and fix wrong slot
|
||||
* razor-autosuspend watch for changes in settings
|
||||
* Translations updated
|
||||
* Removed line num from TS files.
|
||||
* Make razorqt-autosuspend a module
|
||||
* Generate translations for razorqt-autosuspend
|
||||
* Use flexible layouts
|
||||
* Translations
|
||||
* Deleted old translation methods.
|
||||
* New translation infrastructure
|
||||
* Fixes in the debs files for the razor-config-autosuspend.desktop
|
||||
* razor-autosuspend: When batteryinfo open it closes when trayicon clicked
|
||||
* Detailed battery info when clicking razor-autosuspend tray icon
|
||||
* razor-autosuspend registers as dbus-service (org.razor-qt.razor-autosuspend) - fixes #346
|
||||
* Razor-autosuspend: power-low-level is now configurable
|
||||
* Razor-autosuspend: Added shutdown as action on lidclosed or powerlow
|
||||
* Added config app for razor-autosuspend
|
||||
* Moved razor-autosuspend sourcefiles to src-dir
|
||||
* Moved razor-autosuspend to toplevel as it is not really a part of razorqt-power
|
@ -1,4 +1,31 @@
|
||||
lxqt-powermanagement
|
||||
====================
|
||||
# lxqt-powermanagement
|
||||
|
||||
Power management module for LXQt
|
||||
## Overview
|
||||
|
||||
This repository is providing tools to monitor power management events and optionally trigger actions like e. g. shut down a system when laptop batteries are low on power.
|
||||
|
||||
The core components are two binaries `lxqt-powermanagement` and `lxqt-config-powermanagement`.
|
||||
`lxqt-powermanagement` is running in a daemon-like manner as so-called "LXQt Module" and doing the actual work. GUI "Power Management Settings (binary `lxqt-config-powermanagement`) is used to customize settings.
|
||||
|
||||
Warning messages are displayed on the desktop by [lxqt-notificationd](https://github.com/lxde/lxqt-notificationd).
|
||||
|
||||
## Installation
|
||||
|
||||
### Compiling source code
|
||||
|
||||
Runtime dependencies are UPower, KIdleTime, qtsvg and [liblxqt](https://github.com/lxde/liblxqt).
|
||||
Additional build dependencies are CMake and Solid, optionally Git to pull latest VCS checkouts. The localization files were outsourced to repository [lxqt-l10n](https://github.com/lxde/lxqt-l10n) so the corresponding dependencies are needed, too. Please refer to this repository's `README.md` for further information.
|
||||
|
||||
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems.
|
||||
|
||||
To build run `make`, to install `make install` which accepts variable `DESTDIR` as usual.
|
||||
|
||||
### Binary packages
|
||||
|
||||
Official binary packages are provided by all major Linux distributions like Arch Linux, Debian (as of Debian stretch only), Fedora and openSUSE. Just use your package manager to search for string `lxqt-powermanagement`.
|
||||
|
||||
## Configuration, Usage
|
||||
|
||||
Daemon-like `lxqt-powermanagement` can be adjusted from section "Basic Settings" in configuration dialogue "LXQt Session Settings" (binary `lxqt-config-session`) of [lxqt-session](https://github.com/lxde/lxqt-session).
|
||||
|
||||
To customize settings there's configuration dialogue "Power Management Settings" (binary `lxqt-config-powermanagement`). It can be opened from the panel's main menu - Preferences - LXQt Settings - Power Management and is provided by the "Configuration Center" (binary `lxqt-config`) of [lxqt-config](https://github.com/lxde/lxqt-config) as well.
|
||||
|
@ -0,0 +1,3 @@
|
||||
Name[ar]=إدارة الطّاقة
|
||||
GenericName[ar]=إعدادات إدارة الطّاقة
|
||||
Comment[ar]=عدّة إعدادات لإدارة الطّاقة مثل مراقبات البطّاريّة أو الخمول
|
@ -0,0 +1,3 @@
|
||||
Name[ca]=Gestió de l'energia
|
||||
GenericName[ca]=Ajusts de la gestió de l'energia
|
||||
Comment[ca]=Diversos ajusts pel que fa a la gestió de l'energia com la bateria o l'observador de l'ociositat
|
@ -1,42 +0,0 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.freedesktop.ScreenSaver">
|
||||
<signal name="ActiveChanged">
|
||||
<arg type="b"/>
|
||||
</signal>
|
||||
<method name="Lock">
|
||||
</method>
|
||||
<method name="SimulateUserActivity">
|
||||
</method>
|
||||
<method name="GetActive">
|
||||
<arg type="b" direction="out"/>
|
||||
</method>
|
||||
<method name="GetActiveTime">
|
||||
<arg name="seconds" type="u" direction="out"/>
|
||||
</method>
|
||||
<method name="GetSessionIdleTime">
|
||||
<arg name="seconds" type="u" direction="out"/>
|
||||
</method>
|
||||
<method name="SetActive">
|
||||
<arg type="b" direction="out"/>
|
||||
<arg name="e" type="b" direction="in"/>
|
||||
</method>
|
||||
<method name="Inhibit">
|
||||
<arg name="application_name" type="s" direction="in"/>
|
||||
<arg name="reason_for_inhibit" type="s" direction="in"/>
|
||||
<arg name="cookie" type="u" direction="out"/>
|
||||
</method>
|
||||
<method name="UnInhibit">
|
||||
<arg name="cookie" type="u" direction="in"/>
|
||||
</method>
|
||||
<method name="Throttle">
|
||||
<arg name="application_name" type="s" direction="in"/>
|
||||
<arg name="reason_for_throttle" type="s" direction="in"/>
|
||||
<arg name="cookie" type="u" direction="out"/>
|
||||
</method>
|
||||
<method name="UnThrottle">
|
||||
<arg name="cookie" type="u" direction="in"/>
|
||||
</method>
|
||||
</interface>
|
||||
</node>
|
@ -1,42 +0,0 @@
|
||||
/* BEGIN_COMMON_COPYRIGHT_HEADER
|
||||
* (c)LGPL2+
|
||||
*
|
||||
* LXDE-Qt - a lightweight, Qt based, desktop toolset
|
||||
* http://razor-qt.org
|
||||
*
|
||||
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* END_COMMON_COPYRIGHT_HEADER */
|
||||
|
||||
#include "x11helper.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
Display* X11Helper::display()
|
||||
{
|
||||
QPlatformNativeInterface *native = qApp->platformNativeInterface();
|
||||
void* display = native->nativeResourceForWindow("display", 0);
|
||||
return reinterpret_cast<Display*>(display);
|
||||
}
|
||||
|
||||
xcb_connection_t* X11Helper::connection()
|
||||
{
|
||||
QPlatformNativeInterface *native = qApp->platformNativeInterface();
|
||||
void* connection = native->nativeResourceForWindow("connection", 0);
|
||||
return reinterpret_cast<xcb_connection_t*>(connection);
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
/* BEGIN_COMMON_COPYRIGHT_HEADER
|
||||
* (c)LGPL2+
|
||||
*
|
||||
* LXDE-Qt - a lightweight, Qt based, desktop toolset
|
||||
* http://razor-qt.org
|
||||
*
|
||||
* Copyright (C) 2013 Alec Moskvin <alecm@gmx.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* END_COMMON_COPYRIGHT_HEADER */
|
||||
|
||||
#ifndef X11HELPER_H
|
||||
#define X11HELPER_H
|
||||
|
||||
#include <xcb/xcb.h>
|
||||
|
||||
// Avoid polluting everything with X11/Xlib.h:
|
||||
typedef struct _XDisplay Display;
|
||||
|
||||
/**
|
||||
* @brief The X11Helper class is class to get the X11 Display or XCB connection
|
||||
*
|
||||
* It's intended to be used as a wrapper/replacement for QX11Info, which is removed in Qt5.
|
||||
*/
|
||||
class X11Helper
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @brief display Returns the X11 display
|
||||
* @return
|
||||
*/
|
||||
static Display* display();
|
||||
|
||||
/**
|
||||
* @brief connection Returns the XCB connection
|
||||
* @return
|
||||
*/
|
||||
static xcb_connection_t* connection();
|
||||
};
|
||||
|
||||
#endif // X11HELPER_H
|
Loading…
Reference in new issue