Hello,

thank your for your fast reply.
After resuming even when suspending on AC power it's back to 128, so I
think it is the HW default.

┌─(~)────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(ondrej@argentum
:pts/2)─┐
└─(21:50:21)──> systemctl status
laptop-mode.service
3 ↵ ──(Sun,Mar22)─┘
● laptop-mode.service - Laptop Mode Tools
   Loaded: loaded (/lib/systemd/system/laptop-mode.service; disabled)
   Active: inactive (dead)

Which surprised me, I thought it would be enabled by default as with most
installed services on Debian. After having a look at the source (via
apt-get source laptop-mode-tools), it indeed seems that the unit is
installed, but not enabled.

┌─(~)────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(ondrej@argentum
:pts/2)─┐
└─(21:53:37)──> systemctl is-enabled
laptop-mode.service
──(Sun,Mar22)─┘
disabled

I think the package should enable it by default.

So I started it manually for testing

┌─(~)────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(ondrej@argentum
:pts/2)─┐
└─(21:52:43)──> sudo  systemctl start
laptop-mode.service
4 ↵ ──(Sun,Mar22)─┘

┌─(~)────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(ondrej@argentum
:pts/2)─┐
└─(21:57:45)──> systemctl status
laptop-mode.service
──(Sun,Mar22)─┘
● laptop-mode.service - Laptop Mode Tools
   Loaded: loaded (/lib/systemd/system/laptop-mode.service; disabled)
   Active: active (exited) since Sun 2015-03-22 21:52:46 CET; 5min ago
  Process: 29769 ExecStart=/usr/sbin/laptop_mode init auto (code=exited,
status=0/SUCCESS)
 Main PID: 29769 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/laptop-mode.service

But even then after suspending and resuming APM is back to 128.

In conclusion, I think this is another unrelated problem. Not only there
seems to be no facility to reapply laptop-mode-tools settings after
resuming (as pm-utils did), but the service itself is not enabled by
default.

Thank you for your time and effort.

Kind regards,
Ondřej Grover


On Sun, Mar 22, 2015 at 7:48 PM, Ritesh Raj Sarraf <r...@researchut.com>
wrote:

> On Sunday 22 March 2015 05:36 PM, Ondrej Grover wrote:
> > Package: laptop-mode-tools
> > Version: 1.66-2
> > Severity: important
> >
> > Dear Maintainer,
> >
> > When using systemd suspend, laptop-mode-tools settings are not applied
> after
> > resuming as it used to be with pm-utils based supending (which used a
> hook for
> > this).
>
> can you please paste the output of `systemctl status laptop-mode.service`
>
> --
> Ritesh Raj Sarraf
> RESEARCHUT - http://www.researchut.com
> "Necessity is the mother of invention."
>
>
>

Reply via email to