Not sure if this is a strictly TDE problem or not, but I did spend some time trying to restart or reconfigure the sound system. (TCC / Sound & Multimedia / Sound System)
When I first got this machine, I did have some problems getting it to work without pulseaudio, as I prefer alsa. Since then, it has been a battle of unseen forces, with pulseaudio and alsa apparently competing for control of my sound.
The thing is, music files play just fine (using audacious); online radio usually plays just fine (using qmmp), although I sometimes have to go into settings and enable pulseaudio. (It will buffer up, then the stream dies.) But usually this is just a bit of playing round, then it works.
My videos are a constant headache, though. I don't watch them much, but when I do sometimes want to watch something, suddenly I don't have sound, and it doesn't seem to matter what I use, pulseaudio or alsa. Also, when I had similar problems before, it only took some configuration, then it worked again, and I never gave it a thought after that.
This problem keeps popping up, with no apparent rhyme or reason to it. My videos won't play sound. Doesn't matter if I use smplayer or vlc (which are my two main programs for videos). It used to be that some videos would only play on vlc, some on smplayer. Other programs were also hit-and-miss. Now no videos will play sound, on any program.
I've also tried nearly every other program available for videos. I've downloaded all codecs that seem to be required. (I save downloaded packages, and use dpkg to install, then just upgrade periodically; so I know what I used before in my working configuration.) I've done this time and again, in previous installations, and usually no problems after getting everything set up. With this new laptop, the sound in the videos disappears sometimes with every new reboot.
The only major change in my system is that I bought a new toy; a Focusrite interface to attach musical instruments (guitars, keyboards, microphones, etc.) to my laptop via a USB interface. (I used to have a line-in jack in my old desktop, so I just plugged in via a headphone amplifier.) It took some messing round, but I got this device working, so I can play through my speakers, or record to the machine using audacity. Sometimes I have to make changes to make sure that audacity isn't claiming the sound system.
However, I have shut off everything else that could interfere. No active music files, the Focusrite audio interface is shut off, etc., etc. And still, I have no sound in any of my videos; doesn't matter what format, doesn't matter what program I use.
I would guess that it is a TDE problem, since I booted into xfce, and the sound works fine in that desktop. However, I don't like to spend time there, and don't want to use it except for testing.
Anybody have a clue about what is wrong? As I said, it is all rather hit-and-miss. Sometimes the sound works, sometimes not. My installation and programs installed or used, etc., have remained the same since December 2021. I've been running the same programs on other machines for at least 15 years now, so I like to think that I know how to track down and resolve most issues, but this one just keeps returning.
Sorry for the length, but I wanted to include all possible details that could be relevant. Please feel free to trim in the responses. Any help will be appreciated.
Bill
Hi!
Anno domini 2022 Fri, 6 May 18:15:18 -0700 William Morder via tde-users scripsit:
I would guess that it is a TDE problem, since I booted into xfce, and the sound works fine in that desktop. However, I don't like to spend time there, and don't want to use it except for testing.
Remove anything pulsaudio, jack etc, disable TDE sound system, install amixer/alsamixer, reboot. If you don't have any sound (which is most likely) start alsamixer, unmute what's muted. I have in my /etc/rc.local these nicht lines, that take care of my sound settings:
( sleep 3 awk '/: HDA-Intel - HD-Audio Generic/ {print "defaults.pcm.card ",$1; pr int "defaults.ctl.card ",$1; print "defaults.timer.card ",$1;}' /proc/asound/car ds > /etc/asound.conf sleep 20 amixer sset Front 100% amixer sset Front on amixer sset PCM 100% ) &
Nik
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Saturday 07 May 2022 01:05:22 Dr. Nikolaus Klepp wrote:
( sleep 3 awk '/: HDA-Intel - HD-Audio Generic/ {print "defaults.pcm.card ",$1; pr int "defaults.ctl.card ",$1; print "defaults.timer.card ",$1;}' /proc/asound/car ds > /etc/asound.conf sleep 20 amixer sset Front 100% amixer sset Front on amixer sset PCM 100% ) &
Hi, Nik!
I usually try to avoid pulseaudio, but this new laptop has given me new headaches. I don't usually mess around with jack, although it seems to get installed somehow without my wanting it; but since it hasn't interfered with anything, I leave it alone.
Regarding these lines for /etc/rc.local, where do I insert them? There is a period at the end of the shell script, and experience has taught me that this is necessary. Do I insert the lines before the period?
Also, what do you mean by "nicht" lines? My first guess is that you mean niche lines, but that doesn't help me understand what you mean.
Wiktionary tells me that it refers to a female cousin, a niece, or an effeminate man. https://en.wiktionary.org/wiki/nicht I know that I am not the man that I used to be, due to the effects of age, but I object to being called effeminate; although I do like to cook and bake, but that is because I like to eat, nothing to do with my obvious manliness.
;-)
Bill
Anno domini 2022 Sat, 7 May 02:22:35 -0700 William Morder via tde-users scripsit:
On Saturday 07 May 2022 01:05:22 Dr. Nikolaus Klepp wrote:
( sleep 3 awk '/: HDA-Intel - HD-Audio Generic/ {print "defaults.pcm.card ",$1; pr int "defaults.ctl.card ",$1; print "defaults.timer.card ",$1;}' /proc/asound/car ds > /etc/asound.conf sleep 20 amixer sset Front 100% amixer sset Front on amixer sset PCM 100% ) &
Hi, Nik!
I usually try to avoid pulseaudio, but this new laptop has given me new headaches. I don't usually mess around with jack, although it seems to get installed somehow without my wanting it; but since it hasn't interfered with anything, I leave it alone.
Regarding these lines for /etc/rc.local, where do I insert them? There is a period at the end of the shell script, and experience has taught me that this is necessary. Do I insert the lines before the period?
Also, what do you mean by "nicht" lines? My first guess is that you mean niche lines, but that doesn't help me understand what you mean.
LOL ... should be "nice lines" ... probably I need to type a bit more careful :)
They can go anywhere in /etc/rc.local, that is, if you need them at all. I found that I need them on my system (too many soundcards, and the one I want as default usually is not the default) --> I need to modify /etc/asound.conf on each boot. And after TDE comes up, I need to set the correct values for my mixer & output, otherwise they are muted. I remember a time when ALSA saved the settings on shutdown/reboot and restored them on the next boot, but I'm not sure if that was this millenia or the last.
Nik
Wiktionary tells me that it refers to a female cousin, a niece, or an effeminate man. https://en.wiktionary.org/wiki/nicht I know that I am not the man that I used to be, due to the effects of age, but I object to being called effeminate; although I do like to cook and bake, but that is because I like to eat, nothing to do with my obvious manliness.
;-)
Bill ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Saturday 07 May 2022 07:33:22 Dr. Nikolaus Klepp wrote:
( sleep 3 awk '/: HDA-Intel - HD-Audio Generic/ {print "defaults.pcm.card ",$1; pr int "defaults.ctl.card ",$1; print "defaults.timer.card ",$1;}' /proc/asound/car ds > /etc/asound.conf sleep 20 amixer sset Front 100% amixer sset Front on amixer sset PCM 100% ) &
LOL ... should be "nice lines" ... probably I need to type a bit more careful :)
They can go anywhere in /etc/rc.local, that is, if you need them at all. I found that I need them on my system (too many soundcards, and the one I want as default usually is not the default) --> I need to modify /etc/asound.conf on each boot. And after TDE comes up, I need to set the correct values for my mixer & output, otherwise they are muted. I remember a time when ALSA saved the settings on shutdown/reboot and restored them on the next boot, but I'm not sure if that was this millenia or the last.
Nik
All you have to do is in system.pa comment out this line #load-module module-udev-detect and in default.pa add 2 lines referencing alsa device you want pulse to use load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=dsnoopplug this should be "hw:X,X" if you have real sound card with hardware mixer, or whatever you called the software mixer you setup in /etc/asound.conf for no-mixer hardware and then delete/rename /usr/share/alsa/pulse-alsa.conf to prevent default output switching to pulse
-- Nick Koretsky (nick.koretsky@gmail.com)
Okay, so I tried both these suggestions, and have made some progress. (Both are quoted here for reference.)
Thanks to Nik and Nick! These suggestions don't seem to conflict, so for the present I have left them both in place and rebooted. (I kept the original config files, so I can always go back.)
At present, all my usual music players work, namely audacious and qmmp. I haven't tried audacity yet, but if these work, I expect that audacity won't be a problem.
Likewise, vlc now plays everything I try, even stuff that wouldn't play before. Likewise, kaffeine-trinity works with sound. I am not crazy about kaffeine, but maybe I haven't used it enough to appreciate it.
I have also tried others, with negative results: smplayer, mplayer, kmplayer, xine, totem, and most others do not play sound.
The big surprise is, now smplayer won't play sound in any files, not even for files that used to work before. (I used to be able to play some in smplayer, others in vlc.) It seems to work normally, and the settings ought to be right, so far as I can tell. I suspect that pulseaudio is necessary for those that will not play.
Anyway, I believe that I'm almost *there*, wherever there is. It would be nice to get smplayer working again, but at least vlc works now.
Bill
Anno domini 2022 Sat, 7 May 11:51:58 -0700 William Morder via tde-users scripsit:
On Saturday 07 May 2022 07:33:22 Dr. Nikolaus Klepp wrote:
( sleep 3 awk '/: HDA-Intel - HD-Audio Generic/ {print "defaults.pcm.card ",$1; pr int "defaults.ctl.card ",$1; print "defaults.timer.card ",$1;}' /proc/asound/car ds > /etc/asound.conf sleep 20 amixer sset Front 100% amixer sset Front on amixer sset PCM 100% ) &
LOL ... should be "nice lines" ... probably I need to type a bit more careful :)
They can go anywhere in /etc/rc.local, that is, if you need them at all. I found that I need them on my system (too many soundcards, and the one I want as default usually is not the default) --> I need to modify /etc/asound.conf on each boot. And after TDE comes up, I need to set the correct values for my mixer & output, otherwise they are muted. I remember a time when ALSA saved the settings on shutdown/reboot and restored them on the next boot, but I'm not sure if that was this millenia or the last.
Nik
All you have to do is in system.pa comment out this line #load-module module-udev-detect and in default.pa add 2 lines referencing alsa device you want pulse to use load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=dsnoopplug this should be "hw:X,X" if you have real sound card with hardware mixer, or whatever you called the software mixer you setup in /etc/asound.conf for no-mixer hardware and then delete/rename /usr/share/alsa/pulse-alsa.conf to prevent default output switching to pulse
-- Nick Koretsky (nick.koretsky@gmail.com)
Okay, so I tried both these suggestions, and have made some progress. (Both are quoted here for reference.)
Thanks to Nik and Nick! These suggestions don't seem to conflict, so for the present I have left them both in place and rebooted. (I kept the original config files, so I can always go back.)
At present, all my usual music players work, namely audacious and qmmp. I haven't tried audacity yet, but if these work, I expect that audacity won't be a problem.
Likewise, vlc now plays everything I try, even stuff that wouldn't play before. Likewise, kaffeine-trinity works with sound. I am not crazy about kaffeine, but maybe I haven't used it enough to appreciate it.
Nice :)
I have also tried others, with negative results: smplayer, mplayer, kmplayer, xine, totem, and most others do not play sound.
The big surprise is, now smplayer won't play sound in any files, not even for files that used to work before. (I used to be able to play some in smplayer, others in vlc.) It seems to work normally, and the settings ought to be right, so far as I can tell. I suspect that pulseaudio is necessary for those that will not play.
Anyway, I believe that I'm almost *there*, wherever there is. It would be nice to get smplayer working again, but at least vlc works now.
You could try "apulse" --> "apulse smplayer" - but "apulse" stopped working here some months ago ... well, might have been the upgrade from chimera to daedalus :)
Nik
Bill ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Sat, 7 May 2022 11:51:58 -0700 William Morder via tde-users users@trinitydesktop.org wrote:
I have also tried others, with negative results: smplayer, mplayer, kmplayer, xine, totem, and most others do not play sound.
Could mplayer be selecting the wrong type of audio output? Try adding -ao alsa to the command line (if necessary, you can also set the specific hardware output device—refer to the "AUDIO OUTPUT DRIVERS (MPLAYER ONLY)" section of the mplayer man page.)
E. Liddell
On Sat, 7 May 2022 11:51:58 -0700 William Morder via tde-users users@trinitydesktop.org wrote:
All you have to do is in system.pa comment out this line #load-module module-udev-detect and in default.pa add 2 lines referencing alsa device you want pulse to use load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=dsnoopplug this should be "hw:X,X" if you have real sound card with hardware mixer, or whatever you called the software mixer you setup in /etc/asound.conf for no-mixer hardware and then delete/rename /usr/share/alsa/pulse-alsa.conf to prevent default output switching to pulse
Okay, so I tried both these suggestions, and have made some progress. (Both are quoted here for reference.)
Thanks to Nik and Nick! These suggestions don't seem to conflict, so for the present I have left them both in place and rebooted. (I kept the original config files, so I can always go back.)
The big surprise is, now smplayer won't play sound in any files, not even for files that used to work before. (I used to be able to play some in smplayer, others in vlc.) It seems to work normally, and the settings ought to be right, so far as I can tell. I suspect that pulseaudio is necessary for those that will not play.
Erm... My post explain how to run pulse alongside with alsa without them conflicting and breaking thing. It only do something if pulse is running. If pulse is running, but you get no sound in default-to-pulse apps, then you probably put wrong device name in module-alsa-sink/source lines. Pls post output of aplay -l and aplay -L
On Saturday 07 May 2022 16:16:15 Nick Koretsky wrote:
Pls post output of aplay -l and aplay -L
See below.
Bill
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0
aplay -L null Discard all samples (playback) or generate zero samples (capture) lavrate Rate Converter Plugin Using Libav/FFmpeg Library samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization hw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct hardware device without any conversions plughw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Hardware device with all software conversions hdmi:CARD=Generic,DEV=0 HD-Audio Generic, HDMI 0 HDMI Audio Output dmix:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct sample mixing device usbstream:CARD=Generic HD-Audio Generic USB Stream Output hw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct hardware device without any conversions plughw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Hardware device with all software conversions default:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device sysdefault:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device front:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Front output / input surround21:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct sample mixing device usbstream:CARD=Generic_1 HD-Audio Generic USB Stream Output
Anno domini 2022 Sat, 7 May 17:59:26 -0700 William Morder via tde-users scripsit:
On Saturday 07 May 2022 16:16:15 Nick Koretsky wrote:
Pls post output of aplay -l and aplay -L
See below.
Bill
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0
Wild guess: mplayer uses card 0 aka HDMI. Does asoud.conf look like this?
$ cat /etc/asound.conf defaults.pcm.card 1 defaults.ctl.card 1 defaults.timer.card 1
Nik
aplay -L null Discard all samples (playback) or generate zero samples (capture) lavrate Rate Converter Plugin Using Libav/FFmpeg Library samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization hw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct hardware device without any conversions plughw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Hardware device with all software conversions hdmi:CARD=Generic,DEV=0 HD-Audio Generic, HDMI 0 HDMI Audio Output dmix:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct sample mixing device usbstream:CARD=Generic HD-Audio Generic USB Stream Output hw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct hardware device without any conversions plughw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Hardware device with all software conversions default:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device sysdefault:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device front:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Front output / input surround21:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct sample mixing device usbstream:CARD=Generic_1 HD-Audio Generic USB Stream Output
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
On Saturday 07 May 2022 22:26:17 Dr. Nikolaus Klepp wrote:
Wild guess: mplayer uses card 0 aka HDMI. Does asoud.conf look like this?
$ cat /etc/asound.conf defaults.pcm.card 1 defaults.ctl.card 1 defaults.timer.card 1
Nik
No. But this is because there is NO asound.conf file that I can find. I also looked around in other likely places, but no luck.
Bill
Anno domini 2022 Sat, 7 May 22:44:19 -0700 William Morder via tde-users scripsit:
On Saturday 07 May 2022 22:26:17 Dr. Nikolaus Klepp wrote:
Wild guess: mplayer uses card 0 aka HDMI. Does asoud.conf look like this?
$ cat /etc/asound.conf defaults.pcm.card 1 defaults.ctl.card 1 defaults.timer.card 1
Nik
No. But this is because there is NO asound.conf file that I can find. I also looked around in other likely places, but no luck.
Then create one. Mplayer et al. usually use card 0 to play sound, and that is in your case HDMI. It might be that you can put these lines in ~/,asoundrc, but I'm not sure.
You can get the list of active soundcards (here from the system I'm at right now):
$ cat /proc/asound/cards 0 [CinemaTM ]: USB-Audio - Microsoft® LifeCam Cinema(TM) Microsoft Microsoft® LifeCam Cinema(TM) at usb-0000:02:00.0-2.4, high speed 1 [Generic ]: HDA-Intel - HD-Audio Generic HD-Audio Generic at 0xfc400000 irq 53 2 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfc080000 irq 51
... and my headphones are on card 1, that's why I autogenerate /etc/asound.conf each time (those noce lines ..). I also have a /etc/modprobe.d/alsa-base.conf, that moves the webcams soundsystem to card 0 (otherwise jitsi wont't work on firefox) and HDMI to card 2 (othewise firefox send audio to HDMI):
$ cat /etc/modprobe.d/alsa-base.conf options snd_usb_audio index=0 #options snd_hda_intel index=1,2,3 options snd_hda_intel index=2,1 #options snd_hda_intel index=3,2,1 enable=0,0,1
Next thing: delete all configs of mplayer/smplayer etc that do not work.
For reference: https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture
Nik
Bill ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Saturday 07 May 2022 23:53:26 Dr. Nikolaus Klepp wrote:
No. But this is because there is NO asound.conf file that I can find. I also looked around in other likely places, but no luck.
Then create one. Mplayer et al. usually use card 0 to play sound, and that is in your case HDMI. It might be that you can put these lines in ~/,asoundrc, but I'm not sure.
I don't use HDMI (at least, not yet). The port is there on my laptop, but never touched.
Anno domini 2022 Sun, 8 May 00:23:59 -0700 William Morder via tde-users scripsit:
On Saturday 07 May 2022 23:53:26 Dr. Nikolaus Klepp wrote:
No. But this is because there is NO asound.conf file that I can find. I also looked around in other likely places, but no luck.
Then create one. Mplayer et al. usually use card 0 to play sound, and that is in your case HDMI. It might be that you can put these lines in ~/,asoundrc, but I'm not sure.
I don't use HDMI (at least, not yet). The port is there on my laptop, but never touched.
Which results in no sound when something uses it :)
Nik
tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
-- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...
Dr. Nikolaus Klepp wrote:
I don't use HDMI (at least, not yet). The port is there on my laptop, but never touched.
Which results in no sound when something uses it :)
In some hardware configurations the HDMI audio is loaded first and probably all sound is routed through this card, however there are instructions how to solve this issue. I suggest going through https://wiki.archlinux.org/title/PulseAudio/Troubleshooting
and see it can help solving
On Sat, 7 May 2022 17:59:26 -0700 William Morder via tde-users users@trinitydesktop.org wrote:
On Saturday 07 May 2022 16:16:15 Nick Koretsky wrote:
Pls post output of aplay -l and aplay -L
See below.
Bill
aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0
aplay -L null Discard all samples (playback) or generate zero samples (capture) lavrate Rate Converter Plugin Using Libav/FFmpeg Library samplerate Rate Converter Plugin Using Samplerate Library speexrate Rate Converter Plugin Using Speex Resampler jack JACK Audio Connection Kit oss Open Sound System pulse PulseAudio Sound Server upmix Plugin for channel upmix (4,6,8) vdownmix Plugin for channel downmix (stereo) with a simple spacialization hw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct hardware device without any conversions plughw:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Hardware device with all software conversions hdmi:CARD=Generic,DEV=0 HD-Audio Generic, HDMI 0 HDMI Audio Output dmix:CARD=Generic,DEV=3 HD-Audio Generic, HDMI 0 Direct sample mixing device usbstream:CARD=Generic HD-Audio Generic USB Stream Output hw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct hardware device without any conversions plughw:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Hardware device with all software conversions default:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device sysdefault:CARD=Generic_1 HD-Audio Generic, ALC257 Analog Default Audio Device front:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Front output / input surround21:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers dmix:CARD=Generic_1,DEV=0 HD-Audio Generic, ALC257 Analog Direct sample mixing device usbstream:CARD=Generic_1 HD-Audio Generic USB Stream Output
OK. ALC257 doesnt have hardware mixer. This means you have to set dmix as default output, and use it in alsa-sink line in pulse config.
On Sunday 08 May 2022 01:45:01 Nick Koretsky wrote:
OK. ALC257 doesnt have hardware mixer. This means you have to set dmix as default output, and use it in alsa-sink line in pulse config.
Just to make sure I am correct:
The lines from /etc/pulse/default.pa are load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=hw:1,0 Is that right?
Also, at the end of that same config file I see these lines: ### Make some devices default #set-default-sink output #set-default-source input Maybe uncomment one or both?
In option/preferences of smplayer (for example, which I use most often), the output driver is currently set for pulse. I believe that I had it set for alsa, so it got changed
Bill
On Sun, 8 May 2022 02:39:14 -0700 William Morder via tde-users users@trinitydesktop.org wrote:
On Sunday 08 May 2022 01:45:01 Nick Koretsky wrote:
OK. ALC257 doesnt have hardware mixer. This means you have to set dmix as default output, and use it in alsa-sink line in pulse config.
Just to make sure I am correct:
The lines from /etc/pulse/default.pa are load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=hw:1,0 Is that right?
According to aplay output you dont have dmixplug defined (there is no default names for alsa software mixer, this is something you either setup youself in asound.conf or distro may define some). Looking at your output, you should probably use dmix:1,0 or plughw:1,0 (try both) Also, asla-source probably should be plughw:1,0
But you also need to set dmix:1,0 or plughw:1,0 (same one you set for pulse to use) as default output for alsa by adding this to /etc/asound.conf
pcm.!default { type plug slave.pcm "dmix:1,0" }
you can test with aplay -D device-name somewavfile.wav that its is correct device and it actually work
Also, at the end of that same config file I see these lines: ### Make some devices default #set-default-sink output #set-default-source input Maybe uncomment one or both?
This shouldnt matter. With this setting pulse will see only 1 audio device and use it as default
On Sunday 08 May 2022 03:38:00 Nick Koretsky wrote:
Looking at your output, you should probably use dmix:1,0 or plughw:1,0 (try both) Also, asla-source probably should be plughw:1,0
But you also need to set dmix:1,0 or plughw:1,0 (same one you set for pulse to use) as default output for alsa by adding this to /etc/asound.conf
pcm.!default { type plug slave.pcm "dmix:1,0" }
you can test with aplay -D device-name somewavfile.wav that its is correct device and it actually work
Okay, so I made these changes. The lines in default.pa and system.pa follow your recommendations. I also have created /etc/asound.conf and copied those lines to that file.
The result is no change whatsoever: smplayer does not play sound at all, just the video; whereas vlc plays both sound and video.
This isn't the end of the world. VLC is pretty good, but I find it a bit awkward to navigate my playlists, etc.; for this, smplayer is much more convenient, in my opinion, but now it doesn't work.
I will return to the suggestions made in these posts, and study on that web page (https://wiki.archlinux.org/title/PulseAudio/Troubleshooting) to see if I can get it to work. No doubt I have missed something, but at present I am stumped.
Bill
On Wednesday 11 May 2022 08:31:19 pm William Morder via tde-users wrote:
On Sunday 08 May 2022 03:38:00 Nick Koretsky wrote:
Looking at your output, you should probably use dmix:1,0 or plughw:1,0 (try both) Also, asla-source probably should be plughw:1,0
But you also need to set dmix:1,0 or plughw:1,0 (same one you set for pulse to use) as default output for alsa by adding this to /etc/asound.conf
pcm.!default { type plug slave.pcm "dmix:1,0" }
you can test with aplay -D device-name somewavfile.wav that its is correct device and it actually work
Okay, so I made these changes. The lines in default.pa and system.pa follow your recommendations. I also have created /etc/asound.conf and copied those lines to that file.
The result is no change whatsoever: smplayer does not play sound at all, just the video; whereas vlc plays both sound and video.
This isn't the end of the world. VLC is pretty good, but I find it a bit awkward to navigate my playlists, etc.; for this, smplayer is much more convenient, in my opinion, but now it doesn't work.
I will return to the suggestions made in these posts, and study on that web page (https://wiki.archlinux.org/title/PulseAudio/Troubleshooting) to see if I can get it to work. No doubt I have missed something, but at present I am stumped.
Bill ____________________________________________________
Hi Bill
Can you make a little video of your settings for smplayer? Or take screenshots like the ones I've attached?
Kate
On Saturday 14 May 2022 05:31:14 Borg Labs wrote:
Hi Bill
Can you make a little video of your settings for smplayer? Or take screenshots like the ones I've attached?
Kate
Sure ... well, sort of. I can get ksnapshot to capture the screen for smplayer's settings, but not for that drop-down menu. I have most of the same items as yourself in the drop-down menu, although there are a few differences. At present I have alsa set, but I have also tried pulse and default, as well as sometimes other choices, but that's mainly what I do.
See attachment. If I can figure out how to capture the drop-down menu, I will send that, as well.
Thanks for your help.
Bill
On Saturday 14 May 2022 09:06:14 am William Morder via tde-users wrote:
On Saturday 14 May 2022 05:31:14 Borg Labs wrote:
Hi Bill
Can you make a little video of your settings for smplayer? Or take screenshots like the ones I've attached?
Kate
Sure ... well, sort of. I can get ksnapshot to capture the screen for smplayer's settings, but not for that drop-down menu. I have most of the same items as yourself in the drop-down menu, although there are a few differences. At present I have alsa set, but I have also tried pulse and default, as well as sometimes other choices, but that's mainly what I do.
See attachment. If I can figure out how to capture the drop-down menu, I will send that, as well.
Thanks for your help.
Bill
1. Check for all alsa packages.
2. See if you have the package "asoundconf-gtk" which will allow you to choose your default audio card ( I usually only have one but on me heavier machines I have 2 or 3).
3. Check your pulseaudio settings, if you have it installed (check input and output source/target).
4. Check alsamixer to see if anything is muted.
5. Compare vlc setting to smplayer, see if you can match them up.
To create one with a drop down menu, use ksnapshot. Choose full screen, set the delay to 4 second (or as much time as you need) and hit new snapshot, open the drop down menu and wait. Continue as usual from there.
Kate
On Saturday 14 May 2022 06:29:37 Borg Labs wrote:
asoundconf-gtk
Check for all alsa packages.
See if you have the package "asoundconf-gtk" which will allow you to
choose your default audio card ( I usually only have one but on me heavier machines I have 2 or 3).
No such package! (or so I am told).
output from apt-get E: Unable to locate package asoundconf-gtk E: Unable to locate package asoundconf-*
output from aptitude Couldn't find any package whose name or description matched "asoundconf-gtk" Unable to apply some actions, aborting
I already checked all those other possible issues; nothing is muted in alsamixer. And I have already tried to match up smplayer's settings with vlc's. The one advantage of vlc is that it has a very BIG and accessible drop-down menu to choose from.
Settings in vlc for audio output device reads "HD- Audio Generic, ALC257 Analog Default Audio Device". In fact, I use vlc's settings to troubleshoot on other audio output that were a problem. (For example, my Focusrite Scarlett 8i6 USB audio recording interface, a new addition to the family, which is now working just fine.)
Other audio output for playing music files or online radio also work just fine. System sounds (when I want to hear them) also seem to be working okay. The problem really is somewhat narrow, in that only vlc will play sound from videos; kaffeine-trinity also does that, but otherwise, no video players will play sound.
Just for kicks, I tested both vlc and smplayer with music files (no video, only sound), and the results are still the same; vlc plays everything, smplayer sends an error message.
Bill
Bill
Nick Koretsky wrote:
Erm... My post explain how to run pulse alongside with alsa without them conflicting and breaking thing. It only do something if pulse is running. If pulse is running, but you get no sound in default-to-pulse apps, then you probably put wrong device name in module-alsa-sink/source lines. Pls post output of aplay -l and aplay -L
I am using only standard configuration on the desktop with systemd+pulse I had no issue ever. I wonder why you are messing up with configurations and making things worse.
A user should usually not do anything in command line and although I am experienced user I avoid this and I think because of this I have no issues.
On Sunday 08 May 2022 01:23:12 deloptes wrote:
Nick Koretsky wrote:
Erm... My post explain how to run pulse alongside with alsa without them conflicting and breaking thing. It only do something if pulse is running. If pulse is running, but you get no sound in default-to-pulse apps, then you probably put wrong device name in module-alsa-sink/source lines. Pls post output of aplay -l and aplay -L
I am using only standard configuration on the desktop with systemd+pulse I had no issue ever. I wonder why you are messing up with configurations and making things worse.
A user should usually not do anything in command line and although I am experienced user I avoid this and I think because of this I have no issues.
I didn't do anything with it. My default is simply no action, to leave things unchanged from the previous state. I copied over settings from my desktop computer (which was running Devuan Beowulf 32-bit) to this new laptop (running Devuan Chimaera 64-bit). I made no other changes.
Moreover, my settings sometimes would change (it seems) from one reboot to the next, even though I had done nothing. Sometimes everything would run fine on alsa alone, without pulse; then I would need pulse; then alsa wouldn't work at all; then some things worked only with pulse, others only with alsa; then, the last straw, no sound at all in any videos.
It is because it hasn't been working right that I now must resort to these command-line tricks. Otherwise I wouldn't bother.
Bill
On Fri, 6 May 2022 18:15:18 -0700 William Morder via tde-users users@trinitydesktop.org wrote:
Not sure if this is a strictly TDE problem or not, but I did spend some time trying to restart or reconfigure the sound system. (TCC / Sound & Multimedia / Sound System)
When I first got this machine, I did have some problems getting it to work without pulseaudio, as I prefer alsa. Since then, it has been a battle of unseen forces, with pulseaudio and alsa apparently competing for control of my sound.
There is something that should be mentioned in any linux beginner guides and any sound config guides, but instead is an obscure knowledge - PULSE DOESNT HAVE TO TAKE OVER THE SOUND SYSTEM, it can perfectly function as 2nd level sound server akin to JACK.
All you have to do is in system.pa comment out this line #load-module module-udev-detect and in default.pa add 2 lines referencing alsa device you want pulse to use load-module module-alsa-sink device=dmixplug load-module module-alsa-source device=dsnoopplug this should be "hw:X,X" if you have real sound card with hardware mixer, or whatever you called the software mixer you setup in /etc/asound.conf for no-mixer hardware and then delete/rename /usr/share/alsa/pulse-alsa.conf to prevent default output switching to pulse