몇 주 전에 저는 위험을 감수하고 Xubuntu를 실행하는 Lenovo T420에 다른 인터페이스를 설치하기로 결정했습니다. 시도해 본 후 저는 Kubuntu를 버리고(내 스타일은 아님) Xubuntu와 Ubuntu를 Unity와 함께 유지하기로 결정했습니다. 이 작업을 수행한 후 문제를 발견했습니다. 노트북을 구입한 Lenovo 베이스 스테이션에 연결하면 배터리 충전 표시등이 더 이상 제대로 작동하지 않습니다. 내가 아는 한, 인터페이스 팩을 사용하기 전과 마찬가지로 여전히 베이스를 통해 충전됩니다. 코드를 사용할 때 충전 수준의 변화를 알아차리는 것 같지만 안정적이지는 않습니다. 전원 코드가 연결된 상태에서(도크가 아닌) 배터리를 제거하고 컴퓨터를 켠 다음 배터리를 다시 넣으면 충전 차이가 시스템 트레이의 배터리 측정기 아이콘에 표시되기 시작합니다.
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는 이에 대해 아무 것도 할 수 없습니다. 이 문제를 해결하려면 대리점에 문의하는 것이 가장 좋습니다.