I'm trying to play some sound as a user. But pulseaudio can't find any outputs:
$ aplay -l aplay: device_list:268: no soundcards found...
But, as root, aplay sees the integrated sound card:
# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0
I'd just use root if I could, by pulseaudio doesn't like that.
sean
On 02/02/2015 03:10 PM, sean darcy wrote:
I'm trying to play some sound as a user. But pulseaudio can't find any outputs:
$ aplay -l aplay: device_list:268: no soundcards found...
But, as root, aplay sees the integrated sound card:
# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0
I'd just use root if I could, by pulseaudio doesn't like that.
sean
OK, thanks to archwiki, solved this by adding the user to group audio
usermod -a -G audio [user]
$ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 .......
But pulseaudio still only has the dummy soundcard:
pacmd list-sinks 1 sink(s) available. * index: 0 ............ properties: device.description = "Dummy Output" device.class = "abstract" device.icon_name = "audio-card"
Puzzled why this is so complicated.
sean
2015-02-02 22:18 GMT+02:00 sean darcy seandarcy2@gmail.com:
On 02/02/2015 03:10 PM, sean darcy wrote:
I'm trying to play some sound as a user. But pulseaudio can't find any outputs:
$ aplay -l aplay: device_list:268: no soundcards found...
But, as root, aplay sees the integrated sound card:
How are you logged in in the system? My impression is that sound devices in fedora are set up to be available to the user who is physically present.
-Joonas
On 02/02/2015 03:23 PM, Joonas Sarajärvi wrote:
2015-02-02 22:18 GMT+02:00 sean darcy seandarcy2@gmail.com:
On 02/02/2015 03:10 PM, sean darcy wrote:
I'm trying to play some sound as a user. But pulseaudio can't find any outputs:
$ aplay -l aplay: device_list:268: no soundcards found...
But, as root, aplay sees the integrated sound card:
How are you logged in in the system? My impression is that sound devices in fedora are set up to be available to the user who is physically present.
-Joonas
This should be remote user. I want to use it as a sound server from anywhere in the house.
This should be common use case. What's the trick to making it work, or does someone need to go the the basement each time ?
sean
On 02/02/2015 05:22 PM, sean darcy wrote:
On 02/02/2015 03:23 PM, Joonas Sarajärvi wrote:
2015-02-02 22:18 GMT+02:00 sean darcy seandarcy2@gmail.com:
On 02/02/2015 03:10 PM, sean darcy wrote:
I'm trying to play some sound as a user. But pulseaudio can't find any outputs:
$ aplay -l aplay: device_list:268: no soundcards found...
But, as root, aplay sees the integrated sound card:
How are you logged in in the system? My impression is that sound devices in fedora are set up to be available to the user who is physically present.
-Joonas
This should be remote user. I want to use it as a sound server from anywhere in the house.
This should be common use case. What's the trick to making it work, or does someone need to go the the basement each time ?
The desktop install of Fedora should permit whomever is logged in at the console to play audio. If you don't have a user logged in at the console, then pulse is probably not even running since it's spawned by the X session startup.
You can run pulse at boot as the root user to make it act like a sound server, but you'll need to configure it to use various sinks as outputs. Have a look at "man pulse-daemon.conf", "man default.pa" and "man pulse-cli-syntax" for details on how to set that up.
If you want a media server (e.g. DLNA), then there are a number of packages available such as minidlna and mediatomb (both available from the repos). ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Errors have occurred. We won't tell you where or why. We have - - lazy programmers. - ----------------------------------------------------------------------