在 Xubuntu 15.04 x64 上安装和卸载 kubuntu-desktop 软件包后出现电池指示器问题

在 Xubuntu 15.04 x64 上安装和卸载 kubuntu-desktop 软件包后出现电池指示器问题

几周前,我决定冒险一下,在运行 Xubuntu 的 Lenovo T420 上安装不同的界面。在尝试后我决定放弃 Kubuntu(只是不是我的风格)并保留 Xubuntu 和 Ubuntu 与 Unity。完成此操作后,我注意到出现了一个问题:当我将笔记本电脑插入为其购买的联想基站时,电池充电指示灯不再正常工作。据我所知,它仍然通过底座充电,就像我使用接口包之前一样。当我使用电源线时,它似乎注意到充电水平的变化,但这样做并不可靠。如果我在插入电源线(而不是在底座上)的情况下取出电池,打开计算机,然后将电池放回原位,电量差异将开始显示在系统托盘中的电池指示器图标中。

无论我使用 XFCE 的电池指示器还是 Unity 中的电池指示器,都会发生这种情况。我在这里发现了一个类似的话题,但那是在 Debian 和不同版本的 XFCE 上。

我最终可能会重新安装 Xubuntu 15.10 或 16.04 版本,这应该可以解决这个问题,但与此同时,我能做些什么来解决这个问题?

编辑:

从运行中添加此日志记录xfce4-power-manager --debug

TRACE[xfpm-main.c:192] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:631] xfpm_xfconf_init(): lock screen TRUE
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for show-tray-icon
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:164] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-polkit.c:314] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:957] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:915] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:957] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:915] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:925] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:6283): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-power.c:213] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:406] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:1448] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1448] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1448] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1448] xfpm_update_blank_time(): Timeout: 15
TRACE[xfpm-manager.c:556] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:6283): xfce4-power-manager-WARNING **: Unable to set the kernel brightness switch parameter to 0.
TRACE[xfpm-backlight.c:259] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:280] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 120

(xfce4-power-manager:6283): xfce4-power-manager-WARNING **: Failed to get keyboard max brightness level : Method "GetMaxBrightness" with signature "" on interface "org.freedesktop.UPower.KbdBacklight" doesn't exist

TRACE[xfpm-polkit.c:251] xfpm_polkit_free_data(): Destroying Polkit data
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging
TRACE[xfpm-battery.c:189] xfpm_battery_refresh_icon(): Battery state 1
TRACE[xfpm-battery.c:240] xfpm_battery_refresh_icon(): Battery icon xfpm-primary-060-charging

答案1

看起来你的UPower坏了。

Xfpm4 通过 dbus 对来自 UPower 的信号做出反应来调整图标。就是这样。如果 UPower 没有以正确的方式传达这一点,xfpm4 对此无能为力。最好请您的经销商解决此问题。

相关内容