Speaker doesn't work sometimes.

Hi everyone, I am new at manjaro (but it's really technical issue, so I decided to create topic here). When I receive any sound allert (facebook message for example) my speaker is makes 'bip' sound before it. And sometimes when I am logging in system speaker also makes that sound by 1 sec frequently ('bip bip bip'). Have any ideas to solve it? Thanks in advice.

:+1: Welcome to Manjaro! :+1:

Please read this:


and post some more information so we can see what's really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies...

:innocent:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you're using, which CPU/GPU you have, ...

but I didn't post any code here yet to format it.

here is my System information

Архитектура:                     x86_64
CPU op-mode(s):                  32-bit, 64-bit
Порядок байт:                    Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Ядер на сокет:                   6
Сокетов:                         1
NUMA node(s):                    1
ID прроизводителя:               GenuineIntel
Семейство ЦПУ:                   6
Модель:                          158
Имя модели:                      Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Степпинг:                        10
CPU MHz:                         900.094
CPU max MHz:                     4500.0000
CPU min MHz:                     800.0000
BogoMIPS:                        5202.65
Виртуализация:                   VT-x
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        1.5 MiB
L3 cache:                        12 MiB
NUMA node0 CPU(s):               0-11
Vulnerability Itlb multihit:     KVM: Mitigation: Split huge pages
Vulnerability L1tf:              Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP conditiona
                                 l, RSB filling
Vulnerability Tsx async abort:   Not affected
Флаги:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
                                  dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_
                                 tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmp
                                 erf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pd
                                 cm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c
                                  rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs 
                                 ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi
                                 1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt 
                                 xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp
                                 _epp md_clear flush_l1d

and info about devices

System:    Host: just-r Kernel: 5.4.30-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
           Desktop: KDE Plasma 5.18.4 Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: ROG Strix G531GT_G531GT v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: G531GT v: 1.0 serial: <filter> UEFI: American Megatrends v: G531GT.305 
           date: 09/24/2019 
Battery:   ID-1: BAT0 charge: 24.4 Wh condition: 46.5/50.5 Wh (92%) model: ASUSTeK ASUS Battery 
           status: Charging 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A 
           L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62431 
           Speed: 2619 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 4: 900 5: 900 
           6: 901 7: 900 8: 900 9: 900 10: 901 11: 900 12: 900 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK driver: nvidia 
           v: 440.82 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: intel,nouveau tty: N/A 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.0.4 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Sound Server: ALSA v: k5.4.30-1-MANJARO 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 
           bus ID: 00:14.3 
           IF: wlo1 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 
           v: kernel port: 3000 bus ID: 03:00.0 
           IF: eno2 state: down mac: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 15.69 GiB (1.1%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB 
           ID-2: /dev/sda vendor: HGST (Hitachi) model: HTS721010A9E630 size: 931.51 GiB 
Partition: ID-1: / size: 14.36 GiB used: 12.19 GiB (84.9%) fs: ext4 dev: /dev/nvme0n1p5 
           ID-2: /home size: 211.44 GiB used: 3.46 GiB (1.6%) fs: ext4 dev: /dev/nvme0n1p8 
           ID-3: swap-1 size: 1.95 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p6 
Sensors:   System Temperatures: cpu: 42.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2800 
Info:      Processes: 275 Uptime: 37m Memory: 15.49 GiB used: 2.59 GiB (16.7%) Init: systemd Compilers: 
           gcc: 9.3.0 clang: 9.0.1 Shell: bash v: 5.0.16 inxi: 3.0.37

do you need more?

thanks for reply.

You seem to be on the 5.4 LTS kernel just like me, but if this suddenly cropped up, it's worth trying another kernel first. 4.19 LTS and 5.6 come to mind:

sudo mhwd-kernel --install linux56
sudo mhwd-kernel --install linux419

Then reboot and choose them from grub one by one. If the problem stays:

  1. Does this also happen with another sound output device? (E.G. Headset)

  2. Post the output of:

    aplay --list-pcms
    amixer --card=0

Today suddebly I got the new problem. Speakers doesn't work at all, I can't change volume (So maby it is driver's issue)

But my headphones work great in both of issues

Ok, will do soon

aplay --list-pcms
ALSA lib conf.c:1228:(parse_value) pcm is not a string
ALSA lib conf.c:1928:(_snd_config_load_with_include) _toplevel_:1:14:Недопустимый аргумент
ALSA lib conf.c:3775:(config_file_open) /home/ararat/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3697:(snd_config_hooks_call) function snd_config_hook_load returned error: Недопустимый аргумент
ALSA lib conf.c:4151:(snd_config_update_r) hooks failed, removing configuration

there is Invalid argument in lines 2&4

amixer --card=0
ALSA lib conf.c:1228:(parse_value) pcm is not a string
ALSA lib conf.c:1928:(_snd_config_load_with_include) _toplevel_:1:14:Invalid argument
ALSA lib conf.c:3775:(config_file_open) /home/ararat/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:3697:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:4151:(snd_config_update_r) hooks failed, removing configuration
amixer: Mixer attach hw:0 error: Invalid argument

/home/ararat/.asoundrc may be old or corrupted: consider to remove or fix it

file .asoundrc in home folder is usually created by user

was this added after installing Manjaro ?

or was it already in home folder for another Linux OS and home folder was not formatted when installing Manjaro?

do speakers and headphones work if booting from Live ISO ?

By default I wasn't able to hear audacious player music in my headphones. Then I solved it by adding .audacious config file in home folder. You are right, maby it's the reason. I will test it when I will go back to home and I will post result. Thanks for note.

the .asoundrc file is a configuration file for ALSA hardware, not just Audacious

https://alsa.opensrc.org/Asoundrc
Neither .asoundrc or /etc/asound.conf is normally required . You should be able to play and record sound without either (assuming your mic and speakers are hooked up properly). If your system won't work without one, and you are running the most current version of ALSA, you probably should file a bug report

Manjaro KDE has ALSA system configuration file /etc/asound.conf for audio playback from Pulseaudio
an ALSA configuration added at /home/$USER/.asoundrc will override Manjaro default configuration so Audacious may be able to play direct to ALSA
but other applications that require Pulseaudio may not be audible

2 Likes

It's very strange but when I deleted my home/asound everything work even my headphones. But they wasn't working when I wasn't add configuration with bluetooth device, now they are working without it .
EDIT: no, excuse me, headphones don't work without configuration and when I change the etc/config I receive the same problem.

i suspect that removing the .asoundrc file restored some functionality
and information aplay --list-pcms and amixer --card=0 may have revealed some clues to continue troubleshooting

but re-configuring system file /etc/asound.conf will have same effect as adding configuration /home/$USER/.asoundrc
so i suspect previous errors have been relocated to system file

suggest remove configuration changes for audio and reboot system
then get ALSA information - sudo alsa-info.sh --upload and post the URL link to ALSA data

you mean remove asound.conf?(now I haven't .asoundrc)

restore /etc/asound.conf to Manjaro default

then get ALSA information to troubleshoot audio issues with speakers or headphones

http://alsa-project.org/db/?f=23246db1ee0f04f32e2e87905c0f99eaa3be58c1

have any ideas? Now it's inly beeping.

I've never changed my /etc/asound.conf so here's the default:

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

thanks for help, but didn't work for wireless headphonesa and beeps disappeared yet.

ok, I noticed something that may can help. I will open a new topic about it.

1 Like

If you've found a solution, better post it here and accept your own answer as the solution in case someone else runs into the same problem as you...

:innocent:

for this audio device

Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10)

suggest add a later kernel v5.5 or v5.6 and install sof-firmware

Sound Open Firmware is required to support 'Array Microphone' on this laptop
may also help with audio playback to speaker/headphone/bluetooth

Forum kindly sponsored by