Public bug reported:

I have just install laptop-mode-tools, and noticed that `/usr/sbin/laptop_mode`
gets executed twice when (un)plugging the laptop:

    Aug 27 04:29:05 host laptop-mode: Determining power state from 
/sys/class/power_supply/AC/online.
    Aug 27 04:29:05 host laptop-mode: Determining power state from 
/sys/class/power_supply/AC/online.
    Aug 27 04:29:05 host laptop-mode: Not trying other options, already found a 
power supply.
    Aug 27 04:29:05 host laptop-mode: Not trying other options, already found a 
power supply.
    Aug 27 04:29:05 host laptop-mode: Battery level polling is disabled.
    Aug 27 04:29:05 host laptop-mode: Battery level polling is disabled.
    Aug 27 04:29:05 host laptop-mode: Prelim lock acquisition on descriptor 8 
with pid 21553
    Aug 27 04:29:05 host laptop-mode: Couldn't acquire prelim lock on 
descriptor 8 with pid 21554
    Aug 27 04:29:05 host laptop-mode: Prelim lock acquisition on descriptor 9 
with pid 21553
    Aug 27 04:29:05 host laptop-mode: Couldn't acquire prelim lock on 
descriptor 9 with pid 21554

That's not really a problem, since the second instance will then recognize that
nothing needs to get changed in the end:

    Aug 27 04:29:06 host laptop-mode: Laptop mode
    Aug 27 04:29:06 host laptop-mode: Checking if desired state is different 
from current state.
    Aug 27 04:29:06 host laptop-mode: enabled, not active [unchanged]

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: laptop-mode-tools 1.64-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Aug 27 04:33:12 2014
InstallationDate: Installed on 2012-05-28 (820 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
PackageArchitecture: all
SourcePackage: laptop-mode-tools
UpgradeStatus: Upgraded to trusty on 2014-05-01 (117 days ago)
mtime.conffile..etc.laptop.mode.laptop.mode.conf: 2014-08-27T04:17:06.301549

** Affects: laptop-mode-tools (Ubuntu)
     Importance: Low
         Status: New


** Tags: amd64 apport-bug third-party-packages trusty

** Changed in: laptop-mode-tools (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1361935

Title:
  laptop_mode gets executed twice on (un)plug events

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/laptop-mode-tools/+bug/1361935/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to