Upon further investigation, I discovered that the problem may lie in the
Wireplumber configuration:

 /usr/share/wireplumber/scripts/node/suspend-node.lua

If no other configuration is defined, it sets a timeout of 5 seconds.

    -- Add a timeout source if idle for at least 5 seconds
    if new_state == "idle" or new_state == "error" then
      -- honor "session.suspend-timeout-seconds" if specified
      local timeout =
          tonumber(node.properties["session.suspend-timeout-seconds"]) or 5

      if timeout == 0 then
        return
      end

If I set this value to 0, everything works correctly and the USB never goes 
into sleep mode.
But this change is not the best solution.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2129053

Title:
  System notification sound not be played the first time

Status in linux package in Ubuntu:
  New

Bug description:
  The system notification sound is not played when the system remains
  inactive for a few seconds.

  The command :

  canberra-gtk-play -i message

  The first time, no sound is played, the second time and subsequent times, a 
notification sound is played.
  If I wait a few seconds, again, no notification is heard.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: linux-image-6.17.0-5-generic 6.17.0-5.5
  ProcVersionSignature: Ubuntu 6.17.0-5.5-generic 6.17.0-rc7
  Uname: Linux 6.17.0-5-generic x86_64
  ApportVersion: 2.33.1-0ubuntu3
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC2:  emanuele  40814 F.... wireplumber
   /dev/snd/controlC0:  emanuele  40814 F.... wireplumber
   /dev/snd/controlC1:  emanuele  40814 F.... wireplumber
   /dev/snd/seq:        emanuele  40793 F.... pipewire
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Oct 20 19:46:36 2025
  InstallationDate: Installed on 2024-02-08 (620 days ago)
  InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 
(20231016.1)
  MachineType: LENOVO 21B1
  ProcEnviron:
   LANG=it_IT.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  ProcFB:
   0 i915drmfb
   1 nvidia-drmdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-5-generic 
root=UUID=15e3d240-887f-4f84-941a-e92151ac354f ro quiet splash 
nvidia-drm.modeset=1 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M 
vt.handoff=7
  RelatedPackageVersions:
   firmware-sof   N/A
   linux-firmware 20250901.git993ff19b-0ubuntu1
  SourcePackage: linux
  UpgradeStatus: Upgraded to questing on 2025-10-08 (12 days ago)
  dmi.bios.date: 09/20/2023
  dmi.bios.release: 1.36
  dmi.bios.vendor: LENOVO
  dmi.bios.version: HJCN36WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0T76530 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Lenovo ThinkBook 15p Gen 2
  dmi.ec.firmware.release: 1.36
  dmi.modalias: 
dmi:bvnLENOVO:bvrHJCN36WW:bd09/20/2023:br1.36:efr1.36:svnLENOVO:pn21B1:pvrLenovoThinkBook15pGen2:rvnLENOVO:rnLNVNB161216:rvrSDK0T76530WIN:cvnLENOVO:ct10:cvrLenovoThinkBook15pGen2:skuLENOVO_MT_21B1_BU_idea_FM_ThinkBook15pG2ITH:
  dmi.product.family: ThinkBook 15p G2 ITH
  dmi.product.name: 21B1
  dmi.product.sku: LENOVO_MT_21B1_BU_idea_FM_ThinkBook 15p G2 ITH
  dmi.product.version: Lenovo ThinkBook 15p Gen 2
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2129053/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to