Ubuntu 20.04 - Audio non funzionante - notebook Asus

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Ciao Ragazzi, già con la 18.04 avevo avuto problemi simili e non avendo risolto ho abbandonato ubuntu, ahimè...

Ho un notebook Asus (UX331UN) e, come da titolo, l'audio non funziona o meglio questa volta accade una cosa strana: all'apertura di un video (sia su chrome, sia su firefox) parte per 1-2 secondi l'audio che poi si degrada.
Precedentemente con la 18.04 l'audio proprio non si sentiva, dovevo riavviare "x" volte e random funzionava.

Riuscite a darmi una mano?
Mi dispiacerebbe abbandonare ancora ubuntu...
Ultima modifica di trekfan1 il martedì 11 agosto 2020, 20:21, modificato 1 volta in totale.
Motivazione: Sistemato il titolo
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionatane - notebook Asus

Messaggio da magozurlinux »

Risponde un altro mago. :lol:

Da terminale postami questi comandi:

Codice: Seleziona tutto

lspci

Codice: Seleziona tutto

aplay -l

Codice: Seleziona tutto

amixer
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionatane - notebook Asus

Messaggio da SimonMago »

Tu però sei il mago giusto, nel forum giusto... :D

Codice: Seleziona tutto

:~$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1e.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO UART Controller #0 (rev 21)
00:1e.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO SPI Controller #0 (rev 21)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)

Codice: Seleziona tutto

:~$ aplay -l
**** Lista di PLAYBACK dispositivi hardware ****
scheda 0: PCH [HDA Intel PCH], dispositivo 0: ALC294 Analog [ALC294 Analog]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: PCH [HDA Intel PCH], dispositivo 3: HDMI 0 [HDMI 0]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: PCH [HDA Intel PCH], dispositivo 7: HDMI 1 [HDMI 1]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: PCH [HDA Intel PCH], dispositivo 8: HDMI 2 [HDMI 2]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: PCH [HDA Intel PCH], dispositivo 9: HDMI 3 [HDMI 3]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0
scheda 0: PCH [HDA Intel PCH], dispositivo 10: HDMI 4 [HDMI 4]
  Sottoperiferiche: 1/1
  Sottoperiferica #0: subdevice #0

Codice: Seleziona tutto

:~$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 74 [85%] [-9.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Entra nel BIOS, disattiva il Fast boot.

Salva le impostazioni, riavvia il portatile.

Da terminale dai questi comandi:

Codice: Seleziona tutto

alsamixer -v all
Posizionati su Headphone, mettilo in on premendo il tasto m, con la freccia in su' alza il volume; premi Esc per uscire.

Codice: Seleziona tutto

sudo alsactl store
riavvia il portatile.

Vedi se così funziona.
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

magozurlinux, il fast boot l'avevo già disattivato.
alsamixer -v all
Credo che la "V" sia maiuscola, lo scrivo in caso qualcun altro leggesse.

Il comando corretto è:

Codice: Seleziona tutto

alsamixer -V all
Tornando a noi:
Posizionati su Headphone, mettilo in on premendo il tasto m, con la freccia in su' alza il volume; premi Esc per uscire.
L'avevo già provato, ma non cambiava nulla, comunque ho rifatto aggiungendo l'altro comando che hai suggerito, riavviato, ma nulla.
(se riapro alsamixer "Headphone" risulta ancora disattivato)


Ieri, dopo che ho postato le risposte da terminale, l'audio andava...
Sta succedendo come nella 18.04, l'audio va 1 volta su 3 (dopo il riavvio)...
Ora non va per esempio.
Riposto quindi la risposta al comando:

Codice: Seleziona tutto

amixer

Codice: Seleziona tutto

amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 67 [77%] [-15.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 46 [73%] [17.25dB] [on]
  Front Right: Capture 46 [73%] [17.25dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%] [10.00dB]
  Front Right: 1 [33%] [10.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Quella scheda audio è un pò rognosa, ho letto diversi tread. :muro:

Da terminale dai questi comandi:

Codice: Seleziona tutto

sudo nano /etc/modprobe.d/alsa-base.conf
vai in fondo al file; aggiungi questa riga:

Codice: Seleziona tutto

options snd-hda-intel model=asus-zenbook-ux331un
salva premendo i tasti Ctrl o e poi Invio; per uscire Ctrl x

Codice: Seleziona tutto

sudo alsa force-reload
Riavvia il portatile.

Vedi se ora funziona.

Da terminale postami questo comando:

Codice: Seleziona tutto

dmesg | grep snd
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Sfortunatamente no... :muro:

La cosa strana è che parte per 2-3 secondi e poi degrada, fino a non sentirsi più...
Poi un riavvio su tre/quattro va...

Codice: Seleziona tutto

dmesg | grep snd
[    4.052387] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    4.052991] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    4.088099] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    4.088103] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.088105] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    4.088107] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    4.088109] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    4.088111] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    4.088114] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Da terminale dai questi comandi:

Codice: Seleziona tutto

sudo nano /etc/modprobe.d/alsa-base.conf
vai in fondo al file; modifica model=XXX:

options snd-hda-intel model=auto

salva premendo i tasti Ctrl o e poi Invio; per uscire Ctrl x

Codice: Seleziona tutto

sudo alsa force-reload
Riavvia il portatile.

Vedi se ora funziona.

Se ancora non funzioan, prova anche con:

model=asus

model=asus-dig

model=generic
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Niente...
Se metto: generic proprio zero.

Negli altri casi parte per 2-3 secondi e degrada...
Ma non è strano che faccia questa cosa???
Idem per il fatto che random funzioni...
Facendo le prove ho anche riavviato 4-5 volte e non ha mai funzionato neanche per sbaglio.
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Da terminale postami questo comando:

Codice: Seleziona tutto

cat /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Sono via fino a lunedì, appena torno a casa provo, grazie mille.
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
OMBRA_Linux
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2001
Iscrizione: mercoledì 18 febbraio 2015, 14:24
Desktop: Android Linux Windows
Distribuzione: Android / Linux / Windows10-11
Sesso: Maschile
Località: Napoli

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da OMBRA_Linux »

Quando torni posta uno ( Screenshot ) di ( Alsa ) e delle impostazioni ( Audio.)
Se per vivere devi strisciare, alzati e muori.
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Allora, primo riavvio dopo le vacanze l'audio va...
Quindi ti posto tutto ora con audio funzionante, poi riavvio e posto con audio non funzionante.

Codice: Seleziona tutto

cat /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

; Common part of all paths

; So here's generally how mixer paths are used by PA: PA goes through
; a mixer path file from top to bottom and checks if a mixer element
; described therein exists. If so it is added to the list of mixer
; elements PA will control, keeping the order it read them in. If a
; mixer element described here has set the required= or
; required-absent= directives a path might not be accepted as valid
; and is ignored in its entirety (see below). However usually if a
; element listed here is missing this one element is ignored but not
; the entire path.
;
; When a device shall be muted/unmuted *all* elements listed in a path
; file with "switch = mute" will be toggled.
;
; When a device shall change its volume, PA will got through the list
; of all elements with "volume = merge" and set the volume on the
; first element. If that element does not support dB volumes, this is
; where the story ends. If it does support dB volumes, PA divides the
; requested volume by the volume that was set on this element, and
; then go on to the next element with "volume = merge" and then set
; that there, and so on.  That way the first volume element in the
; path will be the one that does the 'biggest' part of the overall
; volume adjustment, with the remaining elements usually being set to
; some value next to 0dB. This logic makes sure we get the full range
; over all volume sliders and a very high granularity of volumes
; already in hardware.
;
; All switches and enumerations set to "select" are exposed via the
; "port" functionality of sinks/sources. Basically every possible
; switch setting and every possible enumeration setting will be
; combined and made into a "port". So make sure you don't list too
; many switches/enums for exposing, because the number of ports might
; rise exponentially.
;
; Only one path can be selected at a time. All paths that are valid
; for an audio device will be exposed as "port" for the sink/source.


; [General]
; priority = ...                         # Priority for this path
; description-key = ...                  # The path description is looked up from a table in path_verify() in
;                                        # src/modules/alsa/alsa-mixer.c. By default the path name (i.e. the file name
;                                        # minus the ".conf" suffix) is used as the lookup key, but if this option is
;                                        # set, then the given string is used as the key instead. In any case the
;                                        # "description" option can be used to override the path description.
; description = ...                      # Description for this path. Overrides the normal description lookup logic, as
;                                        # described in the "description-key" documentation above.
; mute-during-activation = yes | no      # If this path supports hardware mute, should the hw mute be used while activating this
;                                        # path? In some cases this can reduce extra noises during port switching, while in other
;                                        # cases this can increase such noises. Default: no.
; eld-device = ...                       # If this is an HDMI port, set to "auto" so that PulseAudio will try to read
;                                        # the monitor ELD information from the ALSA mixer. By default the ELD information
;                                        # is not read, because it's only applicable with HDMI. Earlier the "auto" option
;                                        # didn't exist, and the hw device index had to be manually configured. For
;                                        # backwards compatibility, it's still possible to manually configure the device
;                                        # index using this option.
;
; [Properties]                           # Property list for this path. The list is merged into the port property list.
; <key> = <value>                        # Each property is defined on its own line.
; ...
;
; [Option ...:...]                       # For each option of an enumeration or switch element
;                                        # that shall be exposed as a sink/source port. Needs to
;                                        # be named after the Element, followed by a colon, followed
;                                        # by the option name, resp. on/off if the element is a switch.
; name = ...                             # Logical name to use in the path identifier
; priority = ...                         # Priority if this is made into a device port
; required = ignore | enumeration | any            # In this element, this option must exist or the path will be invalid. ("any" is an alias for "enumeration".)
; required-any = ignore | enumeration | any        # In this element, either this or another option must exist (or an element)
; required-absent = ignore | enumeration | any     # In this element, this option must not exist or the path will be invalid
;
; [Element ...]                          # For each element that we shall control. The "..." here is the element name,
;                                        # or name and index separated by a comma.
; required = ignore | switch | volume | enumeration | any     # If set, require this element to be of this kind and available,
;                                                             # otherwise don't consider this path valid for the card
; required-any = ignore | switch | volume | enumeration | any # If set, at least one of the elements or jacks with required-any in this
;                                                             # path must be present, otherwise this path is invalid for the card
; required-absent = ignore | switch | volume                  # If set, require this element to not be of this kind and not
;                                                             # available, otherwise don't consider this path valid for the card
;
; switch = ignore | mute | off | on | select # What to do with this switch: ignore it, make it follow mute status,
;                                            # always set it to off, always to on, or make it selectable as port.
;                                            # If set to 'select' you need to define an Option section for on
;                                            # and off
; volume = ignore | merge | off | zero | <volume step> # What to do with this volume: ignore it, merge it into the device
;                                                      # volume slider, always set it to the lowest value possible, or always
;                                                      # set it to 0 dB (for whatever that means), or always set it to
;                                                      # <volume step> (this only makes sense in path configurations where
;                                                      # the exact hardware and driver are known beforehand).
; volume-limit = <volume step>           # Limit the maximum volume by disabling the volume steps above <volume step>.
; enumeration = ignore | select          # What to do with this enumeration, ignore it or make it selectable
;                                        # via device ports. If set to 'select' you need to define an Option section
;                                        # for each of the items you want to expose
; direction = playback | capture         # Is this relevant only for playback or capture? If not set this will implicitly be
;                                        # set the direction of the PCM device is opened as. Generally this doesn't need to be set
;                                        # unless you have a broken driver that has playback controls marked for capture or vice
;                                        # versa
; direction-try-other = no | yes         # If the element does not supported what is requested, try the other direction, too?
;
; override-map.1 = ...                   # Override the channel mask of the mixer control if the control only exposes a single channel
; override-map.2 = ...                   # Override the channel masks of the mixer control if the control only exposes two channels
;                                        # Override maps should list for each element channel which high-level channels it controls via a
;                                        # channel mask. A channel mask may either be the name of a single channel, or the words "all-left",
;                                        # "all-right", "all-center", "all-front", "all-rear", and "all" to encode a specific subset of
;                                        # channels in a mask
; [Jack ...]                           # For each jack that we will use for jack detection
;                                      # The name 'Jack Foo' must match ALSA's 'Foo Jack' control.
; required = ignore | any              # If not set to ignore, make the path invalid if this jack control is not present.
; required-absent = ignore | any       # If not set to ignore, make the path invalid if this jack control is present.
; required-any = ignore | any          # If not set to ignore, make the path invalid if no jack controls and no elements with
;                                      # the required-any are present.
; state.plugged = yes | no | unknown   # Normally a plugged jack would mean the port becomes available, and an unplugged means it's
; state.unplugged = yes | no | unknown # unavailable, but the port status can be overridden by specifying state.plugged and/or state.unplugged.
; append-pcm-to-name = no | yes        # Add ",pcm=N" to the jack name? N is the hw PCM device index. HDMI jacks have
;                                      # the PCM device index in their name, but different drivers use different
;                                      # numbering schemes, so we can't hardcode the full jack name in our configuration
;                                      # files.

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element External Amplifier]
switch = select

[Option External Amplifier:on]
name = output-amplifier-on
priority = 10

[Option External Amplifier:off]
name = output-amplifier-off
priority = 0

[Element Bass Boost]
switch = select

[Option Bass Boost:on]
name = output-bass-boost-on
priority = 0

[Option Bass Boost:off]
name = output-bass-boost-off
priority = 10

[Element IEC958]
switch = off

[Element IEC958 Optical Raw]
switch = off

;;; 'Analog Output'

[Element Analog Output]
enumeration = select

[Option Analog Output:Speakers]
name = output-speaker
priority = 10

[Option Analog Output:Headphones]
name = output-headphones
priority = 9

[Option Analog Output:FP Headphones]
name = output-headphones
priority = 8
Immagine

Immagine
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Audio NON funzionante:

Codice: Seleziona tutto

cat /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

; Common part of all paths

; So here's generally how mixer paths are used by PA: PA goes through
; a mixer path file from top to bottom and checks if a mixer element
; described therein exists. If so it is added to the list of mixer
; elements PA will control, keeping the order it read them in. If a
; mixer element described here has set the required= or
; required-absent= directives a path might not be accepted as valid
; and is ignored in its entirety (see below). However usually if a
; element listed here is missing this one element is ignored but not
; the entire path.
;
; When a device shall be muted/unmuted *all* elements listed in a path
; file with "switch = mute" will be toggled.
;
; When a device shall change its volume, PA will got through the list
; of all elements with "volume = merge" and set the volume on the
; first element. If that element does not support dB volumes, this is
; where the story ends. If it does support dB volumes, PA divides the
; requested volume by the volume that was set on this element, and
; then go on to the next element with "volume = merge" and then set
; that there, and so on.  That way the first volume element in the
; path will be the one that does the 'biggest' part of the overall
; volume adjustment, with the remaining elements usually being set to
; some value next to 0dB. This logic makes sure we get the full range
; over all volume sliders and a very high granularity of volumes
; already in hardware.
;
; All switches and enumerations set to "select" are exposed via the
; "port" functionality of sinks/sources. Basically every possible
; switch setting and every possible enumeration setting will be
; combined and made into a "port". So make sure you don't list too
; many switches/enums for exposing, because the number of ports might
; rise exponentially.
;
; Only one path can be selected at a time. All paths that are valid
; for an audio device will be exposed as "port" for the sink/source.


; [General]
; priority = ...                         # Priority for this path
; description-key = ...                  # The path description is looked up from a table in path_verify() in
;                                        # src/modules/alsa/alsa-mixer.c. By default the path name (i.e. the file name
;                                        # minus the ".conf" suffix) is used as the lookup key, but if this option is
;                                        # set, then the given string is used as the key instead. In any case the
;                                        # "description" option can be used to override the path description.
; description = ...                      # Description for this path. Overrides the normal description lookup logic, as
;                                        # described in the "description-key" documentation above.
; mute-during-activation = yes | no      # If this path supports hardware mute, should the hw mute be used while activating this
;                                        # path? In some cases this can reduce extra noises during port switching, while in other
;                                        # cases this can increase such noises. Default: no.
; eld-device = ...                       # If this is an HDMI port, set to "auto" so that PulseAudio will try to read
;                                        # the monitor ELD information from the ALSA mixer. By default the ELD information
;                                        # is not read, because it's only applicable with HDMI. Earlier the "auto" option
;                                        # didn't exist, and the hw device index had to be manually configured. For
;                                        # backwards compatibility, it's still possible to manually configure the device
;                                        # index using this option.
;
; [Properties]                           # Property list for this path. The list is merged into the port property list.
; <key> = <value>                        # Each property is defined on its own line.
; ...
;
; [Option ...:...]                       # For each option of an enumeration or switch element
;                                        # that shall be exposed as a sink/source port. Needs to
;                                        # be named after the Element, followed by a colon, followed
;                                        # by the option name, resp. on/off if the element is a switch.
; name = ...                             # Logical name to use in the path identifier
; priority = ...                         # Priority if this is made into a device port
; required = ignore | enumeration | any            # In this element, this option must exist or the path will be invalid. ("any" is an alias for "enumeration".)
; required-any = ignore | enumeration | any        # In this element, either this or another option must exist (or an element)
; required-absent = ignore | enumeration | any     # In this element, this option must not exist or the path will be invalid
;
; [Element ...]                          # For each element that we shall control. The "..." here is the element name,
;                                        # or name and index separated by a comma.
; required = ignore | switch | volume | enumeration | any     # If set, require this element to be of this kind and available,
;                                                             # otherwise don't consider this path valid for the card
; required-any = ignore | switch | volume | enumeration | any # If set, at least one of the elements or jacks with required-any in this
;                                                             # path must be present, otherwise this path is invalid for the card
; required-absent = ignore | switch | volume                  # If set, require this element to not be of this kind and not
;                                                             # available, otherwise don't consider this path valid for the card
;
; switch = ignore | mute | off | on | select # What to do with this switch: ignore it, make it follow mute status,
;                                            # always set it to off, always to on, or make it selectable as port.
;                                            # If set to 'select' you need to define an Option section for on
;                                            # and off
; volume = ignore | merge | off | zero | <volume step> # What to do with this volume: ignore it, merge it into the device
;                                                      # volume slider, always set it to the lowest value possible, or always
;                                                      # set it to 0 dB (for whatever that means), or always set it to
;                                                      # <volume step> (this only makes sense in path configurations where
;                                                      # the exact hardware and driver are known beforehand).
; volume-limit = <volume step>           # Limit the maximum volume by disabling the volume steps above <volume step>.
; enumeration = ignore | select          # What to do with this enumeration, ignore it or make it selectable
;                                        # via device ports. If set to 'select' you need to define an Option section
;                                        # for each of the items you want to expose
; direction = playback | capture         # Is this relevant only for playback or capture? If not set this will implicitly be
;                                        # set the direction of the PCM device is opened as. Generally this doesn't need to be set
;                                        # unless you have a broken driver that has playback controls marked for capture or vice
;                                        # versa
; direction-try-other = no | yes         # If the element does not supported what is requested, try the other direction, too?
;
; override-map.1 = ...                   # Override the channel mask of the mixer control if the control only exposes a single channel
; override-map.2 = ...                   # Override the channel masks of the mixer control if the control only exposes two channels
;                                        # Override maps should list for each element channel which high-level channels it controls via a
;                                        # channel mask. A channel mask may either be the name of a single channel, or the words "all-left",
;                                        # "all-right", "all-center", "all-front", "all-rear", and "all" to encode a specific subset of
;                                        # channels in a mask
; [Jack ...]                           # For each jack that we will use for jack detection
;                                      # The name 'Jack Foo' must match ALSA's 'Foo Jack' control.
; required = ignore | any              # If not set to ignore, make the path invalid if this jack control is not present.
; required-absent = ignore | any       # If not set to ignore, make the path invalid if this jack control is present.
; required-any = ignore | any          # If not set to ignore, make the path invalid if no jack controls and no elements with
;                                      # the required-any are present.
; state.plugged = yes | no | unknown   # Normally a plugged jack would mean the port becomes available, and an unplugged means it's
; state.unplugged = yes | no | unknown # unavailable, but the port status can be overridden by specifying state.plugged and/or state.unplugged.
; append-pcm-to-name = no | yes        # Add ",pcm=N" to the jack name? N is the hw PCM device index. HDMI jacks have
;                                      # the PCM device index in their name, but different drivers use different
;                                      # numbering schemes, so we can't hardcode the full jack name in our configuration
;                                      # files.

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element External Amplifier]
switch = select

[Option External Amplifier:on]
name = output-amplifier-on
priority = 10

[Option External Amplifier:off]
name = output-amplifier-off
priority = 0

[Element Bass Boost]
switch = select

[Option Bass Boost:on]
name = output-bass-boost-on
priority = 0

[Option Bass Boost:off]
name = output-bass-boost-off
priority = 10

[Element IEC958]
switch = off

[Element IEC958 Optical Raw]
switch = off

;;; 'Analog Output'

[Element Analog Output]
enumeration = select

[Option Analog Output:Speakers]
name = output-speaker
priority = 10

[Option Analog Output:Headphones]
name = output-headphones
priority = 9

[Option Analog Output:FP Headphones]
name = output-headphones
priority = 8
Immagine

Immagine
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Da terminale dai questi comandi:

Codice: Seleziona tutto

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
scorri il file fino a:

Codice: Seleziona tutto

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
prima di [Element PCM] mantenendo gli stessi spazi aggiungi queste righe:

Codice: Seleziona tutto

[Element Master]
switch = mute
volume = ignore
premi i tasti Ctrl x per salvare ed uscire dall'editor di testo.

Codice: Seleziona tutto

alsamixer
con la freccia -> ti sposti verso destra, vai su Headphone, premi m per attivarlo in [00] e freccia in sù per aumentare il volume, poi posizionati sul primo S/PDIF premi m per attivarlo; premi Esc per uscire

riavvia il portatile.
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Niente... :muro: :muro: :muro:
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

Devo perdere le speranze? :(
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Avatar utente
magozurlinux
Accecante Asceta
Accecante Asceta
Messaggi: 23978
Iscrizione: mercoledì 17 marzo 2010, 17:44
Desktop: Xubuntu
Distribuzione: Ubuntu 20.04 LTS x86_64
Località: Pisa

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da magozurlinux »

Cancella la riga che hai aggiunto nel file /etc/modprobe.d/alsa-base.conf

Segui questo link:

viewtopic.php?f=9&t=642066#p5219609
Xubuntu 20.04 LTS 64bit - Saluti da magozurlinux :ciao:
Avatar utente
SimonMago
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1010
Iscrizione: venerdì 13 ottobre 2006, 17:33
Desktop: GNOME
Distribuzione: Ubuntu 20.04 LTS x86_64
Sesso: Maschile
Località: Milano

Re: Ubuntu 20.04 - Audio non funzionante - notebook Asus

Messaggio da SimonMago »

magozurlinux ha scritto:
lunedì 14 settembre 2020, 12:44
Cancella la riga che hai aggiunto nel file /etc/modprobe.d/alsa-base.conf

Segui questo link:

viewtopic.php?f=9&t=642066#p5219609
Niente...

Incredibile.
"Il cielo stellato sopra di me, la legge morale dentro di me." I. Kant
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot] e 3 ospiti