Groups | Search | Server Info | Login | Register
Groups > pl.comp.os.linux.debian > #3110
| From | Pan Net <q-net@QLIVER.home> |
|---|---|
| Newsgroups | pl.comp.os.linux.debian |
| Subject | Re: Dlaczego nie mogę słuchać muzy "w tle" na konsoli? |
| Date | 2024-11-14 15:35 +0000 |
| Organization | ICM, Uniwersytet Warszawski |
| Message-ID | <slrnvjc655.28ch.q-net@QLIVER.home> (permalink) |
| References | <slrnvj1daa.fkt.q-net@MacBookPro10.QLIVER> <94d9786e3602a7eea237424dd7f7679306c20823@i2pn2.org> |
Dnia 13.11.2024 validator <altvalidator@pm.me> napisał/a: > Dnia 10.11.24 | 13:29 Qliver Sieciowiec <q-net@MacBookPro10.QLIVER> napisał/a: >> Ale gdy z konta usera z danymi/dokumentami/plikami odpalę muzykę (np. >> mp3blaster czy cplay-ng) i przełączę się na inną konsolę z zalogowanym >> innym userem, to momentalnie przerywa odtwarzanie muzyki... wznawia, gdy >> wrócę do konsoli, gdzie jest odpalony program muzyczny. W ramach tego >> samego usera, z innej konsoli czy pod screen'em, nie ma problemu. > > a spróbuj jeszcze z https://github.com/jonsafari/mocp > "u mnie działa" :D Wbrew pozorom problem istnieje, i nie jest łatwy w rozwiązaniu (jeśli trzeba wszystkiego szukać samemu i drążyć temat). Poniżej to, co znalazłem w sieci na ten temat: What do I got to do to stop user switching on Linux from stopping sound? If I play some audio under user user1, I don't want it to stop when I switch to an unused virtual console or to user2 (via Menu->Log Out->Switch User). The reason why the sound turns off is that Pulseaudio is started on each login with this user's privileges and the system does not allow users to listen to other users audio. Solution : 1) Add all users that should be able play back to the pulse-access group adduser <user-name> pulse-access 2) Create /etc/systemd/system/pulseaudio.service with the following content: [Service] Type=simple PIDFile=/var/run/pulse/pid ExecStart=/usr/bin/pulseaudio --daemonize=yes --system=yes \ --disallow-module-loading=yes --disallow-exit=yes [Install] WantedBy=multi-user.target 3) Enable this new systemd service so that it is started on boot: systemctl enable pulseaudio 4) Be aware that this configuration is - less secure (e.g. other users can listen to your microphone) - sound output will not automatically switch to and from headphones anymore - might prevent Bluetooth from working. https://unix.stackexchange.com/questions/382601/how-to-prevent-sound-mute-when-switching-user -- Qliver, w wersji q-net W przypadku problemów dzwoń 997!
Back to pl.comp.os.linux.debian | Previous | Next — Previous in thread | Find similar
Dlaczego nie mogę słuchać muzy "w tle" na konsoli? Qliver Sieciowiec <q-net@MacBookPro10.QLIVER> - 2024-11-10 13:29 +0000
Re: Dlaczego nie mogę słuchać muzy "w tle" na konsoli? validator <altvalidator@pm.me> - 2024-11-13 15:30 +0000
Re: Dlaczego nie mogę słuchać muzy "w tle" na konsoli? Pan Net <q-net@QLIVER.home> - 2024-11-14 15:35 +0000
csiph-web