LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2024, 02:49 PM   #4216
glennmcc
Member
 
Registered: Jan 2021
Location: North Jackson, Ohio (USA)
Distribution: slackware64-15.0
Posts: 556

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315

OH come-on... that was not a "horror".

It was "FUN"

OK, I'll shut my trap now.
 
Old 04-14-2024, 04:04 PM   #4217
Markus Wiesner
Member
 
Registered: Mar 2016
Distribution: Slackware
Posts: 146

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Sat Apr 13 19:45:25 UTC 2024
l/imagemagick-7.1.1_29-x86_64-1.txz: Upgraded.
Revert to the previous ImageMagick because the latest one is destroying SVG
files if "identify" or "display" is used on them.
Thanks to pc2005.
See https://www.linuxquestions.org/quest...5/#post6495803

We should revert this revert because the error is in 7.1.1_29 and not 7.1.1_30. It only affected 7.1.1_30 because delegates.xml was not replaced by the .new one.
 
Old 04-15-2024, 02:56 AM   #4218
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Regarding the latest elogind issues with the system sleeping and gracious tucking the tail between legs while running on previous version, well... everybody please be kind to note that in fact elogind do what it's instructed to do: preferring to using the s2idle (aka freeze) for sleeping the system.

If you wonder what the heck is that s2idle ... Well, according with the kernel.org's guys:

https://www.kernel.org/doc/Documenta...wer/states.txt
Code:
State:		Suspend-To-Idle
ACPI state:	S0
Label:		"s2idle" ("freeze")

This state is a generic, pure software, light-weight, system sleep state.
It allows more energy to be saved relative to runtime idle by freezing user
space and putting all I/O devices into low-power states (possibly
lower-power than available at run time), such that the processors can
spend more time in their idle states.

This state can be used for platforms without Power-On Suspend/Suspend-to-RAM
support, or it can be used in addition to Suspend-to-RAM to provide reduced
resume latency.  It is always supported.
This rings some bells to the guys who hit issues with the elogind and sleeping?

That's right, the "s2iddle" power down the drives and put the CPU and processes on idle, but still keeps the system powered on - just what you guys encountered in the last time.

To return to the old elogind's behavior, one should change as following the config file: /etc/elogind/sleep.conf.d/10-elogind.conf
Code:
--- 10-elogind.conf.orig	2024-03-01 09:44:12.000000000 +0200
+++ 10-elogind.conf	2024-04-15 10:36:56.909970247 +0300
@@ -19,4 +19,4 @@
 #HandleNvidiaSleep=no
 #HibernateByUsing=
 #SuspendByUsing=
-#SuspendMode=s2idle deep
+SuspendMode=deep
Then after rebooting the system, you will see The Magic: the "loginctl suspend" command will work as you expected.

PS. If you wonder WHY that that s2idle fails miserably on waking up the system, well... I believe that's another story - who knows? Maybe BOB wanted us to notice the sorry state of this particular feature in Slackware, even it's "a generic, pure software, light-weight, system sleep state."

Last edited by LuckyCyborg; 04-15-2024 at 03:43 AM.
 
4 members found this post helpful.
Old 04-15-2024, 03:48 AM   #4219
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Quote:
Originally Posted by LuckyCyborg View Post

To return to the old elogind's behavior, one should change as following the config file: /etc/elogind/sleep.conf.d/10-elogind.conf
Code:
--- 10-elogind.conf.orig	2024-03-01 09:44:12.000000000 +0200
+++ 10-elogind.conf	2024-04-15 10:36:56.909970247 +0300
@@ -19,4 +19,4 @@
 #HandleNvidiaSleep=no
 #HibernateByUsing=
 #SuspendByUsing=
-#SuspendMode=s2idle deep
+SuspendMode=deep
Then after rebooting the system, you will see The Magic: the "loginctl suspend" command will work as you expected.
Before activating this elogind suspend mode
You have to ensure that your system supports this "Suspend to disk" feature, aka "Hibernate", aka "S4 ACPI sleeping state"
To do so:
Code:
# dmesg | grep -E 'ACPI.*supports'
It should return something like this:
Code:
# dmesg | grep -E 'ACPI.*supports'
[    0.407141] ACPI: PM: (supports S0 S3 S4 S5)
Side note:
It can also be activated by adding this to your kernel cmd line
Code:
mem_sleep_default=deep
To check if it works:
Code:
# cat /sys/power/mem_sleep 
s2idle [deep]

Last edited by marav; 04-15-2024 at 03:58 AM.
 
3 members found this post helpful.
Old 04-15-2024, 03:54 AM   #4220
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by marav View Post
Before activating this elogind suspend mode
You have to ensure that your system supports this "Suspend to disk" feature, aka "Hibernate", aka "S4 ACPI sleeping state"
To do so:
Code:
# dmesg | grep -E 'ACPI.*supports'
It should return something like this:
Code:
# dmesg | grep -E 'ACPI.*supports'
[    0.407141] ACPI: PM: (supports S0 S3 S4 S5)
Yes, you are right.

BUT, in the elogindish (, just like in systemdish), this "Suspend to disk" feature is called "Hibernate" , while the "Suspend" itself is what usually we call "Suspend to RAM" .

Anyway, from my tests the hibernation itself worked OK with this latest version of elogind, the issues was with suspending to RAM, which in fact ended by default being a "freezing" via the configuration preferred s2idle feature.

Last edited by LuckyCyborg; 04-15-2024 at 03:56 AM.
 
2 members found this post helpful.
Old 04-15-2024, 03:59 AM   #4221
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,032

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Quote:
Originally Posted by marav View Post
Side note:
It can also be activated by adding this to your kernel cmd line
Code:
mem_sleep_default=deep
To check if it works:
Code:
# cat /sys/power/mem_sleep 
s2idle [deep]
So is it ultimately a kernel configuration issue?
 
1 members found this post helpful.
Old 04-15-2024, 04:03 AM   #4222
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by ZhaoLin1457 View Post
So is it ultimately a kernel configuration issue?
I do not think so.

Because, after all:

Code:
root@darkstar:~# uname -a
Linux darkstar.example.org 6.6.27 #1 SMP PREEMPT_DYNAMIC Sat Apr 13 13:28:46 CDT 2024 x86_64 Intel(R) Core(TM) i5-3570T CPU @ 2.30GHz GenuineIntel GNU/Linux
root@darkstar:~# 
root@darkstar:~# cat /sys/power/mem_sleep
s2idle [deep]
root@darkstar:~#
That's just like in the Slackware 15.0 kernels.

The issue seems to me that elogind is instructed by it's (default?) configuration to prefer the s2idle instead of deep.

Last edited by LuckyCyborg; 04-15-2024 at 04:06 AM.
 
3 members found this post helpful.
Old 04-15-2024, 04:08 AM   #4223
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Quote:
Originally Posted by ZhaoLin1457 View Post
So is it ultimately a kernel configuration issue?
I don't think so
As the kernel guys said:
Code:
This state can be used for platforms without Power-On Suspend/Suspend-to-RAM
support, or it can be used in addition to Suspend-to-RAM to provide reduced
resume latency.  It is always supported.
Here, for example, my laptop doesn't support S4 ACPI sleep state out of the box, I have to tweak the ACPI table
This has always worked in the past, so I'm convinced it's probably an elogind issue

Last edited by marav; 04-15-2024 at 04:10 AM.
 
1 members found this post helpful.
Old 04-15-2024, 04:21 AM   #4224
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Can't see how LuckyCyborgs post #4218 relates to the problem that suspend/resume in elogind-255.4 breaks network connection and leaves NetworkManager unresponsive after resume? But maybe this is just me being ignorant.
 
1 members found this post helpful.
Old 04-15-2024, 05:55 AM   #4225
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Quote:
Originally Posted by ZhaoLin1457 View Post
A handful of ALSA purists can be hardly defined as "everyone" .
No, but by definition "everyone" is a superset of both them and everyone else.
 
Old 04-15-2024, 06:04 AM   #4226
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,854

Rep: Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523
Quote:
Originally Posted by LuckyCyborg View Post
Code:
root@darkstar:~# cat /sys/power/mem_sleep
s2idle [deep]
root@darkstar:~#
The issue seems to me that elogind is instructed by it's (default?) configuration to prefer the s2idle instead of deep.
But your cat tells deep is used. So, isn't that preferred by default?
 
1 members found this post helpful.
Old 04-15-2024, 06:16 AM   #4227
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Quote:
Originally Posted by kgha View Post
Can't see how LuckyCyborgs post #4218 relates to the problem that suspend/resume in elogind-255.4 breaks network connection and leaves NetworkManager unresponsive after resume? But maybe this is just me being ignorant.
With the last version of elogind, there is obviously 2 separate issues
One that breaks the functionality of the powerkey actions
The other that breaks the network connectivity after hibernate

I think he was talking about the first issue

For the second issue, no matter what you do, the only workaround, at least here, is to restart the NetworkManager

Last edited by marav; 04-15-2024 at 06:18 AM.
 
3 members found this post helpful.
Old 04-15-2024, 06:19 AM   #4228
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,550

Rep: Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404Reputation: 3404
Quote:
Originally Posted by Petri Kaukasoina View Post
But your cat tells deep is used. So, isn't that preferred by default?
Nope. Unfortunately, looks like the elogind 255.4 prefers s2idle because seems to use this configuration option for its preferences:
Code:
SuspendMode=s2idle deep
Speaking of this config option, considering the point raised by @marav, probably the best is to use this:
Code:
--- 10-elogind.conf.orig	2024-03-01 09:44:12.000000000 +0200
+++ 10-elogind.conf	2024-04-15 13:09:53.606969523 +0300
@@ -19,4 +19,4 @@
 #HandleNvidiaSleep=no
 #HibernateByUsing=
 #SuspendByUsing=
-#SuspendMode=s2idle deep
+SuspendMode=deep s2idle
This way, if the "deep" mode is not available, elogind will fallback to "s2idle" .

BTW, someone else noticed that that new config file /etc/elogind/sleep.conf.d/10-elogind.conf has no .new handling, then it will be overridden on upgrading the elogind package?

Last edited by LuckyCyborg; 04-15-2024 at 06:21 AM.
 
1 members found this post helpful.
Old 04-15-2024, 06:37 AM   #4229
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,409

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
I for one, for now, I will stick with:
elogind 252.9 (254 obviously breaks the network after hibernate/resume)
polkit 123 (124 I think is the real culprit for the suspend-to-ram issue)

which work as it should

Last edited by marav; 04-15-2024 at 06:40 AM.
 
1 members found this post helpful.
Old 04-15-2024, 06:47 AM   #4230
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,032

Rep: Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238Reputation: 1238
Quote:
Originally Posted by marav View Post
I for one, for now, I will stick with:
elogind 252.9 (254 obviously breaks the network after hibernate/resume)
polkit 123 (124 I think is the real culprit for the suspend-to-ram issue)

which work as it should
Let's remember that elogind is maintained by programmers affiliated with Gentoo and Devuan. And these programmers do not necessarily use SysV init like Slackware, on the contrary, they can very well use OpenRC or S6.

If we continue to use an old version of elogind, I think we run the risk of elogind becoming incompatible with Slackware and its SysV init.

And then what? Will we follow Devuan and adopt S6 or Gentoo and its OpenRC? I don't think that staying in an old version of elogind is an option, in my humble opinion.
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration