Coder Social home page Coder Social logo

Comments (18)

paul-ri avatar paul-ri commented on July 18, 2024 3

Yeah I created this issue so it was visible to the Cirrus developers https://bugzilla.kernel.org/show_bug.cgi?id=218991 , my first kernel 'bug' ticket 😄

@smallcms , thanks for the help! I had all things setup the way you suggest as far as I know. I spent too much time debugging the other things so I'll just build a custom kernel until the patch makes its way in now.

from asus_zenbook_ux3405ma.

paul-ri avatar paul-ri commented on July 18, 2024 2

@matplinta

I guess rebooting from linux to linux is not the same as "cold boot"?

If I recall correctly: indeed. I had to turn off my laptop for the sound to be OK on the next boot.

Sorry about the rest of your info. This is all a very new area for me and I don't know anything about ACPI and such hardware issue. The only thing I can tell from your logs is that seeing Falling back to default firmware. is usually bad, in that it leads to low volume or something else. It was a recurring error message online with folks having similar issues.

for @paul-ri it was working on mainline kernel

Not really, I had only applied the custom patch on top of mainline kernel.
Wihtout the patch, mainline was not fixing anything. Meaning we don't know if the fix is scheduled for 6.10 or later. It probably won't be 6.10 as it was already in rc6 at the time.

The kernel maintainer on the patch thread mentioned it's on their next branch.
The commit is in their fork: tiwai/sound@5f9f982. I don't know how they usually schedule stuff! It's in the branches: master, for-next, for-linus; so sounds positive

from asus_zenbook_ux3405ma.

r03n avatar r03n commented on July 18, 2024 1

A fix has been made by cirrus developers as of July 3 (https://lore.kernel.org/linux-sound/[email protected]/). Can't wait for it to be upstreamed.🎉

from asus_zenbook_ux3405ma.

paul-ri avatar paul-ri commented on July 18, 2024 1

@matplinta , I am dual booting Windows too, give a look at the developer's answer on my similar problem as you: https://bugzilla.kernel.org/show_bug.cgi?id=218991#c10 . I had no sound on 1 or 2 speakers at random, but turns out it's when restarting from Windows. I have to cold boot into Linux to have both speakers ON.

With that in mind, that leaves you with the low-volume and the crackling issues to handle : )

from asus_zenbook_ux3405ma.

smallcms avatar smallcms commented on July 18, 2024 1

do you also dual boot with Windows?

No, I have only Fedora 40 onboard.

I have to cold boot into Linux to have both speakers ON

Wow, this is strange behavior. Anyway, very sad, what in Arch ssdt fix not helps (like in case with grub), but very glad, what @paul-ri notified kernel and cirrus teams to make fix from kernel and firmware side (this is cool). Very hope, this repo switch as archived soon.

from asus_zenbook_ux3405ma.

smallcms avatar smallcms commented on July 18, 2024

Hello, @paul-ri !
Try to install Arch package from Build Service.
In this package we have optimisations by @r03n
About glitches, cracking read my bonus here.
I don't have Windows, but how i comprare, what sound is "fixed" (Cirrus is active): run youtube dance music on 100% vol. If you feel vibrations from Zenbook by your hand - all ok. If sound low, whithout little bass - cirrus not active.

UPD: oh, sorry, i see, what AUR package already pull fresh code. This is ok. So, here is only one way, run:
grub-mkconfig -o /boot/grub/grub.cfg
I'm have Fedora 40, and always use method, like Using the AML with GRUB.

from asus_zenbook_ux3405ma.

paul-ri avatar paul-ri commented on July 18, 2024

In this package we have optimisations

The AUR package indeed includes this one.

About glitches, cracking read my bonus

Thanks! I thought the AUR package was handling all this, but after double checking, it was renaming the .conf to a .lua file. I've sent a patch request to fix this.
Locally, this has fixed the issue!

If sound low, whithout little bass - cirrus not active

OK, so you do have high volume. Then it means I'm failing to make this SSDT file work, and I don't know why. Your system is quite different from mine, so it'll be hard to debug. I use systemd-boot boot loader https://wiki.archlinux.org/title/Arch_boot_process#Boot_loader whilst you're using GRUB.

Sounds like there are 2 solutions to this volume problem: your SSDT file, or a kernel patch. Were you aware of this person's patch: https://gist.github.com/lamperez/862763881c0e1c812392b5574727f6ff?permalink_comment_id=5010590#gistcomment-5010590 ?

I'm basically wondering what's the long term fix. What should we ask the kernel folks to change?

from asus_zenbook_ux3405ma.

smallcms avatar smallcms commented on July 18, 2024

Sounds like there are 2 solutions to this volume problem: your SSDT file, or a kernel patch. Were you aware of this person's patch: https://gist.github.com/lamperez/862763881c0e1c812392b5574727f6ff?permalink_comment_id=5010590#gistcomment-5010590 ?

Yes i seen it, but main idea - is do not compile kernel every time. Also, I don't like solutions like comment "if-else" in parts of drivers:

-	if (!dsd_found) {
+	// if (!dsd_found) {

Let's return to your problem with "Using mkinitcpio's acpi_override hook". Try to double check three steps:

  • ssdt-csc3551.aml file in /etc/initcpio/acpi_override/
  • acpi_override in HOOKS=() array at /etc/mkinitcpio.conf
  • regenerated via mkinitcpio -P kernel's initial ramdisk

Also, verify. what you have installed package named linux-firmware (here our cirrus drivers).

I'm basically wondering what's the long term fix. What should we ask the kernel folks to change?

In https://github.com/torvalds/linux/blob/master/sound/pci/hda/cs35l41_hda_property.c add our subsystem id 10431A63 (at June 2024 here this id not exists) and CORRECT dsd from cirrus side: https://github.com/CirrusLogic/linux-firmware/tree/main/cirrus
The main painful thing is very slow integration code from CirrusLogic to kernel. Zenbook UX3405MA goes from factory with preinstalled "non-linux", so at now we can help oneself only by hacks... 🙄

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

Thank you all for this issue reported - after 2 weeks with my new UX3405, tweaking and searching all the forums about low volume issues, I hope finally my sound will be working correctly! Can you guys hazard a guess when this patch will be upstreamed?

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

Is BIOS version 305 necessary for this patch / aur package to work? I am currently on 301, as my laptop came with it.
I suffered from the low-volume issue, the crackling noise was not present in my case. I tried the AUR package to mitigate the low-volume issue, however it resulted in losing the sound whatsoever, and actually gave me the crackling noise that wasn't there in the first place. Had to delete the package, reinstall linux-firmware, set the options snd-intel-dspcfg dsp_driver=1 to use the default driver and boot to arch from windows in order to regain the properly working sound (still with low volume).
I am only asking as I am hesitant to upgrade BIOS to 305, I read that it resulted in some fan issues for some users.
I am on kernel 6.9.7-arch1-1.

from asus_zenbook_ux3405ma.

smallcms avatar smallcms commented on July 18, 2024

Hello, @matplinta !

Is BIOS version 305 necessary for this patch / aur package to work?

No, this is not BIOS version problem, but we include any important data to help us understand, what is problem.

I am only asking as I am hesitant to upgrade BIOS to 305, I read that it resulted in some fan issues for some users.

And no, fan cooling not problem after upgrade to 305. As for me - i'm using TLP and with youtube on 1080p i'm get these results:
On battery:
with command
list=$(ps --no-headers -fu smallcms | grep -vE 'systemd|wayland-display' | awk '{print $2}'); for pid in $(echo $list); do taskset -pca 18-21 $pid >/dev/null; done;

(last 4 cores of CPU)

tlp-stat -t
--- TLP 1.6.0 --------------------------------------------

+++ Temperatures
CPU temp               =    47 [°C]
Fan speed (fan1)       =     0 [/min]

and on AC adapter:
with command
list=$(ps --no-headers -fu smallcms | grep -vE 'systemd|wayland-display' | awk '{print $2}'); for pid in $(echo $list); do taskset -pca 0-21 $pid >/dev/null; done;

(all cores of CPU)

tlp-stat -t
--- TLP 1.6.0 --------------------------------------------

+++ Temperatures
CPU temp               =    51 [°C]
Fan speed (fan1)       =  1900 [/min]

*Hint: i use taskset in KDE power settings (as external script in schema) to get about +10 hours to my battery, i dont't like use all CPU when far from charger.

In my case, i don't see any changes with 301 or 304, and it's realy looks like "Optimize system performance" (in their BIOS "changelog", lol).

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

Thanks @smallcms for the response! I see, and by any chance do you also dual boot with Windows? I have dual boot with Win11 for work, and Arch for personal use. I suppose the fan issue that affected some users was noticed at Windows's side... However if the problem would be in BIOS version, then it should also be visible on Arch, right?

Anyway, I am wondering why didn't the patch (applied via AUR package installation) work in my case?
I am on kernel 6.9.7-arch1-1, with pipewire and wireplumber. Package installed successfully etc. Might I have missed something? I use mkinitcpio, the initramfs was rebuild after the installation etc...

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

@paul-ri I followed your bugzilla issue closely, however it all looks very similar yet kind of the opposite, since after applying the patch is only when the sound started crackling and eventually be gone after few seconds of running.
As far as I recall I might have originally booted from win to linux, and then subsequently used only reboot command (keep in mind I had fast boot disabled, don't know if it matters) between the linux sessions. I guess rebooting from linux to linux is not the same as "cold boot"?

Additionally, I checked journal logs from the next boot after the patch was installed, I noticed ACPI BIOS errors:

lip 06 13:55:49 AsusZenbookArch kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.SPI1.SPK1], AE_ALREADY_EXISTS (20230628/dswload2-326)
lip 06 13:55:49 AsusZenbookArch kernel: fbcon: Taking over console
lip 06 13:55:49 AsusZenbookArch kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230628/psobject-220)
lip 06 13:55:49 AsusZenbookArch kernel: ACPI: Skipping parse of AML opcode: Device (0x5B82)
lip 06 13:55:49 AsusZenbookArch kernel: ACPI BIOS Error (bug): Failure creating named object [\_SB.PC00.SPI1._DSD], AE_ALREADY_EXISTS (20230628/dswload2-326)
lip 06 13:55:49 AsusZenbookArch kernel: ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230628/psobject-220)

Is it normal after applying the patch?

Other relevant logs from journal during that boot:

lip 06 13:55:50 AsusZenbookArch kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Topology: ABI 3:29:0 Kernel ABI 3:23:0
lip 06 13:55:50 AsusZenbookArch kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: Parent card not yet available, widget card binding deferred
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Falling back to default firmware.
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS>
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 1, CH: L, FW EN: 1, SPKID: -19
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: Falling back to default firmware.
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.bin: v0.58.0
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS>
lip 06 13:55:50 AsusZenbookArch kernel: cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A63, BST: 1, VSPK: 0, CH: R, FW EN: 1, SPKID: -19
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0: bound spi1-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
lip 06 13:55:50 AsusZenbookArch kernel: snd_hda_codec_realtek ehdaudio0D0:    inputs:
lip 06 13:55:50 AsusZenbookArch kernel: skl_hda_dsp_generic skl_hda_dsp_generic: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
lip 06 13:55:50 AsusZenbookArch kernel: input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input19
lip 06 13:55:50 AsusZenbookArch kernel: input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input20
lip 06 13:55:50 AsusZenbookArch kernel: input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input21
lip 06 13:55:50 AsusZenbookArch kernel: input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input22

To clarify:

  • with no modified kernel nor any patches, my sound on Arch Linux works, with the low volume issue, without any crackling noise, regardless of whether it is cold booted or booted from windows
  • after installing the AUR package, the sound started acting strange, worked for a few seconds (still not really loud) and then extreme crackling started, even after stopping the playback and changing the profile of the speaker to OFF.
  • strangely enough, to revert the changes and bring back the functionality of my speakers (with the low volume issue) I had to obviously revert the package / patch, reinstall linux-firmware (although I don't know if that made any difference) and most importantly boot to windows, then to linux. Only then it worked again.
  • tested just now and booting from cold boot or from windows yields the same results (without the patch) - speakers work (with low volume, but work without any distortions)

from asus_zenbook_ux3405ma.

r03n avatar r03n commented on July 18, 2024

after installing the AUR package, the sound started acting strange, worked for a few seconds (still not really loud) and then extreme crackling started, even after stopping the playback and changing the profile of the speaker to OFF.

Do you use EasyEffects and Discord (or any messaging platform) by any chance? When I still had Linux installed, I had to close down these applications to not experience this issue. It is maybe caused by the fact that Pipewire and Wireplumber automatically sleeps for power save.

from asus_zenbook_ux3405ma.

tholden92 avatar tholden92 commented on July 18, 2024

I have also started to suffer from no sound issues again. Power cycle fixes them. I do not dual boot with windows.

Might be related to newer kernel since it all worked perfectly before.

Edit: Saw someone mention fan issues. I have those, in addition to a wired CPU bug.
fan will go 100% in some cases (very rare, often when I disconnect thunderbolt), and CPU will lock to 400 Mhz

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

Do you use EasyEffects and Discord (or any messaging platform) by any chance?

No I do not, I have freshly installed Arch without any messaging platforms installed.

fan will go 100% in some cases (very rare, often when I disconnect thunderbolt), and CPU will lock to 400 Mhz

@tholden92 Hmm, interesting, I am on BIOS 301 and in Windows experienced this once till now, directly after disconnecting my adapter from thunderbolt port. I was sure I caught some crypto malware, since MyAsus and task manager was showing CPU 0% load and 109 C degrees temp. However I have not experienced it since...

from asus_zenbook_ux3405ma.

tholden92 avatar tholden92 commented on July 18, 2024

@matplinta: Bios 305 here. Hopefully that can be fixed soon as well. From what I know, this is a bios issue and not OS/Linux issue.

from asus_zenbook_ux3405ma.

matplinta avatar matplinta commented on July 18, 2024

I guess I am kind of done with tweaking for now, at least basic functionality works both on Windows and on Linux for me.
I read somewhere that kernel 6.10 release is right around the corner, I guess I will wait for it, maybe it will fix my low volume issue, since for @paul-ri it was working on mainline kernel, and the patch is scheduled upstream...

from asus_zenbook_ux3405ma.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.