This problem still occurs under Oneric 11.10. When selecting the battery panel in g-p-s without the battery installed it will immediately crash. It will also crash when the battery is removed while the battery panel is being displayed.
Terminal output from running gnome-power-statistics directly with sudo:
(gnome-power-statistics:17367): PowerManager-WARNING **: failed to select
(gnome-power-statistics:17367): PowerManager-DEBUG: selected row is: /org/freedesktop/UPower/devices/battery_BAT0
**
PowerManager:ERROR:gpm-statistics.c:416:gpm_device_state_to_localised_string: code should not be reached
This problem still occurs under Oneric 11.10. When selecting the battery panel in g-p-s without the battery installed it will immediately crash. It will also crash when the battery is removed while the battery panel is being displayed. statistics directly with sudo:
Terminal output from running gnome-power-
(gnome- power-statistic s:17367) : PowerManager-DEBUG: got filename: ac-adapter; power-statistic s:17367) : PowerManager-DEBUG: got filename: gpm-battery- missing; gpm-battery- 000;battery- missing;
(gnome-
(gnome- power-statistic s:17367) : PowerManager- WARNING **: failed to select power-statistic s:17367) : PowerManager-DEBUG: selected row is: /org/freedeskto p/UPower/ devices/ battery_ BAT0 ERROR:gpm- statistics. c:416:gpm_ device_ state_to_ localised_ string: code should not be reached
(gnome-
**
PowerManager: