Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to manage sound levels.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 118

PostPosted: Sun Jun 20, 2021 5:36 am    Post subject: Unable to manage sound levels. Reply with quote

Hey everyone,

I'm having a lot of problems managing sound levels.

Currently, there is no way for me to manage sound levels except using alsamixer. ncmpcpp, vimpc, vlc, mpc and MALP (android app) all say there is no mixer when attempting to manage volume, and running any programs which require sound override my alsamixer settings. Even running a new program while I have alsamixer open in front of me will hijack and override my alsamixer settings, even if I'm in mid conversation using steam voice chat. Needless to say this is infuriating, and requires me to constantly juggle audio settings while trying to game/watch youtube/use my headset, etc.

In addition, playing music with ncmpcpp while I have firefox running will cause the music to play over my monitor speakers. If I close down firefox and restart my ncmpcpp client the music will play over my PC speakers as expected.

I'm not sure how to troubleshoot this; ideally I would like all audio to be output through my headset and PC speakers, and to be able to adjust volume up/down using the mpd mixer interface included in vimpc/mpc/ncmpcpp.

Please advise.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 20, 2021 5:48 pm    Post subject: Reply with quote

If you have pulseaudio then install pavucontrol.
You get a nice little interface to manage all these things.
That would be ideal.
If not
maybe
Code:

media-sound/volumeicon

but just for volume level.
_________________
:)
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 494

PostPosted: Sun Jun 20, 2021 8:48 pm    Post subject: Reply with quote

Sounds like you need some (d)mixing going on. Try this ~/.asoundrc file
~/.asoundrc:

pcm.!default {
        type plug
        slave.pcm "speakers"
}

ctl:!default {
        type hw
        card 0   #<<### HERE
}

pcm.speakers  {
        type dmix
        ipc_key 1024
        ipc_key_add_uid false # let multiple users share
        ipc_perm 0666
        slave {
                pcm "hw:0,0"  #<<###HERE
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 44100
        }
        hint {
                show on
                description "Speakers"
        }
        bindings {
                0 0
                1 1
        }
}
The bits marked "#<<###HERE" you need to alter to match your hardware, aplay -L can help with that.
Back to top
View user's profile Send private message
dartleader
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2019
Posts: 118

PostPosted: Mon Jul 12, 2021 3:17 pm    Post subject: Reply with quote

Hi Ralphred, thanks for the advice.

I've tried adding that .asoundrc file, and pointing it at my PCH card, which is what I think I want, but I am still having no luck whatsoever managing sound levels between applications.

Here is the output of my aplay -L:
Code:
Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
speakers
    Speakers
sysdefault:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=4
    HDA NVidia, HDMI 4
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=5
    HDA NVidia, HDMI 5
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=6
    HDA NVidia, HDMI 6
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output


And alamahant, I've installed pavucontrol and it's not able to control anything. I have no devices listed in pavucontrol.

Here is the output of aplay -C:
Code:
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.4/work/alsa-lib-1.2.4/src/pcm/pcm_dmix.c:1009:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:830: audio open error: Invalid argument
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum