[Kernel-packages] [Bug 1850439] Re: No sound on ASUS UX534FT

2020-08-22 Thread Stéphane Gourichon
Hello again.

This is a continuation of comment #185
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/comments/185
where we describe hardware, symptoms, then #186 where we describe the
permanent fix we did.

## Other problem: "nasal" sound on speakers only

We noticed that some applications have normal sound (e.g. youtube in
Firefox), while some others have a kind of "nasal" sound (e.g. VLC
playing the same audio).  I would describe the effect as similar to a
very slight clipping producing high frequencies.  It is relatively
subtle, just as if the laptop speakers had worse quality.

The problem is observed only on machine speakers, and not on analog jack
output.

## Investigation

We reproduced the problem using mpv.
Then we tried to disable pulseaudio and have mpv play directly through alsa, 
which cured the problem but, well, killed all pulseaudio features.
Then we instructed pulseaudio to use 48000 output sample rate, which allowed to 
cure the problem and allow pulseaudio.

## Local fix: force pulseaudio sample rate

The fix we used is like this:

In /etc/pulse/daemon.conf ensure there is a line like:

default-sample-rate = 48000

Then "pulseaudio -k" to ensure no daemon with old settings exist.  You
might have to run "pulseaudio &" too, depending on context.

Anyway, with this change the "nasal sound" problem is fixed permanently
in all applications.

## Global fix

Thanks a lot to people working upstream if they can provide a non-
regressing global fix without users having to figure out workaround.  It
might be hard and we thank you.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1850439

Title:
  No sound on ASUS UX534FT

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  after instal Ubuntu in dual boot alongside Windows 10, I've realised
  there is no sound coming out of mine new ASUS Zenbook 15 UX534FT-
  AA024R in Ubuntu. In Windows there is no problem. Found this topic
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810214 which had
  the same problem with driver for Realtek ALC294 which is also mine
  sound card. But even with this fix it is not working on UX534FT. Can
  you please add fix also for this newer model?

  Description:  Ubuntu 18.04.3 LTS
  Release:  18.04

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2
  ProcVersionSignature: Ubuntu 5.0.0-32.34~18.04.2-generic 5.0.21
  Uname: Linux 5.0.0-32-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Oct 29 15:11:25 2019
  InstallationDate: Installed on 2019-10-29 (0 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 
(20190805)
  SourcePackage: linux-signed-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1850439] Re: No sound on ASUS UX534FT

2020-08-06 Thread Stéphane Gourichon
Following
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/comments/185
here are instructions that provide a permanent fix.

> ## Next step: have a permanent fix
>
> Some copy-paste instructions as to how to make this fix permanent
> would be appreciated. Else I can figure out some and share,
> e.g. from
> https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-startup-using-systemd

Hi all,

This fix works on our machine, where lshw says "ZenBook
UX534FAC_UX533FAC" or simply "UX534FAC".

What we did is start from
https://wiki.archlinux.org/index.php/ASUS_Zenbook_UX534 and adjust for
our machine:

Create `/etc/systemd/system/audio-fix.service` with this content:



[Unit]
Description=Fix internal audio on ASUS Zenbook UX533/534
# The following options are needed to prevent the service from executing before 
the sound card is activated and thus failing
Requires=sys-devices-pci:00-:00:1f.3-sound-card0.device  # replace with 
the result of the previous command 
After=sys-devices-pci:00-:00:1f.3-sound-card0.device # same

[Service]
Type=oneshot
ExecStart=hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf ; hda-verb /dev/snd/hwC0D0 
0x20 0x400 0x7774 ; hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45 ; hda-verb 
/dev/snd/hwC0D0 0x20 0x400 0x5289

[Install]
# Make it part of the sound initialization routine
WantedBy=sound.target




Then issue this commands:



systemctl start audio-fix
systemctl enable audio-fix



You can now reboot to check if the fix works. On our machine, sound
works on speakers and audio jack output, sound is good and we could not
find any trace of the bug.

Thanks in advance to all kernel hackers that can propagate towards
upstream a proper fix (without regression for other users). :-)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1850439

Title:
  No sound on ASUS UX534FT

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  after instal Ubuntu in dual boot alongside Windows 10, I've realised
  there is no sound coming out of mine new ASUS Zenbook 15 UX534FT-
  AA024R in Ubuntu. In Windows there is no problem. Found this topic
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810214 which had
  the same problem with driver for Realtek ALC294 which is also mine
  sound card. But even with this fix it is not working on UX534FT. Can
  you please add fix also for this newer model?

  Description:  Ubuntu 18.04.3 LTS
  Release:  18.04

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2
  ProcVersionSignature: Ubuntu 5.0.0-32.34~18.04.2-generic 5.0.21
  Uname: Linux 5.0.0-32-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Oct 29 15:11:25 2019
  InstallationDate: Installed on 2019-10-29 (0 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 
(20190805)
  SourcePackage: linux-signed-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1850439] Re: No sound on ASUS UX534FT

2020-07-29 Thread Stéphane Gourichon
Hi.

## Problem, check symptoms

We have a laptop here affected by the problem.

Following comment #172
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/comments/172

> and please do not forget to also let us know what model laptop you
have.

* lshw says "ZenBook UX534FAC_UX533FAC" or simply "UX534FAC".
* Vendor identified it as UX534FA-A8094T.

> If possible please check all 4 of:
> 
> 1. Speakers
> 2. Headphones output
> 3. Internal mic.
> 4. Headset mic. (using a phone headset with builtin mic with a single T-R-R-S 
> connector)

Symptoms:

1. Speakers: no sound
2. Headphones output: no sound
3. Internal mic: works
4. Headset mic (no tested)

## Check workaround: success

> After testing please report back here what works (and what does not
work) after issueing the 4 above commands;

> hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf
> hda-verb /dev/snd/hwC0D0 0x20 0x400 0x7774

Issuing the first two above allowed to get sound output.

> hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45
> hda-verb /dev/snd/hwC0D0 0x20 0x400 0x5289

Issuing the last two (right above) did not seem to have any effect.

Full test after the four commands:

1. Speakers: "perfect" sound
2. Headphones output: "perfect" sound
3. Internal mic: works
4. Headset mic: works

## Sound quality: as good as you can get

No artifacts like reported in #133.

"Perfect" means as good as can be given the physical speakers (e.g. not
much bass but this is normal).

## Next step: have a permanent fix

Some copy-paste instructions as to how to make this fix permanent would
be appreciated.  Else I can figure out some and share, e.g. from
https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-
startup-using-systemd

## Thanks

Thanks everyone, including @j-w-r-degoede who shows that kernel
developers are taking care.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1850439

Title:
  No sound on ASUS UX534FT

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  after instal Ubuntu in dual boot alongside Windows 10, I've realised
  there is no sound coming out of mine new ASUS Zenbook 15 UX534FT-
  AA024R in Ubuntu. In Windows there is no problem. Found this topic
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810214 which had
  the same problem with driver for Realtek ALC294 which is also mine
  sound card. But even with this fix it is not working on UX534FT. Can
  you please add fix also for this newer model?

  Description:  Ubuntu 18.04.3 LTS
  Release:  18.04

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-5.0.0-32-generic 5.0.0-32.34~18.04.2
  ProcVersionSignature: Ubuntu 5.0.0-32.34~18.04.2-generic 5.0.21
  Uname: Linux 5.0.0-32-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.7
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Oct 29 15:11:25 2019
  InstallationDate: Installed on 2019-10-29 (0 days ago)
  InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 
(20190805)
  SourcePackage: linux-signed-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850439/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp