Re: Mensaje de acpid al cambiar a una terminal tty
El día 30 de octubre de 2013 09:41, Camaleón <noelamac@gmail.com> escribió:
> El Tue, 29 Oct 2013 20:10:17 -0430, Juan Lavieri escribió:
>
>> El 29/10/13 19:39, Marcos Delgado escribió:
>>> Buenas noches.
>>> Cuando se cambia cambia del entorno gráfico a modo de texto aparece un
>>> mensaje de acpid que hace molesto escribir, por ejemplo al introducir
>>> el nombre de usuario y la contraseña.
>>> Aparece un mensaje como el siguiente:
>>> acpid: client 3151[0:0] has disconnected.
>>>
>>> En computadoras con Debian estable. He buscado en Internet y no he
>>> encontrado como solucionar esto. Si me pudieran dar una pista se los
>>> agradeceré.
>>
>> Como no:
>>
>> http://lmgtfy.com/?q=acpid%3A+client+%20has+disconnected
>
> :-)
>
> Añado:
>
> acpid log message is too noise
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615569
>
> Saludos,
>
> --
> Camaleón
>
>
Primero
Gracias por recomendarme usar google, me siento tan bien por ese
mensaje. Supremo, de verdad. Si ven manchas de agua en su pantalla son
lágrimas de agradecimiento.
Segundo
El tipo que cierra el bug argumenta que acpid no muestra mensajes a
menos que se le ponga la opción "-d" Cita textual:
acpid does not log to the console unless you force it to by using the '-d'
option. You might see those messages too if you configure syslog to write to
the console, but then you probably get more messages that just the ones from
acpid.
Busco como puede ser que acpid tenga esa opción marcada y no la hay:
# find /etc/ -iname acpid
/etc/default/acpid
/etc/init.d/acpid
more /etc/default/acpid
# Options to pass to acpid
#
# OPTIONS are appended to the acpid command-line
#OPTIONS=""
# Linux kernel modules to load before starting acpid
#
# MODULES is a space seperated list of modules to load, or "all" to load all
# acpi drivers, or commented out to load no module
#MODULES="battery ac processor button fan thermal video"
#MODULES="all"
more /etc/init.d/acpid
#!/bin/sh
### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# X-Start-Before: kdm gdm3 xdm
# X-Stop-After: kdm gdm3 xdm
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start the Advanced Configuration and Power Interface daemon
# Description: Provide a socket for X11, hald and others to multiplex
# kernel ACPI events.
### END INIT INFO
set -e
ACPID="/usr/sbin/acpid"
DEFAULTS="/etc/default/acpid"
# Check for daemon presence
[ -x "$ACPID" ] || exit 0
OPTIONS=""
MODULES=""
# Include acpid defaults if available
[ -r "$DEFAULTS" ] && . "$DEFAULTS"
# Get lsb functions
. /lib/lsb/init-functions
# As the name says. If the kernel supports modules, it'll try to load
# the ones listed in "MODULES".
load_modules() {
[ -f /proc/modules ] || return 0
if [ "$MODULES" = "all" ]; then
MODULES="$(sed -rn 's#^(/lib/modules/[^/]+/)?kernel/(drivers|ubuntu)/acp
i/([^/]+/)*(.*)\.ko:.*#\4#p' "/lib/modules/$(uname -r)/modules.dep")"
fi
if [ -z "$MODULES" ]; then
return
fi
log_begin_msg "Loading ACPI kernel modules..."
# work around a bug in initramfs which leaks this env var Launchpad #291619
# and a bug in modprobe --all --quiet which doesn't load all modules and
# exits with non-zero exit status Debian #504088
unset MODPROBE_OPTIONS
modprobe --all --use-blacklist $MODULES 2>/dev/null
log_end_msg $?
}
case "$1" in
start)
load_modules || true
log_begin_msg "Starting ACPI services..."
start-stop-daemon --start --quiet --oknodo --exec "$ACPID" -- $OPTIONS
log_end_msg $?
;;
stop)
log_begin_msg "Stopping ACPI services..."
start-stop-daemon --stop --quiet --oknodo --retry 2 --exec "$ACPID"
log_end_msg $?
;;
restart)
$0 stop
sleep 1
$0 start
;;
reload|force-reload)
log_begin_msg "Reloading ACPI services..."
start-stop-daemon --stop --signal 1 --exec "$ACPID"
log_end_msg $?
;;
status)
status_of_proc "$ACPID" acpid
;;
*)
log_success_msg "Usage: /etc/init.d/acpid {start|stop|restart|reload|force-r
eload|status}"
exit 1
esac
No creo que exista ningún syslog en el sistema:
ps aux | grep -i sysl
116 3763 0.0 0.5 98692 5524 ? S<l 13:47 0:00
/usr/bin/pulseaudio --start --log-target=syslog
dpkg -l | grep -i sysl
nada
find /etc/ -iname sysl
nada
Pero el mensaje sigue apareciendo.
En fin, gracias por leerme.
Saludos.
Marcos Delgado.
Reply to: