Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

get rid of broadcast to all terminals when suspending?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
jmbreuer
n00b
n00b
Posts: 26
Joined: Wed Sep 07, 2011 9:22 am
Contact:
Contact jmbreuer
Website

get rid of broadcast to all terminals when suspending?

  • Quote

Post by jmbreuer » Tue Aug 30, 2022 6:14 pm

Since some recent updates, suspending (usually to RAM) my system from KDE/Plasma will print a wall message to any and all shells/terminals/ssh logins/... on the machine, like this:

Code: Select all

Broadcast message from user@host (Fri 2022-08-26 12:30:13 CEST):

The system is going down for suspend NOW!
While I appreciate that this may be a useful thing to have in some scenarios, for me it's mostly an annoyance - top/watch/... like stuff in terminals gets unnecessarily corrupted, and the message contains a bell character so the system will go into suspend while at the same time trying to play the bell sample, which causes it to be distorted/interrupted and unnecessarily startling. And/or cause the bell alert to be played on other machines that happen to have a shell open on mine.

How/where does this message originate, and how/where do I configure what, when and where it's sent?
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Tue Aug 30, 2022 6:18 pm

I think coming from

Code: Select all

sys-auth/elogind
Maybe try

Code: Select all

busctl get-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager EnableWallMessages

and if true run

sudo busctl set-property org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager EnableWallMessages b false
from
https://bbs.archlinux.org/viewtopic.php?id=276700
A better approach is to set

Code: Select all

BroadcastSuspendInterrupts=no
in

Code: Select all

/etc/elogind/logind.conf
see

Code: Select all

man loginctl
:)
Top
jmbreuer
n00b
n00b
Posts: 26
Joined: Wed Sep 07, 2011 9:22 am
Contact:
Contact jmbreuer
Website

  • Quote

Post by jmbreuer » Thu Sep 01, 2022 7:58 am

Thank you very much, alamahant!

This got me in the right direction for sure.

My system's running sys-apps/systemd, not sys-auth/elogind. Currently, in systemd it's not a configurable option (surprise, surprise...), but apparently it's been patched out in newer versions again:

https://github.com/systemd/systemd/issues/23520

The busctl approach works well though (needs to be run as root). I'll see if I can wrap that command up as a systemd unit that will run "late enough" to be effective.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic