print the state of the battery in MacOSX

Bug #1289758 reported by Kosuke Asami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Fix Released
Wishlist
Unassigned

Bug Description

I have written a patch that prints the state of the battery in Mac OS X.
This patch is the stuff against trunk.

In Mac OS X, there is no /sys/* and /proc/* file, so we should use 'ioreg' that shows I/O kit registry.
This patch parses outputs from ioreg and displays the result.

Revision history for this message
Kosuke Asami (coume) wrote :
Changed in byobu:
importance: Undecided → Wishlist
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for the patch!

I don't have a Mac to test this, but I've eyeballed the patch, and it looks reasonable, and shouldn't get in the way of Linux users, so I'm applying it as is. Please do test byobu 5.75 and verify that it works ;-)

Thanks!

Changed in byobu:
status: New → In Progress
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

bzr commit -m '* usr/lib/byobu/battery: LP: #1289157
  - Mac OS X battery indicator support' --fixes 'lp:1289157'
Committing to: /local/media/src/byobu/byobu/
modified debian/changelog
modified usr/lib/byobu/battery
Committed revision 2311.

Changed in byobu:
status: In Progress → Fix Committed
Changed in byobu:
status: Fix Committed → Fix Released
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.