无效的 Linux upower 问题

无效的 Linux upower 问题

我最近在三星 NC10 上网本中安装了 voidlinux。我安装了LxQT,但启动LxQT后找不到电池。从问题来看,似乎upower无法正确启动。如果我运行,/usr/libexec/upowerd我会收到以下消息:

(upowerd:4419): GLib-GIO-CRITICAL **: 10:07:48.902: g_dbus_proxy_get_connection: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(upowerd:4419): GLib-GIO-CRITICAL **: 10:07:48.903: g_dbus_connection_signal_subscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(upowerd:4419): GLib-GIO-CRITICAL **: 10:07:48.903: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(upowerd:4419): UPower-Linux-WARNING **: 10:07:48.903: Could not acquire inhibitor lock: Unknown reason

(upowerd:4419): GLib-GIO-CRITICAL **: 10:07:48.905: g_dbus_proxy_get_connection: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(upowerd:4419): GLib-GIO-CRITICAL **: 10:07:48.905: g_dbus_connection_signal_unsubscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

如果我尝试运行,upower我会得到:

(upower:8422): UPower-WARNING **: 10:14:12.323: Cannot connect to upowerd: No se pudo conectar: No existe el fichero o el directorio

这很奇怪,因为upowerd它存在于系统中。我已经尝试重新安装这些软件包,但仍然遇到同样的问题。系统是最新的,我正在使用内核5.15.17_1

答案1

dbus解决方案是在服务中添加:ln -s /etc/sv/dbus /var/service/

相关内容