No sound with realtek sound card

Hi,

I start my desktop environment with startxfce4 but there is no sound.
Pulseaudio seems working (I mean pgrep gives pid when I type pgrep pulseaudio).
Pipewire installed as a dependency but has no processes.

My /etc/rc.conf file
Code:
clear_tmp_enable="YES"
hostname="2fort"
keymap="tr.kbd"
ifconfig_re0="DHCP"
sshd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="linux linux64 i915kms"
dbus_enable="YES"

My /boot/loader.conf file
Code:
snd_driver_load="YES"
snd_hda_load="YES"

My /boot/loader.conf file
Code:
hint.fdc.0.at="isa"
hint.fdc.0.port="0x3F0"
hint.fdc.0.irq="6"
hint.fdc.0.drq="2"
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.fd.1.at="fdc0"
hint.fd.1.drive="1"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.uart.0.at="isa"
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x10"
hint.uart.0.irq="4"
hint.uart.1.at="isa"
hint.uart.1.port="0x2F8"
hint.uart.1.irq="3"
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.atrtc.0.at="isa"
hint.atrtc.0.port="0x70"
hint.atrtc.0.irq="8"
hint.attimer.0.at="isa"
hint.attimer.0.port="0x40"
hint.attimer.0.irq="0"
hint.acpi_throttle.0.disabled="1"
hint.p4tcc.0.disabled="1"
hint.hdaa.0.nid33.config="as=1 seq=15" # sound auto switch

My /etc/sysctl.conf file
Code:
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
hw.snd.default_unit= # set Realtek rear panel as default playback device

The commands I ran
Code:
echo hint.`sysctl -a | grep Headphones | grep original | cut -d _ -f 1 | cut -d . -f 2,3,4`.config=\"as=1 seq=15\" \# sound auto switch >> /boot/device.hints

echo hw.snd.default_unit=`cat /dev/sndstat | grep Rear | cut -c 4` \# set Realtek rear panel as default playback device >> /etc/sysctl.conf

kldstat
Code:
Id Refs Address                Size Name
 1  165 0xffffffff80200000  1d345d8 kernel
 2    1 0xffffffff81f35000     4330 snd_driver.ko
 3    2 0xffffffff81f3a000     7238 snd_vibes.ko
 4    2 0xffffffff81f42000     5b98 snd_via82c686.ko
 5    2 0xffffffff81f48000     5c78 snd_t4dwave.ko
 6    4 0xffffffff81f4e000     3238 snd_spicds.ko
 7    2 0xffffffff81f52000     75d8 snd_solo.ko
 8    2 0xffffffff81f5a000    12208 snd_neomagic.ko
 9    2 0xffffffff81f6d000     bf58 snd_maestro3.ko
10    2 0xffffffff81f79000     47a8 snd_fm801.ko
11    2 0xffffffff81f7e000     8c68 snd_envy24ht.ko
12    2 0xffffffff81f87000     9f88 snd_envy24.ko
13    2 0xffffffff81f91000     5c38 snd_cs4281.ko
14    2 0xffffffff81f97000     7c38 snd_atiixp.ko
15    2 0xffffffff81f9f000     61a0 snd_als4000.ko
16    1 0xffffffff82c18000    31a10 linux.ko
17    2 0xffffffff82c4a000     be70 linux_common.ko
18    1 0xffffffff82c56000    2dc30 linux64.ko
19    1 0xffffffff82c84000   1b3920 i915kms.ko
20    2 0xffffffff82e38000    7c050 drm.ko
21    1 0xffffffff82eb5000     22b8 iic.ko
22    3 0xffffffff82eb8000     3080 linuxkpi_hdmi.ko
23    3 0xffffffff82ebc000     6350 dmabuf.ko
24    3 0xffffffff82ec3000     3378 lindebugfs.ko
25    1 0xffffffff82ec7000     b360 ttm.ko
26    1 0xffffffff82ed3000     3390 acpi_wmi.ko
27    1 0xffffffff82ed7000     3250 ichsmb.ko
28    1 0xffffffff82edb000     2178 smbus.ko
29    1 0xffffffff82ede000    93260 if_iwlwifi.ko
30    1 0xffffffff82f72000    17314 if_iwm.ko
31    1 0xffffffff82f8a000     5f00 ig4.ko
32    1 0xffffffff82f90000     2110 pchtherm.ko
33    1 0xffffffff82f93000    fd1c0 iwm7265Dfw.ko
34    1 0xffffffff83091000     3360 uhid.ko
35    1 0xffffffff83095000     4364 ums.ko
36    1 0xffffffff8309a000     33c0 usbhid.ko
37    5 0xffffffff8309e000     3380 hidbus.ko
38    1 0xffffffff830a2000     4d20 ng_ubt.ko
39    3 0xffffffff830a7000     abb8 netgraph.ko
40    2 0xffffffff830b2000     a250 ng_hci.ko
41    2 0xffffffff830bd000     2670 ng_bluetooth.ko
42    1 0xffffffff830c0000     3218 iichid.ko
43    1 0xffffffff830c4000     21e8 hms.ko
44    1 0xffffffff830c7000     30a8 hidmap.ko
45    1 0xffffffff830cb000     21b8 ietp.ko

cat /dev/sndtsat
Code:
Installed devices:
pcm0: <Realtek (0x0230) (Analog)> (play/rec) default
pcm1: <Realtek (0x0230) (Right Analog Mic)> (rec)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
No devices installed from userspace.
 
It's missing a number here.
I settled it to 1 and audacious throws error:
"OSS error: operation not supported"

Youtube videos stuck at loading even internet is fast

beep command doesn't run and throws error:
Code:
heavy@2fort:~ $ beep
beep: Failed to open '/dev/dsp'
heavy@2fort:~ $ test -c /dev/dsp && echo "exists"
exists
heavy@2fort:~ $
 
Hi,

I start my desktop environment with startxfce4 but there is no sound.
Pulseaudio seems working (I mean pgrep gives pid when I type pgrep pulseaudio).
Pipewire installed as a dependency but has no processes.

My /etc/rc.conf file
Code:
clear_tmp_enable="YES"
hostname="2fort"
keymap="tr.kbd"
ifconfig_re0="DHCP"
sshd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="linux linux64 i915kms"
dbus_enable="YES"

My /boot/loader.conf file
Code:
snd_driver_load="YES"
snd_hda_load="YES"

My /boot/loader.conf file
Code:
hint.fdc.0.at="isa"
hint.fdc.0.port="0x3F0"
hint.fdc.0.irq="6"
hint.fdc.0.drq="2"
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.fd.1.at="fdc0"
hint.fd.1.drive="1"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.uart.0.at="isa"
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x10"
hint.uart.0.irq="4"
hint.uart.1.at="isa"
hint.uart.1.port="0x2F8"
hint.uart.1.irq="3"
hint.ppc.0.at="isa"
hint.ppc.0.irq="7"
hint.atrtc.0.at="isa"
hint.atrtc.0.port="0x70"
hint.atrtc.0.irq="8"
hint.attimer.0.at="isa"
hint.attimer.0.port="0x40"
hint.attimer.0.irq="0"
hint.acpi_throttle.0.disabled="1"
hint.p4tcc.0.disabled="1"
hint.hdaa.0.nid33.config="as=1 seq=15" # sound auto switch

My /etc/sysctl.conf file
Code:
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
hw.snd.default_unit= # set Realtek rear panel as default playback device

The commands I ran
Code:
echo hint.`sysctl -a | grep Headphones | grep original | cut -d _ -f 1 | cut -d . -f 2,3,4`.config=\"as=1 seq=15\" \# sound auto switch >> /boot/device.hints

echo hw.snd.default_unit=`cat /dev/sndstat | grep Rear | cut -c 4` \# set Realtek rear panel as default playback device >> /etc/sysctl.conf

kldstat
Code:
Id Refs Address                Size Name
 1  165 0xffffffff80200000  1d345d8 kernel
 2    1 0xffffffff81f35000     4330 snd_driver.ko
 3    2 0xffffffff81f3a000     7238 snd_vibes.ko
 4    2 0xffffffff81f42000     5b98 snd_via82c686.ko
 5    2 0xffffffff81f48000     5c78 snd_t4dwave.ko
 6    4 0xffffffff81f4e000     3238 snd_spicds.ko
 7    2 0xffffffff81f52000     75d8 snd_solo.ko
 8    2 0xffffffff81f5a000    12208 snd_neomagic.ko
 9    2 0xffffffff81f6d000     bf58 snd_maestro3.ko
10    2 0xffffffff81f79000     47a8 snd_fm801.ko
11    2 0xffffffff81f7e000     8c68 snd_envy24ht.ko
12    2 0xffffffff81f87000     9f88 snd_envy24.ko
13    2 0xffffffff81f91000     5c38 snd_cs4281.ko
14    2 0xffffffff81f97000     7c38 snd_atiixp.ko
15    2 0xffffffff81f9f000     61a0 snd_als4000.ko
16    1 0xffffffff82c18000    31a10 linux.ko
17    2 0xffffffff82c4a000     be70 linux_common.ko
18    1 0xffffffff82c56000    2dc30 linux64.ko
19    1 0xffffffff82c84000   1b3920 i915kms.ko
20    2 0xffffffff82e38000    7c050 drm.ko
21    1 0xffffffff82eb5000     22b8 iic.ko
22    3 0xffffffff82eb8000     3080 linuxkpi_hdmi.ko
23    3 0xffffffff82ebc000     6350 dmabuf.ko
24    3 0xffffffff82ec3000     3378 lindebugfs.ko
25    1 0xffffffff82ec7000     b360 ttm.ko
26    1 0xffffffff82ed3000     3390 acpi_wmi.ko
27    1 0xffffffff82ed7000     3250 ichsmb.ko
28    1 0xffffffff82edb000     2178 smbus.ko
29    1 0xffffffff82ede000    93260 if_iwlwifi.ko
30    1 0xffffffff82f72000    17314 if_iwm.ko
31    1 0xffffffff82f8a000     5f00 ig4.ko
32    1 0xffffffff82f90000     2110 pchtherm.ko
33    1 0xffffffff82f93000    fd1c0 iwm7265Dfw.ko
34    1 0xffffffff83091000     3360 uhid.ko
35    1 0xffffffff83095000     4364 ums.ko
36    1 0xffffffff8309a000     33c0 usbhid.ko
37    5 0xffffffff8309e000     3380 hidbus.ko
38    1 0xffffffff830a2000     4d20 ng_ubt.ko
39    3 0xffffffff830a7000     abb8 netgraph.ko
40    2 0xffffffff830b2000     a250 ng_hci.ko
41    2 0xffffffff830bd000     2670 ng_bluetooth.ko
42    1 0xffffffff830c0000     3218 iichid.ko
43    1 0xffffffff830c4000     21e8 hms.ko
44    1 0xffffffff830c7000     30a8 hidmap.ko
45    1 0xffffffff830cb000     21b8 ietp.ko

cat /dev/sndtsat
Code:
Installed devices:
pcm0: <Realtek (0x0230) (Analog)> (play/rec) default
pcm1: <Realtek (0x0230) (Right Analog Mic)> (rec)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
No devices installed from userspace.
Boot in verbose mode then post your dmesg here. Use the code blocks
 
Back
Top