No "On Battery Power" tab after inserting battery

Bug #250172 reported by Ebuntor
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Jaunty by Sebastian

Bug Description

Binary package hint: gnome-power-manager

If Hardy, Gutsy or Feisty is booted without the battery connected to a laptop and the battery is later inserted while the system is running there is no "On Battery Power" tab shown in the Power Management Preferences. The only way to make the tab appear is to restart the Power Manager.

I found this problem in Hardy, Gutsy and Feisty.

Ebuntor (ebuntor)
description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Could you please attach the resulting log file of: gnome-power-bugreport.sh &> gpm.log to the report? You might also want to take a look to the Debugging instructions located at https://wiki.ubuntu.com/DebuggingGNOMEPowerManager for submit any other logs related to your problem.Thanks in advance.

Changed in gnome-power-manager:
status: New → Incomplete
Revision history for this message
Ebuntor (ebuntor) wrote :
Download full text (10.4 KiB)

Hi,

I added the gnome-power-bugreport.sh output and the gpm.log. For the gpm.log I entered this command: "gnome-power-manager --verbose --no-daemon 2>&1 | tee gpm.debug.log.txt" I hope that is the correct command.
The output says the battery is present which is incorrect.

The gnome-power-bugreport.sh output:

Distro version: DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
Kernel version: 2.6.24-21-generic
g-p-m version: 2.22.1
HAL version: 0.5.11rc2
System manufacturer: missing
System version: missing
System product: missing
AC adapter present: yes
Battery present: yes
Laptop panel present: yes
CPU scaling present: yes
Battery Information:
  battery.charge_level.current = 5 (0x5) (int)
  battery.charge_level.design = 7 (0x7) (int)
  battery.charge_level.last_full = 7 (0x7) (int)
  battery.charge_level.percentage = 71 (0x47) (int)
  battery.command_interface = 'csr' (string)
  battery.csr.has_res = false (bool)
  battery.csr.has_sms = false (bool)
  battery.csr.is_dual = false (bool)
  battery.is_rechargeable = true (bool)
  battery.present = true (bool)
  battery.type = 'mouse' (string)
GNOME Power Manager Process Information:
erwin 6863 0.0 0.6 30264 11704 ? Ss 12:32 0:00 gnome-power-manager --sm-config-prefix /gnome-power-manager-d47IWj/ --sm-client-id 117f000101000121377950700000066260004 --screen 0
HAL Process Information:
111 5970 0.0 0.2 6208 4336 ? Ss 12:32 0:01 /usr/sbin/hald
root 6035 0.0 0.0 3236 1060 ? S 12:32 0:00 \_ hald-runner
root 6047 0.0 0.0 2880 1012 ? S 12:32 0:01 \_ hald-addon-usb-csr: listening on 'MX1000 Laser Mouse'
root 6051 0.0 0.0 3312 1160 ? S 12:32 0:00 \_ /usr/lib/hal/hald-addon-cpufreq
111 6052 0.0 0.0 2204 900 ? S 12:32 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 6063 0.0 0.0 3300 1056 ? S 12:32 0:00 \_ hald-addon-input: Listening on /dev/input/event1 /dev/input/event3 /dev/input/event4 /dev/input/event5 /dev/input/event6
root 6082 0.0 0.0 3304 1040 ? S 12:32 0:03 \_ hald-addon-storage: polling /dev/scd0 (every 2 sec)

And the gpm.log:

[gpm_debug_init] gpm-debug.c:236 (15:47:10): Verbose debugging enabled
[main] gpm-main.c:219 (15:47:10): GNOME Power Manager 2.22.1
[gpm_ac_adapter_init] gpm-ac-adapter.c:217 (15:47:10): using /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ACAD
[gpm_control_init] gpm-control.c:657 (15:47:10): Using a supressed policy timeout of 5 seconds
[coldplug_buttons] gpm-button.c:446 (15:47:10): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_3
[coldplug_buttons] gpm-button.c:446 (15:47:10): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_2
[coldplug_buttons] gpm-button.c:446 (15:47:10): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_1
[coldplug_buttons] gpm-button.c:446 (15:47:10): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_0
[coldplug_buttons] gpm-but...

Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :

I can confirm this behaviour. If gnome-power-manager is started while the battery is not plugged in, then the "On Battery Power" tab never appears. However, G-P-M does seem to recognize the battery as the status icon is updated and the battery-related options now appear in the context menu. See g-p-m_nobat.txt

If, on the other hand, I start g-p-m while the battery is plugged in, the "On Battery Power" tab is permanently available. Even if I unplug the battery, the tab remains visible. See g-p-m_withbat.txt

lshal -m does not produce any output while (un)plugging the battery.

gnome-power-bugreport.sh (after restarting g-p-m with attached battery):
Distro version: DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"
Kernel version: 2.6.27-7-generic
g-p-m version: 2.24.0
HAL version: 0.5.11
System manufacturer: missing
System version: missing
System product: missing
AC adapter present: yes
Battery present: yes
Laptop panel present: yes
CPU scaling present: yes
Battery Information:
  battery.charge_level.current = 42368 (0xa580) (int)
  battery.charge_level.design = 47520 (0xb9a0) (int)
  battery.charge_level.last_full = 42422 (0xa5b6) (int)
  battery.charge_level.percentage = 99 (0x63) (int)
  battery.charge_level.rate = 0 (0x0) (int)
  battery.is_rechargeable = true (bool)
  battery.model = 'e00511301B34B240 1704' (string)
  battery.present = true (bool)
  battery.rechargeable.is_charging = false (bool)
  battery.rechargeable.is_discharging = false (bool)
  battery.reporting.current = 3923 (0xf53) (int)
  battery.reporting.design = 4400 (0x1130) (int)
  battery.reporting.last_full = 3928 (0xf58) (int)
  battery.reporting.rate = 0 (0x0) (int)
  battery.reporting.technology = 'Li-ion' (string)
  battery.reporting.unit = 'mAh' (string)
  battery.serial = ' 1704' (string)
  battery.technology = 'lithium-ion' (string)
  battery.type = 'primary' (string)
  battery.vendor = 'SMP-PAN-22/main' (string)
  battery.voltage.current = 12505 (0x30d9) (int)
  battery.voltage.design = 10800 (0x2a30) (int)
  battery.voltage.unit = 'mV' (string)
GNOME Power Manager Process Information:
pg 8382 0.1 0.6 225680 13660 ? Ss 16:05 0:00 gnome-power-manager
HAL Process Information:
107 5365 0.0 0.2 36268 4916 ? Ss 13:52 0:00 /usr/sbin/hald
root 5369 0.0 0.0 17932 1236 ? S 13:52 0:00 \_ hald-runner
root 5450 0.0 0.0 20048 1168 ? S 13:52 0:00 \_ hald-addon-input: Listening on /dev/input/event3 /dev/input/event6 /dev/input/event4 /dev/input/event5 /dev/input/event1
root 5460 0.0 0.0 20060 1148 ? S 13:52 0:00 \_ /usr/lib/hal/hald-addon-cpufreq
107 5461 0.0 0.0 16752 1040 ? S 13:52 0:00 \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 5472 0.0 0.0 20052 1176 ? S 13:52 0:00 \_ hald-addon-storage: polling /dev/sdb (every 2 sec)
root 5477 0.0 0.0 20052 1184 ? S 13:52 0:04 \_ hald-addon-storage: polling /dev/scd0 (every 2 sec)

Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :
Changed in gnome-power-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
jeff (jeff124578) wrote :

Just to note that I'm still seeing this bug in Karmic Koala.

Revision history for this message
Jason McVetta (jmcvetta) wrote :

I am seeing this behavior in Karmic, when booting with AC connected. Killing & restarting gnome-power-manager cures the problem.

Revision history for this message
martin (martin-madera) wrote :

Karmic, when booting with AC connected followed by disconnecting AC, there is no "On Battery" tab in Power Manager.

This is very annoying, because by default Karmic dims the laptop screen to a level I can only describe as barely-readable after a few seconds, and there is no way of adjusting this behaviour.

Revision history for this message
Oz123 (nahumoz) wrote :

It feels like a waste of time reporting bugs, if they are not attented anyway :-(

Today I installed ubuntu 10.10 on a blinea laptop. It came pre-installed with ubuntu 9.10 which was working perfectly on it.

Now, with 10.10 power management is just a joke. I the above bug, no tab of "on-battery-power" in gnome-power-manager.

I restarted gnome-power-manager, with
marie@marie-laptop:~$ ps aux | grep power
root 3711 0.0 0.1 8424 3324 ? S 15:32 0:00 /usr/lib/upower/upowerd
marie 4038 0.0 0.5 67900 11844 ? Sl 15:32 0:00 gnome-power-manager
marie 4391 0.7 0.5 67452 12068 ? Sl 15:38 0:00 gnome-power-preferences
marie 4394 6.5 2.2 198064 44620 ? Sl 15:38 0:03 gnome-help ghelp:gnome-power-manager?preferences
marie 4443 0.0 0.0 4224 852 pts/0 S+ 15:39 0:00 grep --color=auto power
marie@marie-laptop:~$ kill 4038

indeed, typing gnome-power-manager in terminal after that has allowed me, to access the "on-battery-power"....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.