Ticket #3638 (new defect)
Physics doesn't release audio device properly
| Reported by: | pgf | Owned by: | garycmartin |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | Physics | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | |
| Cc: | Distribution/OS: | OLPC | |
| Bug Status: | Unconfirmed |
Description
this activity doesn't release the audio device when not using it. this will prevent an XO laptop from suspending properly, and may even prevent other programs from using the audio device.
in fact, Physics seems to open the device at startup, and never closes it until exit.
this command can help observe that the activity is doing the right thing:
while sleep 0.1
do
egrep 'closed|state' /proc/asound/card0/pcm0p/sub0/status
done
the output should be "RUNNING" while noise is being made, and "closed" when not.
Change History
Note: See
TracTickets for help on using
tickets.
