Belated thanks to TJ for that good analysis. I see two things going wrong here. First, "(not present)" should only be used for internal batteries; peripherals that aren't present shouldn't be shown at all. There are thousands of possible chargeable devices not present on your PC, so I don't know why the menu is singling out a mouse and a keyboard here! But I hadn't made that explicit in the specification, so I've done that now. <https://wiki.ubuntu.com/Power?action=diff&rev2=50&rev1=49>
Second, even when the menu does contain a "(not present)" component, it shouldn't end up as the primary device when any other devices are charging or discharging. Both of those should be fixed, but if *either* was fixed, Stephen wouldn't have experienced the bug. Peter, thanks for the proposal, but I don't think that would solve the problem. If someone connected their notebook to power and removed its battery, with your alternative they'd still see "not present" in the menu bar even when something more urgent was going on, like a wireless keyboard about to expire. ** Changed in: indicator-power (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of DX Packages, which is subscribed to indicator-power in Ubuntu. https://bugs.launchpad.net/bugs/1100546 Title: Power indicator favours 'not present' mouse over laptop battery level Status in The Power Indicator: New Status in “indicator-power” package in Ubuntu: Triaged Bug description: The power indicator shows the battery level for cordless mice and keyboards, even when it cannot identify the battery level. This is a problem as it seems to favour showing a "not present" mouse status over the laptop battery level in the top bar. I haven't done a good job of explaining it, so check out the screenshot - it will explain all :) Basically, the laptop battery should be shown in the top bar if the mouse/keyboard is "not present". Also hiding the mouse and keyboard when the battery level is unknown would also be useful too :) ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: indicator-power 12.10.6daily12.11.21.1-0ubuntu1 ProcVersionSignature: Ubuntu 3.8.0-0.3-generic 3.8.0-rc3 Uname: Linux 3.8.0-0-generic x86_64 ApportVersion: 2.8-0ubuntu1 Architecture: amd64 Date: Thu Jan 17 10:11:16 2013 InstallationDate: Installed on 2012-12-14 (33 days ago) InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20121214) MarkForUpload: True SourcePackage: indicator-power UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/indicator-power/+bug/1100546/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp