[oe-issues] [Bug 3390] New: zaurusd does not discriminate between "lid was opened" and "headphones removed"
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Wed Nov 28 23:41:14 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=3390
Summary: zaurusd does not discriminate between "lid was opened"
and "headphones removed"
Product: Openembedded
Version: Angstrom
Platform: ARM
OS/Version: Linux
Status: NEW
Keywords: ARC, C3x00
Severity: critical
Priority: P2
Component: Distributions
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: utx at penguin.cz
Blocks: 2156,2619
On each switch state change, switchevd reports the new state.
Due to this concept, it is not possible to discriminate between event "lid was
opened" and "headphones were removed" without storing additional status
information in the zaurusd scripts to temporary files.
It is uncomfortable, slow and has race condition problems.
Probably the best fix would be changing the switchevd behavior to not report
"status changed to ...", but also the previous state, or even directly the
switch number, which just changed (to prevent bit arithmetics in shell).
One of above changes has to be done to be able to handle events correctly.
For shell level solution, see patch in the bug 2571 comment 4.
switchevd solution is not yet done.
When changing switchevd API, even better would be named pipe, which could
prevent process forking, or even dbus interface, which could be shared between
more listeners.
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list