Hello,
Depuis une certaine mise à jour de Sid (environ 2 semaines), quelque chose a dû se passer dans les questions de son parce que ce qui fonctionnait ne marche plus. Je suis donc en Sid, bureau MATE, lancé avec lightdm, pulseaudio, systemd, etc. Une chose est que au boot du système, si je lance du son en root par ex, sur un tty à part de la console graphique, ça peut mal se passer. En tout cas là mon but est de lancer mpv via un cron sous mon utilisateur. Alors que la commande marche en exécution manuelle, elle ne se lance pas bien via cron, pour un souci d'accès au son. La commande est: killall mpv;/home/jp/radio 10 100 Le résultat est celui-ci: TERM environment variable not set. setleds: Error reading current flags setting. Maybe you are not on the console?: ioctl KDGKBLED: Ioctl() inapproprié pour un périphérique TERM environment variable not set. CTRL+C to exit Playing: http://direct.franceinfo.fr/live/franceinfo-midfi.mp3 (+) Audio --aid=1 (mp3 1ch 44100Hz) ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave [ao/alsa] Playback open error: Device or resource busy [ao/oss] Can't open audio device /dev/dsp: Device or resource busy Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock [ao/jack] cannot open server ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave couldn't open play stream: Device or resource busy [ao/sndio] can't open sndio default [ao] Failed to initialize audio driver 'sndio' Could not open/initialize audio device -> no sound. Audio: no audio : 00:00:00 / 00:00:00 (0%) Cache: 0s Exiting... (Errors when loading file) TERM environment variable not set. setleds: Error reading current flags setting. Maybe you are not on the console?: ioctl KDGKBLED: Ioctl() inapproprié pour un périphérique =-=-=-=-=-=-=-=-= Which station would you like to listen to? =-=-=-=-=-=-=-=-= 1 Radio1 be_nl 2 ckia en_us 3 Europe1 be_nl 4 Frbleu provence 5 Virginradio fr_fr 6 frbleutoulon fr_fr 7 GG fr_fr 8 CheriefmFR fr_fr 9 Nostalgie fr_fr 10 FranceInfo fr_fr 11 CherieFM fr_fr 12 FunRadio fr_fr 13 Ckac en_gb 14 Europe1sport be_fr 15 FrInter fr_fr 16 NRJ fr_fr 17 NostalgieFR be_fr 18 Nostalgie60 be_nl 19 NrjFR be_nl 20 Rireetchanson be_nl 21 Rireetchanson nl_nl 22 Nostalgie70 be_fr 23 Rireetchansons be_nl 24 Rireetchansons be_nl 25 RFI fr_fr 26 RIM fr_fr 27 RireEtChansons fr_fr 28 RMC mc_fr 29 RTL fr_fr 30 100\% live 31 100\% sketch fr_fr 32 Modemradio nl_be 33 100\% nouvo talents en_us 34 StudioBrussel be_nl 35 TopRadio be_nl 36 Vivacit� be_fr ------------------------------------------------------------------------------ TERM environment variable not set. TERM environment variable not set. J'ai le même résultat avec: killall mpv;env DISPLAY=:0 /home/jp/radio 10 100 Le script à l'oeuvre est là: https://paste.debian.net/1102308/ Merci de votre aide Cordialement, -- Jean-Philippe MENGUAL