Projet

Général

Profil

Gestion de l'énergie

Utilisation de HAL

apt-get install hal
hal-find-by-capability --capability ac_adapter
hal-find-by-capability --capability battery

Et normalement ptbatterysystemtray devrait marcher ... mais nada

Utilisation du /sys

Développement d'une application "sur mesure" pour tester : horizon-tablet-battery

  • /sys/class/power_supply/twl6030_battery/status
  • /sys/class/power_supply/twl6030_battery/capacity
  • /sys/class/power_supply/twl6030_battery/charge_full
  • /sys/class/power_supply/twl6030_battery/charge_now
  • /sys/class/power_supply/twl6030_battery/current_avg
  • /sys/class/power_supply/twl6030_battery/current_now
  • /sys/class/power_supply/twl6030_battery/voltage_now

OMAP4

apt-get install tiomapconf
echo "1" > /sys/class/graphics/fb0/blank
root@tablette-02:~# omapconf show pwst
OMAPCONF (rev 1.52 built Wed Dec 12 15:03:01 UTC 2012)

HW Platform Revision:
  OMAP4430 ES2.3 GP Device (STANDARD performance (1.0GHz))
  TWL6030  ES2.1 (EPROM rev7.0)
Error: I2C Read failed
  UNKNOWN AUDIO IC

SW Build Details:
  Build:
    Version: AbulEdu Tablette 12.08.1 LTS \n \l
  Kernel:
    Version: 3.1.5
    Author: owner@owner-virtual-machine
    Toolchain: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
    Type: #54 SMP PREEMPT
    Date: Tue Jul 3 17:07:10 CEST 2012

|--------------------------------------------------------------------------------------------------------------------------------|
| OMAP Power Status                                                                                                              |
|--------------------------------------------------------------------------------------------------------------------------------|
| Voltage Domain          | Power Domain                 | Clock Domain          | Module Status                                 |
| Name     | OPP          | Name       | Curr.  | Target | Name       | Status   | Name             | Idle          | Standby    |
|--------------------------------------------------------------------------------------------------------------------------------|
| LDO_WKUP |              | WKUP       | ON     |        | L4WKUP     | Running  | L4WKUP           | Full ON       |            |
|          |              |            |        |        |            |          | GPIO1            | Full ON       |            |
|          |              |            |        |        |            |          | TIMER1           | Full ON       |            |
|          |              |            |        |        |            |          | WDT2             | Disabled      |            |
|          |              |            |        |        |            |          | SYNCTIMER        | Full ON       |            |
|          |              |            |        |        |            |          | SARRAM           | Full ON       |            |
|          |              |            |        |        |            |          | KEYBOARD         | Full ON       |            |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | EMU        | ON     | OFF    | EMU        | Running  | DEBUGSS          | OCP-ONLY Idle | In Standby |
|--------------------------------------------------------------------------------------------------------------------------------|
| VDD_MPU  | OPP_NITRO    | MPU        | ON     | ON     | MPU        | Running  | MPU              | Full ON       | Functional |
|--------------------------------------------------------------------------------------------------------------------------------|
| VDD_IVA  | UNKNOWN      | ABE        | ON     | ON     | ABE        | Running  | AESS             | In Transition | Functional |
|          |              |            |        |        |            |          | DMIC             | Disabled      |            |
|          |              |            |        |        |            |          | L4_ABE           | Full ON       |            |
|          |              |            |        |        |            |          | MCASP            | Full ON       |            |
|          |              |            |        |        |            |          | MCBSP1           | Disabled      |            |
|          |              |            |        |        |            |          | MCBSP2           | Disabled      |            |
|          |              |            |        |        |            |          | MCBSP3           | Disabled      |            |
|          |              |            |        |        |            |          | MCPDM            | Disabled      |            |
|          |              |            |        |        |            |          | SLIMBUS1         | Full ON       |            |
|          |              |            |        |        |            |          | TIMER5           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER6           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER7           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER8           | Disabled      |            |
|          |              |            |        |        |            |          | WDT3             | Disabled      |            |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | IVAHD      | ON     | ON     | IVAHD      | Running  | IVAHD            | Disabled      | In Standby |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | DSP        | ON     | ON     | DSP        | Running  | DSP              | Disabled      | Functional |
|--------------------------------------------------------------------------------------------------------------------------------|
| VDD_CORE | OPP100       | ALWON_CORE | ON     |        | ALWONCORE  | Running  | SMARTREFLEX_CORE | OCP-ONLY Idle |            |
|          |              |            |        |        |            |          | SMARTREFLEX_MPU  | OCP-ONLY Idle |            |
|          |              |            |        |        |            |          | SMARTREFLEX_IVA  | Disabled      |            |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | CORE       | ON     | ON     | L4CFG      | Running  | L4_CFG           | Full ON       |            |
|          |              |            |        |        |            |          | SPINLOCK         | Full ON       |            |
|          |              |            |        |        |            |          | SYSTEM_MAILBOX   | Full ON       |            |
|          |              |            |        |        |            |          | SAR_ROM          | Full ON       |            |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | C2C        | Gated    | C2C              | OCP-ONLY Idle | In Standby |
|          |              |            |        |        |            |          | C2C_FW           | OCP-ONLY Idle |            |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | SDMA       | Gated    | SDMA             | OCP-ONLY Idle | In Standby |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | MPU_M3     | Gated    | MPU_M3           | Disabled      | In Standby |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | L3_1       | Running  | L3_1             | Full ON       |            |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | L3_2       | Running  | L3_2             | Full ON       |            |
|          |              |            |        |        |            |          | GPMC             | Full ON       |            |
|          |              |            |        |        |            |          | OCMC_RAM         | Full ON       |            |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | L3INSTR    | Running  | L3_3             | Disabled      |            |
|          |              |            |        |        |            |          | L3_INSTR         | Disabled      |            |
|          |              |            |        |        |            |          | OCP_WP1          | Full ON       |            |
|          |              |            |        |        |-----------------------------------------------------------------------|
|          |              |            |        |        | MEMIF      | Running  | DMM              | Full ON       |            |
|          |              |            |        |        |            |          | EMIF_FW          | Full ON       |            |
|          |              |            |        |        |            |          | EMIF1            | Full ON       |            |
|          |              |            |        |        |            |          | EMIF2            | Full ON       |            |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | CAM        | ON     | ON     | CAM        | Running  | ISS              | Disabled      | In Standby |
|          |              |            |        |        |            |          | FDIF             | OCP-ONLY Idle | In Standby |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | DSS        | ON     | ON     | DSS        | Running  | DISPC            | Full ON       | Functional |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | GFX        | ON     | ON     | GFX        | Gated    | GFX              | Disabled      | In Standby |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | L3INIT     | ON     | ON     | L3INIT     | Running  | HSI              | Full ON       | In Standby |
|          |              |            |        |        |            |          | MMC1             | Disabled      | In Standby |
|          |              |            |        |        |            |          | MMC2             | Disabled      | In Standby |
|          |              |            |        |        |            |          | UNIPRO_1         | Disabled      | In Standby |
|          |              |            |        |        |            |          | FSUSBHOST        | Full ON       | In Standby |
|          |              |            |        |        |            |          | HSUSBOTG         | Full ON       | Functional |
|          |              |            |        |        |            |          | USBPHY           | Full ON       |            |
|          |              |            |        |        |            |          | HSUSBHOST        | Full ON       | In Standby |
|          |              |            |        |        |            |          | USBTLL           | Full ON       |            |
|          |              |------------------------------------------------------------------------------------------------------|
|          |              | L4PER      | ON     | ON     | L4PER      | Running  | L4_PER           | Full ON       |            |
|          |              |            |        |        |            |          | TIMER2           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER3           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER4           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER9           | Disabled      |            |
|          |              |            |        |        |            |          | TIMER10          | Disabled      |            |
|          |              |            |        |        |            |          | TIMER11          | Full ON       |            |
|          |              |            |        |        |            |          | GPIO2            | Full ON       |            |
|          |              |            |        |        |            |          | GPIO3            | Full ON       |            |
|          |              |            |        |        |            |          | GPIO4            | Full ON       |            |
|          |              |            |        |        |            |          | GPIO5            | Full ON       |            |
|          |              |            |        |        |            |          | GPIO6            | Full ON       |            |
|          |              |            |        |        |            |          | MCSPI1           | Disabled      |            |
|          |              |            |        |        |            |          | MCSPI2           | Disabled      |            |
|          |              |            |        |        |            |          | MCSPI3           | Disabled      |            |
|          |              |            |        |        |            |          | MCSPI4           | Disabled      |            |
|          |              |            |        |        |            |          | UART1            | Full ON       |            |
|          |              |            |        |        |            |          | UART2            | Full ON       |            |
|          |              |            |        |        |            |          | UART3            | Full ON       |            |
|          |              |            |        |        |            |          | UART4            | Full ON       |            |
|          |              |            |        |        |            |          | I2C1             | Disabled      |            |
|          |              |            |        |        |            |          | I2C2             | Disabled      |            |
|          |              |            |        |        |            |          | I2C3             | Disabled      |            |
|          |              |            |        |        |            |          | I2C4             | Disabled      |            |
|          |              |            |        |        |            |          | MMC3             | Disabled      |            |
|          |              |            |        |        |            |          | MMC4             | Disabled      |            |
|          |              |            |        |        |            |          | SLIMBUS2         | Disabled      |            |
|          |              |            |        |        |            |          | MMC5             | Disabled      |            |
|          |              |            |        |        |            |          | HDQ1W            | Full ON       |            |
|          |              |            |        |        |            |          | MCBSP4           | Disabled      |            |
|--------------------------------------------------------------------------------------------------------------------------------|

Redmine Appliance - Powered by TurnKey Linux