Ticket #381 (closed defect: fixed)
Power status events ignored
| Reported by: | Nytowl | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | milestone5.5 |
| Component: | framework/oeventsd | Version: | |
| Keywords: | Cc: | angus.ainslie@…, seba.dos1@…, ayers@… |
Description
possible race condition during power up that causes oeventsd to ignore power status signals
Attachments
Change History
comment:2 Changed 3 years ago by Nytowl
When the phone starts up none of the power events are honoured. This is because oeventds failed to start because one of it's startup conditions was bad or missing.
I showed Mickey the log but I don't seem to have a copy of it anywhere
comment:3 Changed 3 years ago by Nytowl
- Cc angus.ainslie@… added
- Milestone set to milestone5.5
oeventsd requests the display resource before the resource is registered. The yaml rule that causes this is :
-
while: PowerStatus?() filters: Not(HasAttr?(status, "discharging")) actions: OccupyResource?(Display)
comment:4 follow-up: ↓ 7 Changed 3 years ago by mickey
The action needs to be tought to wait until the resource is present before trying to access it.
comment:5 Changed 3 years ago by mickey
- Status changed from new to assigned
- Owner changed from jluebbe to mickey
comment:10 Changed 3 years ago by mickey
- Status changed from in_testing to closed
- Resolution set to fixed
The new "intelligent" OccupyResource? action has fixed this.


Could you please explain some more, maybe provide logs?