Ticket #13 (closed defect: fixed)
power button should not immediately react
| Reported by: | laforge@… | Owned by: | teddy@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | u-boot | Version: | current svn head |
| Severity: | normal | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
currently, the device powers up immediately when the power button is pressed.
There should be some delay code, waiting if the button is pressed for 3(5)
seconds. Only after that, the device should start booting.
The PMU has a separate interrupt for this 'power button pressed five seconds'
event. Maybe we can just poll the interrupt status register, and power-off if
the 5sec event hasn't been set yet.
Change History
comment:2 Changed 6 years ago by sean_mosko@…
- Owner changed from laforge@… to teddy@…
- Milestone set to Phase 0
comment:3 Changed 6 years ago by laforge@…
Ok, there's actually more to this bug. It really is on power key handling in
u-boot gernally. It should be as follows:
- If phone power button is pressed for more than 3 seconds, immediately boot
kernel from NAND, without any bootdelay
- If phone power button is pressed in combination with 911 key, put an
indefinite bootdelay into place, i.e. wait indefinitely for somebody to access
u-boot via usbtty.
- While phone is running u-boot, a continuous press of the power button for more
than 5 seconds should switch the phone off completely.

* Bug 48 has been marked as a duplicate of this bug. *