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-19-2024, 05:27 AM   #46
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled

...

Last edited by H1p8r10n; 04-19-2024 at 06:27 AM.
 
Old 04-19-2024, 06:03 AM   #47
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
Quote:
Originally Posted by ZhaoLin1457 View Post
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.
I found them both, and I won't blame slackware. I'll just swallow hard and install kde next time. Just because I install it doesn't mean I have to use it, does it? I should be able to fix that. And if Wayland boots instead of Xorg, I'll be dragged a bit further into the 21st century

In my defence, I opted for networkmanager on these installs. But my 'official' vpn package requires Systemd . So I gladly went back to rc scripts.
 
Old 04-19-2024, 06:27 AM   #48
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Quote:
Originally Posted by ZhaoLin1457 View Post
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.
At least here it solves all problems, as the only problem was NM

NetworkManager is not "restarted" by the hook.sh, so Firefox and Thunderbird, etc .. behave perfectly.

As far as I tested : this workaround is perfect.
 
Old 04-19-2024, 06:31 AM   #49
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by H1p8r10n View Post
At least here it solves all problems, as the only problem was NM

NetworkManager is not "restarted" by the hook.sh, so Firefox and Thunderbird, etc .. behave perfectly.

As far as I tested : this workaround is perfect.
I will test your solution tonight. I'm sorry, but now it's 7:30 pm for me and I have other things to do.

Last edited by ZhaoLin1457; 04-19-2024 at 06:34 AM.
 
Old 04-19-2024, 06:45 AM   #50
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Quote:
Originally Posted by ZhaoLin1457 View Post
I will test your solution tonight. I'm sorry, but now it's 7:30 pm for me and I have other things to do.
Yes, cool

The hook.sh basically sends a wake up dbus signal to NM, so what it does is just exactly what elogind should do.
 
Old 04-19-2024, 07:12 AM   #51
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Quote:
Originally Posted by H1p8r10n View Post
The hook.sh basically sends a wake up dbus signal to NM, so what it does is just exactly what elogind should do.
No, elogind does something different. He announces to anything interested (signal broadcast) that it is time to wake up. Including here the NetworkManager.

Code:
~ dbus-monitor --system "type='signal',sender='org.freedesktop.login1',interface='org.freedesktop.login1.Manager'"
... removed some noise messages ...
signal time=1713350818.151513 sender=:1.1 -> destination=(null destination) serial=340 path=/org/freedesktop/login1; interface=org.freedesktop.login1.Manager; member=PrepareForSleep
   boolean false
https://github.com/elogind/elogind/i...ent-2060986639

Last edited by ZhaoLin1457; 04-19-2024 at 07:31 AM.
 
Old 04-19-2024, 07:25 AM   #52
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
Here's what happens for me when trying the hook.sh script and elogind-255.4_r2 when suspending with Thunderbird running:
- NM reconnects to the wlan network
- Thunderbird seems to be alive, I can read old mails, but connection to server is down - can't get new mails or move mails to trash.

So it's about more than just waking up NM.

See crtlaltca's post at github.com/elogind:
https://github.com/elogind/elogind/i...ent-2060986639
 
1 members found this post helpful.
Old 04-19-2024, 07:31 AM   #53
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
@business_kid:

Did you try downgrading polkit to v123 (from slackware.uk/cumulative)?

For me, the shutdown menu and the powermanager settings disappear with elogind-252.23 and polkit-124 from the -current repo. But if I downgrade to polkit-123, everything's OK. Also with a polkit-124 rebuilt against elogind-252.23.
 
Old 04-19-2024, 08:22 AM   #54
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
Quote:
Originally Posted by kgha
@business_kid:

Did you try downgrading polkit to v123 (from slackware.uk/cumulative)?
I was on polkit-123, iirc. It wasn't from cumulative, but from Current of 2024-03-30. I only grabbed the polkit-124 package today. Screen saver is still misbehaving, as is suspend/poweroff in Mate. Anyhow, I'm not particularly inconvenienced by this, as I can get back to sddm, and shut down/reboot from there. It's not a laptop, so suspend & hibernate are moot points.

It's funny what you notice. I haven't compiled in a while, and noticed libdirs seem to be defaulting to /lib64 & /usr/lib64. Have people copped on to the wisdom of that idea?

EDIT: Another install from scratch is on the way, as this system is not kosher enough. I'm just waiting for these issues to go quiet. I'll install the iso, install mate as well, edit rc.4 to make sure kde doesn't show except as an absolute last resort .

Last edited by business_kid; 04-19-2024 at 08:29 AM.
 
Old 04-19-2024, 11:57 AM   #55
H1p8r10n
Member
 
Registered: Feb 2016
Location: on the border of milky way
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Quote:
Originally Posted by kgha View Post
Here's what happens for me when trying the hook.sh script and elogind-255.4_r2 when suspending with Thunderbird running:
- NM reconnects to the wlan network
- Thunderbird seems to be alive, I can read old mails, but connection to server is down - can't get new mails or move mails to trash.

So it's about more than just waking up NM.

See crtlaltca's post at github.com/elogind:
https://github.com/elogind/elogind/i...ent-2060986639

And that's why I called it "workaround" , not "fix"
 
Old 04-19-2024, 12:14 PM   #56
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327
Quote:
Originally Posted by H1p8r10n View Post
And that's why I called it "workaround" , not "fix"
How about to make dbus-send to send something like elogind do?

I talk about something like sending a DBUS signal with "destination=(null destination) path=/org/freedesktop/login1; interface=org.freedesktop.login1.Manager; member=PrepareForSleep boolean false"

Last edited by LuckyCyborg; 04-19-2024 at 12:18 PM.
 
Old 04-19-2024, 12:24 PM   #57
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 H1p8r10n View Post
And that's why I called it "workaround" , not "fix"
You even called it a perfect workaround that solves all problems



Quote:
Originally Posted by LuckyCyborg View Post
How about to make dbus-send to send something like elogind do?

I talk about something like sending a DBUS signal with "destination=(null destination) path=/org/freedesktop/login1; interface=org.freedesktop.login1.Manager; member=PrepareForSleep boolean false"
As I understand it, that's exactly what the elogind people are working at.
 
Old 04-19-2024, 12:32 PM   #58
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327
Quote:
Originally Posted by kgha View Post
As I understand it, that's exactly what the elogind people are working at.
Yup. You are right. That's exactly what the elogind people tries to teach elogind to do. Of course, in C/C++ as usual.

BUT, as @H1p8r10n demonstrated, we can send DBUS commands also from an elogind hook made in Bash, also at appropriate times.

So, why not to try to send exactly that missing DBUS signal via an elogind hook like this?

IF we manage to properly "fix" elogind 255.4-rX by using a hook, this will be also a nice proof that indeed the fix will be elogind sending that DBUS signal at appropriate times.

Last edited by LuckyCyborg; 04-19-2024 at 01:08 PM.
 
Old 04-19-2024, 01:40 PM   #59
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 LuckyCyborg View Post
Yup. You are right. That's exactly what the elogind people tries to teach elogind to do. Of course, in C/C++ as usual.

BUT, as @H1p8r10n demonstrated, we can send DBUS commands also from an elogind hook made in Bash, also at appropriate times.

So, why not to try to send exactly that missing DBUS signal via an elogind hook like this?

IF we manage to properly "fix" elogind 255.4-rX by using a hook, this will be also a nice proof that indeed the fix will be elogind sending that DBUS signal at appropriate times.
Brilliant suggestion. Unfortunately I haven't the necessary knowledge. Do you?
 
Old 04-19-2024, 02:08 PM   #60
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327Reputation: 3327
Quote:
Originally Posted by kgha View Post
Brilliant suggestion. Unfortunately I haven't the necessary knowledge. Do you?
I (will) do some experiments in that sense and I will share the results when I will get something consistent.

Unfortunately, right now I have one single computer sporting Slackware-current and (right) now it chews on a new build of Plasma6.

In fact, this HP Elite 8300 USDT (a mini-PC) is the single computer box which I have at disposition right now, excluding my old friend Core2 Duo laptop, because I am far away from home since the last Summer. Well, nothing special, just a (really) prolonged job trip for a geologist.
 
2 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 09:08 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