Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Jesus saves...but Gretzky gets the rebound!" -- Daniel Hinojosa (hinojosa@hp-sdd)


computers / alt.os.linux.slackware / Re: resume from S2R changes from 5.15.19 to 5.15.27

SubjectAuthor
* resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
+* Re: resume from S2R changes from 5.15.19 to 5.15.27Henrik Carlqvist
|+* Re: resume from S2R changes from 5.15.19 to 5.15.27Giovanni
||`* Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
|| `* Re: resume from S2R changes from 5.15.19 to 5.15.27Giovanni
||  `- Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
|`* Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
| `* Re: resume from S2R changes from 5.15.19 to 5.15.27User
|  +- Re: resume from S2R changes from 5.15.19 to 5.15.27User
|  `* Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
|   `* Re: resume from S2R changes from 5.15.19 to 5.15.27User
|    `- Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
+* Re: resume from S2R changes from 5.15.19 to 5.15.27John Forkosh
|+* Re: resume from S2R changes from 5.15.19 to 5.15.27Giovanni
||`- Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
|`- Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
`* Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond
 `* Re: resume from S2R changes from 5.15.19 to 5.15.27Henrik Carlqvist
  `- Re: resume from S2R changes from 5.15.19 to 5.15.27Jim Diamond

1
resume from S2R changes from 5.15.19 to 5.15.27

<slrnt4n2ll.nk0.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1129&group=alt.os.linux.slackware#1129

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: resume from S2R changes from 5.15.19 to 5.15.27
Date: Mon, 4 Apr 2022 21:17:57 -0300
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
Injection-Info: reader02.eternal-september.org; posting-host="547c9a6f3f42091979985c4acdab6c01";
logging-data="22180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZTF/cvb9W5JN6+yhAu5Mq"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:6a3ivS3y1e96Au3kAU/4/zlKBus=
 by: Jim Diamond - Tue, 5 Apr 2022 00:17 UTC

I have a laptop running Slackware64 15.0, which, previous to upgrading
to 5.15.27, required me to press a keyboard key after opening the lid
to awaken it (after it was suspended to RAM).

After upgrading to 5.15.27 (the dirty pipe saga of 2022), the laptop
now awakens just by opening the lid. (I consider this to be A Good
Thing.)

However, it also awakens (with the lid still closed) if I unplug the
AC power. (I consider this to be A Bad Thing.)

I've hunted around a bit, but don't see any obvious reasons for this.
(I define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
/proc/acpi/wakeup is the same in both 5.15.19 and .27.

This happened with both Slackware64 15.0 and with Artix, so I'm
leaning in the "something specific with kernel" direction, as opposed
to "something peculiar of my distro".

FWIW, it is an HP Envy x360 with a Ryzen 4700U.

Has anyone here seen this on their hardware? I'd like it NOT to
wakeup when the AC power is disconnected, and if anyone has some
ideas, I'd be happy to hear it.

Thanks.
Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2gl1f$h6i$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1130&group=alt.os.linux.slackware#1130

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Tue, 5 Apr 2022 05:45:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <t2gl1f$h6i$1@dont-email.me>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Apr 2022 05:45:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6619ac96dca0747cd627b6e9759f3131";
logging-data="17618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18P3sc68AAiHPwZ+TdvUwkP"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:AY+bTPN42JPqAW0D+xrAuLTVQsQ=
 by: Henrik Carlqvist - Tue, 5 Apr 2022 05:45 UTC

On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
> I've hunted around a bit, but don't see any obvious reasons for this. (I
> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
> /proc/acpi/wakeup is the same in both 5.15.19 and .27.

If you are willing to do the work, it might be easier to diff only
between the two kernel versions where this change happened, for example
between 5.15.23 and 5.15.24.

The quickest way to find where the change happened is to do a binary
search for that point. Now you know that 5.15.19 work as before and
5.15.27 works at after. What about the version in the middle in between?
That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
know if the next step is to search between 5.15.19 and 5.15.23 or between
5.15.23 and 5.15.27.

regards Henrik

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2gv37$ita$1@milena.home.net.it>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1131&group=alt.os.linux.slackware#1131

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: lsodgf0@home.net.it (Giovanni)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Tue, 5 Apr 2022 10:36:55 +0200
Organization: G. Falzoni Home Network
Message-ID: <t2gv37$ita$1@milena.home.net.it>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me>
Reply-To: gfalzoni@inwind.it
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 22
NNTP-Posting-Host: d2a17ffe.news.sunsite.dk
X-Trace: 1649147817 news.sunsite.dk 694 gfalzoni@inwind.it/151.21.53.24:51612
X-Complaints-To: staff@sunsite.dk
 by: Giovanni - Tue, 5 Apr 2022 08:36 UTC

On 4/5/22 07:45, Henrik Carlqvist wrote:
> If you are willing to do the work, it might be easier to diff only
> between the two kernel versions where this change happened, for
> example between 5.15.23 and 5.15.24.
>
> The quickest way to find where the change happened is to do a
> binary search for that point. Now you know that 5.15.19 work as
> before and 5.15.27 works at after. What about the version in the
> middle in between? That would be 5.15.23. Once you have tested with
> kernel 5.15.23 you will know if the next step is to search between
> 5.15.19 and 5.15.23 or between 5.15.23 and 5.15.27.

The handling of events by buttons is done on elogin daemon.
The elogin daemon interacts with acpi daemon. I suggest to check the
log to see which events are detected at boot time.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2h72a$9ct$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1132&group=alt.os.linux.slackware#1132

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix3.panix.com!not-for-mail
From: forkosh@panix.com (John Forkosh)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Tue, 5 Apr 2022 10:52:59 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <t2h72a$9ct$1@reader2.panix.com>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
Injection-Date: Tue, 5 Apr 2022 10:52:59 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix3.panix.com:166.84.1.3";
logging-data="9629"; mail-complaints-to="abuse@panix.com"
User-Agent: tin/2.6.0-20210823 ("Coleburn") (NetBSD/9.2 (amd64))
 by: John Forkosh - Tue, 5 Apr 2022 10:52 UTC

Jim Diamond <JimDiamond@ns.sympatico.ca> wrote:
> I have a laptop running Slackware64 15.0, which, previous to upgrading
> to 5.15.27, required me to press a keyboard key after opening the lid
> to awaken it (after it was suspended to RAM).
>
> After upgrading to 5.15.27 (the dirty pipe saga of 2022), the laptop
> now awakens just by opening the lid. (I consider this to be A Good
> Thing.)
>
> However, it also awakens (with the lid still closed) if I unplug the
> AC power. (I consider this to be A Bad Thing.)
>
> I've hunted around a bit, but don't see any obvious reasons for this.
> (I define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>
> This happened with both Slackware64 15.0 and with Artix, so I'm
> leaning in the "something specific with kernel" direction, as opposed
> to "something peculiar of my distro".
>
> FWIW, it is an HP Envy x360 with a Ryzen 4700U.
>
> Has anyone here seen this on their hardware? I'd like it NOT to
> wakeup when the AC power is disconnected, and if anyone has some
> ideas, I'd be happy to hear it.
>
> Thanks. Jim

You might be able to add a file in /etc/acpi/events/ so that it
ignores that AC power connected/disconnected event. I'd tried but
failed to do a similar thing on a yoga-style laptop -- disable the
keyboard when folded to yoga-style, and re-enable it when folded back.
So, first modify the acpi/acpi_handler.sh to log every single event
it ever sees. Then plug/unplug the AC power and check the logs.
If you're actually trapping those events, then you should likely be
able to add some events/ scripts to handle them however you prefer.
(But, like I said, I failed to accomplish all that.)
--
John Forkosh ( mailto: j@f.com where j=john and f=forkosh )

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2hh7p$fet$1@milena.home.net.it>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1133&group=alt.os.linux.slackware#1133

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: lsodgf0@home.net.it (Giovanni)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Tue, 5 Apr 2022 15:46:33 +0200
Organization: G. Falzoni Home Network
Message-ID: <t2hh7p$fet$1@milena.home.net.it>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2h72a$9ct$1@reader2.panix.com>
Reply-To: gfalzoni@inwind.it
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 24
NNTP-Posting-Host: d4cdb679.news.sunsite.dk
X-Trace: 1649166396 news.sunsite.dk 701 gfalzoni@inwind.it/151.21.53.24:54064
X-Complaints-To: staff@sunsite.dk
 by: Giovanni - Tue, 5 Apr 2022 13:46 UTC

On 4/5/22 12:52, John Forkosh wrote:

> You might be able to add a file in /etc/acpi/events/ so that it
> ignores that AC power connected/disconnected event. I'd tried but
> failed to do a similar thing on a yoga-style laptop -- disable the
> keyboard when folded to yoga-style, and re-enable it when folded
> back. So, first modify the acpi/acpi_handler.sh to log every single
> event it ever sees. Then plug/unplug the AC power and check the
> logs. If you're actually trapping those events, then you should
> likely be able to add some events/ scripts to handle them however you
> prefer. (But, like I said, I failed to accomplish all that.)

That may work on 14.2 and lower versions. The elogind daemon intercepts
the events before they get to the acp handler.

In 15.0 had to change the file /etc/elogind/logind.conf to ignore 'halt'
and 'suspend' events.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt4sac3.pji.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1134&group=alt.os.linux.slackware#1134

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Wed, 6 Apr 2022 21:00:03 -0300
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <slrnt4sac3.pji.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2h72a$9ct$1@reader2.panix.com>
Injection-Info: reader02.eternal-september.org; posting-host="1b108c851c0055a97caf8c9b33dfe634";
logging-data="17753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jafJa+xjhRPYhPO0wE8Nx"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:wUE1TWwBMcx4uPQwYEdB//ck9Hk=
 by: Jim Diamond - Thu, 7 Apr 2022 00:00 UTC

On 2022-04-05 at 07:52 ADT, John Forkosh <forkosh@panix.com> wrote:
> Jim Diamond <JimDiamond@ns.sympatico.ca> wrote:
>> I have a laptop running Slackware64 15.0, which, previous to upgrading
>> to 5.15.27, required me to press a keyboard key after opening the lid
>> to awaken it (after it was suspended to RAM).
>>
>> After upgrading to 5.15.27 (the dirty pipe saga of 2022), the laptop
>> now awakens just by opening the lid. (I consider this to be A Good
>> Thing.)
>>
>> However, it also awakens (with the lid still closed) if I unplug the
>> AC power. (I consider this to be A Bad Thing.)
>>
>> I've hunted around a bit, but don't see any obvious reasons for this.
>> (I define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>
>> This happened with both Slackware64 15.0 and with Artix, so I'm
>> leaning in the "something specific with kernel" direction, as opposed
>> to "something peculiar of my distro".
>>
>> FWIW, it is an HP Envy x360 with a Ryzen 4700U.
>>
>> Has anyone here seen this on their hardware? I'd like it NOT to
>> wakeup when the AC power is disconnected, and if anyone has some
>> ideas, I'd be happy to hear it.
>>
>> Thanks. Jim
>
> You might be able to add a file in /etc/acpi/events/ so that it
> ignores that AC power connected/disconnected event. I'd tried but
> failed to do a similar thing on a yoga-style laptop -- disable the
> keyboard when folded to yoga-style, and re-enable it when folded back.
> So, first modify the acpi/acpi_handler.sh to log every single event
> it ever sees. Then plug/unplug the AC power and check the logs.
> If you're actually trapping those events, then you should likely be
> able to add some events/ scripts to handle them however you prefer.
> (But, like I said, I failed to accomplish all that.)

Hi John,

thanks for the thoughts. I think that for acpi_handler.sh to do
anything, the laptop has to be "awake". So, by the time that
acpi_handler.sh is called, the thing I don't want to happen has
already happened.

I did contemplate handling the "wakeup" there by checking to see if
the lid is closed, and, if so, put the laptop back to sleep, but I was
hoping to prevent the wakeup in the first place.

Cheers.
Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt4sahe.pji.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1135&group=alt.os.linux.slackware#1135

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Wed, 6 Apr 2022 21:02:54 -0300
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <slrnt4sahe.pji.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2h72a$9ct$1@reader2.panix.com> <t2hh7p$fet$1@milena.home.net.it>
Injection-Info: reader02.eternal-september.org; posting-host="1b108c851c0055a97caf8c9b33dfe634";
logging-data="17753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aNpg9OM4a8VP/C0od4iET"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Vb4fvicqbwTcsgKIpMSLrHn7w0k=
 by: Jim Diamond - Thu, 7 Apr 2022 00:02 UTC

On 2022-04-05 at 10:46 ADT, Giovanni <lsodgf0@home.net.it> wrote:
> On 4/5/22 12:52, John Forkosh wrote:
>
>> You might be able to add a file in /etc/acpi/events/ so that it
>> ignores that AC power connected/disconnected event. I'd tried but
>> failed to do a similar thing on a yoga-style laptop -- disable the
>> keyboard when folded to yoga-style, and re-enable it when folded
>> back. So, first modify the acpi/acpi_handler.sh to log every single
>> event it ever sees. Then plug/unplug the AC power and check the
>> logs. If you're actually trapping those events, then you should
>> likely be able to add some events/ scripts to handle them however you
>> prefer. (But, like I said, I failed to accomplish all that.)
>
> That may work on 14.2 and lower versions. The elogind daemon intercepts
> the events before they get to the acp handler.
>
> In 15.0 had to change the file /etc/elogind/logind.conf to ignore 'halt'
> and 'suspend' events.

Hi Giovanni,

as I mentioned to John, I was hoping to avoid it waking up in the
first place, which I assume (*cough*) is because of some change in how
"hardware events" are handled.

I did change a couple of entries in /etc/elogind/logind.conf when I
initially installed 15.0, but that file hasn't been changed since well
before 5.15.27 was installed.

Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt4sarl.pji.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1136&group=alt.os.linux.slackware#1136

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Wed, 6 Apr 2022 21:08:12 -0300
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <slrnt4sarl.pji.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="1b108c851c0055a97caf8c9b33dfe634";
logging-data="17753"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TQFtWsxRPAziNLTdsD4VX"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:5EN2NoE9AWQsm3gipdLmqcnNtyQ=
 by: Jim Diamond - Thu, 7 Apr 2022 00:08 UTC

On 2022-04-05 at 02:45 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>> I've hunted around a bit, but don't see any obvious reasons for this. (I
>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>
> If you are willing to do the work, it might be easier to diff only
> between the two kernel versions where this change happened, for example
> between 5.15.23 and 5.15.24.
>
> The quickest way to find where the change happened is to do a binary
> search for that point. Now you know that 5.15.19 work as before and
> 5.15.27 works at after. What about the version in the middle in between?
> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
> know if the next step is to search between 5.15.19 and 5.15.23 or between
> 5.15.23 and 5.15.27.

Hi Henrik,

thanks for your thoughts. I was hoping not to dig through the source
code (to say nothing of doing a binary search with kernel compiles at
each stage), but I may end up doing that.

I don't know how many people are reading this newsgroup these days,
but I am somewhat intrigued if I am the only person having this issue.
I had previously posted this to alt.os.linux since it is not
slackware-specific (it also happens to me with the artix system I was
using while waiting for 15.0 to appear). However, sadly that group is
mostly full of spam these days.

Cheers.

Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt4scop.pji.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1137&group=alt.os.linux.slackware#1137

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Wed, 6 Apr 2022 21:40:54 -0300
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <slrnt4scop.pji.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <t2gv37$ita$1@milena.home.net.it>
Injection-Info: reader02.eternal-september.org; posting-host="1b108c851c0055a97caf8c9b33dfe634";
logging-data="29323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+udG9dsnIG/jgd/4pBKicA"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:zfsREMXqJOLwPe9bPSuZ45XNlqY=
 by: Jim Diamond - Thu, 7 Apr 2022 00:40 UTC

On 2022-04-05 at 05:36 ADT, Giovanni <lsodgf0@home.net.it> wrote:
> On 4/5/22 07:45, Henrik Carlqvist wrote:
>> If you are willing to do the work, it might be easier to diff only
>> between the two kernel versions where this change happened, for
>> example between 5.15.23 and 5.15.24.
>>
>> The quickest way to find where the change happened is to do a
>> binary search for that point. Now you know that 5.15.19 work as
>> before and 5.15.27 works at after. What about the version in the
>> middle in between? That would be 5.15.23. Once you have tested with
>> kernel 5.15.23 you will know if the next step is to search between
>> 5.15.19 and 5.15.23 or between 5.15.23 and 5.15.27.
>
> The handling of events by buttons is done on elogin daemon.
> The elogin daemon interacts with acpi daemon. I suggest to check the
> log to see which events are detected at boot time.

Giovanni,

I'm not sure which log you are referring to, but in /var/log the only
file I see with "elogind" is /var/log/message. At boot time there are
lines like this

Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event3 (Power Button)
Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event1 (Power Button)
Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event2 (Lid Switch)
Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event0 (AT Translated Set 2 keyboard)
Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event8 (HP WMI hotkeys)

but this is the same set of devices for both .19 and .27.

Were you thinking of some other log information?

Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2mm4j$jen$1@milena.home.net.it>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1138&group=alt.os.linux.slackware#1138

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.neodome.net!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: lsodgf0@home.net.it (Giovanni)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Thu, 7 Apr 2022 14:40:50 +0200
Organization: G. Falzoni Home Network
Message-ID: <t2mm4j$jen$1@milena.home.net.it>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <t2gv37$ita$1@milena.home.net.it>
<slrnt4scop.pji.JimDiamond@x360.localdomain>
Reply-To: gfalzoni@inwind.it
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 30
NNTP-Posting-Host: 93bf0a36.news.sunsite.dk
X-Trace: 1649335253 news.sunsite.dk 695 gfalzoni@inwind.it/151.21.53.24:40758
X-Complaints-To: staff@sunsite.dk
 by: Giovanni - Thu, 7 Apr 2022 12:40 UTC

On 4/7/22 02:40, Jim Diamond wrote:

> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event3 (Power Button)
> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event1 (Power Button)
> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event2 (Lid Switch)
> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event0 (AT Translated Set 2 keyboard)
> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event8 (HP WMI hotkeys)
>
> but this is the same set of devices for both .19 and .27.
>
> Were you thinking of some other log information?
>
> Jim

No, that's the log which shows that the buttons are trapped by
elogin-daemon and that led me to think of problems in elogind. But also
this package didn't change.

Kernel change-logs show modifications in the area, with several
references to 'suspend'.
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.25
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.26
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.27

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< http://giovanni.homelinux.net/ >

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2naa5$vrj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1139&group=alt.os.linux.slackware#1139

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: user@example.net (User)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Thu, 7 Apr 2022 14:25:03 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <t2naa5$vrj$1@dont-email.me>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <slrnt4sarl.pji.JimDiamond@x360.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Apr 2022 18:25:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="15f891a9db2152241772e946daea3cf8";
logging-data="32627"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RwDKfKTbtQMKqvucclk7HIMIw06Zrecc="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:rJyC0L6QHijU/Z+tXySfEFt7fc8=
In-Reply-To: <slrnt4sarl.pji.JimDiamond@x360.localdomain>
Content-Language: en-US
 by: User - Thu, 7 Apr 2022 18:25 UTC

On 4/6/2022 8:08 PM, Jim Diamond wrote:
> On 2022-04-05 at 02:45 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>>> I've hunted around a bit, but don't see any obvious reasons for this. (I
>>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>
>> If you are willing to do the work, it might be easier to diff only
>> between the two kernel versions where this change happened, for example
>> between 5.15.23 and 5.15.24.
>>
>> The quickest way to find where the change happened is to do a binary
>> search for that point. Now you know that 5.15.19 work as before and
>> 5.15.27 works at after. What about the version in the middle in between?
>> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
>> know if the next step is to search between 5.15.19 and 5.15.23 or between
>> 5.15.23 and 5.15.27.
>
> Hi Henrik,
>
> thanks for your thoughts. I was hoping not to dig through the source
> code (to say nothing of doing a binary search with kernel compiles at
> each stage), but I may end up doing that.
>
> I don't know how many people are reading this newsgroup these days,
> but I am somewhat intrigued if I am the only person having this issue.
> I had previously posted this to alt.os.linux since it is not
> slackware-specific (it also happens to me with the artix system I was
> using while waiting for 15.0 to appear). However, sadly that group is
> mostly full of spam these days.
>
> Cheers.
>
> Jim

I did some testing on my laptop running Slackware 15.0 with 5.15.27.

Suspend to RAM
- Awakens on opening the case
- Does nothing on removing/attaching power

Suspend to disk
- Awakens on opening the case
- Does nothing on removing/attaching power

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2q105$4qf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1140&group=alt.os.linux.slackware#1140

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: user@example.net (User)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Fri, 8 Apr 2022 15:04:30 -0400
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <t2q105$4qf$1@dont-email.me>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <slrnt4sarl.pji.JimDiamond@x360.localdomain>
<t2naa5$vrj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 8 Apr 2022 19:04:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c9d55d6a6d45c218cd7237cce5f3c5fe";
logging-data="4943"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bdL9dDiphcZRLzwijvTtrwNqAREYvacA="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:Fo/mEShNOcxI12p6gL+RjGWa3+M=
In-Reply-To: <t2naa5$vrj$1@dont-email.me>
Content-Language: en-US
 by: User - Fri, 8 Apr 2022 19:04 UTC

On 4/7/2022 2:25 PM, User wrote:
> On 4/6/2022 8:08 PM, Jim Diamond wrote:
>> On 2022-04-05 at 02:45 ADT, Henrik Carlqvist
>> <Henrik.Carlqvist@deadspam.com> wrote:
>>> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>>>> I've hunted around a bit, but don't see any obvious reasons for
>>>> this. (I
>>>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>>>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>>
>>> If you are willing to do the work, it might be easier to diff only
>>> between the two kernel versions where this change happened, for example
>>> between 5.15.23 and 5.15.24.
>>>
>>> The quickest way to find where the change happened is to  do a binary
>>> search for that point. Now you know that 5.15.19 work as before and
>>> 5.15.27 works at after. What about the version in the middle in between?
>>> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
>>> know if the next step is to search between 5.15.19 and 5.15.23 or
>>> between
>>> 5.15.23 and 5.15.27.
>>
>> Hi Henrik,
>>
>> thanks for your thoughts.  I was hoping not to dig through the source
>> code (to say nothing of doing a binary search with kernel compiles at
>> each stage), but I may end up doing that.
>>
>> I don't know how many people are reading this newsgroup these days,
>> but I am somewhat intrigued if I am the only person having this issue.
>> I had previously posted this to alt.os.linux since it is not
>> slackware-specific (it also happens to me with the artix system I was
>> using while waiting for 15.0 to appear).  However, sadly that group is
>> mostly full of spam these days.
>>
>> Cheers.
>>
>>                                  Jim
>
> I did some testing on my laptop running Slackware 15.0 with 5.15.27.
>
> Suspend to RAM
> - Awakens on opening the case
> - Does nothing on removing/attaching power
>
> Suspend to disk
> - Awakens on opening the case
> - Does nothing on removing/attaching power

Screen Saver Mode
- Awakens on opening the case
- Awakens on removing/attaching power

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt51aol.ak2.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1141&group=alt.os.linux.slackware#1141

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Fri, 8 Apr 2022 18:37:23 -0300
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <slrnt51aol.ak2.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <slrnt4sarl.pji.JimDiamond@x360.localdomain>
<t2naa5$vrj$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="fa2438c4cc3889ee06d8ea790b050979";
logging-data="8600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kaUbk8XfoxT6zd7vlKngd"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:550LdH1VCJU7kzmz82ot0uX+t/g=
 by: Jim Diamond - Fri, 8 Apr 2022 21:37 UTC

On 2022-04-07 at 15:25 ADT, User <user@example.net> wrote:
> On 4/6/2022 8:08 PM, Jim Diamond wrote:
>> On 2022-04-05 at 02:45 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>>>> I've hunted around a bit, but don't see any obvious reasons for this. (I
>>>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>>>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>>
>>> If you are willing to do the work, it might be easier to diff only
>>> between the two kernel versions where this change happened, for example
>>> between 5.15.23 and 5.15.24.
>>>
>>> The quickest way to find where the change happened is to do a binary
>>> search for that point. Now you know that 5.15.19 work as before and
>>> 5.15.27 works at after. What about the version in the middle in between?
>>> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
>>> know if the next step is to search between 5.15.19 and 5.15.23 or between
>>> 5.15.23 and 5.15.27.

<snip>

>> I don't know how many people are reading this newsgroup these days,
>> but I am somewhat intrigued if I am the only person having this issue.
>> I had previously posted this to alt.os.linux since it is not
>> slackware-specific (it also happens to me with the artix system I was
>> using while waiting for 15.0 to appear). However, sadly that group is
>> mostly full of spam these days.

>
> I did some testing on my laptop running Slackware 15.0 with 5.15.27.
>
> Suspend to RAM
> - Awakens on opening the case
> - Does nothing on removing/attaching power

Thanks for the report. Can you tell me what sort of processor you
have? (In short, AMD or Intel? And further, the model number if you
don't mind.)

Cheers.
Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt539bo.i6p.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1143&group=alt.os.linux.slackware#1143

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sat, 9 Apr 2022 12:25:43 -0300
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <slrnt539bo.i6p.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <t2gv37$ita$1@milena.home.net.it>
<slrnt4scop.pji.JimDiamond@x360.localdomain>
<t2mm4j$jen$1@milena.home.net.it>
Injection-Info: reader02.eternal-september.org; posting-host="949eaecaf5d93deea76cd344bd57c7e4";
logging-data="18344"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XFMKtgcvOhA0YOn85rf40"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:rMl/QfYA/x+giCwB7xj4DYD8M/k=
 by: Jim Diamond - Sat, 9 Apr 2022 15:25 UTC

On 2022-04-07 at 09:40 ADT, Giovanni <lsodgf0@home.net.it> wrote:
> On 4/7/22 02:40, Jim Diamond wrote:
>
>> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event3 (Power Button)
>> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event1 (Power Button)
>> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event2 (Lid Switch)
>> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event0 (AT Translated Set 2 keyboard)
>> Mar 9 18:09:15 x360 elogind-daemon[1300]: Watching system buttons on /dev/input/event8 (HP WMI hotkeys)
>>
>> but this is the same set of devices for both .19 and .27.
>>
>> Were you thinking of some other log information?
>>
> No, that's the log which shows that the buttons are trapped by
> elogin-daemon and that led me to think of problems in elogind. But also
> this package didn't change.
>
> Kernel change-logs show modifications in the area, with several
> references to 'suspend'.
> https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.25
> https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.26
> https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.27

Giovanni,

thanks for those links. There are some suspend comments in other
changelogs as well, but the 5.15.25 does talk about a problem with the
AC adapter on another HP system.

So maybe .24 or .25 would be the place to start compiling kernels, as
Henrik suggested.

Cheers.
Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt53sna.b0h.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1144&group=alt.os.linux.slackware#1144

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sat, 9 Apr 2022 17:56:08 -0300
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <slrnt53sna.b0h.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
Injection-Info: reader02.eternal-september.org; posting-host="949eaecaf5d93deea76cd344bd57c7e4";
logging-data="16745"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HqHY/n/WyuYxf+zL7O1YH"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:MU+4zqAkL9zpkf5r1Lqq3qAsDX0=
 by: Jim Diamond - Sat, 9 Apr 2022 20:56 UTC

On 2022-04-04 at 21:17 ADT, Jim Diamond <JimDiamond@ns.sympatico.ca> wrote:
> I have a laptop running Slackware64 15.0, which, previous to upgrading
> to 5.15.27, required me to press a keyboard key after opening the lid
> to awaken it (after it was suspended to RAM).
>
> After upgrading to 5.15.27 (the dirty pipe saga of 2022), the laptop
> now awakens just by opening the lid. (I consider this to be A Good
> Thing.)
>
> However, it also awakens (with the lid still closed) if I unplug the
> AC power. (I consider this to be A Bad Thing.)

Just in case anyone cares, here is the "answer" (with thanks to Henrik
and Giovanni):

In 5.15.24 drivers/acpi/x86/s2idle.c has this code:

/*
* Some Intel based LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U don't
* use intel-hid or intel-vbtn but require the EC GPE to be enabled while
* suspended for certain wakeup devices to work, so mark it as wakeup-capable.
*
* Only enable on !AMD as enabling this universally causes problems for a number
* of AMD based systems.
*/
if (!acpi_s2idle_vendor_amd())
acpi_ec_mark_gpe_for_wake();

and in 5.15.25, notwithstanding the warning in the comment, it has
been changed to

/*
* Some LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U, require the
* EC GPE to be enabled while suspended for certain wakeup devices to
* work, so mark it as wakeup-capable.
*/
acpi_ec_mark_gpe_for_wake();

This causes the system to wake up on a variety of EC (embedded
controller) events, including opening the lid and unplugging or
plugging in the AC power. (Tested by re-compiling 5.15.25 with the
s2idle.c code from 5.15.24 and testing with that modified kernel.)

Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2taqu$9ej$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1145&group=alt.os.linux.slackware#1145

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sun, 10 Apr 2022 01:10:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <t2taqu$9ej$1@dont-email.me>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<slrnt53sna.b0h.JimDiamond@x360.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Apr 2022 01:10:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b0e462be3c32f9b5e676c12858ae3715";
logging-data="9683"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Q8cRi5NeGQ/b7PhC0z4Su"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:872EazwzRPjfZ3yqZx7bgFqmKc4=
 by: Henrik Carlqvist - Sun, 10 Apr 2022 01:10 UTC

On Sat, 09 Apr 2022 17:56:08 -0300, Jim Diamond wrote:
> In 5.15.24 drivers/acpi/x86/s2idle.c has this code:
>
> /*
> * Some Intel based LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U
> don't * use intel-hid or intel-vbtn but require the EC GPE to be
> enabled while * suspended for certain wakeup devices to work, so
> mark it as wakeup-capable. *
> * Only enable on !AMD as enabling this universally causes problems
> for a number * of AMD based systems.
> */
> if (!acpi_s2idle_vendor_amd())
> acpi_ec_mark_gpe_for_wake();
>
> and in 5.15.25, notwithstanding the warning in the comment, it has been
> changed to
>
> /*
> * Some LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U, require
> the * EC GPE to be enabled while suspended for certain wakeup
> devices to * work, so mark it as wakeup-capable.
> */
> acpi_ec_mark_gpe_for_wake();
>
> This causes the system to wake up on a variety of EC (embedded
> controller) events, including opening the lid and unplugging or plugging
> in the AC power. (Tested by re-compiling 5.15.25 with the s2idle.c code
> from 5.15.24 and testing with that modified kernel.)
>
> Jim

Nice work! So who made this change and why? Some digging with git gives:

git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
cd linux
git checkout v5.15.25
cd drivers/acpi/x86/
git diff v5.15.24 s2idle.c

The above command shows that the only difference between 5.15.25 and
5.15.24 in s2idle.c are those lines that you have identified. So if you
prefer the behavior of 5.15.24 you can safely use that file as you did.

git blame s2idle.c

Shows that the change was made by Mario Limonciello who has an email
address indicating that he is working at AMD. The commit was
0044583276952 and it was made 2022-01-28.

git log s2idle.c

Gives a rather long explanation to why the AMD check was removed.

The information retreived by these git command lines could also be
retrieved by pointing and clicking in "gitk --all".

So your next step will probably be to consider wether your local fix is
good enough for now or if you want to discuss this with Mario to also get
it fixed in a better way in future releases.

regards Henrik

Re: resume from S2R changes from 5.15.19 to 5.15.27

<t2ud5o$dv0$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1146&group=alt.os.linux.slackware#1146

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: user@example.net (User)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sun, 10 Apr 2022 06:56:56 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <t2ud5o$dv0$1@dont-email.me>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <slrnt4sarl.pji.JimDiamond@x360.localdomain>
<t2naa5$vrj$1@dont-email.me> <slrnt51aol.ak2.JimDiamond@x360.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 10 Apr 2022 10:56:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f0140530f4fd33970c0fb9acb175b21a";
logging-data="14304"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h4MsBhzo8M/iaDJY2KdDMtBJSTEArjbg="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:ILaiedI69hZ9uN9bOIz5HTpW7Ws=
In-Reply-To: <slrnt51aol.ak2.JimDiamond@x360.localdomain>
Content-Language: en-US
 by: User - Sun, 10 Apr 2022 10:56 UTC

On 4/8/2022 5:37 PM, Jim Diamond wrote:
> On 2022-04-07 at 15:25 ADT, User <user@example.net> wrote:
>> On 4/6/2022 8:08 PM, Jim Diamond wrote:
>>> On 2022-04-05 at 02:45 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>>> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>>>>> I've hunted around a bit, but don't see any obvious reasons for this. (I
>>>>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>>>>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>>>
>>>> If you are willing to do the work, it might be easier to diff only
>>>> between the two kernel versions where this change happened, for example
>>>> between 5.15.23 and 5.15.24.
>>>>
>>>> The quickest way to find where the change happened is to do a binary
>>>> search for that point. Now you know that 5.15.19 work as before and
>>>> 5.15.27 works at after. What about the version in the middle in between?
>>>> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
>>>> know if the next step is to search between 5.15.19 and 5.15.23 or between
>>>> 5.15.23 and 5.15.27.
>
> <snip>
>
>>> I don't know how many people are reading this newsgroup these days,
>>> but I am somewhat intrigued if I am the only person having this issue.
>>> I had previously posted this to alt.os.linux since it is not
>>> slackware-specific (it also happens to me with the artix system I was
>>> using while waiting for 15.0 to appear). However, sadly that group is
>>> mostly full of spam these days.
>
>>
>> I did some testing on my laptop running Slackware 15.0 with 5.15.27.
>>
>> Suspend to RAM
>> - Awakens on opening the case
>> - Does nothing on removing/attaching power
>
> Thanks for the report. Can you tell me what sort of processor you
> have? (In short, AMD or Intel? And further, the model number if you
> don't mind.)
>
> Cheers.
> Jim

Its a 10th Gen Intel

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt56pqt.7jf.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1147&group=alt.os.linux.slackware#1147

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sun, 10 Apr 2022 20:25:16 -0300
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <slrnt56pqt.7jf.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<t2gl1f$h6i$1@dont-email.me> <slrnt4sarl.pji.JimDiamond@x360.localdomain>
<t2naa5$vrj$1@dont-email.me> <slrnt51aol.ak2.JimDiamond@x360.localdomain>
<t2ud5o$dv0$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="020fa4b5511bf5cd71c4706be53e7de8";
logging-data="14707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FWGWfOwC2MDJQwFHL/Qtt"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:obtsn5TaNhxJs/pnhpV0hVGjtuU=
 by: Jim Diamond - Sun, 10 Apr 2022 23:25 UTC

On 2022-04-10 at 07:56 ADT, User <user@example.net> wrote:
> On 4/8/2022 5:37 PM, Jim Diamond wrote:
>> On 2022-04-07 at 15:25 ADT, User <user@example.net> wrote:
>>> On 4/6/2022 8:08 PM, Jim Diamond wrote:
>>>> On 2022-04-05 at 02:45 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>>>> On Mon, 04 Apr 2022 21:17:57 -0300, Jim Diamond wrote:
>>>>>> I've hunted around a bit, but don't see any obvious reasons for this. (I
>>>>>> define "diffing the code of 5.15.19 with 5.15.27" as "not obvious".)
>>>>>> /proc/acpi/wakeup is the same in both 5.15.19 and .27.
>>>>>
>>>>> If you are willing to do the work, it might be easier to diff only
>>>>> between the two kernel versions where this change happened, for example
>>>>> between 5.15.23 and 5.15.24.
>>>>>
>>>>> The quickest way to find where the change happened is to do a binary
>>>>> search for that point. Now you know that 5.15.19 work as before and
>>>>> 5.15.27 works at after. What about the version in the middle in between?
>>>>> That would be 5.15.23. Once you have tested with kernel 5.15.23 you will
>>>>> know if the next step is to search between 5.15.19 and 5.15.23 or between
>>>>> 5.15.23 and 5.15.27.
>>
>> <snip>
>>
>>>> I don't know how many people are reading this newsgroup these days,
>>>> but I am somewhat intrigued if I am the only person having this issue.
>>>> I had previously posted this to alt.os.linux since it is not
>>>> slackware-specific (it also happens to me with the artix system I was
>>>> using while waiting for 15.0 to appear). However, sadly that group is
>>>> mostly full of spam these days.
>>
>>>
>>> I did some testing on my laptop running Slackware 15.0 with 5.15.27.
>>>
>>> Suspend to RAM
>>> - Awakens on opening the case
>>> - Does nothing on removing/attaching power
>>
>> Thanks for the report. Can you tell me what sort of processor you
>> have? (In short, AMD or Intel? And further, the model number if you
>> don't mind.)
>>
>> Cheers.

> Its a 10th Gen Intel

Thanks. Not a surprise, now that I know it is an issue with how some
AMD systems handle AC power events.

Jim

Re: resume from S2R changes from 5.15.19 to 5.15.27

<slrnt56q7m.7jf.JimDiamond@x360.localdomain>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1148&group=alt.os.linux.slackware#1148

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: JimDiamond@ns.sympatico.ca (Jim Diamond)
Newsgroups: alt.os.linux.slackware
Subject: Re: resume from S2R changes from 5.15.19 to 5.15.27
Date: Sun, 10 Apr 2022 20:32:05 -0300
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <slrnt56q7m.7jf.JimDiamond@x360.localdomain>
References: <slrnt4n2ll.nk0.JimDiamond@x360.localdomain>
<slrnt53sna.b0h.JimDiamond@x360.localdomain> <t2taqu$9ej$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="020fa4b5511bf5cd71c4706be53e7de8";
logging-data="14707"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Qz9Sizo3jZskTJzmf9hLu"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:7MBiqDFG8DQT+ukOMOLW1iLYupE=
 by: Jim Diamond - Sun, 10 Apr 2022 23:32 UTC

On 2022-04-09 at 22:10 ADT, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
> On Sat, 09 Apr 2022 17:56:08 -0300, Jim Diamond wrote:
>> In 5.15.24 drivers/acpi/x86/s2idle.c has this code:
>>
>> /*
>> * Some Intel based LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U
>> don't * use intel-hid or intel-vbtn but require the EC GPE to be
>> enabled while * suspended for certain wakeup devices to work, so
>> mark it as wakeup-capable. *
>> * Only enable on !AMD as enabling this universally causes problems
>> for a number * of AMD based systems.
>> */
>> if (!acpi_s2idle_vendor_amd())
>> acpi_ec_mark_gpe_for_wake();
>>
>> and in 5.15.25, notwithstanding the warning in the comment, it has been
>> changed to
>>
>> /*
>> * Some LPS0 systems, like ASUS Zenbook UX430UNR/i7-8550U, require
>> the * EC GPE to be enabled while suspended for certain wakeup
>> devices to * work, so mark it as wakeup-capable.
>> */
>> acpi_ec_mark_gpe_for_wake();
>>
>> This causes the system to wake up on a variety of EC (embedded
>> controller) events, including opening the lid and unplugging or plugging
>> in the AC power. (Tested by re-compiling 5.15.25 with the s2idle.c code
>> from 5.15.24 and testing with that modified kernel.)
>>

> Nice work! So who made this change and why? Some digging with git gives:
>
> git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
> cd linux
> git checkout v5.15.25
> cd drivers/acpi/x86/
> git diff v5.15.24 s2idle.c
>
> The above command shows that the only difference between 5.15.25 and
> 5.15.24 in s2idle.c are those lines that you have identified. So if you
> prefer the behavior of 5.15.24 you can safely use that file as you did.

And it lingers on, that change is also in 5.17.2.

> git blame s2idle.c
>
> Shows that the change was made by Mario Limonciello who has an email
> address indicating that he is working at AMD. The commit was
> 0044583276952 and it was made 2022-01-28.

> git log s2idle.c
>
> Gives a rather long explanation to why the AMD check was removed.

And for people who aren't git-compliant, the ChangeLog Giovanni
mentioned (https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.25)
can be perused.

> The information retreived by these git command lines could also be
> retrieved by pointing and clicking in "gitk --all".

> So your next step will probably be to consider wether your local fix is
> good enough for now or if you want to discuss this with Mario to also get
> it fixed in a better way in future releases.

It is good enough for me, and I was considering whether I should file
a kernel bug report or not. It is sort of surprising that I seem to
be the only one looking for answers about this. Surely there are many
other Linux users using laptops identical or similar to mine. Maybe
they are all OK with AC events waking up their laptop.

But since Mario has an AMD address as you note, I might try him first.

Cheers.
Jim

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor