Ticket #872 (closed defect: community)

Opened 10 years ago

Last modified 8 years ago

Implement GPS and BT power in neod power button menu

Reported by: alex@… Owned by: willie_chen
Priority: high Milestone:
Component: Core System Version: GTA01Bv4
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

Currently, GSM, BT and GPS power toggle menu items are not implemented in neod.

Attachments

neod-bt-gps.patch (2.7 KB) - added by alex@… 10 years ago.
GPS and BT power menu functionnality

Change History

Changed 10 years ago by alex@…

GPS and BT power menu functionnality

comment:1 Changed 9 years ago by alex@…

Me has written :

  • For the BT part, it just sets the power_on of the bt pm sysfs to 0/1.

problem is that it is not in sync with the panel-bt. i.e. if you activate BT
with the power button, the icon in bt-applet will not change. Need suggestions
on how to implement that...

I'm just thinking about something and request for comments.

What about creating some gconf keys in order to save the status of the BT / GSM
/ GPS power in order to centralize the state and allow all components to be
aware of a state change in order to properly reflect the status ?

If all components registers to these keys, if any of them changes the value, all
other components would be notified of that change and can reflect the new status
in their icons / menu items etc...

Is this the right way to do it ?

I'll anyway give it a try soon.

Thanks,

Alex.

comment:2 Changed 9 years ago by alex@…

I forgot to mention, that this way we can also 'save' the status of the various
components in order to restore it on reboot by reading the gconf keys in the
init scripts so that if GSM and BT where OFF when we shutted down, they would be
OFF on next restart. That is what we probably want as default behaviour. aren't
we ?

comment:3 Changed 9 years ago by mickey@…

Actually, I'm not sure about that. How do other SmartPhones? work in that regard?
Do they save the power state of their peripherals?

comment:4 Changed 9 years ago by alex@…

Hi,
At least on my A1200, the BT power status is saved and restore upon restarts of
the phone. There is also an annoying bug that makes the BT power status not to
be restored when I switch off the antenna (flight mode) then switch it on again.
It would be nice to have the correct behavior in OpenMoko?, i.e. When switching
to flight mode then switch back to normal mode, switch BT power on / off based
on the status before switching to flight mode.

comment:5 Changed 9 years ago by tick@…

  • Owner changed from sean_chiang@… to willie_chen@…

comment:6 Changed 9 years ago by andy@…

This does not seem to need any action from the kernel side, is there a better
person to assign it to than Willie?

comment:7 Changed 9 years ago by roh

  • Owner changed from willie_chen@… to willie_chen

comment:8 Changed 8 years ago by john_lee

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to community
Note: See TracTickets for help on using tickets.