Your message dated Mon, 07 Mar 2016 16:24:12 +0000
with message-id <[email protected]>
and subject line Bug#807134: fixed in laptop-mode-tools 1.69-1
has caused the Debian Bug report #807134,
regarding laptop-mode-tools: battery level polling kills udevd
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
807134: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807134
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: laptop-mode-tools
Version: 1.68-3
Severity: normal
Tags: patch upstream

Laptop_mode spawns lm-polling-daemon within the same process group as itself
when AC is plugged out. Laptop_mode is launched in process group of
systemd-udevd on my system. When AC is plugged in later, laptop_mode
kills all processes in group where lm-polling-daemon is found, i.e.,
it kills udevd and itself as well.

I use battery level polling to trigger custom actions when battery is
low, but not yet critical.

The solution proposed in patch is to spawn lm-polling-daemon in its own
process group, using /usr/bin/setsid wrapper from util-linux package.


--- /usr/sbin/laptop_mode       2015-09-03 13:10:48.000000000 +0200
+++ modified/laptop_mode        2015-12-05 21:41:16.873037703 +0100
@@ -1148,7 +1148,7 @@
                                log "VERBOSE" "On battery and there was no 
polling daemon yet, starting the polling daemon."
 
                                # If there is no polling daemon, we start one.
-                               
/usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon < /dev/null > 
/dev/null 2> /dev/null &
+                               setsid 
/usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon < /dev/null > 
/dev/null 2> /dev/null &
                        fi
                else
                        log "VERBOSE" "Lock acquisition on descriptor 7 failed 
with pid $$";

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.3.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages laptop-mode-tools depends on:
ii  init-system-helpers  1.24
ii  lsb-base             9.20150917
ii  psmisc               22.21-2.1
ii  util-linux           2.27.1-1

Versions of packages laptop-mode-tools recommends:
ii  ethtool         1:4.2-1
ii  hdparm          9.43-2
ii  net-tools       1.60+git20150829.73cef8a-1
ii  python-qt4      4.11.4+dfsg-1+b2
ii  sdparm          1.08-1
ii  udev            228-2
ii  wireless-tools  30~pre9-8

Versions of packages laptop-mode-tools suggests:
ii  acpid  1:2.0.25-1
ii  apmd   3.2.2-15

-- Configuration Files:
/etc/laptop-mode/conf.d/auto-hibernate.conf changed:
DEBUG=0
ENABLE_AUTO_HIBERNATION=1
HIBERNATE_COMMAND=/usr/sbin/hibernate-disk
AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=3
AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=0

/etc/laptop-mode/conf.d/battery-level-polling.conf changed:
DEBUG=0
CONTROL_BATTERY_LEVEL_POLLING=1
BLACKLIST_IN_FLOCK=1

/etc/laptop-mode/conf.d/cpufreq.conf changed:
DEBUG=0
CONTROL_CPU_FREQUENCY=0
BATT_CPU_MAXFREQ=fastest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0
CONTROL_CPU_THROTTLING=0
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum

/etc/laptop-mode/conf.d/dpms-standby.conf changed:
DEBUG=0
CONTROL_DPMS_STANDBY=1
BATT_DPMS_STANDBY=300
LM_AC_DPMS_STANDBY=1200
NOLM_AC_DPMS_STANDBY=1200

/etc/laptop-mode/conf.d/ethernet.conf changed:
DEBUG=0
CONTROL_ETHERNET=0
BATT_THROTTLE_ETHERNET=0
LM_AC_THROTTLE_ETHERNET=0
NOLM_AC_THROTTLE_ETHERNET=0
THROTTLE_SPEED="slowest"
DISABLE_WAKEUP_ON_LAN=1
ETHERNET_DEVICES="eth0"
DISABLE_ETHERNET_ON_BATTERY=0

/etc/laptop-mode/conf.d/usb-autosuspend.conf changed:
DEBUG=0
CONTROL_USB_AUTOSUSPEND=0
AUTOSUSPEND_USE_WHITELIST=1
AUTOSUSPEND_USBID_BLACKLIST=""
AUTOSUSPEND_USBTYPE_BLACKLIST=""
AUTOSUSPEND_USBID_WHITELIST=""
AUTOSUSPEND_USBTYPE_WHITELIST=""
BATT_SUSPEND_USB=0
LM_AC_SUSPEND_USB=0
NOLM_AC_SUSPEND_USB=0
AUTOSUSPEND_TIMEOUT=2

/etc/laptop-mode/laptop-mode.conf changed:
ENABLE_LAPTOP_MODE_TOOLS=1
VERBOSE_OUTPUT=1
LOG_TO_SYSLOG=1
DEBUG=0
ENABLE_LAPTOP_MODE_ON_BATTERY=1
ENABLE_LAPTOP_MODE_ON_AC=0
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
ENABLE_AUTO_MODULES=1
MINIMUM_BATTERY_CHARGE_PERCENT=3
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
DISABLE_BATTERY_ALARM_CHECK=0
HD="/dev/disk/by-id/ata-ST320LT007-9ZV142_W0Q66HJ9"
PARTITIONS="auto /dev/mapper/* /dev/dm-*"
ASSUME_SCSI_IS_SATA=1
LM_BATT_MAX_LOST_WORK_SECONDS=600
LM_AC_MAX_LOST_WORK_SECONDS=360
CONTROL_READAHEAD=1
LM_READAHEAD=3072
NOLM_READAHEAD=128
CONTROL_NOATIME=0
USE_RELATIME=1
CONTROL_HD_IDLE_TIMEOUT=1
LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
CONTROL_HD_POWERMGMT="auto"
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254
CONTROL_HD_WRITECACHE=0
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=0
CONTROL_MOUNT_OPTIONS=1
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30
XFS_HZ=100
LM_SECONDS_BEFORE_SYNC=2


-- no debconf information

--- End Message ---
--- Begin Message ---
Source: laptop-mode-tools
Source-Version: 1.69-1

We believe that the bug you reported is fixed in the latest version of
laptop-mode-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ritesh Raj Sarraf <[email protected]> (supplier of updated laptop-mode-tools 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 07 Mar 2016 18:16:36 +0530
Source: laptop-mode-tools
Binary: laptop-mode-tools
Architecture: source all
Version: 1.69-1
Distribution: unstable
Urgency: medium
Maintainer: Ritesh Raj Sarraf <[email protected]>
Changed-By: Ritesh Raj Sarraf <[email protected]>
Description:
 laptop-mode-tools - Tools for Power Savings based on battery/AC status
Closes: 786444 807134 807338 809181 812541
Changes:
 laptop-mode-tools (1.69-1) unstable; urgency=medium
 .
   New Upstream Release [ The Maha Shiva Ratri Release ]
 .
   * [3949674] Update details about runtime-pm in manpage
   * [83b49f5] Call lmt-udev in lmt-poll. Don't call the laptop_mode
     binary directly. Helps in a lot of housekeeping
   * [fdd6b5d] Direct stderr/stdout to journal
   * [2ce90a8] Install the new .timer and poll service
   * [56db2fb] Wait for all forked modules to complete.
     Thanks to Tomas Janousek
   * [ee1ffe7] Add new module: cputhotplug
   * [c08cc13] CPU online/offine is reverse here
   * [49451d1] Install policykit file
   * [cc9f46c] Detach polling daemon from main process.
     Thanks to Tomas Ebenlendr (Closes: #807134)
   * [b0d1a88] Do NOT touch speed is throttling is not set.
     Thanks to Steve McIntyre (Closes: #807338)
   * [733eb81] Restore to MAX speed when back to AC Power
   * [67a5cf1] Fix manpage about DISABLE_ETHERNET_ON_BATTERY setting.
     Thanks to Daniel Kahn Gillmor (Closes: #786444)
   * [c878358] Update documentation about ENABLE_LAPTOP_MODE_ON_AC
     setting. Thanks to Daniel Kahn Gillmor
   * [811228d] Fix syntax error in install.sh.
     Thanks to Latot
   * [650c85a] Fix typo in /lib/udev/lmt-udev.
     Thanks to Kelsey Byers (Closes: #809181)
   * [57e2cf4] Change powersaving default for USB class devices
     (Closes: #812541)
   * [ec0fe8b] Drop usbhid from default (black)list
   * [06770f7] Add usb keyboard driver to the list default list
   * [1302f8d] Honor device plug/unplug events on a per device basis;
     like how Chromium initially submitted this patch
   * [1e3e0a1] Update links in README.md
   * [faa613c] Update new github homepage location
   * [d904d89] Drop 2 patches that have been applied upstream
   * [2c410ac] Ship new policykit action file
   * [e967db9] Prepare 1.69 release
Checksums-Sha1:
 eb4dd89e1e52582e04f965d0810e465522e4e92b 1818 laptop-mode-tools_1.69-1.dsc
 5635039b4a3562b2d0805f28ccf53c4ce0146afa 114122 
laptop-mode-tools_1.69.orig.tar.gz
 1a1d6df5a508d204a1958ef446f2ee9219197812 19688 
laptop-mode-tools_1.69-1.debian.tar.xz
 a034cf49a033b7721c98d7cdc5c51358424076da 116202 
laptop-mode-tools_1.69-1_all.deb
Checksums-Sha256:
 061f5834d2dc07678ff182626df988544969d0b121cec6929e242e7700aa090a 1818 
laptop-mode-tools_1.69-1.dsc
 edf0604e2ec226cb601070bdce61be8449e5895981a811f45a56760023b97d21 114122 
laptop-mode-tools_1.69.orig.tar.gz
 08cd36da0797ca59ac6e54455a848e4e461d71aefdc5242065269fca44cd13b1 19688 
laptop-mode-tools_1.69-1.debian.tar.xz
 94e402c409d75dc7e3948f7e7caf44e0a190e54064e2b9555175ab3adbc01950 116202 
laptop-mode-tools_1.69-1_all.deb
Files:
 104678b756411214a26ba5426235d588 1818 utils optional 
laptop-mode-tools_1.69-1.dsc
 d92521cec071f2ef1a5b8476fbbcb414 114122 utils optional 
laptop-mode-tools_1.69.orig.tar.gz
 146f6e3329126c476a3cf7b9b17cbd3a 19688 utils optional 
laptop-mode-tools_1.69-1.debian.tar.xz
 9f424d12c443381f26462edd8f72484d 116202 utils optional 
laptop-mode-tools_1.69-1_all.deb

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJW3ZA4AAoJEKY6WKPy4XVpRYUP/itB+IfjcEJ6jhEttix/sFS3
7KDzSzp+hYATOzu5Yn7OQfeiOePE2oyfkfCTjNmNzqFm0NqyckMN/Z7Vom6dxnmW
V8fNzqR8ToZNzUUzLuZmkUUDFa4unC6ZiWZOE/I3KczMfXNlRij2rKnoe1drRjQR
CVcdFMfz2k9WnNaFPx6liAdos4WhGM9EVl0vKiKj0DjbI9ZJ39fN/UR3c0G8DSo5
fS6jvPlQO6UYxjG4PP+duW1y+KJHax/t0zvKYgRgcgZbz3ySTqFig2Fu9L5aFy52
Xo8M3H/CgFnBQEHx5iQc0z6rvOfU4CH1XBGPC/hfCRzjSMNwJPp5Y3PW63F5ixEu
vIBfqD8pq5R7Tundis4yDStbeWeFOQuPa99fh+DP363wGLVbrbe23NFaAYYdvgdF
YrpMim+iKd+yhnr1vrecI3/ufMENuaL38iqVSVOXhMoMPL2jEGZNz3f09C2yxa+4
UJUZkD5VA90i32iVpdaZikT3IQJe5tclCI4fxH+RZifZrfcZ7zbANxbqg4lYoCAa
OZNbDPVAcNwXszpbI6glhs3ZF85/5Ed5RXbDOB2C0XmGAJXvDMLOcHbQHmb+VMt4
XHpHfvNuJFdiqbtOtKaorsfgpYeuFI/m7MBfRO+ZIkuii3oISATPpVPwpGAs2UfR
rO+NpioTEfcII4m3VBXw
=YCe+
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to