Connexion

Forum

Système et matériels » Cartes son et périphériques audio Activer le son sur plusieurs comptes utilisateur en même temps

zwykx Membre non connecté

Rang

Avatar

Inscrit le : 21/01/2013 à 19h44

Localisation : Hauts de seine

Messages: 184

Le 21/02/2018 à 18h55
Bonjour,

Je souhaiterais lorsque je me connecte sur un compte utilisateur par su - <utilisateur> pouvoir lire des fichiers audio directement à partir de la session <utilisateur>.
Et-ce possible ?

Merci.


PC : CM Asus M4A87TD EVO, CPU AMD 64 Athlon II X4 620, 8 Gio RAM DDR3, CG Asus GeForce 210
   
thierryR Membre non connecté

Rang

Avatar

Inscrit le : 02/02/2010 à 13h51

Localisation : Chalons en Champagne

Messages: 6758

Le 21/02/2018 à 22h13
Ben... T'as essayé ? :désolé1:


débusqueur de bugs et chercheur en améliorations

Amicalement vôtre.

Kernel: 4.4.92-desktop-1.mga5 x86_64 (64 bit) Desktop: KDE 4.14.35 Distro: Mageia 5 thornicroft
Machine: Mobo: ASUSTeK model: X751SA v: 1.0 Bios: American Megatrends v: X751SA.403
CPU: Quad core Intel Pentium N3710 (-MCP-) cache: 1024 KB Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
Site web    
zwykx Membre non connecté

Rang

Avatar

Inscrit le : 21/01/2013 à 19h44

Localisation : Hauts de seine

Messages: 184

Le 22/02/2018 à 14h15
Citation :
Ben... T'as essayé

Bah oui, c'est pour ça que je pose la question ici.

Quand je lance clementine par exemple, ça donne :
Code BASH :
14:07:58.789 WARN  PulseDeviceFinder:51             Failed to connect pulseaudio context 
14:07:58.789 WARN  GstEngine:177                    Failed to initialise DeviceFinder for "pulsesink" 
14:07:58.802 DEBUG MainWindow:846                   Creating equalizer 
14:07:58.803 DEBUG MainWindow:875                   Creating now playing widget 
14:07:58.830 DEBUG MainWindow:937                   Loading settings 
14:07:58.833 INFO  NetworkRemote:80                 Network Remote deactivated 


et plus loins :
Code BASH :
14:08:10.073 DEBUG SongLoader:173                   Loading local file "/home/test/mourir pour des idées.mp3" 
14:08:10.074 DEBUG _MessageReplyBase:24             Waiting on ID 0 
14:08:10.074 DEBUG TagReader:129                    Reading tags from "/home/test/mourir pour des idées.mp3" 
14:08:10.075 DEBUG MessageReply<MessageType>:90     Releasing ID 0 (finished) 
14:08:10.075 DEBUG _MessageReplyBase:26             Acquired ID 0 
14:08:10.077 DEBUG Playlist:1142                    Updating playlist with new tracks' info 
14:08:10.077 DEBUG PlaylistBackend:294              Saving playlist 1 
14:08:10.250 DEBUG PlaylistBackend:294              Saving playlist 1 
14:08:14.089 INFO  MoodbarLoader:147                Creating moodbar data for "/home/test/mourir pour des idées.mp3" 
14:08:14.089 DEBUG PlaylistBackend:294              Saving playlist 1 
14:08:14.129 WARN  OSD:140                          Error sending notification "org.freedesktop.DBus.Error.ServiceUnknown" 
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connexion refusée
14:08:14.178 DEBUG MainWindow:1448                  position 0 scrobble point 140 status 0 
14:08:16.649 INFO  MoodbarLoader:155                Moodbar data generated successfully for "/home/test/mourir pour des idées.mp3" 
14:08:20.264 WARN  OSD:140                          Error sending notification "org.freedesktop.DBus.Error.ServiceUnknown" 
14:09:43.577 DEBUG Database:594                     Starting database integrity check 
14:09:43.577 DEBUG Database:655                     Starting database backup 


PC : CM Asus M4A87TD EVO, CPU AMD 64 Athlon II X4 620, 8 Gio RAM DDR3, CG Asus GeForce 210
   
zwykx Membre non connecté

Rang

Avatar

Inscrit le : 21/01/2013 à 19h44

Localisation : Hauts de seine

Messages: 184

Le 28/02/2018 à 12h55
Bon, ça a pas l'air basique même pour les pro du son sur mageia !


PC : CM Asus M4A87TD EVO, CPU AMD 64 Athlon II X4 620, 8 Gio RAM DDR3, CG Asus GeForce 210
   
marc-andré Membre non connecté

Rang

Avatar

Inscrit le : 29/09/2015 à 00h10

Localisation : cavaillon

Messages: 675

Le 28/02/2018 à 16h11
salut
je ne comprends pas très bien ton problème de changement d'utilisateur;
mais apparemment, il y a eut un refus de connexion; cet "utilisateur" n'a probablement pas les droits d'accès ad hoc pour le dossier musique ou son /home n'a pas les bons fichiers de configuration;
est ce que ça marche avec le login normal?


ACER Aspire 64 bits 4 coeurs , 4 Go RAM , 1 To SATA, 1ssd 240 Gio NVIDIA GeForce;
Mageia7 , gnome + fedora29 gnome, + mageia6 multi-bureau, + opensuse leap 15.0 plasma
Liberté et sécurité sont les arguments classiques pour LINUX. En prime il y a aussi la dignité et la confiance ressentie depuis que je suis sous Mageia
   
zwykx Membre non connecté

Rang

Avatar

Inscrit le : 21/01/2013 à 19h44

Localisation : Hauts de seine

Messages: 184

Le 28/02/2018 à 18h31
Salut,

Désolé, je n'ai peut-être pas été très clair.

Sur mon compte en cours d'exécution dans plasma :
Code BASH :
$ ll /home/user1/Musique/extraction/
-rw------- 1 user1 user1 5316356 sept.  2  2013 mourir pour des idées.mp3


Si je lance clementine en ligne de commande :
Code BASH :
[user1@localhost ~]$ clementine
17:52:22.103 INFO  main:334                         Clementine 1.3.1 
17:52:22.244 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f18f03c58a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_523301553" 
17:52:22.246 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f18f03c58a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_1173103819" 
17:52:22.247 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f18f03c58a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_494593636" 
17:52:22.253 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f18f03c58a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_2083781871" 
17:52:22.255 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_1173103819" 
17:52:22.255 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f18e0016310 connected to "/tmp/clementine_1173103819" 
17:52:22.260 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_494593636" 
17:52:22.260 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f18e0014cf0 connected to "/tmp/clementine_494593636" 
17:52:22.261 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_523301553" 
17:52:22.261 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f18e0014e50 connected to "/tmp/clementine_523301553" 
17:52:22.262 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_2083781871" 
17:52:22.262 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f18e0018d00 connected to "/tmp/clementine_2083781871" 
17:52:22.487 INFO  Player:627                       Registered URL handler for "di" 
17:52:22.489 DEBUG InternetModel:140                Adding internet service: "DigitallyImported" 
17:52:22.555 DEBUG InternetModel:140                Adding internet service: "Icecast" 
17:52:22.657 DEBUG InternetModel:140                Adding internet service: "Jamendo" 
17:52:22.668 INFO  Player:627                       Registered URL handler for "jazzradio" 
17:52:22.668 DEBUG InternetModel:140                Adding internet service: "JazzRadio" 
17:52:22.669 INFO  Player:627                       Registered URL handler for "magnatune" 
17:52:22.676 DEBUG InternetModel:140                Adding internet service: "Magnatune" 
17:52:22.703 DEBUG InternetModel:140                Adding internet service: "Podcasts" 
17:52:22.709 INFO  Player:627                       Registered URL handler for "rockradio" 
17:52:22.710 DEBUG InternetModel:140                Adding internet service: "RockRadio" 
17:52:22.712 DEBUG InternetModel:140                Adding internet service: "SavedRadio" 
17:52:22.718 INFO  Player:627                       Registered URL handler for "radiotunes" 
17:52:22.718 DEBUG InternetModel:140                Adding internet service: "RadioTunes" 
17:52:22.725 INFO  Player:627                       Registered URL handler for "somafm" 
17:52:22.726 DEBUG InternetModel:140                Adding internet service: "SomaFM" 
17:52:22.737 DEBUG InternetModel:140                Adding internet service: "SoundCloud" 
17:52:22.738 DEBUG SpotifyService:108               Spotify system blob path: "/usr/bin/clementine-spotifyblob" 
17:52:22.738 DEBUG SpotifyService:109               Spotify local blob path: "/home/user1/.config/Clementine/spotifyblob/version16-64bit/blob" 
17:52:22.745 DEBUG InternetModel:140                Adding internet service: "Spotify" 
17:52:22.745 INFO  Player:627                       Registered URL handler for "subsonic" 
17:52:22.774 DEBUG InternetModel:140                Adding internet service: "Subsonic" 
17:52:22.958 INFO  Player:627                       Registered URL handler for "vk" 
17:52:22.958 DEBUG InternetModel:140                Adding internet service: "Vk.com" 
17:52:22.985 DEBUG CoverProviders:35                Registered cover provider "last.fm" 
17:52:22.986 DEBUG NetworkProxyFactory:49           Detected system proxy URLs: ("", "", "", "") 
17:52:22.986 DEBUG CoverProviders:35                Registered cover provider "Amazon" 
17:52:22.986 DEBUG CoverProviders:35                Registered cover provider "MusicBrainz" 
17:52:22.995 WARN  IconLoader:103                   Couldn't load icon "clementine-panel" 
17:52:23.001 WARN  IconLoader:103                   Couldn't load icon "clementine-panel-grey" 
17:52:23.018 DEBUG QxtGlobalShortcutBackend:32      registering 
17:52:23.153 DEBUG MainWindow:199                   Starting 
17:52:23.161 WARN  IconLoader:103                   Couldn't load icon "find" 
17:52:23.162 WARN  IconLoader:103                   Couldn't load icon "find" 
17:52:23.192 WARN  unknown                          QPainter::begin: Paint device returned engine == 0, type: 2 
17:52:23.265 DEBUG MainWindow:273                   Initialising player 
17:52:23.281 DEBUG MainWindow:279                   Creating models 
17:52:23.320 DEBUG MainWindow:301                   Creating UI 
17:52:23.378 DEBUG MainWindow:846                   Creating equalizer 
17:52:23.389 DEBUG MainWindow:875                   Creating now playing widget 
17:52:23.520 DEBUG MainWindow:937                   Loading settings 
17:52:23.537 INFO  NetworkRemote:80                 Network Remote deactivated 
17:52:23.669 DEBUG MainWindow:1016                  Started 
17:52:23.688 INFO  DeviceManager:405                Device added: "DeviceKit////1000199127552" 
17:52:23.688 WARN  IconLoader:42                    Icon name is null 
17:52:23.688 WARN  IconLoader:42                    Icon name is null 
17:52:23.688 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 INFO  DeviceManager:405                Device added: "DeviceKit/577LHERGS/ASMT/TOSHIBA HDWD120/2000395272704" 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 INFO  DeviceManager:405                Device added: "DeviceKit/FAFFFFF0FDF1FFFDFFC17699/SAMSUNG/HD103SI/1000202241024" 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.689 WARN  IconLoader:42                    Icon name is null 
17:52:23.726 INFO  DeviceManager:405                Device added: "/dev/sr0" 
17:53:53.985 DEBUG Database:594                     Starting database integrity check 
17:53:54.142 DEBUG Database:655                     Starting database backup 
17:55:29.018 DEBUG SongLoader:173                   Loading local file "/home/user1/Musique/extraction/mourir pour des idées.mp3" 
17:55:29.055 DEBUG _MessageReplyBase:24             Waiting on ID 0 
17:55:29.056 DEBUG TagReader:129                    Reading tags from "/home/user1/Musique/extraction/mourir pour des idées.mp3" 
17:55:29.069 DEBUG MessageReply<MessageType>:90     Releasing ID 0 (finished) 
17:55:29.069 DEBUG _MessageReplyBase:26             Acquired ID 0 
17:55:29.071 DEBUG Playlist:1142                    Updating playlist with new tracks' info 
17:55:29.071 DEBUG PlaylistBackend:294              Saving playlist 2 
17:55:29.292 DEBUG PlaylistBackend:294              Saving playlist 2 
17:55:34.367 INFO  MoodbarLoader:147                Creating moodbar data for "/home/user1/Musique/extraction/mourir pour des idées.mp3" 
17:55:34.367 DEBUG PlaylistBackend:294              Saving playlist 2 
17:55:34.424 DEBUG MainWindow:1448                  position 0 scrobble point 140 status 0 
17:55:36.993 INFO  MoodbarLoader:155                Moodbar data generated successfully for "/home/moi/Musique/extraction/mourir pour des idées.mp3" 
17:55:44.422 DEBUG MainWindow:1448                  position 10 scrobble point 140 status 0 


et la musique est jouée par la carte son.

Si maintenant je tape :
Code BASH :
[user1@localhost ~]$ su - test
Mot de passe : 
[test@localhost ~]$ ll 
total 140020
-rw-rw---- 1 test test  5316356 sept.  2  2013 mourir pour des idées.mp3
drwxrwx--- 2 test test     4096 oct.  16  2014 tmp/
[test@localhost ~]$ clementine
18:09:45.520 INFO  main:334                         Clementine 1.3.1 
18:09:45.595 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f8ff84e48a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_526426897" 
18:09:45.597 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f8ff84e48a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_1169978731" 
18:09:45.598 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f8ff84e48a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_489338820" 
18:09:45.600 DEBUG WorkerPool<HandlerType>:281      Starting worker 0x7f8ff84e48a0 "/usr/bin/clementine-tagreader" "/tmp/clementine_2086907215" 
18:09:45.604 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_526426897" 
18:09:45.605 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f8ff0014f30 connected to "/tmp/clementine_526426897" 
18:09:45.606 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_1169978731" 
18:09:45.608 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f8ff0016530 connected to "/tmp/clementine_1169978731" 
18:09:45.608 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_489338820" 
18:09:45.613 INFO  main:48                          TagReader worker connecting to "/tmp/clementine_2086907215" 
18:09:45.616 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f8ff0014dd0 connected to "/tmp/clementine_489338820" 
18:09:45.616 DEBUG WorkerPool<HandlerType>:301      Worker 0x7f8ff0019100 connected to "/tmp/clementine_2086907215" 
18:09:45.737 INFO  Player:627                       Registered URL handler for "di" 
18:09:45.737 DEBUG InternetModel:140                Adding internet service: "DigitallyImported" 
18:09:45.763 DEBUG InternetModel:140                Adding internet service: "Icecast" 
18:09:45.790 DEBUG InternetModel:140                Adding internet service: "Jamendo" 
18:09:45.793 INFO  Player:627                       Registered URL handler for "jazzradio" 
18:09:45.794 DEBUG InternetModel:140                Adding internet service: "JazzRadio" 
18:09:45.795 INFO  Player:627                       Registered URL handler for "magnatune" 
18:09:45.799 DEBUG InternetModel:140                Adding internet service: "Magnatune" 
18:09:45.808 DEBUG InternetModel:140                Adding internet service: "Podcasts" 
18:09:45.811 INFO  Player:627                       Registered URL handler for "rockradio" 
18:09:45.812 DEBUG InternetModel:140                Adding internet service: "RockRadio" 
18:09:45.817 DEBUG InternetModel:140                Adding internet service: "SavedRadio" 
18:09:45.820 INFO  Player:627                       Registered URL handler for "radiotunes" 
18:09:45.821 DEBUG InternetModel:140                Adding internet service: "RadioTunes" 
18:09:45.824 INFO  Player:627                       Registered URL handler for "somafm" 
18:09:45.825 DEBUG InternetModel:140                Adding internet service: "SomaFM" 
18:09:45.833 DEBUG InternetModel:140                Adding internet service: "SoundCloud" 
18:09:45.834 DEBUG SpotifyService:108               Spotify system blob path: "/usr/bin/clementine-spotifyblob" 
18:09:45.834 DEBUG SpotifyService:109               Spotify local blob path: "/home/test/.config/Clementine/spotifyblob/version16-64bit/blob" 
18:09:45.838 DEBUG InternetModel:140                Adding internet service: "Spotify" 
18:09:45.838 INFO  Player:627                       Registered URL handler for "subsonic" 
18:09:45.861 DEBUG InternetModel:140                Adding internet service: "Subsonic" 
18:09:45.954 INFO  Player:627                       Registered URL handler for "vk" 
18:09:45.954 DEBUG InternetModel:140                Adding internet service: "Vk.com" 
18:09:45.956 DEBUG CddaLister:98                    No CD devices found 
18:09:45.960 DEBUG CoverProviders:35                Registered cover provider "last.fm" 
18:09:45.961 DEBUG NetworkProxyFactory:49           Detected system proxy URLs: ("", "", "", "") 
18:09:45.961 DEBUG CoverProviders:35                Registered cover provider "Amazon" 
18:09:45.961 DEBUG CoverProviders:35                Registered cover provider "MusicBrainz" 
18:09:45.966 WARN  IconLoader:103                   Couldn't load icon "clementine-panel" 
18:09:45.969 WARN  IconLoader:103                   Couldn't load icon "clementine-panel-grey" 
18:09:45.997 WARN  OSD:89                           Error connecting to notifications service. 
18:09:45.998 DEBUG GnomeGlobalShortcutBackend:52    registering 
18:09:45.998 WARN  GnomeGlobalShortcutBackend:56    gnome settings daemon not registered 
18:09:45.998 DEBUG QxtGlobalShortcutBackend:32      registering 
18:09:45.998 WARN  unknown                          QxtGlobalShortcut failed to register: "Media Next"  
18:09:45.999 WARN  unknown                          QxtGlobalShortcut failed to register: "Media Play"  
18:09:45.999 WARN  unknown                          QxtGlobalShortcut failed to register: "Media Previous"  
18:09:45.999 WARN  unknown                          QxtGlobalShortcut failed to register: "Media Stop"  
18:09:46.091 DEBUG MainWindow:199                   Starting 
18:09:46.106 WARN  IconLoader:103                   Couldn't load icon "find" 
18:09:46.110 WARN  IconLoader:103                   Couldn't load icon "find" 
18:09:46.115 WARN  unknown                          QPainter::begin: Paint device returned engine == 0, type: 2 
18:09:46.151 DEBUG MainWindow:273                   Initialising player 
18:09:46.153 DEBUG MainWindow:279                   Creating models 
18:09:46.178 DEBUG MainWindow:301                   Creating UI 
18:09:46.216 WARN  PulseDeviceFinder:51             Failed to connect pulseaudio context 
18:09:46.216 WARN  GstEngine:177                    Failed to initialise DeviceFinder for "pulsesink" 
18:09:46.244 DEBUG MainWindow:846                   Creating equalizer 
18:09:46.245 DEBUG MainWindow:875                   Creating now playing widget 
18:09:46.275 DEBUG MainWindow:937                   Loading settings 
18:09:46.278 INFO  NetworkRemote:80                 Network Remote deactivated 
18:09:46.304 DEBUG MainWindow:1016                  Started 
18:09:46.307 INFO  DeviceManager:405                Device added: "Gio/unmounted/140255713874496" 
18:09:46.307 WARN  IconLoader:42                    Icon name is null 
18:09:46.312 INFO  DeviceManager:405                Device added: "Gio/unmounted/140255713874160" 
18:09:46.312 WARN  IconLoader:42                    Icon name is null 
18:09:46.312 INFO  DeviceManager:405                Device added: "DeviceKit////1000199127552" 
18:09:46.312 WARN  IconLoader:42                    Icon name is null 
18:09:46.312 WARN  IconLoader:42                    Icon name is null 
18:09:46.312 WARN  IconLoader:42                    Icon name is null 
18:09:46.312 INFO  DeviceManager:405                Device added: "DeviceKit/577LHERGS/ASMT/TOSHIBA HDWD120/2000395272704" 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:46.313 INFO  DeviceManager:405                Device added: "DeviceKit/FAFFFFF0FDF1FFFDFFC17699/SAMSUNG/HD103SI/1000202241024" 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:46.313 WARN  IconLoader:42                    Icon name is null 
18:09:59.064 INFO  MoodbarLoader:112                Loading cached moodbar data for "/home/test/mourir pour des idées.mp3" 
18:09:59.065 DEBUG PlaylistBackend:294              Saving playlist 1 
18:09:59.112 WARN  OSD:140                          Error sending notification "org.freedesktop.DBus.Error.ServiceUnknown" 
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connexion refusée
18:09:59.155 DEBUG MainWindow:1448                  position 0 scrobble point 140 status 0 
18:10:09.155 DEBUG MainWindow:1448                  position 10 scrobble point 140 status 0 
 


Clementine démarre correctement et joue le fichier (je vois le spectrogramme qui gigote et le curseur de progression qui avance).
Par contre pas de son dans mes oreilles !

Et on peut voir passer 2 messages en rapport avec l'audio :
18:09:46.216 WARN PulseDeviceFinder:51 Failed to connect pulseaudio context
18:09:46.216 WARN GstEngine:177 Failed to initialise DeviceFinder for "pulsesink"
et :
18:09:59.112 WARN OSD:140 Error sending notification "org.freedesktop.DBus.Error.ServiceUnknown"
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connexion refusée

D'après ce que je comprend, clementine n'arrive pas à communiquer avec pulseaudio et n'arrive pas à ouvrir alsa en écriture.

Comment résoudre ce problème ?


PC : CM Asus M4A87TD EVO, CPU AMD 64 Athlon II X4 620, 8 Gio RAM DDR3, CG Asus GeForce 210
   
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie