LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2022, 07:43 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Rep: Reputation: 271Reputation: 271Reputation: 271
mplayer no longer sees alsa, won't control volume


I re-booted into 5.16.9, now mplayer no longer sees alsa, won't control the volume. alsa is there. I can use amixer or alsamixer to control the volume. I booted into 5.16.8 and the same happened, so the kernel change didn't do it, and it happened a day after upgrading the alsa packages.

alsamixer sees pulse as the default audio; I have to switch to use the hardware directly.
 
Old 02-12-2022, 03:03 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
a couple of suggestions.

1) you could kill pulseaudio, but I do not use slackware but some distros hide the true pathway to the daemon under /usr/lib...

2) I am guessing you are claiming the old alsa....did not show pulseaudio in charge of your device?
but what about your sound devices....have they changed order?

Code:
aplay -l
3) If you do not need hdmi output....disable it completely with a file called anything.conf mine is
Code:
cat /etc/modprobe.d/index.conf 
options snd_hda_intel index=0 enable=0
what that says is....if your sound is intel....for the device alsa sees as index=0.....most distros that is hdmi.....disable it
full reboot to test it.

Then the first detected device after disable of hdmi is analog and it gets index=0

this means my full result is
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
(b) and I use "apulse firefox" to have sound in my web browser
YMMV

4) you could always re-compile mplayer, vlc, qmplay2 etc to disable pulseaudio.
eg only to show a dirty way of disabling pulseaudio which was a forced dependency in loading some other package
http://tinycorelinux.net/11.x/x86_64...ild-qmplay2.sh

that script contains at least one typo "install/strip" should read as install-strip

Last edited by aus9; 02-12-2022 at 03:10 AM.
 
Old 02-12-2022, 04:13 AM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 926

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
The first step would be to start mplayer in console window and see what messages it displays.
 
Old 02-12-2022, 09:32 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by aus9 View Post
you could kill pulseaudio
mplayer, amongst others, uses its libraries,so if I remove the package I would have to build custom versions of mplayer and other software - possible, but I hope for something simpler. I removed the executable but that makes alsamixer not work at all.

Quote:
Originally Posted by aus9 View Post
I am guessing you are claiming the old alsa....did not show pulseaudio in charge of your device?
Yes. It showed the hardware directly.

Code:
aplay -l
returns:

Quote:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: Generic Digital [Generic Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
Quote:
Originally Posted by aus9 View Post
3) If you do not need hdmi output....disable it completely with...
That makes it disappear completely and nothing work.

Quote:
Originally Posted by lvm_ View Post
The first step would be to start mplayer in console window and see what messages it displays.
I run it no other way. mplayer displays exactly the same thing. When I try to change the volume it reports changing the volume; the volume doesn't change: it thinks it's working.

Last edited by RandomTroll; 02-12-2022 at 11:34 PM.
 
Old 02-27-2022, 10:10 PM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Specifying the hardware device with device=hw=0:0 makes it work. A virtual device making it not the default caused the problem.
 
Old 02-28-2022, 01:09 PM   #6
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 258

Rep: Reputation: 33
in my experience, playing music from the CLI can be a bit tricky on my Slackware boxes. once in a while i need to kill pulseaudio, depending on what audio sources and clients have been used in other applications. it's an (audio) jungle, at least to me.

here my own notes to play music using 'pulse' with mplayer :

Code:
killall pulseaudio

pactl list cards short

  0       alsa_card.pci-0000_01_00.1      module-alsa-card.c
  1       alsa_card.usb-046d_0809_C2C925C9-02     module-alsa-card.c
  2       alsa_card.usb-GN_Netcom_A_S_Jabra_EVOLVE_LINK_00000000000008-00 module-alsa-card.c
  3       alsa_card.pci-0000_00_1f.3      module-alsa-card.c

mplayer -ao pulse::1 /PATH/myFiles

pavucontrol
or, like you said, RandomTroll, one may use 'hw' :

Code:
mplayer -af channels=2:2:0:0:1:0 -ao alsa:device=hw=0.0 /PATH/myFiles
 
Old 02-28-2022, 11:34 PM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
I put
Quote:
ao=alsa:device=hw=0.0
in $HOME/.mplayer/config.

I had it there quoted out with # from the days when I had 2 audio devices and had to switch between them. I've had problems I associated with pulse before. This time it created a virtual device that intercepted volume control - why it started to do that a few days ago after years of not doing it - I don't know.
 
Old 03-02-2022, 12:32 PM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Annoyingly it stopped working again after I rebooted into 5.16.12. I can't make mplayer see the hardware even with the hw switch. If I get rid of pulse alsa doesn't work at all, complaining of its absence. Getting rid of references to pulse in all of alsa's configuration files doesn't help. amixer and alsamixer can manipulate the hardware but won't run if pulse is absent.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung Galaxy Book 12 - no output from speakers - volume control 'sees' the sound. makem Linux - Hardware 3 02-11-2018 03:16 PM
How to start mplayer with reduced volume to 70pct ? mplayer -volume ? frenchn00b Linux - General 1 03-29-2008 08:29 AM
Volume Control: Intel 82801DB-ICH4 (Alsa mixer) won't save volume levels. cayspekko Linux - Newbie 2 01-31-2008 12:17 AM
Fedora 7 sees/access' XP pro - XP pro sees/does not access F7 Lunarizing Linux - Wireless Networking 1 11-10-2007 12:37 PM
Linux sees 2003 Domain, windows sees Linux ..but.... Stealthy_C Linux - Networking 4 06-14-2005 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration