Audio crackling poping and issing after clean F40 install - F39 works great

inxi -Fzxx

System:
  Kernel: 6.9.12-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: KDE Plasma v: 6.1.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 40 (KDE Plasma)
Machine:
  Type: Desktop System: Gigabyte product: Z390 DESIGNARE v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: Z390 DESIGNARE-CF v: x.x
    serial: <superuser required> UEFI-[Legacy]: American Megatrends v: F9i
    date: 09/16/2020
CPU:
  Info: 8-core model: Intel Core i9-9900 bits: 64 type: MT MCP
    arch: Coffee Lake rev: D cache: L1: 512 KiB L2: 2 MiB L3: 16 MiB
  Speed (MHz): avg: 2228 high: 4648 min/max: 800/5000 cores: 1: 2900 2: 2901
    3: 2992 4: 4648 5: 2905 6: 2898 7: 800 8: 822 9: 2900 10: 1264 11: 927
    12: 2901 13: 1527 14: 2898 15: 1014 16: 1358 bogomips: 99199
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA TU106 [GeForce RTX 2060 SUPER] driver: nvidia v: 555.58.02
    arch: Turing pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: DP-1,DVI-D-1 empty: HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:1f06
  Device-2: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6:3 chip-ID: 046d:085c
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: kwin_wayland driver: N/A d-rect: 5360x2520 display-ID: 0
  Monitor-1: DP-1 pos: primary,top-left res: 3440x1440 size: N/A
  Monitor-2: DVI-D-1 pos: bottom-r res: 1920x1080 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: zink inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 555.58.02
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 2060
    SUPER/PCIe/SSE2 display-ID: :0.0
  API: Vulkan v: 1.3.283 surfaces: xcb,xlib,wayland device: 0
    type: discrete-gpu driver: N/A device-ID: 10de:1f06 device: 1 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
  Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f9
  Device-3: Razer USA BlackShark V2 Pro 2.4
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 1-12:8 chip-ID: 1532:0555
  Device-4: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6:3 chip-ID: 046d:085c
  API: ALSA v: k6.9.12-200.fc40.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370
  IF: wlo1 state: down mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bc
  IF: eno2 state: down mac: <filter>
  Device-3: Intel I211 Gigabit Network vendor: Gigabyte driver: igb
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 04:00.0
    chip-ID: 8086:1539
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-14:9
    chip-ID: 8087:0aaa
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
RAID:
  Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0
    bus-ID: 00:17.0 chip-ID: 8086:2822
Drives:
  Local Storage: total: 4.53 TiB used: 717.37 GiB (15.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 2TB
    size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 43.9 C
  ID-3: /dev/sda vendor: Seagate model: ST2000DM006-2DM164 size: 1.82 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdb vendor: Kingston model: SA400S37480G size: 447.13 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdc vendor: SanDisk model: Cruzer size: 3.74 GiB type: USB
    rev: 2.0 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 497.97 GiB used: 19.06 GiB (3.8%) fs: ext4 dev: /dev/nvme1n1p3
  ID-2: /boot size: 1.52 GiB used: 389.1 MiB (24.9%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-3: /home size: 1.3 TiB used: 697.93 GiB (52.4%) fs: ext4
    dev: /dev/nvme1n1p4
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C pch: 41.0 C mobo: 34.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 80 GiB note: est. available: 78.47 GiB used: 5.98 GiB (7.6%)
  Processes: 484 Power: uptime: 19m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 47 Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9
    running-in: konsole inxi: 3.3.34

dnf list installed pipewire ░▒▓ :heavy_check_mark:  14:18:43 
Installed Packages
pipewire.x86_64 1.0.7-2.fc40 @updates

My last boot:

https://0x0.st/XVBe.txt

Aug 06 08:28:40 z390 wireplumber[2301]: wireplumber: Old configuration file detected: /home/alan/.config/wireplumber/main.lua.d/51-disable-suspension.lua
Aug 06 08:28:40 z390 wireplumber[2301]: wireplumber: Lua configuration files are NOT supported in WirePlumber 0.5. You need to port them to the new format if you want to use them.
                                        -> See https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/migration.html

I see this related to wireplumber.
I also see the startup at 05:27 and that your RTC is configured for local time when it should be set for UTC.

Aug 06 05:27:46 z390 systemd[1]: Starting initrd-switch-root.service - Switch Root...
Aug 06 05:27:46 z390 systemd[1]: Switching root.
Aug 06 05:27:46 z390 systemd-journald[342]: Journal stopped
Aug 06 08:27:46 z390 systemd-journald[342]: Received SIGTERM from PID 1 (systemd).
Aug 06 08:27:46 z390 kernel: SELinux: https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-runtime-disable
Aug 06 08:27:46 z390 kernel: SELinux: Runtime disable is not supported, use selinux=0 on the kernel cmdline.
Aug 06 08:27:46 z390 systemd[1]: RTC configured in localtime, applying delta of -180 minutes to system time.

I then note this which indicates you may not have the latest config for the rpmfusion repos

Aug 06 08:28:46 z390 packagekitd[3036]: Skipping refresh of rpmfusion-free-updates: Failed to download gpg key for repo 'rpmfusion-free-updates': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-40 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-40]
...
Aug 06 08:28:47 z390 packagekitd[3036]: Skipping refresh of rpmfusion-nonfree: Failed to download gpg key for repo 'rpmfusion-nonfree': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-40 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-40]
Aug 06 08:28:48 z390 packagekitd[3036]: Skipping refresh of rpmfusion-nonfree-updates: Failed to download gpg key for repo 'rpmfusion-nonfree-updates': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-40 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-40]
Aug 06 08:28:48 z390 packagekitd[3036]: Skipping refresh of rpmfusion-free: Failed to download gpg key for repo 'rpmfusion-free': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-40 [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-40]

Thanx for your reply Jeff. About RTC, it came as is.

timedatectl set-local-rtc 0

That is not a better way to starting. I solved repository problem and now latest update gave me a lot of gliches. And it is forcing to enable raw-hide repo. It is not well organized yet. That is not good. That is not a good way to fix one thing crashing many others.

Maybe it is avoiding update. I don’t know. When it crashes things here I decided to rollback after repository fixing crashed more.

Could we find another way to solve or just wait to another update?

this is my last boot logs:
http://0x0.st/XVWx.txt

These updates are crashing and putting gliches on my screen.

about this error:


Aug 06 08:28:40 z390 wireplumber[2301]: wireplumber: Old configuration file detected: /home/alan/.config/wireplumber/main.lua.d/51-disable-suspension.lua
Aug 06 08:28:40 z390 wireplumber[2301]: wireplumber: Lua configuration files are NOT supported in WirePlumber 0.5. You need to port them to the new format if you want to use them.

It was an attempt to get some workaround related here:

https://www.reddit.com/r/Fedora/comments/1d2yihr/comment/lgn0cml/

I just remove it and there are no error message anymore.

One thing I must relate here is my /home is a separated partition and it is heritage of F39 installation.

about this error:

wireplumber[1916]: wp-device: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?

sudo dnf install pipewire-plugin-libcamera.x86_64

Fixed.

I do that constantly with upgrades. The down side is that older configs in your home directory remain and sometimes cause problems when the app gets updated.

The way to check if it is caused by a user config is to create a new user account and try the app in that new account. If is works correctly then the cause is config within your account and can usually be cleaned up quickly by removing the faulty configs. The app will usually create a new config file when it is started if one does not already exist.

I did it with a new user and not solved the problem. I think this upgrade from Plasma 5 to 6 messed up things a lot because Plasma 6 is a new Desk.Env. It can’t deal with old stuff.

So I need to try some clean install of KDE, I don’t know.
If I can wipeout KDE and reinstall it again, but it is a huge problem and waste of time.

Just a curious point. If I keep sound settings opened the problem solves.

I found solution here and it worked. I will keep testing but it worked.

mkdir -p ~/.config/wireplumber/wireplumber.conf.d
:>suspend-disable.conf

monitor.alsa.rules = [
  {
    matches = [
      {
 	node.name = "~alsa_output.*"
      },
      {
        node.name = "~alsa_input.*"
      }
    ]
    actions = {
      update-props = {
        session.suspend-timeout-seconds = 0
      }
    }
  }
]

systemctl --user restart wireplumber.service