Audio issue, since kdenlive installation

Hey guys, maybe you can help me out with a problem.
I recently installed kdenlive. After the install, my sound did not work (I use usb-speakers).
I de-installed kdenlive, but it still didn’t work. I switched from usb audio output to hdmi output (my monitor has some build in speakers) and it worked.
Tried a few things in gnome-settings and turns out, that after I mute and unmute the system audio, my usb-speakers work just fine.
So now, in order to have sound, I have to go to settings, turn off the sound and turn it on again.
Does anyone have an idea, what the issue might be?

I also re-installed kdenlive, but as a flatpak.

inxi -Fazy                                                                                  ✔ 
System:
  Kernel: 6.6.40-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=a6ab3443-d498-4764-8e14-bfe6677b5e57 rw quiet splash apparmor=1
    security=apparmor resume=UUID=a8ee0b1c-caac-4205-9439-450b2783a982
    udev.log_priority=3
  Desktop: GNOME v: 46.3.1 tk: GTK v: 3.24.43 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 46.2 Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z690 AERO G DDR4 v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: Z690 AERO G DDR4 v: x.x serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: F7
    date: 01/27/2022
CPU:
  Info: model: 12th Gen Intel Core i5-12600K bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x97 (151) stepping: 2
    microcode: 0x35
  Topology: cpus: 1x cores: 10 mt: 6 tpc: 2 st: 4 threads: 16 smt: enabled
    cache: L1: 864 KiB desc: d-4x32 KiB, 6x48 KiB; i-6x32 KiB, 4x64 KiB
    L2: 9.5 MiB desc: 6x1.2 MiB, 1x2 MiB L3: 20 MiB desc: 1x20 MiB
  Speed (MHz): avg: 1146 high: 2767 min/max: 800/4900:3600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 1802 7: 800 8: 1921 9: 840 10: 800 11: 2767 12: 800 13: 2220
    14: 800 15: 800 16: 800 bogomips: 118000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel AlderLake-S GT1 vendor: Gigabyte driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: none
    empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:4680
    class-ID: 0300
  Device-2: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ASUSTeK
    driver: nvidia v: 550.100 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-06; EOL~2026-12-xx) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 2 speed: 5 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 01:00.0
    chip-ID: 10de:2504 class-ID: 0300
  Display: x11 server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.1
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    alternate: fbdev,nouveau,nv,vesa dri: iris gpu: i915,nvidia display-ID: :1
    note: <missing: xdpyinfo/xrandr>
  Monitor-1: Unknown-1 size-res: N/A modes: 1024x768
  API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
    drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: nvidia x11: drv: nvidia inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.100
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
    memory: 11.72 GiB
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: Gigabyte driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:7ad0
    class-ID: 0403
  Device-2: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-3: Giga-Byte USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-11:3
    chip-ID: 0414:a012 class-ID: 0300
  API: ALSA v: k6.6.40-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.1 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I225-V vendor: Gigabyte driver: igc v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 06:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 07:00.0
    chip-ID: 8086:2725 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX210 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:10 chip-ID: 8087:0032
    class-ID: e001
  Report: rfkill ID: hci1 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
  Device-2: ASUSTek ASUS USB-BT500 driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-8.1:4 chip-ID: 0b05:190e
    class-ID: e001 serial: <filter>
  Report: ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: N/A
Drives:
  Local Storage: total: 2.27 TiB used: 248.06 GiB (10.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS500G2B0C-00PXH0 size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 233010WD temp: 37.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:7 vendor: Western Digital
    model: WDS100T2B0C size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 211210WD temp: 44.9 C scheme: GPT
  ID-3: /dev/nvme2n1 maj-min: 259:6 vendor: Western Digital
    model: WD Blue SN570 1TB size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 234110WD temp: 41.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 48.83 GiB size: 47.76 GiB (97.81%) used: 28.82 GiB (60.4%)
    fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-2: /boot/efi raw-size: 500 MiB size: 499 MiB (99.80%)
    used: 300 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-3: /home raw-size: 408.05 GiB size: 400.57 GiB (98.17%)
    used: 219.23 GiB (54.7%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 22.0 C mobo: N/A gpu: nvidia temp: 52 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 64 GiB note: est. available: 62.58 GiB used: 4.01 GiB (6.4%)
  Processes: 370 Power: uptime: 37m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 25.02 GiB services: gsd-power,
    power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
    tool: systemctl
  Packages: 1484 pm: pacman pkgs: 1467 libs: 384 tools: gnome-software,pamac
    pm: flatpak pkgs: 17 Compilers: N/A Shell: Zsh v: 5.9 running-in: tilix
    inxi: 3.3.35

amixer --card=0                   ✔ 
Simple mixer control 'IEC958',0
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'IEC958',1
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'IEC958',2
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
Simple mixer control 'IEC958',3
 Capabilities: pswitch pswitch-joined
 Playback channels: Mono
 Mono: Playback [on]
aplay -L                                                                                    ✔ 
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
pipewire
   PipeWire Sound Server
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 PipeWire Media Server)
hdmi:CARD=PCH,DEV=0
   HDA Intel PCH, HDMI 0
   HDMI Audio Output
hdmi:CARD=PCH,DEV=1
   HDA Intel PCH, HDMI 1
   HDMI Audio Output
hdmi:CARD=PCH,DEV=2
   HDA Intel PCH, HDMI 2
   HDMI Audio Output
hdmi:CARD=PCH,DEV=3
   HDA Intel PCH, HDMI 3
   HDMI Audio Output
usbstream:CARD=PCH
   HDA Intel PCH
   USB Stream Output
hdmi:CARD=NVidia,DEV=0
   HDA NVidia, ASUS VG289Q1A
   HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
   HDA NVidia, HDMI 1
   HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
   HDA NVidia, HDMI 2
   HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
   HDA NVidia, HDMI 3
   HDMI Audio Output
usbstream:CARD=NVidia
   HDA NVidia
   USB Stream Output
sysdefault:CARD=Audio
   USB Audio, USB Audio
   Default Audio Device
front:CARD=Audio,DEV=0
   USB Audio, USB Audio
   Front output / input
surround21:CARD=Audio,DEV=0
   USB Audio, USB Audio
   2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Audio,DEV=0
   USB Audio, USB Audio
   4.0 Surround output to Front and Rear speakers
surround41:CARD=Audio,DEV=0
   USB Audio, USB Audio
   4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Audio,DEV=0
   USB Audio, USB Audio
   5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Audio,DEV=0
   USB Audio, USB Audio
   5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Audio,DEV=0
   USB Audio, USB Audio
   7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Audio,DEV=0
   USB Audio, USB Audio
   IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=Audio,DEV=1
   USB Audio, USB Audio #1
   IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Audio
   USB Audio
   USB Stream Output

It is auto suspending of usb devices. If you don’t care about saving power, then just:

File: /etc/tlp.d/10-disable-usb-autosuspend.conf

USB_AUTOSUSPEND=0

Then run: sudo tlp usb

Check: sudo tlp-stat --usb

If tlp.d doesn’t exist, create it.

Hey, thanks for the answer.
Tried it, didn’t work. I installed tlp and created the file.
sudo tlp usb gives me:

Error: USB autosuspend is disabled. Set USB_AUTOSUSPEND=1 in /etc/tlp.conf.

tlp-stat --usb:

--- TLP 1.6.1 --------------------------------------------

+++ USB
Autosuspend       = disabled
Device allowlist  = (not configured)
Device denylist   = (not configured)
Exclude audio     = enabled
Exclude bluetooth = disabled
Exclude phones    = disabled
Exclude printers  = enabled
Exclude WWAN      = disabled

Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 0bda:5411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. RTS5411 Hub (hub)
Bus 001 Device 003 ID 0414:a012 control = on,   autosuspend_delay_ms = 2000 -- Giga-Byte Technology Co., Ltd USB Audio (snd-usb-audio, usbhid)
Bus 001 Device 004 ID 0b05:190e control = auto, autosuspend_delay_ms = 2000 -- ASUSTek Computer, Inc. ASUS USB-BT500 (btusb)
Bus 001 Device 005 ID 0bda:5411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. RTS5411 Hub (hub)
Bus 001 Device 006 ID 2516:0042 control = on,   autosuspend_delay_ms = 2000 -- Cooler Master Co., Ltd. Masterkeys Lite L Combo RGB Keyboard (usbhid)
Bus 001 Device 007 ID 2516:0117 control = on,   autosuspend_delay_ms = 2000 -- Cooler Master Co., Ltd. MS110 Gaming Mouse (usbhid)
Bus 001 Device 008 ID 05e3:0608 control = auto, autosuspend_delay_ms =    0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 009 ID 048d:5702 control = on,   autosuspend_delay_ms = 2000 -- Integrated Technology Express, Inc. RGB LED Controller (usbhid)
Bus 001 Device 010 ID 8087:0032 control = auto, autosuspend_delay_ms = 2000 -- Intel Corp. AX210 Bluetooth (btusb)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 002 ID 0bda:0411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. Hub (hub)

Edit: to be clear, the turing the audio/volume on and off still works.

Well, the usb audio is always on, even if autosuspend is disabled. Well no idea then :man_shrugging: Probably it a usb hub. Probably 1d6b:0002 or 1d6b:0003. Add them to the deny list:

USB_DENYLIST="1d6b:0002 1d6b:0003 0414:a012"

Thanks again, but unfortunately it didn’t work again.

Just checked for kdenlive dependencies that could have screwed things up, but didn’t find anything that stood out to me (to be fair, I’m kinda stupid).

Could some qt package have caused some conflict?

Edit: It’s also not a huge issue to me, to click sound off/on. So, no need to go above and beyond.

remove kdenlive and all configuration files kdenlive creates. If this does not help then you have misdiagnosed the problem being caused by running kdenlive.

Thanks,

I de-installed using pacman -Rs

The problem started with the installation of kdenlive. Can’t think of anything else.
I installed through pamac, so maybe it did an update that caused the issue?

i don’t know if pamac would do that.

in addition to removing it from the package manager, you would need to remove all the config files etc. it installs to arrive at complete removal. But i don’t know why kdenlive would touch anything on the system level like pipewire/pulseaudio configs.

I don’t think it does, or should; it should just attach / detach from the audio subsystem according to whether it’s using it or not. No changes should be made to configs by just installing Kdenlive, as far as I know.

Sorry probably not very helpful. :man_shrugging:

Thanks for helping guys,

not sure, what to make of it really. I tried to think of anything I might have done, but can’t come up with anything.

I installed kdenlive, imported a file, the audio didn’t work. I assumed it was a kdenlive issue. I played the file in mpv and it also had no sound. Thought it might have been an error with the software I used for downloading it, but then noticed that firefox didn’t play any audio either.

So, that’s the play by play of how it went down.

In the end, it’s just a minor annoyance. Only bugs me a little bit.