SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Actually, those versions are the ones tag as "stable" by gentoo
Again, this is a different thing than the kernel defaults - even the kernel prefers "deep" , the elogind still will prefer "s2idle" because reasons, unless instructed otherwise.
BTW, please note what configuration options he uses.
Last edited by LuckyCyborg; 04-15-2024 at 07:21 AM.
Again, this is a different thing than the kernel defaults - even the kernel prefers "deep" , the elogind still will prefer "s2idle" because reasons, unless instructed otherwise.
Yes, I understand now what you say. You are right. I just put it to sleep with 'echo mem>/sys/power/state' which used the kernel default 'deep'. But 'loginctl suspend' uses the elogind default 's2idle', and afterwards there is s2idle written in /sys/power/mem_sleep, too. So, elogind-daemon writes s2idle to /sys/power/mem_sleep just before it suspends the system.
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,080
Rep:
Can confirm that uncommenting the line SuspendMode=s2idle deep in /etc/elogind/sleep.conf.d/10-elogind.conf and change it to
SuspendMode=deep s2idle
gives the "proper" suspend behaviour. In my case I can also suspend/resume by closing/opening the laptop lid.
But the network issue remains...
Reverting to previous elogind and polkit versions is probably the best temporary measure. However, what also works (at least for me) if one wants to keep the latest versions, is to make appropriate adjustments in the abovemetioned .conf file and rebuild NetworkManager, editing line 136 in the slackware buildscript from
Code:
--with-suspend-resume=elogind \
to
Code:
--with-suspend-resume=upower \
If the LEDs on my laptop can be trusted, wifi goes down during suspend (as do bluetooth), but both are immediately alive after resume.
EDIT: I have to revoke this suggestion. It seems first to work fine, but I get issues with connections - if Thunderbird is running when resuming, connection with mail servers are broken and requires restarting Thunderbird.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.