-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for UX3402ZA #151
Comments
Hmmm... I think I saw similar behavior somewhere in the AFC issues. Unfortunately, I do not remember where, so I can't point you to the issue. Maybe try searching "max" among all issues. Should you find something interesting, definitely link this issue with it, so people have more context. I can keep this issue open as long as it is relevant. |
I also get this I gather this is a common issue, but what does it mean? Is there anything I can do to help? |
Well I have figured out how to read the fan mode with acpi_call:
To write the fan mode, one can use |
@akvadrako Well, I believe that your examination could help someone (at least with the same laptop). 🚀 Maybe you could create a simple script and publish it on GitHub. If so, you can use, just like AFC, GitPack for its distribution since it's completely effortless. Think about it 😃 |
For now if anyone has this issue they can find it here. And it should be fixed in a near future kernel version so anybody can use the standard https://lore.kernel.org/platform-driver-x86/[email protected]/T/ |
I have the same laptop as OP but with kernel 6.10, I cannot make it work.
returns any hints? |
That seems correct. It says your fan mode is Standard. To set silent mode use |
It doesn't seem to be doing anything, fan behaves the same |
Then I guess that laptop is different. If you want to try to discover the right call, you have to investigate the ACPI tables. https://wiki.archlinux.org/title/DSDT is a good intro, but it's basically a bunch of guesswork. |
which values have you used? I'm trying |
@irvng-wav managed to get it to work, had to add 0x61 0x00 #standard mode
0x61 0x01 #whisper mode (yes, counterintuitively)
0x61 0x02 #performance mode the other relevant register seems to be It definitely works, as the fan in performance mode gets really loud. |
@barolo you got me excited, but unfortunately it's not working the way it's working for you. I have set
But I'm still on Kernel 6.9.10, so that makes me think that maybe they fixed this issue in kernel 6.10. I will have to wait until the Arch Linux team pushes it to the main repo to test it. I'm so glad you got it working! |
It should work, it's the same laptop, I'm on 6.10 though. |
@irvng-wav check if you have performance platform profile enabled, it's best to just use |
Hey @barolo I just upgraded my system to kernel 6.10 and followed your advice but for some reason the fan behavior doesn't change. Here are all the steps I did:
So then I followed the advice of your last comment. I use the tool Then I visited the arch wiki article you linked, checked the status of ASPM and it already was enabled:
So I changed the policy to performance with
With all of that done I again engaged the stress test but nothing changes. I even disabled and uninstalled thermald to see if that changed anything but nope. Note that I'm not using Am I missing something? Thanks in advance! |
@irvng-wav the only thing that I'm using is TLP you can change everything that's necessary within it (you might want to scale down stuff you use to reduce variables). Do you notice any changes between 0x02, 0x01and 0x00 while stressing? Also try on AC power. |
If they're ALL running 2250GHz at 70°C, that means that you've already running it at max [fans], otherwise that wouldn't be possible. |
@irvng-wav the other thing which you can do is to set some demanding app [possibly game] to perf cores only. |
@barolo I just played for a little bit with TLP following your instructions but I still couldn't get it to sound like a hair dryer as you describe. Maybe I'll come back to it again in the following days. I'm curious, could you do a Geekbench 6 benchmark with your current setup to compare it to the benchmarks I've done with my laptop? Here's one with Windows using performance fan mode (plugged in to AC): Here's one with my current Linux setup and everything also set to performance (plugged in to AC): |
@irvng-wav My differences in Multi aren't as big as yours but it's still 1k, and it's actually worse for single-core under Windows. [it's possible to set minimum clocks with TLP so I'm going to try that next] Edit. The clocks under Windows behave very differently for whatever reason, no matter which performance or fan level. |
@irvng-wav There's something up with reading one thermal zone being borked in the kernel which might be related. |
@barolo Amazing news! It's giving you even better results than Windows. Great job, man! I'll try to do the same later in the day. Can you tell me specifically what you did? |
sure, the steps are as follows
also, make sure that There's actually long winded guide for Framework Laptop which also has Alderlake cpu, for turning the rapl commands into systemd services so they trigger on AC. [towards the end of it] |
@barolo you're the bomb! Take a look at this: Edit: Here's the new benchmark: Windows wins by 172 points in multi-core performance but Linux wins by 143 points in single-core. So finally it's leveled out. 🥳 |
@irvng-wav the temps are fine IMHO, there's usually one or two cores hitting 90+ then quickly they're throttled down. It's all kept in check. Just make sure that there's space for ventilation under laptop. You can always decrease RAPL constraints slightly until you're satisfied. You can also run thermald [with --adaptive argument] and see how it affects benches. If not by much then keep it on, to doubly make sure that temps are in check.
What I've noticed is, that the after some threshold, say 74W, multi-core performance [and benches] will get higher, and single core lower, no idea why. You have to strike a balance to get what you want. Sidenote. It's freaking crazy that I've been using for almost 2 years, a laptop with throttled power, it feels like a brand new hardware now. First it was broken audio, then suspend battery drain, now it's messed up power management. It's always something with this machine... [BTW, there's HDR working now too, with the Xe mesa driver, at least under KDE/plasma 6] |
@barolo thank you for helping figuring out this issue! I've seen threads on the internet posted years ago complaining about the CPU performance on Linux with these newer Zenbook laptops and I think some Vivobooks too. I myself started this project of making the best possible Linux experience that this machine can offer, and now virtually everything is working. As you said, sound didn't work for a while but with kernel 6.7 or 6.8 (can't remember which one) the sound started working without manual patches. The fingerprint works thanks to this (Installed it on my system thanks to this), although that one took me a while to get the hang of. The numpad works even better than on Windows thanks to this project, where I got involved reporting as many bugs and improvements as I could to the developer, and now you helped me solve the CPU throttling issue! Thank you again! I did some music production tests after raising the power constraints and it performed better than before, but then I launched the software I use (Bitwig Studio) with performance cores only and it got even better performance. I'll compare it to how it behaves on Windows. The next steps for me are doing more performance tests with this new configuration, and also gaming tests with the new Xe graphics driver that you mentioned. I'm using GNOME and looks like HDR is still an experimental feature but I don't mind, the screen still looks amazing without it and also I need color accuracy for design work. Would love to keep in touch to further discuss and share our findings about how we can improve the Linux experience on this machine. My discord username is Cheers! |
@irvng-wav Can I mark this issue with |
Sure! Thank you. 😁 |
Environment
AFC Version: 3.15.0
OS version: Arch Linux with Kernel Linux 6.7.9-arch1-1
CPU Name: 12th Gen Intel® Core™ i7-1260P × 16
It does not work
I get the infamous
acpi call failed with 'Error: AE_NOT_FOUND'
. I know that right now there's no solution for it but I want to keep the conversation going.Additional context
I found this article on the Arch Wiki about the ASUS Zenbook UM3402YAR, which is basically the same laptop but with an AMD cpu and gpu. There's a tutorial on how to change the fan profiles with a tool called nbfc which looks like it isn't maintained anymore, so I found an up to date Linux fork called nbfc-linux.
In Windows, you get the MyAsus App which lets you choose between three different fan profiles: Quiet, Balanced, and Performance. As I understand, each one of those modes has an hexadecimal value that you can manually set with the nbfc or nbfc-linux tool, that's explained in the Arch Wiki. I'm able to change between those fan modes, and it actually works. When I write the value for the quiet mode, the fans go quiet, and when I write it for the performance mode, the fans do start spinning faster but not as they do with Windows.
That's where I'm at. It kinda works. I installed the DOOM 2016 game both in Windows and Linux. In Windows, when the fan profile is either at Quiet or Balanced, the game runs at around 30 to 40 fps. But then if I engage the performance mode, the fans start working intensely and the game ramps up to a stable 60 fps. That doesn't happen on Linux. Either one of the three modes basically offers the same performance as Quiet or Balanced in Windows, meaning 30 to 40 fps.
Also I do music production as a part time freelance job. There's one piece of software called Vital, which runs perfectly on Windows with the performance mode, but sometimes struggles with the other two fan modes. In Linux I get the same performance with all three modes, and like with DOOM, it doesn't run quite as great as Windows with the performance mode.
Still, Linux is an awesome experience with this machine, and most of my needs are covered in it's current state. But dammit Asus, I want a true performance mode in Linux.
I hope we can get it to that state someday. Thank you @dominiksalvet for your work!
The text was updated successfully, but these errors were encountered: