Project

General

Profile

Bug #9656

Changing device ownership races with pulseaudio startup

Added by Gary Mills 8 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2018-07-15
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Something that changes ownership of audio devices is still running when pulseaudio starts. With full logging from pulseaudio, these messages appear:

    Jul 12 19:36:56 qtpie pulseaudio[26675]: [ID 295310 user.warning] [solaris] module-solaris.c: open /dev/sound/1 failed (Permission denied)
    Jul 12 19:37:20 qtpie pulseaudio[29760]: [ID 295310 user.info] [(null)] module-solaris.c: device opened in O_RDWR mode.

It does seem to retry the open, but still this failure should not be happening. After a desktop login completes, these are the devices:

    $ ll -L /dev/sound/1
    crw-------   1 mills    staff     30, 19 Dec 27  1986 /dev/sound/1
    $ ll -L /dev/sound/0
    crw-------   1 mills    staff     30,  3 Dec 27  1986 /dev/sound/0

After I've logged out from the desktop, they look like this:

    $ ll -L /dev/sound/?
    crw-------   1 lightdm  lightdm   30,  3 Dec 27  1986 /dev/sound/0
    crw-------   1 lightdm  lightdm   30, 19 Dec 27  1986 /dev/sound/1

Something must change their ownership in the background, during the desktop login.

Also available in: Atom PDF