Opened 6 years ago

Closed 6 years ago

#121 closed task (wontfix)

kernel misses APM battery support

Reported by: luca@… Owned by: jluebbe
Priority: minor Milestone: milestone5.5
Component: framework/ousaged Version: milestone2
Keywords: Cc:

Description

The FSO-Milestone2 kernel misses the APM battery driver thus apm doesn't work.

This has been reported to the smartphone-standards mailing list (1) as well as on the openmoko-community one (2)(3).

(1) http://lists.linuxtogo.org/pipermail/smartphones-standards/2008-August/000354.html
(2) http://lists.openmoko.org/pipermail/community/2008-August/025336.html
(3) http://lists.openmoko.org/pipermail/community/2008-August/025473.html

Change History (9)

comment:1 follow-up: Changed 6 years ago by mickey

This compatibility interface has been disable on purpose. For what do you need apm? Is

mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/PowerSupply/bat org.freesmartphone.Device.PowerSupply.GetCapacity

an acceptable replacement?

comment:2 in reply to: ↑ 1 Changed 6 years ago by luca@…

Replying to mickey:

This compatibility interface has been disable on purpose. For what do you need apm?

I don't strictly need it, but I want to use "standard" *nix tools, like apm or acpi/acpitools are.

Is [mdbus ...] an acceptable replacement?

IMHO no, except the reason above, I see two more:

1) it requires a "non-standard" tool, i.e. something which is completely new to end-users
2) the command is too long to type, even to remember (wrapping it into a shell script is not an option)

However, I think you already know I'm a bit "maniac"...

comment:3 follow-up: Changed 6 years ago by mickey

Embedded folks are trying to phase out APM emulation very rapidly. I want to support this. What we can do to smoothen the transfer is

  • provide an 'apm' binary that has the same CLI using the FSO API
  • traverse the apmd script directories and run

comment:4 Changed 6 years ago by jluebbe

  • Version set to milestone2

comment:5 Changed 6 years ago by mickey

  • Type changed from defect to task

A preliminary version of the apm command has now hit git.freesmartphone.org in python-helpers/fso-apm.

comment:6 in reply to: ↑ 3 Changed 6 years ago by gismo

Sorry for the delay.

Replying to mickey:

Embedded folks are trying to phase out APM emulation very rapidly.

I think you misunderstood my request: I was not talking about userspace tools to interface with APM, but about the kernel APM battery driver.

OTOH, if I am wrong and indeed APM will be completely phased out, feel free to close this bug as wontfix.

comment:7 Changed 6 years ago by mickey

  • Milestone set to milestone6

I was talking about the kernel interface as well. We now ship an apm compatibility script and I'm still considering to traverse apmd script directories for milestone6.

comment:8 Changed 6 years ago by mickey

  • Component changed from framework-image to framework/ousaged
  • Owner changed from mickey to jluebbe

comment:9 Changed 6 years ago by mickey

  • Resolution set to wontfix
  • Status changed from new to closed

Typical usecase for these kind of scripts is power management handling. We are using dbus and the resource subsystem for that.

Note: See TracTickets for help on using tickets.