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-17-2024, 01:02 PM   #31
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082

Quote:
Originally Posted by LuckyCyborg View Post
And how you explain the issues with the initial release of 255.4 (without ulterior patches) ?

I for one I believe that an explanation could be that this issue introduced by that patch is in fact the second one (but having a similar behavior) , as speculated by Zhao Lin there:

https://www.linuxquestions.org/quest...ml#post6496630

For what is worth, I have just tested the elogind-255.4 (without -rX) and it presents a similar flawed behavior.
They are saying the same thing, right?

crtlaltca:
252.23 is good, any new version is broken (252.23-r1, 255.4-*)

ZhaoLin:
Someone to tell that gentleman that elogind 252.23-r1 is also affected

Here, I can confirm that 252.23 is good except for Zombie process (I initialy reported)

Last edited by marav; 04-17-2024 at 01:04 PM.
 
1 members found this post helpful.
Old 04-17-2024, 02:50 PM   #32
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Just want to say thanks to all the folks who are in that bug report and are contributing good info. It makes the opensource community a better place.

I had spun up a Slackware-Live usb to pick away at the problem too but haven't had much time to contribute toward it. All I can note for now is that I've probed and monitored NetworkManager with the nmcli tool and noticed that after suspend it goes to sleep and never returns, where-as with the older elogind version on current it just works. Also NetworkManager's status after resuming from suspend still reports 'asleep'. (I'd post the cut and paste the nmcli status and whatnot from the terminal but that liveslack usb is at work and I'm at home, oops.)

My next thought was to look at the session dbus to see what's going on between elogind and NetworkManager, but it looks like ctrlaltca's already looked and confirmed there is no resume from sleep sent. Hopefully the code maintainer can figure out how to correct the behavior now that he has a place to check.

What'll come first, a 255.4-r4 upgrade, or a downgrade in elogind from Pat? ;-)
 
Old 04-17-2024, 02:53 PM   #33
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by 0XBF View Post
What'll come first, a 255.4-r4 upgrade, or a downgrade in elogind from Pat? ;-)
Code:
This branch is feeling a bit alpha to me, but we'll stick with it for now.
 
Old 04-17-2024, 03:28 PM   #34
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Quote:
Originally Posted by marav View Post
Code:
This branch is feeling a bit alpha to me, but we'll stick with it for now.
So then Pat:
a) doesn't use NetworkManager
b) doesn't suspend his -current machine(s)
c) thinks '/etc/rc.d/rc.networkmanager restart' for a while longer is fine

Always fun to figure out 'The Plan'.

For now my day-to-day laptop that runs current is going to keep elogind downgraded.
 
Old 04-17-2024, 03:56 PM   #35
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,366

Rep: Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082Reputation: 4082
Quote:
Originally Posted by 0XBF View Post
So then Pat:
a) doesn't use NetworkManager
b) doesn't suspend his -current machine(s)
c) thinks '/etc/rc.d/rc.networkmanager restart' for a while longer is fine

Always fun to figure out 'The Plan'.

For now my day-to-day laptop that runs current is going to keep elogind downgraded.
Or:
He uses a very stable version of Slackware, named 15.0 and only uses -current for what it's supposed to be: a development pre-release of the next stable
 
2 members found this post helpful.
Old 04-17-2024, 03:59 PM   #36
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472Reputation: 8472
Quote:
Originally Posted by 0XBF View Post
So then Pat:
a) doesn't use NetworkManager
b) doesn't suspend his -current machine(s)
c) thinks '/etc/rc.d/rc.networkmanager restart' for a while longer is fine

Always fun to figure out 'The Plan'.

For now my day-to-day laptop that runs current is going to keep elogind downgraded.
I'm suffering along with all of you, thanks.
 
5 members found this post helpful.
Old 04-17-2024, 04:02 PM   #37
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,505

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by 0XBF View Post
So then Pat:
a) doesn't use NetworkManager
b) doesn't suspend his -current machine(s)
c) thinks '/etc/rc.d/rc.networkmanager restart' for a while longer is fine

Always fun to figure out 'The Plan'.

For now my day-to-day laptop that runs current is going to keep elogind downgraded.
BTW, that (c) of yours does not always work. At least with my computers does NOT work at all. So, I do a nice reboot.

And, no offense intended but I believe that this suspend/hibernate seems kinda overrated. You can live well without ever suspending your computer.

Anyway, the suspend/hibernate never worked for me until recently - so far until rising of kernel 4.x

Last edited by LuckyCyborg; 04-17-2024 at 04:38 PM.
 
2 members found this post helpful.
Old 04-17-2024, 05:43 PM   #38
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 766

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
Quote:
Originally Posted by marav View Post
Or:
He uses a very stable version of Slackware, named 15.0 and only uses -current for what it's supposed to be: a development pre-release of the next stable
Indeed. I use 15.0 on my main rig as-well. I also maintain a number of SBo builds and use -current to test out what I can all upgrade for the next release to cut down on that work for when it happens. I'm well aware of the risks and happy to help out when I have time. It also helps to keep me up-to-date with Slackware development.

Quote:
Originally Posted by volkerdi View Post
I'm suffering along with all of you, thanks.
My post was a bit of 'tongue in cheek' sarcasm, though that doesn't always translate via text. I realized afterward you've got this tied in with that libgudev upgrade and backing out now is going to be messier than just a simple downgrade of elogind. I'm sure its a headache for you as well. Looking forward to testing 255.4-r3!

Last edited by 0XBF; 04-18-2024 at 03:53 PM. Reason: It should actually be r3. Lets hope we dont need r4
 
3 members found this post helpful.
Old 04-18-2024, 11:46 PM   #39
Pixxt
Member
 
Registered: May 2008
Distribution: Slackware, Debian,
Posts: 284

Rep: Reputation: 185Reputation: 185
Glad I decided to peek into this thread.

I was having trouble with suspend/wake since last week. I just got a new GPU card and thought I was running into a string of bad kernels or bad hardware turns out it was this little darn program causing me so much grief. After testing my new setup with Windows and seeing everything was working fine there I was ready to make a kernel bugzilla report. A slackpkg-upgrade and all is fine again mostly.
 
Old 04-19-2024, 04:15 AM   #40
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,310

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
I'm now on polkit 252.23 & polkit-124, but I still have no 'poweroff' option in mate. I haven't bothered to test the screensaver. I presume it's a no-go.

Is there a way where I can do a mass downgrade with 'upgradepkg?' I still have current of 2024-03-24. I installed everything here except emacs, the Howtos & kde. I'm interested in trying a downgrade instead of an upgrade.

But rebuilding elogind failed for the lack of auditd, and polkit for the lack of duktape.h. If they're just compile time dependencies, fine. But if they're used in runtime, I could be making very tricky issues for myself.
 
Old 04-19-2024, 04:39 AM   #41
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by business_kid View Post
I'm now on polkit 252.23 & polkit-124, but I still have no 'poweroff' option in mate.
As mentioned earlier in this thread ( https://www.linuxquestions.org/quest...ml#post6496580 ), you have two options if you want to keep elogind-252.23:
- downgrade polkit to version 123, or
- rebuild polkit-124 with elogind-252.23 installed.

This because the polkit-124 in slackware -current repo was compiled after and thus against the elogind upgrade to v255.4.

Last edited by kgha; 04-19-2024 at 04:42 AM.
 
Old 04-19-2024, 05:05 AM   #42
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Hi,

Here's a probably almost clean workaround , waiting for the elogind bug to be fixed upstream.

All the best


/lib64/elogind/system-sleep/hook.sh


Code:
#!/bin/bash
# Copyright Jean-Philippe Guillemin <jpguillemin@sfr.fr>. This program is free software;
# you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version. Please take a look at http://www.gnu.org/copyleft/gpl.htm

case $1/$2 in
	pre/*)
		for i in $( bluetoothctl devices | cut -f2 -d " " ); do 
			bluetoothctl info "$i" | grep -q "Connected: yes" && bluetoothctl disconnect "$i" && echo "$i" > /tmp/.last-bt-device	
		done
		;;
	post/*)
		if [ -e /tmp/.last-bt-device ]; then
			bluetoothctl connect "$(cat /tmp/.last-bt-device)"
			rm -f /tmp/.last-bt-device
		fi
                dbus-send --system --reply-timeout=120000 \
                --type=method_call --dest='org.freedesktop.NetworkManager' \
                '/org/freedesktop/NetworkManager' \
                org.freedesktop.NetworkManager.Sleep boolean:false
		;;
esac
Now using elogingd 255 / pk124 here
 
2 members found this post helpful.
Old 04-19-2024, 05:11 AM   #43
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,023

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Quote:
Originally Posted by business_kid View Post
But rebuilding elogind failed for the lack of auditd, and polkit for the lack of duktape.h. If they're just compile time dependencies, fine. But if they're used in runtime, I could be making very tricky issues for myself.
Both packages compile perfectly in a complete and updated installation of Slackware-current.

Please don't blame Slackware for the problems caused by the fact that you are using a partial installation.

Last edited by ZhaoLin1457; 04-19-2024 at 05:19 AM.
 
Old 04-19-2024, 05:15 AM   #44
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,023

Rep: Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211Reputation: 1211
Quote:
Originally Posted by H1p8r10n View Post
Hi,

Here's a probably almost clean workaround , waiting for the elogind bug to be fixed upstream.

All the best


/lib64/elogind/system-sleep/hook.sh


Code:
#!/bin/bash
# Copyright Jean-Philippe Guillemin <jpguillemin@sfr.fr>. This program is free software;
# you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version. Please take a look at http://www.gnu.org/copyleft/gpl.htm

case $1/$2 in
	pre/*)
		for i in $( bluetoothctl devices | cut -f2 -d " " ); do 
			bluetoothctl info "$i" | grep -q "Connected: yes" && bluetoothctl disconnect "$i" && echo "$i" > /tmp/.last-bt-device	
		done
		;;
	post/*)
		if [ -e /tmp/.last-bt-device ]; then
			bluetoothctl connect "$(cat /tmp/.last-bt-device)"
			rm -f /tmp/.last-bt-device
		fi
                dbus-send --system --reply-timeout=120000 \
                --type=method_call --dest='org.freedesktop.NetworkManager' \
                '/org/freedesktop/NetworkManager' \
                org.freedesktop.NetworkManager.Sleep boolean:false
		;;
esac
Now using elogingd 255 / pk124 here
I think there are other programs or services that need to be informed about the wake up. So we would need a broadcast call.

For example, pages opened by Firefox or Thunderbird will behave strangely, even if NetworkManager is restarted.
 
1 members found this post helpful.
Old 04-19-2024, 05:25 AM   #45
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,071

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
ZhaoLin1457 is right: even if the hook.sh script makes networkmanager to wake up and connect after resume, Thunderbird (if open when suspending) doesn't work properly after resume but needs restarting.
 
  


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 09:48 AM.

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