Ticket #46 (closed defect: duplicate)

Opened 5 years ago

Last modified 4 years ago

Frame: Missing Battery not represented

Reported by: mungewell Owned by: marcopg
Priority: Low Milestone: 0.84
Component: sugar Version: 0.83.x
Severity: Minor Keywords:
Cc: Distribution/OS: Ubuntu
Bug Status: New

Description

The battery icon in the frame has no way of representing a missing or defective battery.

This might be difficult as HAL doesn't appear to list the 'battery station', but rather the battery itself. The battery listing does not appear when the battery is removed.

Attachments

fake_battery.sh Download (0.8 KB) - added by mungewell 5 years ago.
commands to create 'fake' battery

Change History

Changed 5 years ago by mungewell

  • summary changed from Frame: Missing Battery to Frame: Missing Battery not represented

Changed 5 years ago by mungewell

This is a feature of my Thinkpad, and presumably other laptops.

When the battery is removed the whole HAL entry is removed, rather than just setting 'battery.present = false'. Sugar should handle this situation.

Using a fake battery (HAL commands) I can confirm that the system recognises 'battery.present = false' to mark battery as absent.

Changed 5 years ago by mungewell

commands to create 'fake' battery

Changed 4 years ago by marcopg

  • severity set to Minor
  • priority changed from major to Low
  • version set to 0.82.x
  • milestone set to 0.84
  • distribution set to Ubuntu
  • status_field set to Unconfimed

Changed 4 years ago by erikos

  • version changed from 0.82.x to 0.83.x
  • status_field changed from Unconfimed to New

There is as well some info in #45 - might actually be a dup

Changed 4 years ago by erikos

  • status changed from new to closed
  • resolution set to duplicate

Ok there seem to be some inconsistency here. When I boot and no battery is present, and plug the batery in after sugar is started the device is not added to the frame. One should look deeply at what hal is doing and then check the sugar code for all the possible cases. Let's just leave #45 open for that.

Note: See TracTickets for help on using tickets.