Results 1 to 5 of 5

Thread: How can I let gdm use Nvidia sound card?

  1. #1
    Join Date
    Mar 2023
    Beans
    3

    How can I let gdm use Nvidia sound card?

    Hi community,

    I would like to play sound at the gdm login screen. It works fine with the headphone, however, it does not work if I would like the monitor to play the sound at the gdm login screen (monitor has sound after login, but not before login in). The monitor is connected to the Nvidia gpu by HDMI cable.

    I think by default, gdm does not have access to the GPU sound card, is there an easy to give it the access?
    I tried
    Code:
    sudo -H -u gdm bash -c 'aplay -l'
    and the output is
    Code:
    aplay: device_list:274: no soundcards found...
    I also found a similar post https://bbs.archlinux.org/viewtopic.php?id=223615 in which op said
    but so far I still cannot output HDMI audio in my display manager
    , which I believe is exactly the same problem I am facing.

    Any help would be much appreciated.
    Last edited by luffyx; March 5th, 2023 at 11:30 PM.

  2. #2
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How can let gdm use Nvidia sound card?

    need to see this:
    Code:
    loginctl seat-status
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  3. #3
    Join Date
    Mar 2023
    Beans
    3

    Re: How can let gdm use Nvidia sound card?

    Hi thanks for helping, please see below:
    Code:
    seat0
        Sessions: *13
         Devices:
              ├─/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
              │ input:input1 "Power Button"
              ├─/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
              │ input:input0 "Power Button"
              ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:06.0/0000:07:00.0/leds/phy0-led
              │ leds:phy0-led
              ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.1/usb1
              │ usb:usb1
              │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.1/usb1/1-5
              │   usb:1-5
              │   └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.1/usb1/1-5/1-5.3
              │     usb:1-5.3
              ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.1/usb2
              │ usb:usb2
              ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3
              │ usb:usb3
              │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2
              │   usb:3-2
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1
              │   │ usb:3-2.1
              │   │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.0/0003:046D:C547.0002/input/input2
              │   │ │ input:input2 "Logitech USB Receiver"
              │   │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3
              │   │   input:input3 "Logitech USB Receiver Keyboard"
              │   │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3/input3::capslock
              │   │   │ leds:input3::capslock
              │   │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3/input3::compose
              │   │   │ leds:input3::compose
              │   │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3/input3::kana
              │   │   │ leds:input3::kana
              │   │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3/input3::numlock
              │   │   │ leds:input3::numlock
              │   │   └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.1/3-2.1:1.1/0003:046D:C547.0003/input/input3/input3::scrolllock
              │   │     leds:input3::scrolllock
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3
              │   │ usb:3-2.3
              │   │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4
              │   │ │ input:input4 "Boardsource Technik-O"
              │   │ │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4/input4::capslock
              │   │ │ │ leds:input4::capslock
              │   │ │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4/input4::compose
              │   │ │ │ leds:input4::compose
              │   │ │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4/input4::kana
              │   │ │ │ leds:input4::kana
              │   │ │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4/input4::numlock
              │   │ │ │ leds:input4::numlock
              │   │ │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.0/0003:4273:0079.0005/input/input4/input4::scrolllock
              │   │ │   leds:input4::scrolllock
              │   │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.1/0003:4273:0079.0006/input/input5
              │   │ │ input:input5 "Boardsource Technik-O Mouse"
              │   │ ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.1/0003:4273:0079.0006/input/input6
              │   │ │ input:input6 "Boardsource Technik-O System Control"
              │   │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.3/3-2.3:1.1/0003:4273:0079.0006/input/input7
              │   │   input:input7 "Boardsource Technik-O Consumer Control"
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.4/3-2.4:1.0/input/input23
              │   │ input:input23 "HD Pro Webcam C920"
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.4/3-2.4:1.0/media0
              │   │ media:media0
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.4/3-2.4:1.0/video4linux/video0
              │   │ video4linux:video0 "HD Pro Webcam C920"
              │   ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.4/3-2.4:1.0/video4linux/video1
              │   │ video4linux:video1 "HD Pro Webcam C920"
              │   └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb3/3-2/3-2.4/3-2.4:1.2/sound/card2
              │     sound:card2 "C920"
              ├─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb4
              │ usb:usb4
              │ └─/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/0000:03:08.0/0000:08:00.3/usb4/4-2
              │   usb:4-2
              ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.0
              │ [MASTER] pci:0000:0b:00.0
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.0/drm/card0
              │ │ [MASTER] drm:card0
              │ └─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.0/drm/renderD128
              │   drm:renderD128
              ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0
              │ sound:card0 "NVidia"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input10
              │ │ input:input10 "HDA NVidia HDMI/DP,pcm=7"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input11
              │ │ input:input11 "HDA NVidia HDMI/DP,pcm=8"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input12
              │ │ input:input12 "HDA NVidia HDMI/DP,pcm=9"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input13
              │ │ input:input13 "HDA NVidia HDMI/DP,pcm=10"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input14
              │ │ input:input14 "HDA NVidia HDMI/DP,pcm=11"
              │ ├─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input15
              │ │ input:input15 "HDA NVidia HDMI/DP,pcm=12"
              │ └─/sys/devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input9
              │   input:input9 "HDA NVidia HDMI/DP,pcm=3"
              ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.3/usb5
              │ usb:usb5
              ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.3/usb6
              │ usb:usb6
              ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1
              │ sound:card1 "Generic"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input16
              │ │ input:input16 "HD-Audio Generic Front Mic"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input17
              │ │ input:input17 "HD-Audio Generic Rear Mic"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input18
              │ │ input:input18 "HD-Audio Generic Line"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input19
              │ │ input:input19 "HD-Audio Generic Line Out Front"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input20
              │ │ input:input20 "HD-Audio Generic Line Out Surround"
              │ ├─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input21
              │ │ input:input21 "HD-Audio Generic Line Out CLFE"
              │ └─/sys/devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input22
              │   input:input22 "HD-Audio Generic Front Headphone"
              ├─/sys/devices/platform/eeepc-wmi/input/input8
              │ input:input8 "Eee PC WMI hotkeys"
              ├─/sys/devices/platform/efi-framebuffer.0/graphics/fb0
              │ graphics:fb0 "EFI VGA"
              ├─/sys/devices/virtual/misc/kvm
              │ misc:kvm
              ├─/sys/devices/virtual/misc/rfkill
              │ misc:rfkill
              └─/sys/devices/virtual/misc/uinput
                misc:uinput

  4. #4
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How can I let gdm use Nvidia sound card?

    I can't find my notes kept from 4 years ago, but something like described here: https://forums.developer.nvidia.com/...-drivers/42864
    I remember it being very problematic though, are you sure you want to this?
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  5. #5
    Join Date
    Mar 2023
    Beans
    3

    Re: How can I let gdm use Nvidia sound card?

    Thank you for providing the link. Is multiseat mandatory for letting gdm play sound before logging in?

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
  •