Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apple Wireless Keyboard and a Magic Trackpad, and I was wondering if there is a way to monitor the battery life remaining/percentage like there is in OSX.

share|improve this question

There isn't a GUI for read wireless mouse or keyboard battery data.

You can find useful information on sysfs under /sys/class/power_supply/. For example the Apple Wireless Keyboard is under /sys/class/power_supply/hid-78:CA:39:4E:6F:C7-battery/. In the device directory there is a file named capacity, this is a capacity in percents.

So in summary, for reading Apple Wireless Keyboard battery capacity you should do:

cat /sys/class/power_supply/hid-78:CA:39:4E:6F:C7-battery/capacity

Note that hid-78:CA:39:4E:6F:C7-battery can be different for your device.

share|improve this answer

According to this article on webupd8, this functionality is planned for Ubuntu 11.10 as part of Ubuntu's new Power Indicator.

share|improve this answer
That's what I like to hear! Thanks! – Nathan Dyer Jul 22 '11 at 1:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.