commit laptop-mode-tools for openSUSE:Factory
Hello community,
here is the log from the commit of package laptop-mode-tools for openSUSE:Factory checked in at 2016-03-26 15:28:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/laptop-mode-tools (Old)
and /work/SRC/openSUSE:Factory/.laptop-mode-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "laptop-mode-tools"
Changes:
--------
--- /work/SRC/openSUSE:Factory/laptop-mode-tools/laptop-mode-tools.changes 2016-02-22 08:57:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.laptop-mode-tools.new/laptop-mode-tools.changes 2016-03-26 17:29:23.000000000 +0100
@@ -1,0 +2,32 @@
+Thu Mar 24 08:47:53 UTC 2016 - robert@linux-source.org
+
+- Fix source url, point to github.com
+- Add org.linux.lmt.gui.policy to spec file.
+- Add lmt-poll.service to %pre/%post/%preun/%postun.
+- Clean-up spec file, require systemd-rpm-macro only if version is
+ 1315 or higher.
+- Update to version 1.69.1:
+ + Important Bug Fix release.
+- Changes from version 1.69:
+ + Wait for all forked modules to complete
+ + Add new module: cputhotplug
+ + CPU online/offine is reverse here
+ + Fix shell syntax
+ + Install policykit file
+ + Detach polling daemon from main process
+ + Do NOT touch speed if throttling is not set
+ + Restore to MAX speed when back to AC Power
+ + Fix manpage about DISABLE_ETHERNET_ON_BATTERY setting
+ + Update documentation about ENABLE_LAPTOP_MODE_ON_AC setting
+ + Change powersaving default for USB class devices
+ + Drop usbhid from default (black)list
+ + Add usb keyboard driver to the list default list
+ + Be consistent with passing args to LMT from different invokers
+ + Honor device plug/unplug events on a per device basis;
+ like how Chromium initially submitted this patch
+ + Also be consistent with option in the event parser
+ + Update links in README.md
+ + Update new github homepage location
+ + Add lmt-config-gui shell script
+
+-------------------------------------------------------------------
Old:
----
laptop-mode-tools_1.68.1.tar.gz
New:
----
laptop-mode-tools_1.69.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ laptop-mode-tools.spec ++++++
--- /var/tmp/diff_new_pack.YG5KIj/_old 2016-03-26 17:29:24.000000000 +0100
+++ /var/tmp/diff_new_pack.YG5KIj/_new 2016-03-26 17:29:24.000000000 +0100
@@ -20,13 +20,13 @@
%{!?_udevdir:%global _udevdir %{_libexecdir}/udev}
Name: laptop-mode-tools
-Version: 1.68.1
+Version: 1.69.1
Release: 0
Summary: The Laptop Mode Tools
License: GPL-2.0+
Group: System/Base
Url: http://www.samwel.tk/laptop_mode/
-Source: http://samwel.tk/laptop_mode/tools/downloads/%{name}_%{version}.tar.gz
+Source: https://github.com/rickysarraf/%{name}/releases/download/%{version}/%{name}_%{version}.tar.gz
Source1: laptop-mode-tools.pm-utils-hook
Source2: README.SUSE
Patch1: laptop-mode-1.53-install_sh.diff
@@ -38,8 +38,8 @@
BuildRequires: pm-utils
%else
BuildRequires: systemd
-%endif
BuildRequires: systemd-rpm-macros
+%endif
BuildRequires: udev
BuildArch: noarch
%{?systemd_requires}
@@ -82,16 +82,20 @@
%pre
%service_add_pre laptop-mode.service
+%service_add_pre lmt-poll.service
%post
%service_add_post laptop-mode.service
+%service_add_post lmt-poll.service
systemd-tmpfiles --create %{_tmpfilesdir}/laptop-mode.conf
%preun
%service_del_preun laptop-mode.service
+%service_del_preun lmt-poll.service
%postun
%service_del_postun laptop-mode.service
+%service_del_postun lmt-poll.service
%files
%defattr(-,root,root)
@@ -123,6 +127,9 @@
%doc README.SUSE
%{_tmpfilesdir}/laptop-mode.conf
%{_unitdir}/laptop-mode.service
+%dir %{_datadir}/polkit-1
+%dir %{_datadir}/polkit-1/actions
+%{_datadir}/polkit-1/actions/org.linux.lmt.gui.policy
%if 0%{?suse_version} >= 1315
%{_unitdir}/laptop-mode.timer
%{_unitdir}/lmt-poll.service
++++++ laptop-mode-tools_1.68.1.tar.gz -> laptop-mode-tools_1.69.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/Documentation/revision-history.txt new/laptop-mode-tools_1.69.1/Documentation/revision-history.txt
--- old/laptop-mode-tools_1.68.1/Documentation/revision-history.txt 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/Documentation/revision-history.txt 2016-03-15 11:35:20.000000000 +0100
@@ -1,3 +1,25 @@
+1.69 - Mon Mar 7 17:44:42 IST 2016
+ * Wait for all forked modules to complete
+ * Add new module: cputhotplug
+ * CPU online/offine is reverse here
+ * Fix shell syntax
+ * Install policykit file
+ * Detach polling daemon from main process
+ * Do NOT touch speed if throttling is not set
+ * Restore to MAX speed when back to AC Power
+ * Fix manpage about DISABLE_ETHERNET_ON_BATTERY setting
+ * Update documentation about ENABLE_LAPTOP_MODE_ON_AC setting
+ * Change powersaving default for USB class devices
+ * Drop usbhid from default (black)list
+ * Add usb keyboard driver to the list default list
+ * Be consistent with passing args to LMT from different invokers
+ * Honor device plug/unplug events on a per device basis;
+ like how Chromium initially submitted this patch
+ * Also be consistent with option in the event parser
+ * Update links in README.md
+ * Update new github homepage location
+ * Add lmt-config-gui shell script
+
1.68.1 - Sun Sep 27 14:00:13 IST 2015
* Update details about runtime-pm in manpage
* Revert "Drop out reload"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/README.md new/laptop-mode-tools_1.69.1/README.md
--- old/laptop-mode-tools_1.68.1/README.md 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/README.md 2016-03-15 11:35:20.000000000 +0100
@@ -28,7 +28,7 @@
* To configure the laptop mode scripts, edit `/etc/laptop-mode/laptop-mode.conf`.
-* The laptop mode FAQ can be found at http://samwel.tk/laptop_mode/faq
+* The laptop mode FAQ can be found at https://github.com/rickysarraf/laptop-mode-tools/wiki/FAQ
* The revision history is included in the `Documentation` directory.
@@ -43,4 +43,4 @@
References
----------
-The laptop mode tools website: http://samwel.tk/laptop_mode/
+The laptop mode tools website: http://rickysarraf.github.io/laptop-mode-tools/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/laptop-mode/conf.d/cpuhotplug.conf new/laptop-mode-tools_1.69.1/etc/laptop-mode/conf.d/cpuhotplug.conf
--- old/laptop-mode-tools_1.68.1/etc/laptop-mode/conf.d/cpuhotplug.conf 1970-01-01 01:00:00.000000000 +0100
+++ new/laptop-mode-tools_1.69.1/etc/laptop-mode/conf.d/cpuhotplug.conf 2016-03-15 11:35:20.000000000 +0100
@@ -0,0 +1,36 @@
+#
+# Configuration file for Laptop Mode Tools module cpuhotplug.
+#
+# For more information, consult the laptop-mode.conf(8) manual page.
+#
+
+###############################################################################
+# CPU Hot Plugging
+# ----------------
+#
+#__COMMENT Laptop mode tools can automatically switch off multiple CPU cores
+#__COMMENT when switching to battery.
+#__COMMENT This can be very useful if your use does not involve CPU intensive
+#__COMMENT tasks, while on battery
+#__COMMENT
+#__COMMENT IMPORTANT: This feature is NOT enabled by default
+#__COMMENT
+#__COMMENT Enalbe it only if you understand what you are doing
+#
+###############################################################################
+
+# Enable debug mode for this module
+# Set to 1 if you want to debug this module
+DEBUG=0
+
+#
+# Should laptop mode tools control the CPU Hot Plugging functionality?
+#
+# Set to 0 to disable
+CONTROL_CPU_HOTPLUG=0
+
+
+# Conditions under which to enable CPU Hot Plugging, i.e. shutdown of the CPU
+BATT_CPU_HOTPLUG=1
+LM_AC_CPU_HOTPLUG=0
+NOLM_AC_CPU_HOTPLUG=0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/laptop-mode/conf.d/runtime-pm.conf new/laptop-mode-tools_1.69.1/etc/laptop-mode/conf.d/runtime-pm.conf
--- old/laptop-mode-tools_1.68.1/etc/laptop-mode/conf.d/runtime-pm.conf 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/laptop-mode/conf.d/runtime-pm.conf 2016-03-15 11:35:20.000000000 +0100
@@ -42,7 +42,7 @@
# The list of device driver types that should not use autosuspend. The driver
# type is given by "DRIVER=..." in a device's uevent file.
# Example: AUTOSUSPEND_DEVID_BLACKLIST="usbhid usb-storage"
-AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST=""
+AUTOSUSPEND_RUNTIME_DEVTYPE_BLACKLIST="hub usbhid usb-storage"
# The list of Device IDs that should use autosuspend. Use system commands or
# look into sysfs to find out the IDs of your devices.
@@ -58,7 +58,7 @@
# Warning: DO NOT CHANGE THESE DEFAUTLS UNLESS YOU KNOW
BATT_SUSPEND_RUNTIME=1
LM_AC_SUSPEND_RUNTIME=1
-NOLM_AC_SUSPEND_RUNTIME=1
+NOLM_AC_SUSPEND_RUNTIME=0
# Auto-Suspend timeout in seconds
# Number of seconds after which the USB devices should suspend
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/laptop-mode/laptop-mode.conf new/laptop-mode-tools_1.69.1/etc/laptop-mode/laptop-mode.conf
--- old/laptop-mode-tools_1.68.1/etc/laptop-mode/laptop-mode.conf 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/laptop-mode/laptop-mode.conf 2016-03-15 11:35:20.000000000 +0100
@@ -81,13 +81,14 @@
#
-# Enable laptop mode when on battery power.
+# Enable laptop mode power saving, when on battery power.
#
ENABLE_LAPTOP_MODE_ON_BATTERY=1
#
-# Enable laptop mode when on AC power.
+# Enable laptop mode power savings, even when on AC power.
+# This is useful when running as a headless machine, in low power mode
#
ENABLE_LAPTOP_MODE_ON_AC=0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/rules/99-laptop-mode.rules new/laptop-mode-tools_1.69.1/etc/rules/99-laptop-mode.rules
--- old/laptop-mode-tools_1.68.1/etc/rules/99-laptop-mode.rules 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/rules/99-laptop-mode.rules 2016-03-15 11:35:20.000000000 +0100
@@ -1,3 +1,3 @@
ACTION=="change", SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="|AC|ACAD", RUN+="lmt-udev auto"
-ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="lmt-udev auto force"
+ACTION=="add|remove", SUBSYSTEM=="machinecheck", RUN+="lmt-udev auto"
ACTION=="add|remove", SUBSYSTEM=="usb", RUN+="lmt-udev force modules=runtime-pm devices=%k"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/rules/lmt-udev new/laptop-mode-tools_1.69.1/etc/rules/lmt-udev
--- old/laptop-mode-tools_1.68.1/etc/rules/lmt-udev 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/rules/lmt-udev 2016-03-15 11:35:20.000000000 +0100
@@ -25,27 +25,35 @@
}
+## For Debug only
+#export LMT_DEBUG="/tmp/__lmt__debug.txt"
+[ -z $LMT_DEBUG ] || rm -f $LMT_DEBUG
+##
# Under systemd, we don't do synchronous operations, so we can run in the foreground;
# And we need also need to run in foreground, because forked children get kill immediately
# under systemd/udev
-if [ -d /run/systemd/system ]; then
+# The seconds "auto" evaluation is to determine if it is a standard execution;
+# i.e. a reload/restart or a device plug/unplug
+
+if [ -d /run/systemd/system ] && [ x$1 = xauto ]; then
+ [ -z $LMT_DEBUG ] || echo "systemd is $PPID $$ $@" > $LMT_DEBUG
exec systemctl --no-block reload-or-restart laptop-mode
else
# Under sysvinit/upstart, we need to fork as we start the long-running
# /usr/sbin/laptop_mode process.
#
# Also, if this happens during boot, we may want to wait until /usr is available
- # This else stanza is going to be used rarely, because going forward we are
- # going to use systemd.
- # But for compatibility reasons, we'll carry this
#
# That said, we background the execution here, because, otherwise udevd will wait
# for this process which will block
- exec > /dev/null 2>dev/null
+ # This stanza will also be called for device plug/unplug events
+
+ exec > /dev/null 2>/dev/null
non_systemd_way "$@" &
+ [ -z $LMT_DEBUG ] || echo "regulard is $PPID $$ $@" > $LMT_DEBUG
fi
exit 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/systemd/laptop-mode.service new/laptop-mode-tools_1.69.1/etc/systemd/laptop-mode.service
--- old/laptop-mode-tools_1.68.1/etc/systemd/laptop-mode.service 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/systemd/laptop-mode.service 2016-03-15 11:35:20.000000000 +0100
@@ -1,15 +1,15 @@
[Unit]
Description=Laptop Mode Tools
Documentation=man:laptop_mode(8) man:laptop-mode.conf(8)
-Documentation=http://samwel.tk/laptop_mode
+Documentation=http://github.com/rickysarraf/laptop-mode-tools
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=@/usr/sbin/laptop_mode init auto
-ExecStop=@/usr/sbin/laptop_mode init stop
-ExecStopPost=@/bin/rm -f /var/run/laptop-mode-tools/enabled
-ExecReload=@/usr/sbin/laptop_mode auto
+ExecStart=/usr/sbin/laptop_mode init auto
+ExecStop=/usr/sbin/laptop_mode init stop
+ExecStopPost=/bin/rm -f /var/run/laptop-mode-tools/enabled
+ExecReload=/usr/sbin/laptop_mode auto
StandardOutput=journal
StandardError=journal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/etc/systemd/lmt-poll.service new/laptop-mode-tools_1.69.1/etc/systemd/lmt-poll.service
--- old/laptop-mode-tools_1.68.1/etc/systemd/lmt-poll.service 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/etc/systemd/lmt-poll.service 2016-03-15 11:35:20.000000000 +0100
@@ -1,13 +1,13 @@
[Unit]
Description=Laptop Mode Tools - Battery Polling Service
Documentation=man:laptop_mode(8) man:laptop-mode.conf(8)
-Documentation=http://samwel.tk/laptop_mode
+Documentation=http://github.com/rickysarraf/laptop-mode-tools
[Service]
Type=oneshot
RemainAfterExit=no
-ExecStart=/lib/udev/lmt-udev
-ExecReload=/lib/udev/lmt-udev
+ExecStart=/lib/udev/lmt-udev auto
+ExecReload=/lib/udev/lmt-udev auto
StandardOutput=journal
StandardError=journal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/gui/LMT.py new/laptop-mode-tools_1.69.1/gui/LMT.py
--- old/laptop-mode-tools_1.68.1/gui/LMT.py 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/gui/LMT.py 2016-03-15 11:35:20.000000000 +0100
@@ -30,7 +30,7 @@
COMMENT_IDENTIFIER = "#__COMMENT"
CONTROL_IDENTIFIER = "CONTROL_"
CONFIG_DIR = "/etc/laptop-mode/conf.d"
-WEBPAGE_URL = "http://samwel.tk/laptop_mode"
+WEBPAGE_URL = "http://github.com/rickysarraf/laptop-mode-tools"
###############################################################################
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/gui/lmt-config-gui new/laptop-mode-tools_1.69.1/gui/lmt-config-gui
--- old/laptop-mode-tools_1.68.1/gui/lmt-config-gui 1970-01-01 01:00:00.000000000 +0100
+++ new/laptop-mode-tools_1.69.1/gui/lmt-config-gui 2016-03-15 11:35:20.000000000 +0100
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Needed for annoying QT MIT bug
+export QT_X11_NO_MITSHM=1
+
+python2 /usr/share/laptop-mode-tools/lmt.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/install.sh new/laptop-mode-tools_1.69.1/install.sh
--- old/laptop-mode-tools_1.68.1/install.sh 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/install.sh 2016-03-15 11:35:20.000000000 +0100
@@ -118,6 +118,7 @@
$INSTALL -d -m 755 "$DESTDIR/usr/share/laptop-mode-tools/module-helpers"
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/conf.d"
$INSTALL -d -m 755 "$DESTDIR/etc/laptop-mode/modules"
+$INSTALL -d -m 755 "$DESTDIR/usr/share/polkit-1/actions"
$INSTALL -d -m 755 "$DESTDIR/usr/sbin"
$INSTALL -d -m 755 "$DESTDIR/$UDEV_D/rules.d"
$INSTALL -d -m 755 "$DESTDIR/$MAN_D/man8"
@@ -154,6 +155,11 @@
exit 11
fi
+if ( ! $INSTALL -m 644 usr/share/polkit-1/actions/org.linux.lmt.gui.policy "$DESTDIR/usr/share/polkit-1/actions/" ) ; then
+ echo "$0: Failed to install $DESTDIR/usr/share/polkit-1/actions/org.linux.lmt.gui.policy Installation failed."
+ exit 11
+fi
+
if ( ! $INSTALL -m 755 usr/sbin/lm-syslog-setup "$DESTDIR/usr/sbin" ) ; then
echo "$0: Failed to install $DESTDIR/usr/sbin/lm-syslog-setup. installation failed."
exit 25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/laptop-mode-tools_1.68.1/laptop-mode-tools.spec new/laptop-mode-tools_1.69.1/laptop-mode-tools.spec
--- old/laptop-mode-tools_1.68.1/laptop-mode-tools.spec 2015-09-27 10:33:07.000000000 +0200
+++ new/laptop-mode-tools_1.69.1/laptop-mode-tools.spec 2016-03-15 11:35:20.000000000 +0100
@@ -3,11 +3,11 @@
Summary: Tools for power savings based on battery/AC status
Name: laptop-mode-tools
-Version: 1.68.1
+Version: 1.69.1
Release: 1
License: GPL
Group: System Environment/Base
-URL: http://www.samwel.tk/laptop_mode
+URL: http://github.com/rickysarraf/laptop-mode-tools
Vendor: Laptop Mode Tools Developers
Distribution: RPM Based distributions
Packager: Ritesh Raj Sarraf
participants (1)
-
root@hilbert.suse.de