I have installed Ubuntu 16.04 on an older Macbook Air. I recently found out that when I unplug the power supply, the computer shuts off and dies. This even though it is showing that the battery is fully charged. It also shows the green light in the plug of the power supply which should indicate fully charged. When the computer is turned off, this light is still green and it does not seem to charge the battery even when shut down.
I am not sure if this has always been the case, since I installed 16.04. I used to run an older Ubuntu but decided to revert back to MacOs on this computer, which failed and I therefore installed 16.04.
Running upower -i $(upower -e | grep 'BAT') as suggested below gives following:
upower -i $(upower -e | grep 'BAT')
? You should be able to see a good amount of stats that can be better commented on.