Solved Unwanted Console Messages in Tmux

Hello,

Original thread is here Thread 64426

I decided to make a new thread with the correct title and category.

When i plugin my charger im receiving unwanted console messages in Tmux (Only tmux that i can find.)

For example:
Code:
Broadcast Message from root@Thinkpad
       (no tty) at 20:39 CET...

Warning: Battery is at -1 minutes.


Broadcast Message from root@Thinkpad
       (no tty) at 20:40 CET...

Warning: Battery is at -1 minutes.

My question is simple is there a way to track these down and stop them from broadcasting,
if not is there a way to just block them

What i've done to resolve this:
/etc/syslog.conf
Code:
*.err;kern.warning;auth.notice;mail.crit       /var/log/console.log
The default is to log to /dev/console
This had no success.

I've also tried to mess with mesg n but this didn't work either.

Here is my full /etc/rc.conf
Code:
clear_tmp_enable="YES"
syslogd_flags="-ss"
#sendmail_enable="NONE"

# Networking
hostname="Thinkpad"
ifconfig_em0="DHCP"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP country NL"

# NTPd
ntpd_enable="YES"
ntpdate_flags="-u pool.ntp.org"

powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"


nfs_client_enable="NO"
rpc_statd_enable="NO"
rpc_lockd_enable="NO"

# Devd
devd_enable="YES"
devfs_system_ruleset="system"

# X11
dbus_enable="YES"
hald_enable="YES"
cupsd_enable="YES"
slim_enable="YES"

kld_list="i915kms"
# Webcam
webcamd_enable="YES"
webcamd_custom_flags_0="-d ugen1.4"
webcamd_user="yosique"
webcamd_group="yosique"

# Trankpoint/mouse
moused_enable="YES"

# Bluetooth
hcsecd_enable="YES"
sdpd_enable="YES"

My /etc/syslog.conf
Code:
# $FreeBSD: releng/11.1/etc/syslog.conf 308721 2016-11-16 07:04:49Z bapt $
#
#   Spaces ARE valid field separators in this file. However,
#   other *nix-like systems still insist on using tabs as field
#   separators. If you are sharing this file between systems, you
#   may want to use only tabs as field separators here.
#   Consult the syslog.conf(5) manpage.
*.err;kern.warning;auth.notice;mail.crit       /var/log/console.log
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
security.*                   /var/log/security
auth.info;authpriv.info               /var/log/auth.log
mail.info                   /var/log/maillog
lpr.info                   /var/log/lpd-errs
ftp.info                   /var/log/xferlog
cron.*                       /var/log/cron
!-devd
*.=debug                   /var/log/debug.log
*.emerg                       /var/log/console.log
# uncomment this to log all writes to /dev/console to /var/log/console.log
# touch /var/log/console.log and chmod it to mode 600 before it will work
console.info                   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*                       /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*                       @loghost
# uncomment these if you're running inn
# news.crit                   /var/log/news/news.crit
# news.err                   /var/log/news/news.err
# news.notice                   /var/log/news/news.notice
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice                   /var/log/devd.log
!ppp
*.*                       /var/log/ppp.log
!*
include                       /etc/syslog.d
include                       /usr/local/etc/syslog.d
 
My ~/.tmux.conf
Code:
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
 
Hi there,

I am handling with exactly the same problem on different devices.

Yosi: Have you found anything new expect to installing the system freshly without destkop-installer?

I tried all steps in the origininal post (chaning the script, changing the execution rights), and I even deleted the battery-suhtdown.sh

There is no change at all, so maybe the link to the script is broken?

Edit: I tried to deactivate all daemons in rc.conf, but there was also no change.

What I recognized during bootup, there is a call of /sbin/sysctl - n hw.acpi.battery.time which throws the message.
Can I deactivate this module somehow?

Best regards,
Sebastian
 

Attachments

  • plugged in.jpg
    plugged in.jpg
    1.6 MB · Views: 194
  • unplugged.jpg
    unplugged.jpg
    1.6 MB · Views: 162
Last edited:
Back
Top