Power-Management

void Linux upower 問題

  • February 11, 2022

我最近在三星 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

解決方案是添加dbus到服務中:ln -s /etc/sv/dbus /var/service/

引用自:https://unix.stackexchange.com/questions/688699