Setting "SpkrRight PA Volume" and "SpkrLeft PA Volume" controls is only possible with text-GUI alsamixer, not command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've encountered a problem while trying to adjust the speaker volumes
on my Lenovo X13S laptop, which uses the SC8280XP-LENOVO-X13S sound
card. My goal is to increase the volume for the "SpkrRight PA Volume"
and "SpkrLeft PA Volume" controls without using GUI tools like
alsamixer. I prefer to use command-line tools for this task. Today, I
had to launch text-GUI after turning on the computer and repeatedly
switching controls roughly 100 times to find the two controls to
adjust.

Initially, I tried to use amixer with the -c 0 option to specify the
sound card and sset to set the volume levels. However, the command
returned an error stating "Invalid card number '1'." Upon running
aplay -l, I discovered that my sound card is indeed listed as card 0.

Here are the steps I followed and the issues I encountered:

List Controls: I listed all controls for the sound card with amixer -c
0 controls and found the controls for the right and left speaker
volumes (SpkrRight PA Volume and SpkrLeft PA Volume) do exist.

Set Volume: Attempting to set the volume with amixer -c 0 sset
'SpkrRight PA Volume' 90% resulted in an error: "amixer: Unable to
find simple control 'SpkrRight PA Volume',0".

Use of Numid: After that, I tried using the numeric identifier (numid)
for the controls: amixer -c 0 cset numid=105 90%. This time, the
command failed with a different error: "amixer: control.c:427:
snd_ctl_elem_info: Assertion `ctl && info && (info->id.name[0] ||
info->id.numid)' failed. Aborted (core dumped)".

I have verified that ALSA and my system are up to date, and I use
Ubuntu 23.10 (arm64). I am seeking advice on how to resolve this
issue, whether it be a workaround, a different command or tool I
should use, or any configuration changes that might help.

Thank you for your assistance and the output of amixer -c 0 controls
is provided below:
--
numid=134,iface=CARD,name='Headphone Jack'
numid=133,iface=CARD,name='Mic Jack'
numid=21,iface=MIXER,name='ADC1 Switch'
numid=36,iface=MIXER,name='ADC1 Volume'
numid=140,iface=MIXER,name='ADC1_MIXER Switch'
numid=135,iface=MIXER,name='ADC2 MUX'
numid=22,iface=MIXER,name='ADC2 Switch'
numid=37,iface=MIXER,name='ADC2 Volume'
numid=35,iface=MIXER,name='ADC2_BCS Disable Switch'
numid=141,iface=MIXER,name='ADC2_MIXER Switch'
numid=136,iface=MIXER,name='ADC3 MUX'
numid=23,iface=MIXER,name='ADC3 Switch'
numid=38,iface=MIXER,name='ADC3 Volume'
numid=142,iface=MIXER,name='ADC3_MIXER Switch'
numid=137,iface=MIXER,name='ADC4 MUX'
numid=24,iface=MIXER,name='ADC4 Switch'
numid=39,iface=MIXER,name='ADC4 Volume'
numid=143,iface=MIXER,name='ADC4_MIXER Switch'
numid=52,iface=MIXER,name='AUX_HPF Switch'
numid=154,iface=MIXER,name='AUX_RDAC Switch'
numid=14,iface=MIXER,name='CLSH Switch'
numid=89,iface=MIXER,name='DEC0 MODE'
numid=97,iface=MIXER,name='DEC0_BCS Switch'
numid=90,iface=MIXER,name='DEC1 MODE'
numid=91,iface=MIXER,name='DEC2 MODE'
numid=92,iface=MIXER,name='DEC3 MODE'
numid=93,iface=MIXER,name='DEC4 MODE'
numid=94,iface=MIXER,name='DEC5 MODE'
numid=95,iface=MIXER,name='DEC6 MODE'
numid=96,iface=MIXER,name='DEC7 MODE'
numid=25,iface=MIXER,name='DMIC0 Switch'
numid=26,iface=MIXER,name='DMIC1 Switch'
numid=144,iface=MIXER,name='DMIC1_MIXER Switch'
numid=28,iface=MIXER,name='DMIC2 Switch'
numid=145,iface=MIXER,name='DMIC2_MIXER Switch'
numid=29,iface=MIXER,name='DMIC3 Switch'
numid=146,iface=MIXER,name='DMIC3_MIXER Switch'
numid=30,iface=MIXER,name='DMIC4 Switch'
numid=147,iface=MIXER,name='DMIC4_MIXER Switch'
numid=31,iface=MIXER,name='DMIC5 Switch'
numid=148,iface=MIXER,name='DMIC5_MIXER Switch'
numid=32,iface=MIXER,name='DMIC6 Switch'
numid=149,iface=MIXER,name='DMIC6_MIXER Switch'
numid=33,iface=MIXER,name='DMIC7 Switch'
numid=150,iface=MIXER,name='DMIC7_MIXER Switch'
numid=151,iface=MIXER,name='DMIC8_MIXER Switch'
numid=16,iface=MIXER,name='DSD_L Switch'
numid=17,iface=MIXER,name='DSD_R Switch'
numid=112,iface=MIXER,name='EAR SPKR PA Gain'
numid=20,iface=MIXER,name='EAR_PA Volume'
numid=153,iface=MIXER,name='EAR_RDAC Switch'
numid=138,iface=MIXER,name='HDR12 MUX'
numid=139,iface=MIXER,name='HDR34 MUX'
numid=1,iface=MIXER,name='HP Digital Volume'
numid=9,iface=MIXER,name='HPH Type'
numid=7,iface=MIXER,name='HPHL Impedance'
numid=12,iface=MIXER,name='HPHL Switch'
numid=18,iface=MIXER,name='HPHL Volume'
numid=10,iface=MIXER,name='HPHL_COMP Switch'
numid=155,iface=MIXER,name='HPHL_RDAC Switch'
numid=8,iface=MIXER,name='HPHR Impedance'
numid=13,iface=MIXER,name='HPHR Switch'
numid=19,iface=MIXER,name='HPHR Volume'
numid=11,iface=MIXER,name='HPHR_COMP Switch'
numid=156,iface=MIXER,name='HPHR_RDAC Switch'
numid=71,iface=MIXER,name='IIR0 Band1'
numid=72,iface=MIXER,name='IIR0 Band2'
numid=73,iface=MIXER,name='IIR0 Band3'
numid=74,iface=MIXER,name='IIR0 Band4'
numid=75,iface=MIXER,name='IIR0 Band5'
numid=163,iface=MIXER,name='IIR0 INP0 MUX'
numid=53,iface=MIXER,name='IIR0 INP0 Volume'
numid=164,iface=MIXER,name='IIR0 INP1 MUX'
numid=54,iface=MIXER,name='IIR0 INP1 Volume'
numid=165,iface=MIXER,name='IIR0 INP2 MUX'
numid=55,iface=MIXER,name='IIR0 INP2 Volume'
numid=166,iface=MIXER,name='IIR0 INP3 MUX'
numid=56,iface=MIXER,name='IIR0 INP3 Volume'
numid=76,iface=MIXER,name='IIR1 Band1'
numid=61,iface=MIXER,name='IIR1 Band1 Switch'
numid=77,iface=MIXER,name='IIR1 Band2'
numid=62,iface=MIXER,name='IIR1 Band2 Switch'
numid=78,iface=MIXER,name='IIR1 Band3'
numid=63,iface=MIXER,name='IIR1 Band3 Switch'
numid=79,iface=MIXER,name='IIR1 Band4'
numid=64,iface=MIXER,name='IIR1 Band4 Switch'
numid=80,iface=MIXER,name='IIR1 Band5'
numid=65,iface=MIXER,name='IIR1 Band5 Switch'
numid=167,iface=MIXER,name='IIR1 INP0 MUX'
numid=57,iface=MIXER,name='IIR1 INP0 Volume'
numid=168,iface=MIXER,name='IIR1 INP1 MUX'
numid=58,iface=MIXER,name='IIR1 INP1 Volume'
numid=169,iface=MIXER,name='IIR1 INP2 MUX'
numid=59,iface=MIXER,name='IIR1 INP2 Volume'
numid=170,iface=MIXER,name='IIR1 INP3 MUX'
numid=60,iface=MIXER,name='IIR1 INP3 Volume'
numid=66,iface=MIXER,name='IIR2 Band1 Switch'
numid=67,iface=MIXER,name='IIR2 Band2 Switch'
numid=68,iface=MIXER,name='IIR2 Band3 Switch'
numid=69,iface=MIXER,name='IIR2 Band4 Switch'
numid=70,iface=MIXER,name='IIR2 Band5 Switch'
numid=34,iface=MIXER,name='LDOH Enable Switch'
numid=15,iface=MIXER,name='LO Switch'
numid=27,iface=MIXER,name='MBHC Switch'
numid=199,iface=MIXER,name='MultiMedia3 Mixer TX_CODEC_DMA_TX_3'
numid=200,iface=MIXER,name='MultiMedia3 Mixer VA_CODEC_DMA_TX_0'
numid=201,iface=MIXER,name='MultiMedia4 Mixer TX_CODEC_DMA_TX_3'
numid=202,iface=MIXER,name='MultiMedia4 Mixer VA_CODEC_DMA_TX_0'
numid=152,iface=MIXER,name='RDAC3_MUX'
numid=2,iface=MIXER,name='RX HPH Mode'
numid=174,iface=MIXER,name='RX INT0 DEM MUX'
numid=194,iface=MIXER,name='RX INT0 MIX2 INP'
numid=188,iface=MIXER,name='RX INT0_1 INTERP'
numid=179,iface=MIXER,name='RX INT0_1 MIX1 INP0'
numid=180,iface=MIXER,name='RX INT0_1 MIX1 INP1'
numid=181,iface=MIXER,name='RX INT0_1 MIX1 INP2'
numid=191,iface=MIXER,name='RX INT0_2 INTERP'
numid=176,iface=MIXER,name='RX INT0_2 MUX'
numid=175,iface=MIXER,name='RX INT1 DEM MUX'
numid=195,iface=MIXER,name='RX INT1 MIX2 INP'
numid=189,iface=MIXER,name='RX INT1_1 INTERP'
numid=182,iface=MIXER,name='RX INT1_1 MIX1 INP0'
numid=183,iface=MIXER,name='RX INT1_1 MIX1 INP1'
numid=184,iface=MIXER,name='RX INT1_1 MIX1 INP2'
numid=192,iface=MIXER,name='RX INT1_2 INTERP'
numid=177,iface=MIXER,name='RX INT1_2 MUX'
numid=196,iface=MIXER,name='RX INT2 MIX2 INP'
numid=190,iface=MIXER,name='RX INT2_1 INTERP'
numid=185,iface=MIXER,name='RX INT2_1 MIX1 INP0'
numid=186,iface=MIXER,name='RX INT2_1 MIX1 INP1'
numid=187,iface=MIXER,name='RX INT2_1 MIX1 INP2'
numid=193,iface=MIXER,name='RX INT2_2 INTERP'
numid=178,iface=MIXER,name='RX INT2_2 MUX'
numid=171,iface=MIXER,name='RX MIX TX0 MUX'
numid=172,iface=MIXER,name='RX MIX TX1 MUX'
numid=173,iface=MIXER,name='RX MIX TX2 MUX'
numid=206,iface=MIXER,name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia1'
numid=205,iface=MIXER,name='RX_CODEC_DMA_RX_0 Audio Mixer MultiMedia2'
numid=46,iface=MIXER,name='RX_COMP1 Switch'
numid=47,iface=MIXER,name='RX_COMP2 Switch'
numid=48,iface=MIXER,name='RX_EAR Mode Switch'
numid=49,iface=MIXER,name='RX_HPH HD2 Mode Switch'
numid=50,iface=MIXER,name='RX_HPH PWR Mode'
numid=157,iface=MIXER,name='RX_MACRO RX0 MUX'
numid=158,iface=MIXER,name='RX_MACRO RX1 MUX'
numid=159,iface=MIXER,name='RX_MACRO RX2 MUX'
numid=160,iface=MIXER,name='RX_MACRO RX3 MUX'
numid=161,iface=MIXER,name='RX_MACRO RX4 MUX'
numid=162,iface=MIXER,name='RX_MACRO RX5 MUX'
numid=40,iface=MIXER,name='RX_RX0 Digital Volume'
numid=43,iface=MIXER,name='RX_RX0 Mix Digital Volume'
numid=41,iface=MIXER,name='RX_RX1 Digital Volume'
numid=44,iface=MIXER,name='RX_RX1 Mix Digital Volume'
numid=42,iface=MIXER,name='RX_RX2 Digital Volume'
numid=45,iface=MIXER,name='RX_RX2 Mix Digital Volume'
numid=51,iface=MIXER,name='RX_Softclip Switch'
numid=103,iface=MIXER,name='SpkrLeft BOOST Switch'
numid=100,iface=MIXER,name='SpkrLeft COMP Offset'
numid=102,iface=MIXER,name='SpkrLeft COMP Switch'
numid=101,iface=MIXER,name='SpkrLeft DAC Switch'
numid=98,iface=MIXER,name='SpkrLeft PA Volume'
numid=104,iface=MIXER,name='SpkrLeft VISENSE Switch'
numid=99,iface=MIXER,name='SpkrLeft WSA MODE'
numid=110,iface=MIXER,name='SpkrRight BOOST Switch'
numid=107,iface=MIXER,name='SpkrRight COMP Offset'
numid=109,iface=MIXER,name='SpkrRight COMP Switch'
numid=108,iface=MIXER,name='SpkrRight DAC Switch'
numid=105,iface=MIXER,name='SpkrRight PA Volume'
numid=111,iface=MIXER,name='SpkrRight VISENSE Switch'
numid=106,iface=MIXER,name='SpkrRight WSA MODE'
numid=247,iface=MIXER,name='TX DEC0 MUX'
numid=248,iface=MIXER,name='TX DEC1 MUX'
numid=249,iface=MIXER,name='TX DEC2 MUX'
numid=250,iface=MIXER,name='TX DEC3 MUX'
numid=251,iface=MIXER,name='TX DEC4 MUX'
numid=252,iface=MIXER,name='TX DEC5 MUX'
numid=253,iface=MIXER,name='TX DEC6 MUX'
numid=254,iface=MIXER,name='TX DEC7 MUX'
numid=239,iface=MIXER,name='TX DMIC MUX0'
numid=240,iface=MIXER,name='TX DMIC MUX1'
numid=241,iface=MIXER,name='TX DMIC MUX2'
numid=242,iface=MIXER,name='TX DMIC MUX3'
numid=243,iface=MIXER,name='TX DMIC MUX4'
numid=244,iface=MIXER,name='TX DMIC MUX5'
numid=245,iface=MIXER,name='TX DMIC MUX6'
numid=246,iface=MIXER,name='TX DMIC MUX7'
numid=231,iface=MIXER,name='TX SMIC MUX0'
numid=232,iface=MIXER,name='TX SMIC MUX1'
numid=233,iface=MIXER,name='TX SMIC MUX2'
numid=234,iface=MIXER,name='TX SMIC MUX3'
numid=235,iface=MIXER,name='TX SMIC MUX4'
numid=236,iface=MIXER,name='TX SMIC MUX5'
numid=237,iface=MIXER,name='TX SMIC MUX6'
numid=238,iface=MIXER,name='TX SMIC MUX7'
numid=3,iface=MIXER,name='TX0 MODE'
numid=4,iface=MIXER,name='TX1 MODE'
numid=5,iface=MIXER,name='TX2 MODE'
numid=6,iface=MIXER,name='TX3 MODE'
numid=207,iface=MIXER,name='TX_AIF1_CAP Mixer DEC0'
numid=208,iface=MIXER,name='TX_AIF1_CAP Mixer DEC1'
numid=209,iface=MIXER,name='TX_AIF1_CAP Mixer DEC2'
numid=210,iface=MIXER,name='TX_AIF1_CAP Mixer DEC3'
numid=211,iface=MIXER,name='TX_AIF1_CAP Mixer DEC4'
numid=212,iface=MIXER,name='TX_AIF1_CAP Mixer DEC5'
numid=213,iface=MIXER,name='TX_AIF1_CAP Mixer DEC6'
numid=214,iface=MIXER,name='TX_AIF1_CAP Mixer DEC7'
numid=215,iface=MIXER,name='TX_AIF2_CAP Mixer DEC0'
numid=216,iface=MIXER,name='TX_AIF2_CAP Mixer DEC1'
numid=217,iface=MIXER,name='TX_AIF2_CAP Mixer DEC2'
numid=218,iface=MIXER,name='TX_AIF2_CAP Mixer DEC3'
numid=219,iface=MIXER,name='TX_AIF2_CAP Mixer DEC4'
numid=220,iface=MIXER,name='TX_AIF2_CAP Mixer DEC5'
numid=221,iface=MIXER,name='TX_AIF2_CAP Mixer DEC6'
numid=222,iface=MIXER,name='TX_AIF2_CAP Mixer DEC7'
numid=223,iface=MIXER,name='TX_AIF3_CAP Mixer DEC0'
numid=224,iface=MIXER,name='TX_AIF3_CAP Mixer DEC1'
numid=225,iface=MIXER,name='TX_AIF3_CAP Mixer DEC2'
numid=226,iface=MIXER,name='TX_AIF3_CAP Mixer DEC3'
numid=227,iface=MIXER,name='TX_AIF3_CAP Mixer DEC4'
numid=228,iface=MIXER,name='TX_AIF3_CAP Mixer DEC5'
numid=229,iface=MIXER,name='TX_AIF3_CAP Mixer DEC6'
numid=230,iface=MIXER,name='TX_AIF3_CAP Mixer DEC7'
numid=81,iface=MIXER,name='TX_DEC0 Volume'
numid=82,iface=MIXER,name='TX_DEC1 Volume'
numid=83,iface=MIXER,name='TX_DEC2 Volume'
numid=84,iface=MIXER,name='TX_DEC3 Volume'
numid=85,iface=MIXER,name='TX_DEC4 Volume'
numid=86,iface=MIXER,name='TX_DEC5 Volume'
numid=87,iface=MIXER,name='TX_DEC6 Volume'
numid=88,iface=MIXER,name='TX_DEC7 Volume'
numid=288,iface=MIXER,name='VA DEC0 MUX'
numid=289,iface=MIXER,name='VA DEC1 MUX'
numid=290,iface=MIXER,name='VA DEC2 MUX'
numid=291,iface=MIXER,name='VA DEC3 MUX'
numid=284,iface=MIXER,name='VA DMIC MUX0'
numid=285,iface=MIXER,name='VA DMIC MUX1'
numid=286,iface=MIXER,name='VA DMIC MUX2'
numid=287,iface=MIXER,name='VA DMIC MUX3'
numid=272,iface=MIXER,name='VA_AIF1_CAP Mixer DEC0'
numid=273,iface=MIXER,name='VA_AIF1_CAP Mixer DEC1'
numid=274,iface=MIXER,name='VA_AIF1_CAP Mixer DEC2'
numid=275,iface=MIXER,name='VA_AIF1_CAP Mixer DEC3'
numid=276,iface=MIXER,name='VA_AIF2_CAP Mixer DEC0'
numid=277,iface=MIXER,name='VA_AIF2_CAP Mixer DEC1'
numid=278,iface=MIXER,name='VA_AIF2_CAP Mixer DEC2'
numid=279,iface=MIXER,name='VA_AIF2_CAP Mixer DEC3'
numid=280,iface=MIXER,name='VA_AIF3_CAP Mixer DEC0'
numid=281,iface=MIXER,name='VA_AIF3_CAP Mixer DEC1'
numid=282,iface=MIXER,name='VA_AIF3_CAP Mixer DEC2'
numid=283,iface=MIXER,name='VA_AIF3_CAP Mixer DEC3'
numid=129,iface=MIXER,name='VA_DEC0 MODE'
numid=125,iface=MIXER,name='VA_DEC0 Volume'
numid=130,iface=MIXER,name='VA_DEC1 MODE'
numid=126,iface=MIXER,name='VA_DEC1 Volume'
numid=131,iface=MIXER,name='VA_DEC2 MODE'
numid=127,iface=MIXER,name='VA_DEC2 Volume'
numid=132,iface=MIXER,name='VA_DEC3 MODE'
numid=128,iface=MIXER,name='VA_DEC3 Volume'
numid=259,iface=MIXER,name='WSA RX0 MUX'
numid=260,iface=MIXER,name='WSA RX1 MUX'
numid=257,iface=MIXER,name='WSA RX_MIX EC0_MUX'
numid=258,iface=MIXER,name='WSA RX_MIX EC1_MUX'
numid=261,iface=MIXER,name='WSA RX_MIX0 MUX'
numid=262,iface=MIXER,name='WSA RX_MIX1 MUX'
numid=255,iface=MIXER,name='WSA_AIF_VI Mixer WSA_SPKR_VI_1'
numid=256,iface=MIXER,name='WSA_AIF_VI Mixer WSA_SPKR_VI_2'
numid=204,iface=MIXER,name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia1'
numid=203,iface=MIXER,name='WSA_CODEC_DMA_RX_0 Audio Mixer MultiMedia2'
numid=121,iface=MIXER,name='WSA_COMP1 Switch'
numid=122,iface=MIXER,name='WSA_COMP2 Switch'
numid=117,iface=MIXER,name='WSA_RX0 Digital Mute'
numid=115,iface=MIXER,name='WSA_RX0 Digital Volume'
numid=123,iface=MIXER,name='WSA_RX0 EC_HQ Switch'
numid=263,iface=MIXER,name='WSA_RX0 INP0'
numid=264,iface=MIXER,name='WSA_RX0 INP1'
numid=265,iface=MIXER,name='WSA_RX0 INP2'
numid=271,iface=MIXER,name='WSA_RX0 INT0 SIDETONE MIX'
numid=266,iface=MIXER,name='WSA_RX0 MIX INP'
numid=119,iface=MIXER,name='WSA_RX0_MIX Digital Mute'
numid=118,iface=MIXER,name='WSA_RX1 Digital Mute'
numid=116,iface=MIXER,name='WSA_RX1 Digital Volume'
numid=124,iface=MIXER,name='WSA_RX1 EC_HQ Switch'
numid=267,iface=MIXER,name='WSA_RX1 INP0'
numid=268,iface=MIXER,name='WSA_RX1 INP1'
numid=269,iface=MIXER,name='WSA_RX1 INP2'
numid=270,iface=MIXER,name='WSA_RX1 MIX INP'
numid=120,iface=MIXER,name='WSA_RX1_MIX Digital Mute'
numid=113,iface=MIXER,name='WSA_Softclip0 Enable'
numid=114,iface=MIXER,name='WSA_Softclip1 Enable'
numid=197,iface=MIXER,name='stream0.vol_ctrl0 MultiMedia1 Playback Volu'
numid=198,iface=MIXER,name='stream1.vol_ctrl1 MultiMedia2 Playback Volu'
This is Weiwu's private email address.
Normally, contact me@xxxxxxxxxxx


_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user



[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux