Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Can't Disable HDMI Sound Power Saving

  1. #1
    Join Date
    Jan 2023
    Beans
    12

    Angry Can't Disable HDMI Sound Power Saving

    Fresh ubuntu user here.

    I have a monitor with built in speakers connected to GTX 1080 gpu via HDMI . I need the sounds to be played instantly because I ( should ) get important, short sound notifications. When the sound card power saving is on, the notification may "play", but it can't be heard, since it takes a second for the sound card to wake up and by the time it's ON, the sound is already finished "playing".
    I looked for solutions to no avail. Only config file in sys/module which has a power saving option is for intel sound cards ( which I turned to "0" just to be sure ). Nvidia settings panel doesn't have a power saving option. There is no option to change it in ubuntu sound settings either. I can't see it at least.

    If there is a solution to this. Please advise. Thanks.

  2. #2
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Can't Disable HDMI Sound Power Saving

    Not sure I can help, but will you show us this:
    Code:
    grep 10de /lib/udev/rules.d/*

  3. #3
    Join Date
    Jan 2023
    Beans
    12

    Re: Can't Disable HDMI Sound Power Saving

    /lib/udev/rules.d/71-nvidia.rules:SUBSYSTEM=="pci", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="seat", TAG+="master-of-seat"
    /lib/udev/rules.d/71-nvidia.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", TEST=="power/control", ATTR{power/control}="auto"
    /lib/udev/rules.d/71-nvidia.rules:ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", TEST=="power/control", ATTR{power/control}="auto"
    /lib/udev/rules.d/71-nvidia.rules:ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", TEST=="power/control", ATTR{power/control}="auto"
    /lib/udev/rules.d/71-nvidia.rules:ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", TEST=="power/control", ATTR{power/control}="auto"

  4. #4
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Can't Disable HDMI Sound Power Saving

    Oh brother, they have changed things here, I have a test for you to try if willing, this will have no harm to your system.
    Try to add:
    Code:
    options snd_hda_intel power_save=0
    To "/etc/modprobe.d/modprobe.conf"
    You may also need to disable power saving for the audio card controller:
    Code:
    options snd_hda_intel power_save=0 power_save_controller=N
    It's been a few years since I've used it, so keep us posted please...

  5. #5
    Join Date
    Jan 2023
    Beans
    12

    Re: Can't Disable HDMI Sound Power Saving

    I went to the specified folder. The file modprobe.conf was not present, so I made it.
    I pasted what you recommended, in two lines, one under the other. Like that:

    options snd_hda_intel power_save=0
    options snd_hda_intel power_save=0 power_save_controller=N
    I saved it and then rebooted. The sound card still goes to sleep/power saving mode. So, sadly, it didn't help.

  6. #6
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Can't Disable HDMI Sound Power Saving

    I wondered if it would still work due to this:
    Code:
    /lib/udev/rules.d/71-nvidia.rules:ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", TEST=="power/control", ATTR{power/control}="auto"
    Have you or can you now just remove that file.
    Code:
    sudo rm /etc/modprobe.d/modprobe.conf
    One more to try this will get attention at boot via "/etc/default/grub"
    Add this to set parameters for kernel modules:
    Code:
    snd_hda_intel power_save=0
    If you need help with this just ask.
    I'm just being lazy today, to do this:
    Code:
    sudo nano /etc/default/grub
    Add that to:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/system/swap mitigations=auto snd_hda_intel power_save=0 quiet security=apparmor nosimplefb=1"
    Now update grub to the change:
    Code:
     sudo update-grub
    Reboot
    Last edited by #&thj^%; January 15th, 2023 at 09:47 PM.

  7. #7
    Join Date
    Jan 2023
    Beans
    12

    Re: Can't Disable HDMI Sound Power Saving

    I managed to remove modprobe.conf as root.

    I added " snd_hda_intel power_save=0 " to grub . It looked like this:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    # info -f grub -n 'Simple configuration'

    GRUB_DEFAULT=0
    GRUB_TIMEOUT_STYLE=hidden
    GRUB_TIMEOUT=0
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""

    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xe fefefef"

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480

    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"

    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"

    snd_hda_intel power_save=0
    After reboot, still no improvement.

    According to this https://docs.kernel.org/sound/designs/powersave.html There are other devices other than intel that have this power saving setting.I can locate snd_hda_intel in
    /sys/module/
    Correct me if I'm wrong, but shouldn't a config be here?
    /sys/module/snd_hda_codec_hdmi/parameters
    There are config files there, but I don't know what they are for.
    enable_acomp , enable_all_pins , enable_silent_stream, static_hdmi_pcm

  8. #8
    Join Date
    Jan 2023
    Beans
    12

    Re: Can't Disable HDMI Sound Power Saving

    I saw your edit. Seems like my grub looks different to what you pasted. Should I still edit it the way you wrote?

  9. #9
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Can't Disable HDMI Sound Power Saving

    Quote Originally Posted by nobody96 View Post
    I managed to remove modprobe.conf as root.

    I added " snd_hda_intel power_save=0 " to grub . It looked like this:



    After reboot, still no improvement.
    I wouldn't have expected that to work, please re-read my previous post, I edited it due to my laziness.
    Quote Originally Posted by nobody96 View Post

    According to this https://docs.kernel.org/sound/designs/powersave.html There are other devices other than intel that have this power saving setting.I can locate snd_hda_intel in
    Correct me if I'm wrong, but shouldn't a config be here?

    There are config files there, but I don't know what they are for.
    Best to leave those be as is...
    FTR I just used it in my system and works as expected on my end.
    Code:
    Settings
     └─ Default Configured Node Names:
             0. Audio/Sink    alsa_output.pci-0000_01_00.1.hdmi-stereo
             1. Audio/Source  alsa_input.pci-0000_06_00.6.analog-stereo
    Code:
     Streams:
            77. Strawberry                                                  
                 79. output_FL       > SAMSUNG:playback_FL	[active]
                 81. output_FR       > SAMSUNG:playback_FR	[active]
    Last edited by #&thj^%; January 15th, 2023 at 10:06 PM.

  10. #10
    Join Date
    Jan 2023
    Beans
    12

    Re: Can't Disable HDMI Sound Power Saving

    My grub file now looks like this

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    # info -f grub -n 'Simple configuration'

    GRUB_DEFAULT=0
    GRUB_TIMEOUT_STYLE=hidden
    GRUB_TIMEOUT=0
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/system/swap mitigations=auto snd_hda_intel power_save=0 quiet security=apparmor nosimplefb=1"
    GRUB_CMDLINE_LINUX=""

    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xe fefefef"

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480

    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"

    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    I updated grub in terminal using the command and rebooted.
    Still no improvement.

    I went to snd_hda_intel to check the parameter file for power saving, and it turned to "1" for some reason. I manually changed it to 0 before.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •