Advanced Power Management

Jump to navigation Jump to search

Advanced Power Management is the old technology to allow PCs to suspend, hybernate, check the battery levels and so on. For the Allwinner chips there is an emulation layer for this API.

Several devices work also with the AXP209 battery charger chip. Fortunately there is support for it in the latest 3.4 kernel.

To enable this power management (that will allow to check the battery levels, know if the charger is connected, and shutdown via software the device) just set these options in the kernel configuration:

   Power management options --->
       Run-time PM core functionality=Y
       Advanced Power Management Emulation=y
   Device Drivers --->
       Power supply class support=Y --->
           AXP Power drivers=Y --->
               AXP PMU type=AXP20 driver
               AXP initial charging environment set=Y
               AXP charging current set when suspendresumeshutdown=Y
           APM emulation for class batteries=Y
       Voltage and Current Regulator Support=Y --->

Is mandatory to enable the Voltage and Current Regulator Support option, because without it, the AXP Power drivers option won't be shown.