You are not logged in.

#1 2023-05-05 03:09:12

notpeppa
Member
Registered: 2023-05-05
Posts: 6

amixer doesn't seem to have the "Headphone" simple control.

Does anyone know how can i solve it? my pc does detect the headphones because it mutes the speakers when i plug them, but i can't hear sound. i go into amixer and i write "amixer set Headphone unmute" and the output is

amixer: Unable to find simple control 'Headphone'

Also if it helps, the output of amixer scontrols is

Simple mixer control 'Master',0 Simple mixer control 'Capture',0

Offline

#2 2023-05-05 06:32:43

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: amixer doesn't seem to have the "Headphone" simple control.

Please post:

$ amixer -c0

You just have ALSA installed? No pipewire or pulseaudio? If you have one of the latter try 'pavucontrol' to control the card.

Last edited by Maniaxx (2023-05-05 06:37:24)


sys2064

Offline

#3 2023-05-05 16:59:23

notpeppa
Member
Registered: 2023-05-05
Posts: 6

Re: amixer doesn't seem to have the "Headphone" simple control.

Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

i do have pavucontrol and pulseaudio installed, and pavucontrol does detect the headphones, but no sound is coming out

Offline

#4 2023-05-05 17:08:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: amixer doesn't seem to have the "Headphone" simple control.

Post in code and not quote tags

aplay -lL
amixer -c1
pactl list cards
pactl list sinks
pactl list sink-inputs

during attempted playback

Offline

#5 2023-05-05 18:22:44

notpeppa
Member
Registered: 2023-05-05
Posts: 6

Re: amixer doesn't seem to have the "Headphone" simple control.

sorry for my ignorance, im kind of new in this (i will post in code, i didn't know it was possible), but you mean i have to post the output of those commands right?, if so here they are

$ aplay -lL
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
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PulseAudio Sound Server)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=Generic_1
    HD-Audio Generic, CS8409/CS42L42 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, CS8409/CS42L42 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output
**** 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: CS8409/CS42L42 Analog [CS8409/CS42L42 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ amixer -c1
Simple mixer control 'Headphone',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback -63 - 0
  Mono:
  Front Left: Playback -63 [0%] [-99999.99dB]
  Front Right: Playback -63 [0%] [-99999.99dB]
Simple mixer control 'Speaker',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 195 [76%] [-12.00dB]
  Front Right: Playback 195 [76%] [-12.00dB]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined
  Capture channels: Mono
  Limits: Capture -97 - 12
  Mono: Capture -97 [0%] [-99999.99dB]
Simple mixer control 'Internal Mic',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 56 [89%] [5.00dB] [on]
  Front Right: Capture 56 [89%] [5.00dB] [on]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 2
  Front Left: 1 [50%] [10.00dB]
  Front Right: 1 [50%] [10.00dB]
$ pactl list cards
Card #0
	Name: alsa_card.pci-0000_04_00.1
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xc06c8000 irq 74"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "15de"
		device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
		device.string = "0"
		device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:hdmi-stereo
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71

Card #1
	Name: alsa_card.pci-0000_04_00.6
	Driver: module-alsa-card.c
	Owner Module: 7
	Properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xc06c0000 irq 75"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h/19h HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 32833, available: yes)
		output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 39268, available: yes)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 39333, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:analog-stereo+input:analog-stereo
	Ports:
		analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, latency offset: 0 usec, availability unknown)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-input-microphone"
			Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability unknown)
			Properties:
				device.icon_name = "audio-speakers"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "audio-headphones"
			Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
$ pactl list sinks
Sink #0
	State: SUSPENDED
	Name: alsa_output.pci-0000_04_00.1.hdmi-stereo
	Description: Raven/Raven2/Fenghuang HDMI/DP Audio Controller Digital Stereo (HDMI)
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 6
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xc06c8000 irq 74"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "15de"
		device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"
		device.string = "hdmi:0"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller Digital Stereo (HDMI)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, not available)
	Active Port: hdmi-output-0
	Formats:
		truehd-iec61937, format.rate = "[ 32000, 44100, 48000, 88200, 96000, 176400, 192000 ]"
		pcm

Sink #1
	State: SUSPENDED
	Name: alsa_output.pci-0000_04_00.6.analog-stereo
	Description: Family 17h/19h HD Audio Controller Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 7
	Mute: no
	Volume: front-left: 41350 /  63% / -12.00 dB,   front-right: 41350 /  63% / -12.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_04_00.6.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "CS8409/CS42L42 Analog"
		alsa.id = "CS8409/CS42L42 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xc06c0000 irq 75"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:04:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h/19h HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability unknown)
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, not available)
	Active Port: analog-output-speaker
	Formats:
		pcm
$ pactl list sink-inputs
Sink Input #39
	Driver: protocol-native.c
	Owner Module: 9
	Client: 19
	Sink: 1
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "48000"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
	Corked: yes
	Mute: no
	Volume: front-left: 47148 /  72% / -8.58 dB,   front-right: 47148 /  72% / -8.58 dB
	        balance 0.00
	Buffer Latency: 144604 usec
	Sink Latency: 0 usec
	Resample method: copy
	Properties:
		media.name = "(66) Can't Stop - YouTube"
		application.name = "Firefox"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		application.process.id = "32441"
		application.process.user = "vicente"
		application.process.host = "vicente"
		application.process.binary = "firefox"
		application.language = "C.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "109cbd0c73f24fbfa684214b30555de0"
		application.process.session_id = "1"
		application.icon_name = "firefox"
		module-stream-restore.id = "sink-input-by-application-name:Firefox"

i might have done some wrong because i didn't understand if i had to have playback during all of them or only during the pactl list sink-inputs

Offline

#6 2023-05-05 23:17:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: amixer doesn't seem to have the "Headphone" simple control.

The presence of the headphone seems to not be properly detected. Try

amixer -c1 set Headphone',0 100%,100%
pactl set-sink-port alsa_output.pci-0000_04_00.6.analog-stereo   analog-output-headphones

Offline

#7 2023-05-05 23:29:29

notpeppa
Member
Registered: 2023-05-05
Posts: 6

Re: amixer doesn't seem to have the "Headphone" simple control.

ok, i tried those and they give no output. there is also no sound coming out of the headphones yet. is there something else that can be done to fix this or is it a lost cause?

Offline

#8 2023-05-06 08:08:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: amixer doesn't seem to have the "Headphone" simple control.

Have you made sure the jack is actually properly plugged in, do the headphones work on other systems?

Offline

#9 2023-05-06 16:59:26

notpeppa
Member
Registered: 2023-05-05
Posts: 6

Re: amixer doesn't seem to have the "Headphone" simple control.

yes, they are properly plugged in because when i plug them pavucontrol does detect them and the speakers get muted. on android and windows they work perfectly. i have not tried other linux distros. i have also tried with multiple headphones and the problem continues

Offline

#10 2023-05-06 18:56:00

progandy
Member
Registered: 2012-05-17
Posts: 5,318

Re: amixer doesn't seem to have the "Headphone" simple control.

Did you fix V1del's first command, there was a quotation mark missing. Does amixer show the correct value after changing it?

amixer -c1 set 'Headphone',0 100%
amixer -c1 set 'Headphone',0 unmute
amixer -c1 get 'Headphone',0

By the way, you can get a TUI of alsamixer with e.g.

alsamixer -c1

Last edited by progandy (2023-05-06 18:56:35)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#11 2023-05-06 21:37:27

notpeppa
Member
Registered: 2023-05-05
Posts: 6

Re: amixer doesn't seem to have the "Headphone" simple control.

yup, i noticed that. i didn't try the second command and now that you mentioned it i tried and the console outputs "invalid command". like i said, i have no mute/unmute toggle

Offline

Board footer

Powered by FluxBB