[Touch-packages] [Bug 1901922] Re: [SRU][Lenovo ThinkPad T14 Gen 1] No sound output device on startup

2020-11-15 Thread cgampert
Hello, the focal-proposed 1.2.2-2.1ubuntu2.2 package solved the issue as
far I could test; indeed, the audio output device was present after the
multiple reboots or boot-ups I did.

System: yoga slim 7 4800u / ubuntu 20.04

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-lib in Ubuntu.
https://bugs.launchpad.net/bugs/1901922

Title:
  [SRU][Lenovo ThinkPad T14 Gen 1] No sound output device on startup

Status in PulseAudio:
  Unknown
Status in alsa-lib package in Ubuntu:
  Fix Committed
Status in alsa-ucm-conf package in Ubuntu:
  Fix Released
Status in alsa-lib source package in Focal:
  Fix Committed
Status in alsa-ucm-conf source package in Focal:
  Fix Committed
Status in alsa-lib source package in Groovy:
  Fix Committed
Status in alsa-ucm-conf source package in Groovy:
  Fix Committed
Status in alsa-lib source package in Hirsute:
  Fix Committed
Status in alsa-ucm-conf source package in Hirsute:
  Fix Released

Bug description:
  [Impact]
  On the machines with AMD Ryzen acp audio design, the audio can't work
  anymore after upgrading the libasound2 to ubuntu3(groovy)/ubuntu2.1(
  focal), this is a regression on libasound2 for those machines. the AMD
  Ryzen acp audio card needs to load ucm to work with pulseaudio, but
  this audio card doesn't have an independant ucm for it, it needs to
  link to an existing HDA-Intel ucm, the check_empty_configuration() needs
  to cover the situation that Linked is true, otherwise it will fail
  to load the ucm for the audio card. Even the audio card could load the
  ucm, the output is muted and the init output volume is too low if
  freshly install the OS on these machines.

  [Fix]
  Backport 1 alsa-lib patch to fix the failure of loading ucm on AMD
  Ryzen acp audio machines. Backport 4 alsa-ucm-conf patches to fix
  init mute and init output volume problem.

  [Test Case]
  Install the updated libasuond2, rm ~/.config/pulse/*; sudo rm -rf
  /var/lib/alsa/*; sudo sh -c 'echo b > /proc/sysrq-trigger' and run pacmd
  list-cards, we could see the pulseaudio load the ucm successfully and we 
could see
  the sound card is generated and all output and input devices are listed
  under sound card, but the init output is muted and the volume is very low
  if we manually unumte it. Now install the updated alsa-ucm-conf, rm 
~/.config/pulse/*; sudo rm -rf
  /var/lib/alsa/*; sudo sh -c 'echo b > /proc/sysrq-trigger', the output is
  not muted anymore and the output volume is OK to most users.

  [Regression Risk]
  This could make the machines with sof audio driver fail to load ucm
  , then all audio function can't work as before, like the speaker can't
  output sound or the internal mic can't be found or can't record sound.
  But this possibility is very low, I tested this SRU on some machines with or
  without sof audio driver, all worked as well as before.

  
  After logging in, only a dummy device is available for audio playback 
(resulting in no audible playback). When running "pactl load-module 
module-detect" the sound card shows up, and playback works as expected.

  If pulseaudio is restarted with "pulseaudio -k" the playback device
  disappears again. Running the above command get things working again.

  If I change the following section in /etc/pulse/default.pa from:

  ### Automatically load driver modules depending on the hardware available
  .ifexists module-udev-detect.so
  load-module module-udev-detect
  .else
  ### Use the static hardware detection module (for systems that lack udev 
support)
  load-module module-detect
  .endif

  To:

  ### Automatically load driver modules depending on the hardware available
  #.ifexists module-udev-detect.so
  #load-module module-udev-detect
  #.else
  ### Use the static hardware detection module (for systems that lack udev 
support)
  load-module module-detect
  #.endif

  Things start working as they should after running "pulseaudio -k".

  ProblemType: Bug
  DistroRelease: Ubuntu 20.10
  Package: pulseaudio 1:13.99.2-1ubuntu1
  ProcVersionSignature: Ubuntu 5.8.0-26.27-generic 5.8.14
  Uname: Linux 5.8.0-26-generic x86_64
  ApportVersion: 2.20.11-0ubuntu50
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: KDE
  Date: Wed Oct 28 17:21:02 2020
  InstallationDate: Installed on 2020-10-23 (4 days ago)
  InstallationMedia: Kubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
  SourcePackage: pulseaudio
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/07/2020
  dmi.bios.release: 1.9
  dmi.bios.vendor: LENOVO
  dmi.bios.version: R1BET40W(1.09 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 20UDCTO1WW
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Defined
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: None
  dmi.ec.firmware.release: 1.9
  dmi.modalias: 

[Touch-packages] [Bug 1663050] [NEW] Intel 7265 wireless device disconnect: link is not ready

2017-02-08 Thread cgampert
Public bug reported:

The wifi device disconnect sometime randomly or sometime when switching hotspot 
with the following dmesg output:
[ 1039.212949] iwlwifi :01:00.0: L1 Enabled - LTR Enabled
[ 1039.213503] iwlwifi :01:00.0: L1 Enabled - LTR Enabled
[ 1039.221549] pcieport :00:1c.0: AER: Corrected error received: id=00e0
[ 1039.221561] pcieport :00:1c.0: PCIe Bus Error: severity=Corrected, 
type=Physical Layer, id=00e0(Receiver ID)
[ 1039.221566] pcieport :00:1c.0:   device [8086:9d14] error 
status/mask=0001/2000
[ 1039.221569] pcieport :00:1c.0:[ 0] Receiver Error (First)
[ 1039.239086] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready

The device at pcieport :00:1c.0 seems to be the Intel 7265 wireless:
$ lspci -tv
-[:00]-+-00.0  Intel Corporation Device 5904
   +-02.0  Intel Corporation Device 5916
   +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
   +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
   +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
   +-17.0  Intel Corporation Sunrise Point-LP SATA Controller [AHCI 
mode]
   +-1c.0-[01]00.0  Intel Corporation Wireless 7265
   +-1d.0-[02]00.0  Samsung Electronics Co Ltd NVMe SSD Controller
   +-1f.0  Intel Corporation Device 9d58
   +-1f.2  Intel Corporation Sunrise Point-LP PMC
   +-1f.3  Intel Corporation Device 9d71
   \-1f.4  Intel Corporation Sunrise Point-LP SMBus

To allow the device to connect again I use the following:
$ sudo systemctl restart network-manager.service

That said, the pcieport :00:1c.0 dmesg outputs sometimes appears
without affecting the wifi connection...

$ lsb_release -rd
Description:Ubuntu 16.04.1 LTS
Release:16.04

$ inxi -Abd
System:Host: 710s Kernel: 4.4.0-62-generic x86_64 (64 bit) Desktop: Unity 
7.4.0  Distro: Ubuntu 16.04 xenial
Machine:   System: LENOVO (portable) product: 80VQ v: Lenovo ideapad 710S-13IKB
   Mobo: LENOVO model: Lenovo ideapad 710S-13IKB v: SDK0J40709 WIN
   Bios: LENOVO v: 3HCN12S2 date: 10/07/2016
CPU:   Dual core Intel Core i7-7500U (-HT-MCP-) speed/max: 600/2701 MHz
Graphics:  Card: Intel Device 5916
   Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) 
Resolution: 1920x1080@60.02hz
   GLX Renderer: Mesa DRI Intel Kabylake GT2 GLX Version: 3.0 Mesa 
11.2.0
Audio: Card Intel Device 9d71 driver: snd_hda_intel Sound: ALSA v: 
k4.4.0-62-generic
Network:   Card: Intel Wireless 7265 driver: iwlwifi
Drives:HDD Total Size: NA (-) ID-1: /dev/nvme0n1 model: N/A size: 256.1GB
   Optical: No optical drives detected.
Info:  Processes: 244 Uptime: 34 min Memory: 2000.8/7876.3MB Client: Shell 
(bash) inxi: 2.2.35

** Affects: alsa-driver (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1663050

Title:
  Intel 7265 wireless device disconnect: link is not ready

Status in alsa-driver package in Ubuntu:
  New

Bug description:
  The wifi device disconnect sometime randomly or sometime when switching 
hotspot with the following dmesg output:
  [ 1039.212949] iwlwifi :01:00.0: L1 Enabled - LTR Enabled
  [ 1039.213503] iwlwifi :01:00.0: L1 Enabled - LTR Enabled
  [ 1039.221549] pcieport :00:1c.0: AER: Corrected error received: id=00e0
  [ 1039.221561] pcieport :00:1c.0: PCIe Bus Error: severity=Corrected, 
type=Physical Layer, id=00e0(Receiver ID)
  [ 1039.221566] pcieport :00:1c.0:   device [8086:9d14] error 
status/mask=0001/2000
  [ 1039.221569] pcieport :00:1c.0:[ 0] Receiver Error (First)
  [ 1039.239086] IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready

  The device at pcieport :00:1c.0 seems to be the Intel 7265 wireless:
  $ lspci -tv
  -[:00]-+-00.0  Intel Corporation Device 5904
 +-02.0  Intel Corporation Device 5916
 +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
 +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
 +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
 +-17.0  Intel Corporation Sunrise Point-LP SATA Controller [AHCI 
mode]
 +-1c.0-[01]00.0  Intel Corporation Wireless 7265
 +-1d.0-[02]00.0  Samsung Electronics Co Ltd NVMe SSD Controller
 +-1f.0  Intel Corporation Device 9d58
 +-1f.2  Intel Corporation Sunrise Point-LP PMC
 +-1f.3  Intel Corporation Device 9d71
 \-1f.4  Intel Corporation Sunrise Point-LP SMBus

  To allow the device to connect again I use the following:
  $ sudo systemctl restart network-manager.service

  That said, the pcieport :00:1c.0 dmesg outputs sometimes appears
  without 

[Touch-packages] [Bug 1316518] Re: [900X3G, Realtek ALC282, Mic, Internal] inverted mic not working

2016-03-07 Thread cgampert
Referring to comment #24, using hda-analyzer, I could see that:
- Converter audio stream is set to 1 on node 0x11 when the Mic jack is unplugged
- Converter audio stream is set to 1 on node 0x08 when the Mic jack is plugged 
in

Having the mic jack plugged-in, it seems  to reduce noise but it's still
the internal mic which capture sound.

Referring to comment #25, using hda-analyser, I tried to mute right
channel of node 0x11 but I couldn't see any difference...

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1316518

Title:
  [900X3G, Realtek ALC282, Mic, Internal] inverted mic not working

Status in alsa-driver package in Ubuntu:
  Confirmed
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Internal Mic of Samsung Ativ book 9 (NP900X3G) is not supported
  properly.

  Stereo recording in audacity records sound from mic in L channel and only 
loud noise in R channel (phase inverted?)
  Muting R channel, and setting L channel to around 16%, in pavucontrol allows 
to record audio, but in poor quality.

  alsa-info.sh output: http://www.alsa-
  project.org/db/?f=064f0b536a1b068efd30d58c2641b5ec2348f059

  Ubuntu Gnome 14.04

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu4
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC1:  sarah  2014 F pulseaudio
    sarah  8509 F alsamixer
   /dev/snd/controlC0:  sarah  2014 F pulseaudio
  CurrentDesktop: GNOME
  Date: Tue May  6 11:55:36 2014
  InstallationDate: Installed on 2014-04-29 (6 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 
(20140416.2)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaRecordingTest: ALSA recording test through plughw:PCH failed
  Symptom_Card: Internes Audio - HDA Intel PCH
  Symptom_Jack: Mic, Internal
  Symptom_Type: None of the above
  Title: [900X3G, Realtek ALC282, Mic, Internal] Recording problem
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/14/2014
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: P04ADU.023.140414.PS
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: NP900X3G-K02DE
  dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
  dmi.board.version: SAMSUNG_SW_REVISION_1234567890ABCD
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 9
  dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrP04ADU.023.140414.PS:bd04/14/2014:svnSAMSUNGELECTRONICSCO.,LTD.:pn900X3G:pvrP04ADU:rvnSAMSUNGELECTRONICSCO.,LTD.:rnNP900X3G-K02DE:rvrSAMSUNG_SW_REVISION_1234567890ABCD:cvnSAMSUNGELECTRONICSCO.,LTD.:ct9:cvrN/A:
  dmi.product.name: 900X3G
  dmi.product.version: P04ADU
  dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.
  --- 
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  sarah  2004 F pulseaudio
   /dev/snd/controlC1:  sarah  2004 F pulseaudio
  CurrentDesktop: GNOME
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=b4bd3914-d1c4-40f0-ba32-fb19aa9af13c
  InstallationDate: Installed on 2014-04-29 (27 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Release amd64 
(20140416.2)
  MachineType: SAMSUNG ELECTRONICS CO., LTD. 900X3G
  Package: linux (not installed)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic 
root=UUID=92ac4966-692f-4e06-a1dd-da069008e861 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-24-generic N/A
   linux-backports-modules-3.13.0-24-generic  N/A
   linux-firmware 1.127.2
  StagingDrivers: rts5139
  Tags:  trusty trusty staging
  Uname: Linux 3.13.0-24-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 04/14/2014
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: P04ADU.023.140414.PS
  dmi.board.asset.tag: No Asset Tag
  dmi.board.name: NP900X3G-K02DE
  dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
  dmi.board.version: SAMSUNG_SW_REVISION_1234567890ABCD
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 9
  dmi.chassis.vendor: SAMSUNG ELECTRONICS