Use the Terminal to know the battery level of your Bluetooth keyboard

Keyboard-Apple

On more than one occasion we have indicated that Terminal is the window to configure thoroughly thousands of features that a priori cannot be configured from the graphical interface of Apple's system, OS X Mavericks.

The Terminal is used by developers and Advanced users to make certain changes to the system. In this article we are going to teach you the command you must use to be able to know the battery level of your Bluetooth keyboard from the Terminal.

To obtain the battery level that your Apple Bluetooth keyboard has left directly from the Terminal window, we must use a command for it. This command will not only allow us to know the battery level that our keyboard has, which seems a bit illogical if we have the keyboard in front of us. We will also be able to know the battery level in remote computers to which we have access via SSH.

The steps you have to follow to be able to see the battery level of a keyboard are the following:

  • We open the Terminal from the Spotlight or from Launchpad> OTHERS> Terminal.
  • We write the following command:
ioreg -c AppleBluetoothHIDKeyboard | grep '"BatteryPercent" ='

The system will show in the window the battery level of the keyboard instantly, being the number that appears the percentage that remains for the battery to run out.

As you can see, this is another function that is hidden within the Apple system, which can already make you think that really, if the system is already powerful for ordinary users, for very advanced users who eat the Terminal , the system is a very powerful tool.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.