Solved I got my headphones working, now my speakers don't work when I'm not plugged in.

Code:
userx@FreeBeSD:~$ cat /etc/rc.conf
clear_tmp_enable="YES"
sendmail_enable="NONE"
hostname="FreeBeSD.ork"
wlans_iwm0="wlan0"
ifconfig_wlan0="SYNCDHCP"
sshd_enable="YES"
moused_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
dbus_enable="YES"
hald_enable="YES"
kld_list="amdgpu cuse fusefs fusefs-ntfs ext2fs"
hcsecd_enable="YES"
webcamd_enable="YES"
huion_enable="YES"
mixer_enable="YES"
sound_load="YES"
snd_hda_load="YES"
snddetect_enable="YES"
devd_enable="YES"
autofs_enable="NO"
automount_enable="NO"
sysctl -a | grep speaker and headphone
Code:
dev.hdaa.1.nid20_original: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.1.nid20_config: 0x9017012f as=2 seq=15 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.1.nid20: pin: Speaker (Fixed)


dev.hdaa.1.nid33_original: 0x04211020 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.1.nid33_config: 0x04211020 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
dev.hdaa.1.nid33: pin: Headphones (Black Jack)
hints
Code:
#headphones
hint.hdaa.1.nid33.config="as=2 seq=0"
#Speaker
hint.hdaa.1.nid20.config="as=2 seq=15"
loader.conf
Code:
userx@FreeBeSD:~$ cat /boot/loader.conf
security.bsd.allow_destructive_dtrace=0
hw.sdhci.enable_msi=0
autoboot_delay="7"
snd_hda_load="YES"
ng_ubt_load="YES"
cuse_load="YES"
fusefs_load="YES"
Code:
userx@FreeBeSD:~$  cat /dev/sndstat
Installed devices:
pcm0: <ATI R6xx (HDMI)> (play)
pcm1: <Realtek ALC236 (Analog 4ch/2.0)> (play/rec) default
pcm2: <Realtek ALC236 (Right Analog Mic)> (rec)
No devices installed from userspace.
Code:
userx@FreeBeSD:~$ mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to 100:100
Mixer rec      is currently set to   0:0
Mixer ogain    is currently set to 100:100
Mixer monitor  is currently set to  67:67
Recording source: monitor

I don't know what else to post if I am missing someting
 
hints
Code:
#headphones
hint.hdaa.1.nid33.config="as=2 seq=0"
#Speaker
hint.hdaa.1.nid20.config="as=2 seq=15"
You should intervert your seq values:
Code:
#headphones
hint.hdaa.1.nid33.config="as=2 seq=15"
#Speaker
hint.hdaa.1.nid20.config="as=2 seq=0"
As mentioned in snd_hda(4):
The sequence number 15 has a special meaning for output associations. Output pins with this number and device type “Headphones” will duplicate (with automatic mute if jack detection is supported) the first pin in that association.

By the way,
hald_enable="YES"
... hald doesn't exist anymore, this line is pointless;
kld_list="amdgpu cuse fusefs fusefs-ntfs ext2fs"
... fusefs-ntfs isn't a kernel module, you don't need to load it anywhere: it's a FUSE module which works with the fusefs kernel module;
mixer_enable="YES"
... the sound mixer is enabled by default, you don't need to specify it;
sound_load="YES"
snd_hda_load="YES"
... lines of the kind xyz_load="YES" belong in /boot/loader.conf, not in /etc/rc.conf; by the way, these two are loaded by default, no need to specify them;
snddetect_enable="YES"
... not sure what this is supposed to enable (this old script?) but you can for sure remove this line too;
devd_enable="YES"
... devd is enabled by default;
snd_hda_load="YES"
... as said before, that's enabled by default;
cuse_load="YES"
fusefs_load="YES"
... it's pointless to ask for a module to be loaded in both /boot/loader.conf and /etc/rc.conf (kld_list) at the same time, choose the one or the other depending on when the module will be needed. Quoting rc.conf(5):
kld_list (str)
A whitespace-separated list of kernel modules to load right after the local disks are mounted, without any .ko extension or path. Loading modules at this point in the boot process is much faster than doing it via /boot/loader.conf for those modules not necessary for mounting local disks.
 
You should intervert your seq values:
Code:
#headphones
hint.hdaa.1.nid33.config="as=2 seq=15"
#Speaker
hint.hdaa.1.nid20.config="as=2 seq=0"
As mentioned in snd_hda(4):


By the way,

... hald doesn't exist anymore, this line is pointless;

... fusefs-ntfs isn't a kernel module, you don't need to load it anywhere: it's a FUSE module which works with the fusefs kernel module;

... the sound mixer is enabled by default, you don't need to specify it;

... lines of the kind xyz_load="YES" belong in /boot/loader.conf, not in /etc/rc.conf; by the way, these two are loaded by default, no need to specify them;

... not sure what this is supposed to enable (this old script?) but you can for sure remove this line too;

... devd is enabled by default;

... as said before, that's enabled by default;

... it's pointless to ask for a module to be loaded in both /boot/loader.conf and /etc/rc.conf (kld_list) at the same time, choose the one or the other depending on when the module will be needed. Quoting rc.conf(5):
yes, some of this I got off an old conf files from v12 hence the hald_enable="YES" , then lost that system then just got back to freebsd and pretty much forgot everything I picked up, I use linux mostly so basics are fair to midland. just configuring everything in freeBSD is like starting over again.

that stuff you said belongs in boot/loader.conf I seen that then I seen it the other way first so I left it.

I'll make them changes and see what happens. thanks.
 
Back
Top