Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-24 Thread Glen B
David et. all,

I opened a bug here 
 but it was 
quickly closed because I guess I'm not supposed to use the sudo 
systemctl mask command like the wiki says. Does anyone know what the 
_correct_ method is for disabling all forms of suspend/hibernate on a 
Debian system? (I'll even update the wiki!)

Glen


On 10/18/2017 9:13 AM, David Christensen wrote:
> On 10/16/17 11:13, Glen B wrote:
>> Does anyone think this deserves a bug report
>  or am I misunderstanding something here?
>
> Yes.  Do the bug report, so that somebody, somewhere, sometime might 
> develop a test for the problem, run the test, and fix the problem in 
> future systemd, X.org, Debian, whatever releases.
>
>
> I also have a laptop, redirect the video to an external monitor, and 
> close the lid.  I believe it has the same problem as you have 
> reported. But, when I SSH in from another machine to run top, the 
> problem goes away.  So, I'll have to write a cron job that runs top 
> once a minute and dumps the output to a timestamped file if I want 
> more information.
>
>
> However, one CPU in my laptop goes to 100% whenever I lock the screen. 
> That I could see via SSH and top:
>
>     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878313
>
>
> David
>



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-18 Thread David Christensen

On 10/16/17 11:13, Glen B wrote:

Does anyone think this deserves a bug report

 or am I misunderstanding something here?

Yes.  Do the bug report, so that somebody, somewhere, sometime might 
develop a test for the problem, run the test, and fix the problem in 
future systemd, X.org, Debian, whatever releases.



I also have a laptop, redirect the video to an external monitor, and 
close the lid.  I believe it has the same problem as you have reported. 
But, when I SSH in from another machine to run top, the problem goes 
away.  So, I'll have to write a cron job that runs top once a minute and 
dumps the output to a timestamped file if I want more information.



However, one CPU in my laptop goes to 100% whenever I lock the screen. 
That I could see via SSH and top:


https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878313


David



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-18 Thread Glen B
My emails to this list are delayed by about 24 hours (am I the only one?) but I 
think I may have solved my issue with systemd-logind, thanks to the helpful 
command posted earlier by Mr. Biebl.

After running the command, I saw a message that grabbed my attention; 
"suspend.target is masked". Jumping back on to the search engines, I come 
across this 

 topic almost immediately (somehow my searching before completely missed it?). 
In the topic, the user was experiencing nearly the exact same issue. They 
checked /etc/systemd/login.conf and set the following options:

HandlePowerKey=poweroff
HandleLidSwitch=ignore
IdleAction=ignore
IdleActionSec=30min

Going to the /etc/systemd folder however, I see that there is no login.conf 
file - only a login.conf.bak file, which I must have been editing before since 
a couple of the lines were already commented out. I mv'ed the file back to 
login.conf, made sure the above lines were enabled, and rebooted the machine. 
No more excessive CPU usage!

I think this raises a few questions;

- Why was this absurd CPU usage occurring in the first place,
- In the comments at the top of the file, it seems implied that the file should 
be regenerated if it does not exist. Then why wasn't the file being regenerated 
since I had moved it? What was logind using as configuration instead?

Does anyone think this deserves a bug report or am I misunderstanding something 
here?

Glen


Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Glen B
Here's my message I tried sending on 16 October 2017 18:13 UTC, now 17 October 
2017 19:40 UTC and I haven't seen it posted yet... I noticed the response from 
Don Armstrong saying it may need to be whitelisted. Hope this one goes through! 
Sorry I'm causing so much overhead here folks.

On 10/16/2017 11:13 AM, Lucky0106 wrote:
My emails to this list are delayed by about 24 hours (am I the only one?) but I 
think I may have solved my issue with systemd-logind, thanks to the helpful 
command posted earlier by Mr. Biebl.

After running the command, I saw a message that grabbed my attention; 
"suspend.target is masked". Jumping back on to the search engines, I come 
across this 

 topic almost immediately (somehow my searching before completely missed it?). 
In the topic, the user was experiencing nearly the exact same issue. They 
checked /etc/systemd/login.conf and set the following options:

HandlePowerKey=poweroff
HandleLidSwitch=ignore
IdleAction=ignore
IdleActionSec=30min

Going to the /etc/systemd folder however, I see that there is no login.conf 
file - only a login.conf.bak file, which I must have been editing before since 
a couple of the lines were already commented out. I mv'ed the file back to 
login.conf, made sure the above lines were enabled, and rebooted the machine. 
No more excessive CPU usage!

I think this raises a few questions;

- Why was this absurd CPU usage occurring in the first place,
- In the comments at the top of the file, it seems implied that the file should 
be regenerated if it does not exist. Then why wasn't the file being regenerated 
since I had moved it? What was logind using as configuration instead?

Does anyone think this deserves a bug report or am I misunderstanding something 
here?

Glen



Re: Delayed list posts [Was: Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Glen B
When I was subscribing to the list, I noticed some odd things in the 
headers as well. I contacted the list admin at the time who said 
everything seemed fine on their end. I may have been too quick to blame 
the list server, my apologies!

It appears that my response with what was fixed has been completely 
dropped, I'll try sending it again.

Glen


On 10/17/2017 3:02 AM, Erik Christiansen wrote:
> On 16.10.17 22:12, Glen B wrote:
>> You’re going to get an e-mail from me in ~10 hours or so saying I
>> fixed it; for some reason, this mailing list is delaying my emails by
>> about 24 hours. So much for speedy technology!
> It was 25.4 hrs for your message:
>
> X-Greylist: delayed 91420 seconds by postgrey-1.35 at bendel; Tue, 17 Oct 
> 2017 08:53:30
>  UTC
>
> The reason might just be:
>
> (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (not 
> verified))
> by bendel.debian.org (Postfix) with ESMTPS id 0BBC876
> for ; Tue, 17 Oct 2017 08:53:29 + (UTC)
>
> Erik
>



Re: Delayed list posts [Was: Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Don Armstrong
On Tue, 17 Oct 2017, Erik Christiansen wrote:
> On 16.10.17 22:12, Glen B wrote:
> > You’re going to get an e-mail from me in ~10 hours or so saying I
> > fixed it; for some reason, this mailing list is delaying my emails by
> > about 24 hours. So much for speedy technology!
> 
> It was 25.4 hrs for your message:
> 
> X-Greylist: delayed 91420 seconds by postgrey-1.35 at bendel; Tue, 17 Oct 
> 2017 08:53:30
> UTC
> 
> The reason might just be:

The reason is because outlook.com is running a very large sender pool,
and it takes about 10 hours for randomly selecting from the pool to hit
a sender that lists.debian.org has seen previously.

We'll drop in a whitelist for outlook.com entry to fix this eventually.

-- 
Don Armstrong  https://www.donarmstrong.com

"You know," said Arthur, "it's at times like this, when I'm trapped in
a Vogon airlock with a man from Betelgeuse, and about to die from
asphyxiation in deep space that I really wish I'd listened to what my
mother told me when I was young."
"Why, what did she tell you?"
"I don't know, I didn't listen."
 –- Douglas Adams _The Hitchhikers Guide To The Galaxy_



Re: D-Bus (Re: systemd process(es) consuming CPU when laptop lid closed)

2017-10-17 Thread Jimmy Johnson

On 10/17/2017 06:22 AM, Michael Biebl wrote:

Am 17.10.2017 um 14:49 schrieb Jimmy Johnson:

path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;



Michael I found it interesting that I do not have a folder /org/ .hidden
or not and that's with kde5 desktop on Stretch.


Those are D-Bus path names, not file names.

https://dbus.freedesktop.org/doc/dbus-tutorial.html explains the basic
concepts.

If you want to dig a bit deeper, install d-feet to explore what D-Bus
services are running on your system and what API they provide.

Michael


Michael, this sounds like the background system and what a normal user 
would not get into. I will explore.


Thanks you,
--
Jimmy Johnson

Debian Buster - KDE Plasma 5.8.7 - AMD A8-7600 - EXT4 at sda7
Registered Linux User #380263



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Sven Hartge
Jimmy Johnson  wrote:

>>>      object path "/org/freedesktop/systemd1/unit/suspend_2etarget"

> Michael I found it interesting that I do not have a folder /org/ .hidden 
> or not and that's with kde5 desktop on Stretch.

The "object path" does not mean a filesystem path. There is nothing to
worry about a missing "/org".

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: Delayed list posts [Was: Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Brian
On Tue 17 Oct 2017 at 21:02:39 +1100, Erik Christiansen wrote:

> On 16.10.17 22:12, Glen B wrote:
> > You’re going to get an e-mail from me in ~10 hours or so saying I
> > fixed it; for some reason, this mailing list is delaying my emails by
> > about 24 hours. So much for speedy technology!
> 
> It was 25.4 hrs for your message:
> 
> X-Greylist: delayed 91420 seconds by postgrey-1.35 at bendel; Tue, 17 Oct 
> 2017 08:53:30
> UTC
> 
> The reason might just be:
> 
> (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (not 
> verified))
> by bendel.debian.org (Postfix) with ESMTPS id 0BBC876
> for ; Tue, 17 Oct 2017 08:53:29 + (UTC)

Whatever the significance of the "delayed 91420 seconds", 25.4 hours was
not the time between the mail being sent and the list software sending it
out. That is closer to 11 hours (not 17.5 hours as I said previously).

As I understand greylisting, the client first has the mail rejected and
then has to try later, the default time interval for a retry generally
being 300 seconds. Perhaps mail.protection.outlook.com uses a different
IP address each time. That wouldn't go down well.

-- 
Brian.



D-Bus (Re: systemd process(es) consuming CPU when laptop lid closed)

2017-10-17 Thread Michael Biebl
Am 17.10.2017 um 14:49 schrieb Jimmy Johnson:
>>> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;

> Michael I found it interesting that I do not have a folder /org/ .hidden
> or not and that's with kde5 desktop on Stretch.

Those are D-Bus path names, not file names.

https://dbus.freedesktop.org/doc/dbus-tutorial.html explains the basic
concepts.

If you want to dig a bit deeper, install d-feet to explore what D-Bus
services are running on your system and what API they provide.

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Jimmy Johnson

On 10/17/2017 02:27 AM, to...@tuxteam.de wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Oct 16, 2017 at 10:12:52PM +, Glen B wrote:

You’re going to get an e-mail from me in ~10 hours or so saying I fixed it; for 
some reason, this mailing list is delaying my emails by about 24 hours. So much 
for speedy technology!


It must be something else. I'm seeing my mails arrive whithin minutes.

Cheers



"rhkramer" time is off, it looks like his post is 12hr in the future.

Cheers!
--
Jimmy Johnson

Debian Buster - KDE Plasma 5.8.7 - AMD A8-7600 - EXT4 at sda7
Registered Linux User #380263



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Jimmy Johnson

On 10/16/2017 02:33 PM, Michael Biebl wrote:

Am 16.10.2017 um 02:56 schrieb Glen B:

On 10/15/2017 10:31 AM, Michael Biebl wrote:

Am 14.10.2017 um 21:48 schrieb Glen B:

295 root  20   07448   4432   3992 R 41.2  0.9   0:54.81 
systemd-logind
298 message+  20   06260   3636   3268 S 17.6  0.7   0:17.12 dbus-daemon

That looks like there is a huge amount of dbus messages sent.
Can you run dbus-monitor --system (as root) to see what those messages are?


That's an interesting command, lots of information was spat out. Here's
an excerpt of what was put out:


   uint32 0
error time=1508114297.985967 sender=:1.0 -> destination=:1.1
error_name=org.freedesktop.systemd1.UnitMasked reply_serial=26352
     string "Unit suspend.target is masked."
signal time=1508114297.986032 sender=:1.0 -> destination=(null
destination) serial=52814 path=/org/freedesktop/systemd1;
interface=org.freedesktop.systemd1.Manager; member=UnitNew
     string "suspend.target"
     object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
signal time=1508114297.986058 sender=:1.0 -> destination=(null
destination) serial=52815 path=/org/freedesktop/systemd1;
interface=org.freedesktop.systemd1.Manager; member=UnitRemoved
     string "suspend.target"
     object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
signal time=1508114297.991185 sender=:1.1 -> destination=(null
destination) serial=26353 path=/org/freedesktop/login1;
interface=org.freedesktop.login1.Manager; member=PrepareForSleep
     boolean true
method call time=1508114297.992516 sender=:1.1 ->
destination=org.freedesktop.systemd1 serial=26354
path=/org/freedesktop/systemd1;
interface=org.freedesktop.systemd1.Manager; member=StartUnit
     string "suspend.target"
     string "replace-irreversibly"
method call time=1508114297.993237 sender=:1.0 ->
destination=org.freedesktop.DBus serial=52816
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=GetConnectionUnixUser
     string ":1.1"
method return time=1508114297.993292 sender=org.freedesktop.DBus ->
destination=:1.0 serial=13188 reply_serial=52816


If I'm understanding this correctly, it looks like it's trying to
suspend but is somehow getting confused...


Not sure about the confused part. We might need a debug log for
systemd-logind.

That said, is that all? Given the high cpu usage for the dbus-daemon
process I was expecting it to be flooded by dbus messages.

You could also try stracing dbus-daemon and systemd-logind and see if
you get anything interesting.


Michael I found it interesting that I do not have a folder /org/ .hidden 
or not and that's with kde5 desktop on Stretch.

--
Jimmy Johnson

Debian Stretch - KDE Plasma 5.8.6 - Intel G3220 - EXT4 at sda7
Registered Linux User #380263



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Rick Thomas

On Oct 16, 2017, at 3:12 PM, Glen B  wrote:

> You’re going to get an e-mail from me in ~10 hours or so saying I fixed it;

How did you fix it?

Thanks,
Rick


Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, Oct 17, 2017 at 11:27:06AM +0200, to...@tuxteam.de wrote:
> On Mon, Oct 16, 2017 at 10:12:52PM +, Glen B wrote:
> > You’re going to get an e-mail from me in ~10 hours or so saying I fixed it; 
> > for some reason, this mailing list is delaying my emails by about 24 hours. 
> > So much for speedy technology!
> 
> It must be something else. I'm seeing my mails arrive whithin minutes.

FWIW this one took 1 minute + or - 0.5 minutes going by the mail headers.
There might be a time skew in the servers involved, but you get the ballpark).

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlnl1iMACgkQBcgs9XrR2kaJnwCeNYTiIXoit85IYA+jsnrLQ8Rn
NYwAn1qWxQ03aihhY1S9XJOSYAG24Yju
=xi0+
-END PGP SIGNATURE-



Delayed list posts [Was: Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Erik Christiansen
On 16.10.17 22:12, Glen B wrote:
> You’re going to get an e-mail from me in ~10 hours or so saying I
> fixed it; for some reason, this mailing list is delaying my emails by
> about 24 hours. So much for speedy technology!

It was 25.4 hrs for your message:

X-Greylist: delayed 91420 seconds by postgrey-1.35 at bendel; Tue, 17 Oct 2017 
08:53:30
UTC

The reason might just be:

(Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (not 
verified))
by bendel.debian.org (Postfix) with ESMTPS id 0BBC876
for ; Tue, 17 Oct 2017 08:53:29 + (UTC)

Erik



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Brian
On Mon 16 Oct 2017 at 22:12:52 +, Glen B wrote:

> You’re going to get an e-mail from me in ~10 hours or so saying I
> fixed it; for some reason, this mailing list is delaying my emails by
> about 24 hours. So much for speedy technology!

>From its headers: at the start of your mail's journey to me

Received: from CO1NAM03FT006.eop-NAM03.prod.protection.outlook.com
(10.152.80.53) by CO1NAM03HT238.eop-NAM03.prod.protection.outlook.com
(10.152.80.207) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.77.10; Mon, 
16
Oct 2017 22:12:53 +

Arriving at bendel. !7.5 hours to get there.

Received: from NAM03-CO1-obe.outbound.protection.outlook.com 
(mail-co1nam03olkn082a.outbound.protection.outlook.com)
[IPv6:2a01:111:f400:fe48::82a])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
(Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL 
SHA2" (not verified))
by bendel.debian.org (Postfix) with ESMTPS id 0BBC876
for ; Tue, 17 Oct 2017 08:53:29 + 
(UTC)

Sent out to list members. The 26 minute delay in distribution is because
you have systemd in the subject line,

Received: from localhost (localhost [127.0.0.1])
by bendel.debian.org (Postfix) with QMQP
id 80E42DA; Tue, 17 Oct 2017 09:09:10 + (UTC)

I received it 3 seconds later.

-- 
Brian.



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Oct 16, 2017 at 10:12:52PM +, Glen B wrote:
> You’re going to get an e-mail from me in ~10 hours or so saying I fixed it; 
> for some reason, this mailing list is delaying my emails by about 24 hours. 
> So much for speedy technology!

It must be something else. I'm seeing my mails arrive whithin minutes.

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlnlzOkACgkQBcgs9XrR2kYgFQCePQpR9UNrl4FwTuL4wLq39B+r
3aUAmwfJ3yl+OmSzAHyfNFNtDxjernfA
=5+ym
-END PGP SIGNATURE-



RE: systemd process(es) consuming CPU when laptop lid closed

2017-10-17 Thread Glen B
You’re going to get an e-mail from me in ~10 hours or so saying I fixed it; for 
some reason, this mailing list is delaying my emails by about 24 hours. So much 
for speedy technology!

That certainly isn’t all from the output, it’s only an excerpt. My console was 
being absolutely spammed with output when I ran that command. As far as I could 
tell, they were mostly repeated. I could try to reproduce the issue and provide 
a larger sample if you wish. You had mentioned a log for this program too, is 
there one I could provide?

Thank you,

Glen

From: Michael Biebl<mailto:bi...@debian.org>
Sent: Monday, October 16, 2017 2:51 PM
To: debian-user@lists.debian.org<mailto:debian-user@lists.debian.org>
Subject: Re: systemd process(es) consuming CPU when laptop lid closed

Am 16.10.2017 um 02:56 schrieb Glen B:
> On 10/15/2017 10:31 AM, Michael Biebl wrote:
>> Am 14.10.2017 um 21:48 schrieb Glen B:
>>>295 root  20   07448   4432   3992 R 41.2  0.9   0:54.81 
>>> systemd-logind
>>>298 message+  20   06260   3636   3268 S 17.6  0.7   0:17.12 
>>> dbus-daemon
>> That looks like there is a huge amount of dbus messages sent.
>> Can you run dbus-monitor --system (as root) to see what those messages are?
>
> That's an interesting command, lots of information was spat out. Here's
> an excerpt of what was put out:
>
> 
>   uint32 0
> error time=1508114297.985967 sender=:1.0 -> destination=:1.1
> error_name=org.freedesktop.systemd1.UnitMasked reply_serial=26352
> string "Unit suspend.target is masked."
> signal time=1508114297.986032 sender=:1.0 -> destination=(null
> destination) serial=52814 path=/org/freedesktop/systemd1;
> interface=org.freedesktop.systemd1.Manager; member=UnitNew
> string "suspend.target"
> object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
> signal time=1508114297.986058 sender=:1.0 -> destination=(null
> destination) serial=52815 path=/org/freedesktop/systemd1;
> interface=org.freedesktop.systemd1.Manager; member=UnitRemoved
> string "suspend.target"
> object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
> signal time=1508114297.991185 sender=:1.1 -> destination=(null
> destination) serial=26353 path=/org/freedesktop/login1;
> interface=org.freedesktop.login1.Manager; member=PrepareForSleep
> boolean true
> method call time=1508114297.992516 sender=:1.1 ->
> destination=org.freedesktop.systemd1 serial=26354
> path=/org/freedesktop/systemd1;
> interface=org.freedesktop.systemd1.Manager; member=StartUnit
> string "suspend.target"
> string "replace-irreversibly"
> method call time=1508114297.993237 sender=:1.0 ->
> destination=org.freedesktop.DBus serial=52816
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
> member=GetConnectionUnixUser
> string ":1.1"
> method return time=1508114297.993292 sender=org.freedesktop.DBus ->
> destination=:1.0 serial=13188 reply_serial=52816
> 
>
> If I'm understanding this correctly, it looks like it's trying to
> suspend but is somehow getting confused...

Not sure about the confused part. We might need a debug log for
systemd-logind.

That said, is that all? Given the high cpu usage for the dbus-daemon
process I was expecting it to be flooded by dbus messages.

You could also try stracing dbus-daemon and systemd-logind and see if
you get anything interesting.



--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?




Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-16 Thread Michael Biebl
Am 16.10.2017 um 02:56 schrieb Glen B:
> On 10/15/2017 10:31 AM, Michael Biebl wrote:
>> Am 14.10.2017 um 21:48 schrieb Glen B:
>>>295 root  20   07448   4432   3992 R 41.2  0.9   0:54.81 
>>> systemd-logind
>>>298 message+  20   06260   3636   3268 S 17.6  0.7   0:17.12 
>>> dbus-daemon
>> That looks like there is a huge amount of dbus messages sent.
>> Can you run dbus-monitor --system (as root) to see what those messages are?
> 
> That's an interesting command, lots of information was spat out. Here's 
> an excerpt of what was put out:
> 
> 
>   uint32 0
> error time=1508114297.985967 sender=:1.0 -> destination=:1.1 
> error_name=org.freedesktop.systemd1.UnitMasked reply_serial=26352
>     string "Unit suspend.target is masked."
> signal time=1508114297.986032 sender=:1.0 -> destination=(null 
> destination) serial=52814 path=/org/freedesktop/systemd1; 
> interface=org.freedesktop.systemd1.Manager; member=UnitNew
>     string "suspend.target"
>     object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
> signal time=1508114297.986058 sender=:1.0 -> destination=(null 
> destination) serial=52815 path=/org/freedesktop/systemd1; 
> interface=org.freedesktop.systemd1.Manager; member=UnitRemoved
>     string "suspend.target"
>     object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
> signal time=1508114297.991185 sender=:1.1 -> destination=(null 
> destination) serial=26353 path=/org/freedesktop/login1; 
> interface=org.freedesktop.login1.Manager; member=PrepareForSleep
>     boolean true
> method call time=1508114297.992516 sender=:1.1 -> 
> destination=org.freedesktop.systemd1 serial=26354 
> path=/org/freedesktop/systemd1; 
> interface=org.freedesktop.systemd1.Manager; member=StartUnit
>     string "suspend.target"
>     string "replace-irreversibly"
> method call time=1508114297.993237 sender=:1.0 -> 
> destination=org.freedesktop.DBus serial=52816 
> path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
> member=GetConnectionUnixUser
>     string ":1.1"
> method return time=1508114297.993292 sender=org.freedesktop.DBus -> 
> destination=:1.0 serial=13188 reply_serial=52816
> 
> 
> If I'm understanding this correctly, it looks like it's trying to 
> suspend but is somehow getting confused...

Not sure about the confused part. We might need a debug log for
systemd-logind.

That said, is that all? Given the high cpu usage for the dbus-daemon
process I was expecting it to be flooded by dbus messages.

You could also try stracing dbus-daemon and systemd-logind and see if
you get anything interesting.



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-16 Thread Glen B
On 10/15/2017 10:31 AM, Michael Biebl wrote:
> Am 14.10.2017 um 21:48 schrieb Glen B:
>>295 root  20   07448   4432   3992 R 41.2  0.9   0:54.81 
>> systemd-logind
>>298 message+  20   06260   3636   3268 S 17.6  0.7   0:17.12 
>> dbus-daemon
> That looks like there is a huge amount of dbus messages sent.
> Can you run dbus-monitor --system (as root) to see what those messages are?

That's an interesting command, lots of information was spat out. Here's 
an excerpt of what was put out:


  uint32 0
error time=1508114297.985967 sender=:1.0 -> destination=:1.1 
error_name=org.freedesktop.systemd1.UnitMasked reply_serial=26352
    string "Unit suspend.target is masked."
signal time=1508114297.986032 sender=:1.0 -> destination=(null 
destination) serial=52814 path=/org/freedesktop/systemd1; 
interface=org.freedesktop.systemd1.Manager; member=UnitNew
    string "suspend.target"
    object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
signal time=1508114297.986058 sender=:1.0 -> destination=(null 
destination) serial=52815 path=/org/freedesktop/systemd1; 
interface=org.freedesktop.systemd1.Manager; member=UnitRemoved
    string "suspend.target"
    object path "/org/freedesktop/systemd1/unit/suspend_2etarget"
signal time=1508114297.991185 sender=:1.1 -> destination=(null 
destination) serial=26353 path=/org/freedesktop/login1; 
interface=org.freedesktop.login1.Manager; member=PrepareForSleep
    boolean true
method call time=1508114297.992516 sender=:1.1 -> 
destination=org.freedesktop.systemd1 serial=26354 
path=/org/freedesktop/systemd1; 
interface=org.freedesktop.systemd1.Manager; member=StartUnit
    string "suspend.target"
    string "replace-irreversibly"
method call time=1508114297.993237 sender=:1.0 -> 
destination=org.freedesktop.DBus serial=52816 
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
member=GetConnectionUnixUser
    string ":1.1"
method return time=1508114297.993292 sender=org.freedesktop.DBus -> 
destination=:1.0 serial=13188 reply_serial=52816


If I'm understanding this correctly, it looks like it's trying to 
suspend but is somehow getting confused...

On 10/15/2017 4:52 PM, rhkra...@gmail.com wrote:
> 
>
> There was a recent thread where the symptom, in one sense, was somewhat
> similar--on a two CPU system, one CPU was using 100% of one CPU with the lid
> closed.  IIUC, the problem was due to lightdm-gt (or some sub-program).
>
> Here are the headers from the last message in that thread:
>
> Re: Debian 9.2 amd64 Xfce lock screen -> 100 %CPU by lightdm-gt+
> From: David Christensen  (resent from debian-
> u...@lists.debian.org)
>To: debian-user@lists.debian.org
>Date: Thu Oct 12 12:41:46 2017
>
> Maybe it is worth looking at that thread.
I took a look at the thread you referred to, but I'm afraid we're 
looking at different issues... I don't have any desktop-GUI-related 
things installed (at least, I'm not supposed to).

Thank you both for your responses!


Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-15 Thread rhkramer


There was a recent thread where the symptom, in one sense, was somewhat 
similar--on a two CPU system, one CPU was using 100% of one CPU with the lid 
closed.  IIUC, the problem was due to lightdm-gt (or some sub-program).

Here are the headers from the last message in that thread:

Re: Debian 9.2 amd64 Xfce lock screen -> 100 %CPU by lightdm-gt+
From: David Christensen  (resent from debian-
u...@lists.debian.org)
  To: debian-user@lists.debian.org
  Date: Thu Oct 12 12:41:46 2017

Maybe it is worth looking at that thread.

On Saturday, October 14, 2017 08:41:18 PM Glen B wrote:
> (If this message already arrived I apologize, I'm struggling with this
> mailing list thing a little bit.)
> 
> Hi everyone,
> 
> It's been a while since I've run my system, but since starting it up
> yesterday and downloading updates, I've noticed a new problem. This
> machine typically runs as a server, even though it's a laptop. That
> means I usually leave the lid closed so the screen turns off, but the
> system remains active and does not suspend. When the lid is closed,
> systemd-logind will being consuming nearly 50% CPU on my single core
> system. A few other processes jump up the list too, including
> dbus-daemon, systemd, and systemd-journal. Please see attached for a
> sample top output while this is happening. Please also see attached for
> a log of package changes made to my system when I turned it on
> yesterday, in case it may be related to something else.
> 
>   > uname -a
>   > Linux gateway-server 4.9.0-4-686-pae #1 SMP Debian 4.9.51-1
> 
> (2017-09-28) i686 GNU/Linux
> 
> Hardware is a Gateway 400SD4.
> 
> If any other information is required please let me know.
> 
> Glen



Re: systemd process(es) consuming CPU when laptop lid closed

2017-10-15 Thread Michael Biebl
Am 14.10.2017 um 21:48 schrieb Glen B:
>   295 root  20   07448   4432   3992 R 41.2  0.9   0:54.81 
> systemd-logind
>   298 message+  20   06260   3636   3268 S 17.6  0.7   0:17.12 dbus-daemon

That looks like there is a huge amount of dbus messages sent.
Can you run dbus-monitor --system (as root) to see what those messages are?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature