[pulseaudio-discuss] Why no 'default device' option?
It's great that *pavucontrol* offers a fallback device option. But why doesn't it offer one for selecting which device would you like to be default? My use case: I'm on a laptop and have a wireless usb headset. I prefer that everything is played/recorded via the headset, when the headset is connected to the laptop. Currently with PulseAudio, every new app that I start will use the onboard sound card. I have to manually go to pavucontrol, and change the streams to my headset. PA will also, at some point later in time, randomly forget that and reset back to the soundcard, but I haven't found the reliable pattern for that to report it. ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] only dummy audio available when many users want to use one audio card
Colin Guthrie wrote: There should be some info kicking around about system mode PA if you google around for it. I don't have much success with getting audio for two users with pulseaudio. I start pulsaudio as root with these options: # pulseaudio --log-target=syslog --system -D --disallow-exit And get this info in syslog; both users only have dummy audio. So it's even worse this way. Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, but --disallow-module-loading not set! Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, forcibly disabling SHM mode! Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, forcibly disabling exit idle time! Nov 25 19:23:40 dom pulseaudio[21013]: main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: If you do it nonetheless then it's your own fault if things don't work as expected. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation why system mode is usually a bad idea. Nov 25 19:23:40 dom pulseaudio[21013]: module.c: module-hal-detect is deprecated: Please use module-udev-detect instead of module-hal-detect! Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '0' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=0 name=pci_8086_3a3e_sound_card_0 card_name=alsa_card.pci_8086_3a3e_sound_card_0 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '2' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=2 name=pci_1002_aa38_0_sound_card_2 card_name=alsa_card.pci_1002_aa38_0_sound_card_2 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '1' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=1 name=pci_1002_aa38_sound_card_1 card_name=alsa_card.pci_1002_aa38_sound_card_1 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection :1.122 is not allowed to own the service org.pulseaudio.Server due to security policies in the configuration file -- Tomasz Chmielewski http://wpkg.org ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] Why no 'default device' option?
'Twas brillig, and Vadim Peretokin at 25/11/09 17:14 did gyre and gimble: It's great that /pavucontrol/ offers a fallback device option. But why doesn't it offer one for selecting which device would you like to be default? Because it doesn't :) Patches welcome. My use case: I'm on a laptop and have a wireless usb headset. I prefer that everything is played/recorded via the headset, when the headset is connected to the laptop. This is a not uncommon request. I'm trying to convince Lennart that this is indeed something we need to expose in the UI. For KDE users this is now possible with PA 0.9.21 and KDE 4.4, but no Gnome UI/interaction exists for this. Currently with PulseAudio, every new app that I start will use the onboard sound card. I have to manually go to pavucontrol, and change the streams to my headset. PA will also, at some point later in time, randomly forget that and reset back to the soundcard, but I haven't found the reliable pattern for that to report it. It's quite predictable actually. PA will always remember what your app has chosen. So if you play something with an app for the very first time, it is assigned to the fallback device (we know no better). Once it's played for the first time, we save that choice. When the app is started next time, it tries to use the same device as last time, and then it uses the fallback. So the randomly forgetting is just using said app with the headset not plugged in. This overwrites your previously saved device. The logic is quite simple, but I have to agree with you that I'd like more predictable results and preferences. An ordered list of priorities per role is what I'd like to see (it's what I've implemented in module-device-manager) with the option to overrule that general choice but with a simple UI to forget the choice and revert to the priority-per-role list. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] only dummy audio available when many users want to use one audio card
'Twas brillig, and Tomasz Chmielewski at 25/11/09 18:27 did gyre and gimble: Colin Guthrie wrote: There should be some info kicking around about system mode PA if you google around for it. I don't have much success with getting audio for two users with pulseaudio. I start pulsaudio as root with these options: # pulseaudio --log-target=syslog --system -D --disallow-exit And get this info in syslog; both users only have dummy audio. So it's even worse this way. Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, but --disallow-module-loading not set! Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, forcibly disabling SHM mode! Nov 25 19:23:40 dom pulseaudio[21012]: main.c: Running in system mode, forcibly disabling exit idle time! Nov 25 19:23:40 dom pulseaudio[21013]: main.c: OK, so you are running PA in system mode. Please note that you most likely shouldn't be doing that. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: If you do it nonetheless then it's your own fault if things don't work as expected. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: Please read http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode for an explanation why system mode is usually a bad idea. Nov 25 19:23:40 dom pulseaudio[21013]: module.c: module-hal-detect is deprecated: Please use module-udev-detect instead of module-hal-detect! Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '0' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=0 name=pci_8086_3a3e_sound_card_0 card_name=alsa_card.pci_8086_3a3e_sound_card_0 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '2' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=2 name=pci_1002_aa38_0_sound_card_2 card_name=alsa_card.pci_1002_aa38_0_sound_card_2 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: module-alsa-card.c: Card '1' doesn't exist: No such file or directory Nov 25 19:23:40 dom pulseaudio[21013]: module.c: Failed to load module module-alsa-card (argument: device_id=1 name=pci_1002_aa38_sound_card_1 card_name=alsa_card.pci_1002_aa38_sound_card_1 tsched=1 card_properties=module-hal-detect.discovered=1): initialization failed. Nov 25 19:23:40 dom pulseaudio[21013]: main.c: Failed to acquire org.pulseaudio.Server: org.freedesktop.DBus.Error.AccessDenied: Connection :1.122 is not allowed to own the service org.pulseaudio.Server due to security policies in the configuration file This is typically a permissions problem. Does the pulse user (which IIRC is used by system mode) have permissions to open the sound devices? Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] only dummy audio available when many users want to use one audio card
Colin Guthrie wrote: This is typically a permissions problem. Does the pulse user (which IIRC is used by system mode) have permissions to open the sound devices? All right, this was it! I wish pulsaudio with multiple users was more straightforward one day. -- Tomasz Chmielewski http://wpkg.org ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] only dummy audio available when many users want to use one audio card
'Twas brillig, and Tomasz Chmielewski at 25/11/09 19:02 did gyre and gimble: Colin Guthrie wrote: This is typically a permissions problem. Does the pulse user (which IIRC is used by system mode) have permissions to open the sound devices? All right, this was it! I wish pulsaudio with multiple users was more straightforward one day. Well it is rather simple with multiple users... just not at the same time! The multi-seat setup is still rather niche compared to the multi-user setup (e.g. OSX+Windows do the same multi-user stuff we enable OOTB too). Even on multi-seat systems, most of the time each seat has it's own dedicated device (e.g. USB speakers) or similar. This is being dealt with and will be supported with a standard pulse install reasonably soon (whenever the consolekit/udev support is there basically). So really, we're not too bad for the 99% percent of use cases :p Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] Why no 'default device' option?
Definitely... now that you've explained it to me, the pavucontrol UI communicates it's message quite poorly. Thanks for the tip ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
Re: [pulseaudio-discuss] hang when trying to drain empty stream
On Thu, Nov 19, 2009 at 9:54 PM, Gregory Petrosyan gregory.petros...@gmail.com wrote: I believe there is a bug in PA: when trying to drain empty stream (newly created, or just after pa_stream_flush()) returned pa_operation never completes. Because it's not possible to know in advance if a stream is empty, IMO pa_stream_drain should succeed ASAP when called on empty stream, and not hang. Hey, a week has passed, and the bug is still alive! Gregory ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
[pulseaudio-discuss] no clue how to downsample network audio stream + some minor issues
Hello, I'm pretty new to pulseaudio and after some days of reading manuals i'm actually stuck with 3 things: - i have a media server running pulseaudio and i want to stream audio to it. works pretty well so far, but my bandwidth is quite low for the moment so i want to downsample the sound *only* when i use the tunnel sink. i'm stuck here, i don't know where to configure that. daemon.conf (default-sample-rate) doesn't seem to be the right place because it resamples the sound locally as well - what i don't want. - using alsamixer i'm getting a new pulseaudio device by default. that's cool - i thought - so i could map my multimedia keys to amixer to control the volumes... with no success, because alsamixer shows me the volume bar but it doesn't let me change it. why is that and can i enable it somehow? - that led me to take a look at the module-mmkbd-evdev module. But: load-module module-mmkbd-evdev Module load failed. syslog gives me: Nov 26 04:23:39 work pulseaudio[12760]: module-mmkbd-evdev.c: Failed to open evdev device: Keine Berechtigung (no access) to which group do i have to add pulse to make it work? thanks for reading all this :) greetings, vitaminx ___ pulseaudio-discuss mailing list pulseaudio-discuss@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss