View previous topic :: View next topic |
Author |
Message |
dschub n00b
Joined: 23 Nov 2011 Posts: 2
|
Posted: Wed Nov 23, 2011 11:13 am Post subject: xfce4-power-manager, upower with a logitech lx 500 |
|
|
Hi,
I'm running xfce 4.8, xfce4-power-manager 1.0.10, upower 0.9.14 and udev 171-r2 on a Lenovo X200s.
Whenever I plug in the receiver of my Logitech Cordless Desktop LX 500 (keyboard & mouse), xfce4-power-manager shows a single "missing" icon next to the battery icon in my systray. Upower seems to correctly identify the keyboard (but not the mouse), power-manager shows it in its settings dialogue, but with all power related information missing (i.e. "0").
I collected a bit of information that might help to identify the problem:
The output of xfce4-power-manager when I plug in the receiver
Code: |
# xfce4-power-manager --debug
TRACE[xfpm-main.c:200] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for power-save-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for enable-cpu-freq-control
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for change-brightness-on-key-events
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-sleep
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-off
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-ac-timeout
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-battery-timeout
TRACE[xfpm-power.c:1053] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:1053] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:1011] xfpm_power_add_device(): Battery device detected at : /org/freedesktop/UPower/devices/battery_BAT0: ((XfpmDeviceType) XFPM_DEVICE_TYPE_BATTERY)
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
(xfce4-power-manager:8902): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:179] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-battery.c:148] xfpm_battery_refresh_visible(): visible=TRUE: ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 4
TRACE[xfpm-power.c:1152] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1117] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-polkit.c:339] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:426] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:426] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1152] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1117] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-polkit.c:426] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.udisks.drive-set-spindown is authorized=TRUE
TRACE[xfpm-disks.c:170] xfpm_disks_get_is_auth_to_spin(): Is auth to spin down disks : 1
TRACE[xfpm-disks.c:147] xfpm_disks_set_spin_timeouts(): On Battery=0 spin_down_enabled=0 timeout=800
** (xfce4-power-manager:8902): DEBUG: Brightness controlled by xrandr, min_level=0 max_level=15
TRACE[xfpm-backlight.c:318] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:339] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 120
TRACE[xfpm-dpms.c:74] xfpm_dpms_set_timeouts(): Settings dpms: standby=0 suspend=600 off=900
TRACE[xfpm-power.c:1011] xfpm_power_add_device(): Battery device detected at : /org/freedesktop/UPower/devices/keyboard_6_1: ((XfpmDeviceType) XFPM_DEVICE_TYPE_KBD)
TRACE[xfpm-battery.c:148] xfpm_battery_refresh_visible(): visible=TRUE: ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-battery.c:284] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1152] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1117] xfpm_power_hide_adapter_icon(): Hide adaptor icon
|
The output of upower -d with the receiver plugged in
Code: |
# upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/ACPI0003:00/power_supply/AC
power supply: yes
updated: Tue Nov 22 22:30:39 2011 (0 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
vendor: SANYO
model: 42T4649
serial: 1655
power supply: yes
updated: Tue Nov 22 22:30:39 2011 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 47.36 Wh
energy-empty: 0 Wh
energy-full: 47.99 Wh
energy-full-design: 84.24 Wh
energy-rate: 0 W
voltage: 12.271 V
percentage: 98.6872%
capacity: 56.9682%
technology: lithium-ion
History (charge):
1321997439 0.000 unknown
History (rate):
1321997439 0.000 unknown
Device: /org/freedesktop/UPower/devices/keyboard_6_1
native-path: /sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1
vendor: Logitech, Inc.
model: Keyboard+Mouse Receiver
power supply: no
updated: Tue Nov 22 22:30:39 2011 (0 seconds ago)
has history: yes
has statistics: no
keyboard
present: yes
rechargeable: yes
state: discharging
percentage: 71.4286%
History (charge):
1321997439 0.000 unknown
History (rate):
1321997439 0.000 unknown
Daemon:
daemon-version: 0.9.14
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
is-docked: yes
|
The upower udev rule that is triggered (in /lib/udev/rules.d/95-upower-csr.rules):
Code: |
ATTR{idVendor}=="046d", ATTR{idProduct}=="c512", ENV{UPOWER_PRODUCT}="Keyboard+Mouse Receiver", ENV{UPOWER_BATTERY_TYPE}="keyboard"
|
The output of udev when I plug in the receiver
Code: |
# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1321982146.319609] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1 (usb)
KERNEL[1321982146.322757] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0 (usb)
KERNEL[1321982146.322787] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C512.001A (hid)
KERNEL[1321982146.337124] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input37 (input)
KERNEL[1321982146.337153] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input37/event12 (input)
KERNEL[1321982146.337176] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C512.001A/hidraw/hidraw0 (hidraw)
KERNEL[1321982146.337201] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1 (usb)
KERNEL[1321982146.337224] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/0003:046D:C512.001B (hid)
KERNEL[1321982146.372280] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38 (input)
KERNEL[1321982146.372330] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38/mouse1 (input)
KERNEL[1321982146.372354] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38/event13 (input)
KERNEL[1321982146.372377] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/0003:046D:C512.001B/hidraw/hidraw1 (hidraw)
UDEV [1321982146.372822] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1 (usb)
UDEV [1321982146.373917] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1 (usb)
UDEV [1321982146.373948] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0 (usb)
UDEV [1321982146.373974] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C512.001A (hid)
UDEV [1321982146.374423] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/0003:046D:C512.001B (hid)
UDEV [1321982146.375078] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C512.001A/hidraw/hidraw0 (hidraw)
UDEV [1321982146.375393] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/0003:046D:C512.001B/hidraw/hidraw1 (hidraw)
UDEV [1321982146.379632] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38 (input)
UDEV [1321982146.380804] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input37 (input)
UDEV [1321982146.397639] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38/mouse1 (input)
UDEV [1321982146.412338] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input38/event13 (input)
UDEV [1321982146.420557] add /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input37/event12 (input)
|
It seems to me that the problem is devided into
- upower not recognizing keyboard AND mouse (since it is only a single usb-device)
- xfce4-power-manager not using the "percentage" information it gets from upower
Any help appreciated |
|
Back to top |
|
|
dschub n00b
Joined: 23 Nov 2011 Posts: 2
|
Posted: Thu Nov 24, 2011 12:29 pm Post subject: |
|
|
Quote: |
It seems to me that the problem is devided into
- upower not recognizing keyboard AND mouse (since it is only a single usb-device)
- xfce4-power-manager not using the "percentage" information it gets from upower
|
Solved the second problem. Acutally, xfce4-power-manager simply constructed a wrong icon name. Filed a bug report. |
|
Back to top |
|
|
alexeicolin n00b
Joined: 22 Jan 2012 Posts: 1
|
Posted: Sun Jan 22, 2012 5:30 pm Post subject: |
|
|
dschub wrote: | Quote: |
It seems to me that the problem is devided into
- upower not recognizing keyboard AND mouse (since it is only a single usb-device)
- xfce4-power-manager not using the "percentage" information it gets from upower
|
Solved the second problem. Acutally, xfce4-power-manager simply constructed a wrong icon name. Filed a bug report. |
Thanks for the icon patch! Separately from the icon: do you actually see any percentage information for your mouse battery reported by xfce4-power-manager in a tooltip (like it is for the laptop battery)? Is the power-manager using the percentage info for the mouse at all? (Maybe it's showing the percentage by "filling" the icon? -- but I can't tell right away if that's the case from looking at it)
EDIT: while we wait for the official package update, a xfce4-power-manager package with the patch that fixes the icon can be quickly installed from ppa:alexei.colin/upower |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|