View Bazaar branches
Get this repository:
git clone https://git.launchpad.net/laptop-mode-tools
Only Ritesh Raj Sarraf can upload to this repository. If you are Ritesh Raj Sarraf please log in for upload directions.

See all merge proposals.

Branches

Name Last Modified Last Commit
lmt-upstream 2019-04-04 07:00:43 UTC
Battery Level Polling on systemd based system is lmt-poll timer

Author: Ritesh Raj Sarraf
Author Date: 2019-04-04 06:42:10 UTC

Battery Level Polling on systemd based system is lmt-poll timer

So... On systemd based systems, Laptop Mode Tool's Battery Polling
Daemon functionality is only supported through the "lmt-poll" systemd
timer unit only.

With this change, we check for if whether we are running under systemd
because otherwise, we run into this below scenario, where the
lm-polling-daemon ends up sleeping in an endless loop with intervals of
150 seconds.

When doing a `systemctl restart laptop-mode.service`, this issue reflect
in the command going hung because of the loop I explained above.
Eventually, systemd kills the long running process but that is not what
should happen.

By checking on what environment are we running under, we avoid the loop
and the sleep within it.

rrs@priyasi:/tmp$ systemctl status laptop-mode
● laptop-mode.service - Laptop Mode Tools
   Loaded: loaded (/lib/systemd/system/laptop-mode.service; enabled; vendor preset: enabled)
   Active: activating (start) since Thu 2019-04-04 11:55:07 IST; 1min 49s ago
     Docs: man:laptop_mode(8)
           man:laptop-mode.conf(8)
           http://github.com/rickysarraf/laptop-mode-tools
  Process: 21453 ExecStartPre=/bin/rm -f /var/run/laptop-mode-tools/enabled (code=exited, status=0/SUCCESS)
  Process: 21454 ExecStartPre=/bin/rm -f /var/run/laptop-mode-tools/state (code=exited, status=0/SUCCESS)
 Main PID: 21455 (laptop_mode)
    Tasks: 3
   Memory: 14.1M
   CGroup: /system.slice/laptop-mode.service
           ├─21455 /bin/sh /usr/sbin/laptop_mode init force
           ├─21480 /bin/sh /usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon
           └─21483 sleep 150

Apr 04 11:55:07 priyasi systemd[1]: Starting Laptop Mode Tools...
Apr 04 11:55:07 priyasi laptop_mode[21455]: enabled, active
Apr 04 11:55:07 priyasi laptop_mode[21455]: Cannot find device "eth0"
Apr 04 11:55:07 priyasi su[21710]: (to rrs) root on none
Apr 04 11:55:07 priyasi su[21710]: pam_unix(su:session): session opened for user rrs by (uid=0)
Apr 04 11:55:07 priyasi su[21710]: pam_unix(su:session): session closed for user rrs
Apr 04 11:56:31 priyasi systemd[1]: laptop-mode.service: Unit cannot be reloaded because it is inactive.
11:56 ♒♒♒ ☹ 😟=> 3

master 2018-11-08 06:27:11 UTC
Update changelog for release to Unstable

Author: Ritesh Raj Sarraf
Author Date: 2018-11-08 06:27:11 UTC

Update changelog for release to Unstable

qatest 2018-08-07 07:39:17 UTC
Update qatest changelog

Author: Ritesh Raj Sarraf
Author Date: 2018-08-07 07:39:17 UTC

Update qatest changelog

pristine-tar 2015-07-03 17:00:20 UTC
pristine-tar data for laptop-mode-tools_1.67.orig.tar.gz

Author: Ritesh Raj Sarraf
Author Date: 2015-07-03 17:00:20 UTC

pristine-tar data for laptop-mode-tools_1.67.orig.tar.gz

upstream 2015-07-03 17:00:20 UTC
Imported Upstream version 1.67

Author: Ritesh Raj Sarraf
Author Date: 2015-07-03 17:00:20 UTC

Imported Upstream version 1.67

debian-old 2013-03-30 09:50:11 UTC
commit changelog

Author: Ritesh Raj Sarraf
Author Date: 2013-03-30 09:50:11 UTC

commit changelog

16 of 6 results

Other repositories

Name Last Modified
lp:laptop-mode-tools 2019-04-04
lp:~rrs/laptop-mode-tools 2017-01-12
12 of 2 results
You can't create new repositories for Laptop Mode Tools.