LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-25-2018, 11:45 AM   #1
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
no sound hdmi debian stretch


Hi

I did a fresh installation of debian stretch. I deactivated the onboard sound and left the hdmi cable connected to my tv. My video card is a 750t gtx and my motherboard is an M4A78LT-M LE asus.

At the end of my installation I had audio through my hdmi cable tv

I reboot the pc and enabled the onboard audio and now I no longer have sound on my tv, only the onboard sound works.

I rebooted again and disabled the onboard sound. To my surprise, I continued without sound on my tv through the hdmi.

I've browsed the net and found no solution to my case. I would be grateful for any tip that would make my sound work.

What caught my attention was this

Code:
mplayer -ao alsa:device=hw=1,7 Música/Raul\ Seixas\ -\ Gita.mp4 
MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Música/Raul Seixas - Gita.mp4.
libavformat version 57.56.101 (external)
Mismatching header version 57.56.100
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f13a46cfd00]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  480x360  24bpp  25.000 fps  291.0 kbps (35.5 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.64.101 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2016-03-17T09:30:59.000000Z
Load subtitles in Música/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 96.0 kbit/3.40% (ratio: 11999->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-2): No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=1'
No such audio driver '7'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 480x360 => 480x360 Planar YV12 
V:   3.2   0/  0  5%  1%  0.0% 0 0 

Exiting... (Quit)
note: At the moment I have the audio onboard enabled, but its disabled the audio onboard, it happens the same

Code:
ls /dev/snd/
by-path  controlC0  controlC1  hwC0D0  hwC1D0  pcmC0D0c  pcmC0D0p  pcmC0D2p  pcmC0D3p  pcmC1D3p  pcmC1D7p  pcmC1D8p  seq  timer
thanks
 
Old 02-27-2018, 01:04 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
Use the alsa-info.sh diagnostic script to generate a report about your audio hardware. It can upload the output to an online server and all you need to do is share the link that it provides here for others to advise further.

You could also share with us the output of
Code:
pacmd list cards
 
Old 02-27-2018, 01:09 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Have you opened PulseAudio Volume Control and confirmed which output device[s] you have acitve? Seeing ALSA problems confuses me as I thought Debian desktops had all moved to Pulse*udio?
 
Old 02-27-2018, 03:19 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
Quote:
Seeing ALSA problems confuses me as I thought Debian desktops had all moved to Pulse*udio?
PulseAudio sits above ALSA in the audio stack. The following does suggest an issue at the hardware/driver level.
Code:
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-2): No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=1'
No such audio driver '7'
Could not open/initialize audio device -> no sound.
Audio: no sound
 
Old 02-27-2018, 03:33 PM   #5
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ferrari View Post
Use the alsa-info.sh diagnostic script to generate a report about your audio hardware. It can upload the output to an online server and all you need to do is share the link that it provides here for others to advise further.

You could also share with us the output of
pacmd list cards

hi

Thank you very much for the reply.

but I'm not an expert in linux, despite using linux a long time

Only hdmi cable connected to ledtv. The sound onboard of my motherboard is disabled.

http://www.alsa-project.org/db/?f=70...bdb37e9c606dcb

$pacmd list cards
Code:
Memory blocks currently allocated: 1, size: 63,9 KB.
Memory blocks allocated during the whole lifetime: 447, size: 4,3 MB.
Memory blocks imported from other processes: 0, size: 0 B.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1
Default source name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor
Memory blocks of type POOL: 1 allocated/193 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/0 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/147 accumulated.
Memory blocks of type IMPORTED: 0 allocated/107 accumulated.
21 module(s) loaded.
    index: 0
        name: <module-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute state of devices"
                module.version = "10.0"
    index: 1
        name: <module-stream-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute/device state of streams"
                module.version = "10.0"
    index: 2
        name: <module-card-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore profile of cards"
                module.version = "10.0"
    index: 3
        name: <module-augment-properties>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Augment the property sets of streams with additional static information"
                module.version = "10.0"
    index: 4
        name: <module-switch-on-port-available>
        argument: <>
        used: -1
        load once: no
        properties:

    index: 5
        name: <module-udev-detect>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Detect available audio hardware and load matching drivers"
                module.version = "10.0"
    index: 6
        name: <module-alsa-card>
        argument: <device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1">
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "10.0"
    index: 7
        name: <module-native-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Native protocol (UNIX sockets)"
                module.version = "10.0"
    index: 8
        name: <module-gconf>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "GConf Adapter"
                module.version = "10.0"
    index: 9
        name: <module-default-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the default sink and source"
                module.version = "10.0"
    index: 10
        name: <module-rescue-streams>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
                module.version = "10.0"
    index: 11
        name: <module-always-sink>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Sempre manter pelo menos um destino carregado mesmo se for nulo"
                module.version = "10.0"
    index: 12
        name: <module-intended-roles>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically set device of streams based on intended roles of devices"
                module.version = "10.0"
    index: 13
        name: <module-suspend-on-idle>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is idle for too long, suspend it"
                module.version = "10.0"
    index: 14
        name: <module-console-kit>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each ConsoleKit session of this user"
                module.version = "10.0"
    index: 15
        name: <module-systemd-login>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each login session of this user"
                module.version = "10.0"
    index: 16
        name: <module-position-event-sounds>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
                module.version = "10.0"
    index: 17
        name: <module-role-cork>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Mute & cork streams with certain roles while others exist"
                module.version = "10.0"
    index: 18
        name: <module-filter-heuristics>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Detect when various filters are desirable"
                module.version = "10.0"
    index: 19
        name: <module-filter-apply>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Load filter sinks automatically when needed"
                module.version = "10.0"
    index: 20
        name: <module-cli-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Command line interface protocol (UNIX sockets)"
                module.version = "10.0"
1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 9050
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1837,33 ms
        card: 0 <alsa_card.pci-0000_01_00.1>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 1"
                alsa.id = "HDMI 1"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "7"
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xfe97c000 irq 19"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fbc"
                device.string = "hdmi:0,1"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra1"
                device.profile.description = "Digital Stereo (HDMI 2)"
                device.description = "HDA NVidia Digital Stereo (HDMI 2)"
                alsa.mixer_name = "Nvidia GPU 60 HDMI/DP"
                alsa.components = "HDA:10de0060,19da288a,00100100"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "PHILCO
      "
        active port: <hdmi-output-1>
1 source(s) available.
  * index: 0
        name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 1050
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Estéreo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1837,33 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_01_00.1>
        module: 6
        properties:
                device.description = "Monitor of HDA NVidia Digital Stereo (HDMI 2)"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xfe97c000 irq 19"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fbc"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
4 client(s) logged in.
    index: 0
        driver: <module-systemd-login.c>
        owner module: 15
        properties:
                application.name = "Login Session 3"
                systemd-login.session = "3"
    index: 1
        driver: <protocol-native.c>
        owner module: 7
        properties:
                application.name = "Firefox"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.icon_name = "firefox-esr"
                application.version = "52.6.0"
                application.process.id = "2165"
                application.process.user = "base1"
                application.process.host = "base1"
                application.process.binary = "firefox-esr"
                application.language = "pt_BR.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7b1374c71981402595bb07f2f4cd8535"
                application.process.session_id = "3"
    index: 2
        driver: <protocol-native.c>
        owner module: 7
        properties:
                application.name = "QPulse"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "1152"
                application.process.user = "base1"
                application.process.host = "base1"
                application.process.binary = "plasmashell"
                application.language = "pt_BR.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "7b1374c71981402595bb07f2f4cd8535"
                application.process.session_id = "3"
    index: 12
        driver: <cli.c>
        owner module: 20
        properties:
                application.name = "UNIX socket client"
1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_01_00.1>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xfe97c000 irq 19"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:02.0/0000:01:00.1/sound/card0"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0fbc"
                device.string = "0"
                device.description = "HDA NVidia"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                output:hdmi-stereo: Saída de Digital Stereo (HDMI) (priority 5400, available: no)
                output:hdmi-surround: Saída de Digital Surround 5.1 (HDMI) (priority 300, available: no)
                output:hdmi-surround71: Saída de Digital Surround 7.1 (HDMI) (priority 300, available: no)
                output:hdmi-stereo-extra1: Saída de Digital Stereo (HDMI 2) (priority 5200, available: unknown)
                output:hdmi-stereo-extra2: Saída de Digital Stereo (HDMI 3) (priority 5200, available: no)
                output:hdmi-surround-extra2: Saída de Digital Surround 5.1 (HDMI 3) (priority 100, available: no)
                output:hdmi-surround71-extra2: Saída de Digital Surround 7.1 (HDMI 3) (priority 100, available: no)
                off: Desligado (priority 0, available: unknown)
        active profile: <output:hdmi-stereo-extra1>
        sinks:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1/#0: HDA NVidia Digital Stereo (HDMI 2)
        sources:
                alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor/#0: Monitor of HDA NVidia Digital Stereo (HDMI 2)
        ports:
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
                hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "video-display"
                                device.product.name = "PHILCO
      "
                hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
0 sink input(s) available.
0 source output(s) available.
0 cache entrie(s) available.
many thanks

Last edited by afreitascs; 02-27-2018 at 04:12 PM.
 
Old 02-27-2018, 03:46 PM   #6
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ferrari View Post
PulseAudio sits above ALSA in the audio stack. The following does suggest an issue at the hardware/driver level.
Code:
[AO_ALSA] alsa-lib: pcm_hw.c:1602:(snd_pcm_hw_open) open '/dev/snd/pcmC1D0p' failed (-2): No such file or directory
[AO_ALSA] Playback open error: No such file or directory
Failed to initialize audio driver 'alsa:device=hw=1'
No such audio driver '7'
Could not open/initialize audio device -> no sound.
Audio: no sound

Thank you very much for the reply.

but I'm not an expert in linux, despite using linux a long time

in aplay -l

$ aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
In my attempts to solve the problem, I got sound on card 0 dev 7 , then no more

At the time I typed
Code:
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Right.wav
and got sound

Quote:
The following does suggest an issue at the hardware/driver level.
On windows, I have installed on another hd, hdmi works correctly.

I tested on ubuntu 16.4 installed on another partition and also did not work the hdmi, on it

many thanks

Last edited by afreitascs; 02-27-2018 at 04:12 PM.
 
Old 02-27-2018, 04:06 PM   #7
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by 273 View Post
Have you opened PulseAudio Volume Control and confirmed which output device[s] you have acitve? Seeing ALSA problems confuses me as I thought Debian desktops had all moved to Pulse*udio?
Thank you very much for the reply.

but I'm not an expert in linux, despite using linux a long time

Yes , I do

Also, when I play a sound, I can watch the bar move to indicate the audio. Only the sound does not come out, in the speakers of the tv

many thanks

Last edited by afreitascs; 02-27-2018 at 04:11 PM.
 
Old 02-27-2018, 04:16 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
No one expects you to be an expert. Answering questions and providing output to requested commands is the best way forward. Anyway, I can see that your current profile is for HDMI output so that is as expected.
Code:
profiles:
                output:hdmi-stereo: Saída de Digital Stereo (HDMI) (priority 5400, available: no)
                output:hdmi-surround: Saída de Digital Surround 5.1 (HDMI) (priority 300, available: no)
                output:hdmi-surround71: Saída de Digital Surround 7.1 (HDMI) (priority 300, available: no)
                output:hdmi-stereo-extra1: Saída de Digital Stereo (HDMI 2) (priority 5200, available: unknown)
                output:hdmi-stereo-extra2: Saída de Digital Stereo (HDMI 3) (priority 5200, available: no)
                output:hdmi-surround-extra2: Saída de Digital Surround 5.1 (HDMI 3) (priority 100, available: no)
                output:hdmi-surround71-extra2: Saída de Digital Surround 7.1 (HDMI 3) (priority 100, available: no)
                off: Desligado (priority 0, available: unknown)
        active profile: <output:hdmi-stereo-extra1>
This is a good sign as well...
Quote:
At the time I typed
Code:

aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Right.wav

and got sound

Last edited by ferrari; 02-27-2018 at 04:27 PM.
 
Old 02-27-2018, 04:26 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
So far, it looks like your sound is configured correctly, but returning to your opening post I wonder if mplayer is not configured correctly. I note that it is trying to send to the ALSA device hw=1,7, rather than hw=0,7. Could that be the issue here perhaps?

Last edited by ferrari; 02-27-2018 at 04:29 PM.
 
Old 02-27-2018, 09:19 PM   #10
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ferrari View Post
So far, it looks like your sound is configured correctly, but returning to your opening post I wonder if mplayer is not configured correctly. I note that it is trying to send to the ALSA device hw=1,7, rather than hw=0,7. Could that be the issue here perhaps?
hi

Let's see if I can explain: I did a Debian installation only with the hdmi cable connected. On the bios setup of my motherboard, the onboard sound was disabled. So the only sound path would be the hdmi cable.

At the end of the installation, after installing the video driver (nvidia-driver), I got sound.
It was then at this point when typing this command, I realized that

aplay -D plughw: 0.7 /usr/share/sounds/alsa/Front_Right.wav

quit sound.

note1: I was left with sound for a certain time, but then the sound disappeared and I could not get it back.
I do not remember if it was when I rebooted and enabled the onboard sound, to work together with the sound through the hdmi cable ...

[quote] So far, it looks like your sound is configured correctly, but returning to your opening post. I wonder if mplayer is not configured correctly. I note that it is trying to send the ALSA device hw = 1.7, rather than hw = 0.7. [/ quote]

When I enable on the bios setup of my motherboard the sound onboard, and I type:

$aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 2: VT1708S Alt Analog [VT1708S Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 3: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
my hdmi card becomes 1 and not 0.

note2 :In a partition of my hdd I did a fresh installation of ubuntu 16.4. During the installation I disabled the onboard sound of the motherboard and left only the sound through the hdmi cable. At the end of the installation there was no sound through the hdmi cable.
I installed ubuntu just to make experience

===============================

When I run a sound event in no debian, I noticed that the bar in PulseAudio Volume Control moves, indicating sound, but I do not hear anything. It's like my tv was not knowing what to do with the data it receives ...

many thanks
 
Old 02-27-2018, 11:19 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
Quote:
When I enable on the bios setup of my motherboard the sound onboard, and I type:

$aplay -l

my hdmi card becomes 1 and not 0.
Ok, that makes sense. Whether a card is present or not when installing shouldn't really make a difference. It's all detected dynmically at boot, and generally-speaking no additional configuration should be needed. Having said that, sometimes deleting the existing ~/.config/pulse directory and restarting PA can be helpful...
Code:
rm -r ~/.config/pulse; pulseaudio -k
 
Old 02-28-2018, 01:40 AM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
Assuming card 1, device 7 (you could try the other HDMI device outputs as well), do you hear anything with the following?
Code:
speaker-test -D plughw:1,7 -c 2
 
Old 02-28-2018, 11:31 AM   #13
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ferrari View Post
Ok, that makes sense. Whether a card is present or not when installing shouldn't really make a difference. It's all detected dynmically at boot, and generally-speaking no additional configuration should be needed. Having said that, sometimes deleting the existing ~/.config/pulse directory and restarting PA can be helpful...
Code:
rm -r ~/.config/pulse; pulseaudio -k
hi

I usually do :
Code:
$rm -r ~/.config/pulse
$pulseaudio -k
$pulseaudio --start
Quote:
Assuming card 1, device 7 (you could try the other HDMI device outputs as well), do you hear anything with the following?


Code:
Code:
speaker-test -D plughw:1,7 -c 2
I had already done that, but I did it again now . No sound

Code:
$ speaker-test -D plughw:1,7 -c 2

speaker-test 1.1.3

Playback device is plughw:1,7
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 524288
Period size range from 32 to 262144
Using max buffer size 524288
Periods = 4
was set period_size = 131072
was set buffer_size = 524288
 0 - Front Left
 1 - Front Right
Time per period = 5,811811
 0 - Front Left
^C 1 - Front Right
Time per period = 2,419052
I read a lot on the internet and I decided to resort to the help of the forum for not knowing what else to do ... I think that some bug, that is, my TV is not able to process the sound that is sent to her ...

Anyway, it could be something that I did wrong.

The strange thing is that I've had sound and, suddenly, the sound disappears and no longer appears ...
On windows, as I said above, everything works.

note: If I write something that you do not understand, please say, because English is not my native language

======================

There is something I do not know if it has anything to do with the above problem:

When I boot Knoopix 7.2 on a stick, and I run GPARTED and if I try to mount the partition where my Debian (sda3) is, I get the answer:

"Could not mount / dev / sda3 on / media / sda3

mount: Wronfs fs type, bad option, bad superblock on / dev / sda3, missing codepage or helper program, or other error insome cases useful info is found in syslog - try dmesg | tail or so "


and I do not know how to solve this ...

many thanks for the attention

Last edited by afreitascs; 02-28-2018 at 11:35 AM.
 
Old 02-28-2018, 12:02 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,189

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
1. Just an idea. Let's see what ELD info is reported by the device...
Code:
cat /proc/asound/card1/eld#0.*
The Debian version and kernel version info could be useful here

2. Which graphics chipset and driver are you using?
Code:
lspci -nnk|grep '\[03' -A3
3. If you briefly unplug and replug the HDMI cable, does that result in working sound?

This may well require a bug report to resolve.
 
Old 02-28-2018, 12:17 PM   #15
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by ferrari View Post
1. Just an idea. Let's see what ELD info is reported by the device...
Code:
cat /proc/asound/card1/eld#0.*
The Debian version and kernel version info could be useful here

2. Which graphics chipset and driver are you using?
Code:
lspci -nnk|grep '\[03' -A3
3. If you briefly unplug and replug the HDMI cable, does that result in working sound?

This may well require a bug report to resolve.

$ cat /proc/asound/card1/eld#0.*

Code:
monitor_present         0
eld_valid               0
monitor_present         1
eld_valid               1
monitor_name            PHILCO
      
connection_type         HDMI
eld_version             [0x2] CEA-861D or below
edid_version            [0x3] CEA-861-B, C or D
manufacture_id          0xc052
product_id              0x0
port_id                 0x200
support_hdcp            0
support_ai              0
audio_sync_delay        0
speakers                [0x1] FL/FR
sad_count               1
sad0_coding_type        [0x1] LPCM
sad0_channels           2
sad0_rates              [0xe0] 32000 44100 48000
sad0_bits               [0xe0000] 16 20 24
monitor_present         0
eld_valid               0

$ uname -r

Code:
4.9.0-6-amd64

$ cat /etc/*-release

Code:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ lspci -nnk|grep '\[03' -A3


Code:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2)
        Subsystem: ZOTAC International (MCO) Ltd. GM107 [GeForce GTX 750 Ti] [19da:288a]
        Kernel driver in use: nvidia
        Kernel modules: nvidia
Quote:
3. If you briefly unplug and replug the HDMI cable, does that result in working sound?
I already did it, it continues without sound. I did it again now

many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian - no sound with HDMI cable Xeratul Debian 9 10-11-2015 10:44 PM
[SOLVED] can't route sound to HDMI in Miro on Debian skinney Linux - Software 7 05-13-2014 11:59 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
Debian on Raspberry Pi. Can't get sound by HDMI. tomham01 Debian 2 07-16-2012 07:19 PM
HDMI sound problem with Debian olliegab Linux - Hardware 1 02-04-2012 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration