LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2024, 02:26 PM   #1
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
elogind 255.4 ignores HandlePowerKey option


..at least that's what seems to be happening.
I have had
Code:
HandlePowerKey=suspend-then-hibernate
for a long time but after updating today the power key just powers off which is the default.
No error messages are shown in the logs, the only thing I see is
Code:
Apr 13 18:20:37 elogind-daemon[1213]: Power key pressed short.
Apr 13 18:20:37 elogind-daemon[1213]: Powering off...
Apr 13 18:20:37 elogind-daemon[1213]: System is powering down.
So it looks like elogind is actually still handling the power key, but just using the default value instead of what is in /etc/elogind/logind.conf
 
Old 04-13-2024, 02:49 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,325

Rep: Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330Reputation: 2330
There's a bugfix release elogind-255.4-r1 that fixes stuff. This thread applies
 
Old 04-13-2024, 03:52 PM   #3
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
I did see that -r1 release on github but the changes didn't seem to apply to my problem so I didn't build it. I just built it now though, and it doesn't fix the problem.
I downloaded and built 252.23-r1 from github and built that, and now my config works again - but after resume the network is broken.

From the 255.4 changelog 3 days ago:
Quote:
The sleep/hibernation part has its own sleep.conf now.
I guess that is what caused the problem. So I need to figure out if it's a bug in elogind or do I just need to update my config
Although that is sleep.conf, but the setting is from logind.conf.
~~Maybe I just need to move it.....~~ Nope, moving the settings to sleep.conf just give a warning that the key is not recognized in the Sleep section.

Last edited by af7567; 04-13-2024 at 04:01 PM.
 
Old 04-14-2024, 07:38 AM   #4
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
It looks like logind.conf and logind.conf.d don't get parsed at all in version 255.4. Even if I put incorrect values in the files elogind doesn't complain. It only mentions the sleep.conf files.
 
Old 04-14-2024, 08:35 AM   #5
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
I have found the difference between reading logind.conf and sleep.conf files. When reading logind.conf it prepends PKGSYSCONFDIR to the logind.conf file name which prevents it from finding it. Not sure if this is a problem with the slackbuild or a bug in the code.
I added
Code:
sed -i 's#logind_conf = PKGSYSCONFDIR "/#logind_conf = "#' src/login/logind-core.c
To the SlackBuild and then it reads the config OK.

I have opened an issue here: https://github.com/elogind/elogind/issues/279

Last edited by af7567; 04-14-2024 at 08:42 AM.
 
4 members found this post helpful.
Old 04-16-2024, 09:07 AM   #6
af7567
Member
 
Registered: Nov 2012
Posts: 293

Original Poster
Rep: Reputation: 106Reputation: 106
The patch to fix reading of logind.conf has been applied to elogind upstream now which fixes this issue
 
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
Safe to block 255.255.255.255? throes Linux - Networking 3 05-06-2012 02:27 PM
What is this -> SRC=0.0.0.0 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=128 ID carves Linux - Networking 5 08-17-2008 09:26 PM
Are Broadcasts to 255.255.255.255 Routed MQMan Linux - Networking 6 11-23-2005 02:16 PM
Logs full of hits to 255.255.255.255; how to stop logging? mac_phil Mandriva 2 02-23-2004 10:25 AM
UDP broadcast 255.255.255.255 java8964 Linux - Networking 0 10-29-2003 02:05 PM

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

All times are GMT -5. The time now is 05:23 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