Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to detect 3.5mm headphones ? [SOLVED]
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Mon Jun 10, 2024 10:06 am    Post subject: How to detect 3.5mm headphones ? [SOLVED] Reply with quote

Hello,
I have three different configurations and two headphones.
One of them are USB, Plantronics. Plantronics works like charm.

I have problem with other 3.5mm headphones.

They are working in laptop, but not in desktop machine.
In desktop there is no headphones option (tried with alsamixer).
What do I need to turn on in kernel so headphones will work ?

Log from Artix, laptop (headphones is working):

Quote:
linux@linux Downloads]$ 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: 1/1
Subdevice #0: subdevice #0

////////////////////

EDIT: Note to self -- just plug in directly in soundcard and it will work.





Quote:
odule Size Used by
ntfs3 286720 0
ccm 16384 3
binfmt_misc 24576 1
nls_ascii 12288 1
intel_rapl_msr 16384 0
intel_rapl_common 32768 1 intel_rapl_msr
joydev 24576 0
snd_sof_amd_vangogh 12288 0
snd_sof_amd_rembrandt 12288 0
snd_sof_amd_renoir 12288 0
edac_mce_amd 36864 0
snd_sof_amd_acp 49152 3 snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_renoir
snd_sof_pci 24576 3 snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_sof_amd_renoir
snd_sof_xtensa_dsp 12288 1 snd_sof_amd_acp
snd_sof 294912 2 snd_sof_amd_acp,snd_sof_pci
kvm_amd 147456 0
snd_hda_codec_realtek 172032 1
snd_sof_utils 16384 1 snd_sof
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
kvm 749568 1 kvm_amd
snd_soc_core 339968 1 snd_sof
ledtrig_audio 12288 1 snd_hda_codec_generic
snd_compress 28672 1 snd_soc_core
ac97_bus 12288 1 snd_soc_core
btusb 73728 0
irqbypass 12288 1 kvm
rtw88_8822ce 12288 0
snd_hda_codec_hdmi 81920 1
snd_pcm_dmaengine 16384 1 snd_soc_core
crct10dif_pclmul 12288 1
btrtl 28672 1 btusb
crc32_pclmul 12288 0
rtw88_8822c 483328 1 rtw88_8822ce
uvcvideo 122880 0
snd_pci_ps 20480 0
polyval_clmulni 12288 0
btintel 53248 1 btusb
polyval_generic 12288 1 polyval_clmulni
snd_hda_intel 49152 1
snd_rpl_pci_acp6x 16384 0
btbcm 24576 1 btusb
videobuf2_vmalloc 16384 1 uvcvideo
ghash_clmulni_intel 12288 0
rtw88_pci 28672 1 rtw88_8822ce
snd_intel_dspcfg 36864 2 snd_hda_intel,snd_sof
uvc 12288 1 uvcvideo
btmtk 12288 1 btusb
snd_acp_pci 12288 0
sha512_ssse3 45056 0
snd_intel_sdw_acpi 16384 1 snd_intel_dspcfg
videobuf2_memops 16384 1 videobuf2_vmalloc
rtw88_core 253952 2 rtw88_pci,rtw88_8822c
snd_hda_codec 172032 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
hid_multitouch 28672 0
sha256_ssse3 28672 0
snd_acp_legacy_common 12288 1 snd_acp_pci
videobuf2_v4l2 36864 1 uvcvideo
snd_hda_core 114688 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
bluetooth 925696 6 btrtl,btmtk,btintel,btbcm,btusb
hid_generic 12288 0
snd_pci_acp6x 16384 0
sha1_ssse3 32768 0
snd_hwdep 12288 1 snd_hda_codec
mac80211 872448 2 rtw88_pci,rtw88_core
aesni_intel 352256 2
videodev 299008 2 videobuf2_v4l2,uvcvideo
snd_pcm 163840 12 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
snd_pci_acp5x 16384 0
crypto_simd 16384 1 aesni_intel
sp5100_tco 16384 0
videobuf2_common 57344 4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
snd_rn_pci_acp3x 16384 0
snd_timer 45056 1 snd_pcm
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
ecdh_generic 16384 1 bluetooth
mc 81920 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
ecc 40960 1 ecdh_generic
rapl 20480 0
input_leds 12288 0
wmi_bmof 12288 0
efi_pstore 12288 0
pcspkr 12288 0
k10temp 12288 0
cfg80211 524288 2 rtw88_core,mac80211
r8169 90112 0
ideapad_laptop 45056 0
snd_acp_config 16384 8 snd_rn_pci_acp3x,snd_pci_acp6x,snd_pci_acp5x,snd_sof_amd_rembrandt,snd_sof_amd_vangogh,snd_acp_pci,snd_pci_ps,snd_sof_amd_renoir
i2c_hid_acpi 12288 0
sparse_keymap 12288 1 ideapad_laptop
snd_soc_acpi 16384 2 snd_sof_amd_acp,snd_acp_config
snd 131072 13 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
i2c_hid 32768 1 i2c_hid_acpi
realtek 36864 1
platform_profile 12288 1 ideapad_laptop
i2c_piix4 28672 0
ccp 118784 1 kvm_amd
soundcore 16384 1 snd
libarc4 12288 1 mac80211
snd_pci_acp3x 16384 0
mdio_devres 12288 1 r8169
libphy 204800 3 r8169,mdio_devres,realtek
hid 159744 3 i2c_hid,hid_multitouch,hid_generic
mac_hid 12288 0
amdgpu 10010624 11
i2c_algo_bit 12288 1 amdgpu
drm_ttm_helper 12288 1 amdgpu
ttm 90112 2 amdgpu,drm_ttm_helper
drm_exec 12288 1 amdgpu
drm_suballoc_helper 12288 1 amdgpu
amdxcp 12288 1 amdgpu
drm_buddy 20480 1 amdgpu
gpu_sched 36864 1 amdgpu
drm_display_helper 200704 1 amdgpu
drm_kms_helper 229376 4 drm_display_helper,amdgpu
drm 671744 17 gpu_sched,i2c_hid,drm_kms_helper,drm_exec,drm_suballoc_helper,drm_display_helper,drm_buddy,amdgpu,drm_ttm_helper,ttm,amdxcp
nvme 49152 4
serio_raw 16384 0
cec 73728 1 drm_display_helper
ahci 49152 0
nvme_core 155648 5 nvme
xhci_pci 20480 0
libahci 49152 1 ahci
rc_core 61440 1 cec
xhci_pci_renesas 16384 1 xhci_pci
nvme_common 20480 1 nvme_core
video 69632 2 amdgpu,ideapad_laptop
wmi 32768 3 video,wmi_bmof,ideapad_laptop


Thank you.


Last edited by RIA77 on Mon Jun 10, 2024 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54577
Location: 56N 3W

PostPosted: Mon Jun 10, 2024 11:31 am    Post subject: Reply with quote

RIA77,

Desktops vary. Maybe you don't detect the headphone jack.

Some systems have the headphone jack wired with the front stereo output (green output). When there is a jack in the headphone socket, the speaker output is switched off by a mechanical switch in the headphone jack socket.

You use the same controls for both.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 649

PostPosted: Mon Jun 10, 2024 12:08 pm    Post subject: Reply with quote

You should check out hdajackretask (it's part of media-sound/alsa-tools).

I use jackd directly above alsa, so my "headphone wizardry" is done there. That said my .asoundrc foo isn't totally useless and you should be able to create a "headphones" pcm that maps onto the correct pins.
I had a software switch that was "switching" between "rear audio outputs" and "front headphone" output on 3.5mm jack insertion that I had to "switch off" with hdajackretask to get the behaviour I wanted (both on all the time as a selectable outputs in kmix); hdajackretask was essential is sorting this out as it knew more about my sound card/chip than the kernel did, and opened the door. That door lead to to being able to read the right bit of the kernel documentation and have the correct kernel commandline options in grub to enable "all the functionality" at boot.

I digress: Check out hdajackretask, it may have the tickbox you want to make things work, if it doesn't it'll still provide information to help looking deeper.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3409

PostPosted: Mon Jun 10, 2024 7:32 pm    Post subject: Reply with quote

I on the other hand don't think it's an issue with headphone jack at all.
My guess is that your system is just sending audio to HDMI instead. It's probably the typical problem with speakers connected to analog audio device while digital is indexed with 0, which makes it the default playback device.


You can edit aosound config file to change the default playback device, you can reorder devices to make analog indexed at 0, or you can add pipewire to your audio stack and flag analog as the default output using its interface.
If you have (and want to use) multiple audio devices, pipewire might be the most convenient way; for a static setup reordering indexes was the easiest trick, as it only took 1 or 2 short lines in some config file, but I don't remember details anymore, so hopefully someone else can dig up a link. I mean, pipewire still does work for a static setup, so you might as well go this route
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Mon Jun 10, 2024 7:37 pm    Post subject: Reply with quote

Thank you all. Just plugged in directly in soundcard.
Maybe front is not working.
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