-
Notifications
You must be signed in to change notification settings - Fork 19
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
support for kernel 6.0 #43
Comments
The currently available patches are no longer compatible with Kernel 6.0 and up. I'm not the original creator of this work, but I am working on an updated patch that will support 6.0+. It's taking a bit longer than I'd like, because work and life, but I hope to have something up soon. For now, it might be best to pin your kernel to the last 5.x release available to your distro of choice -- or be ok with not having brightness control of your secondary display. |
Yes please make it compatible with Kernel 6! I don't know much about kernel development, but I somehow had it work in a previous installation. Will be happy to help if I can (and if I found something I'll update you here). |
@jibsaramnim that's ray of hope to hear this, I really appreciate your efforts. Like @sanjibukai I also tried to make patches to existing module but in vain. Let me know if I can be of any help. |
its this type of challenge that turns many folks off, however for those wanting to dig into their systems and make it their own, it turns them on! the unfortunate reality is relying on a few ambitious talented folks to respond to each curve ball the linux kernel takes seems a short term solution, to a long term problem. in this instance i get it, the notebookk a bit of an anomoly in the dual screen and myriad of function keys, however i found little use for the dual screen in microsoft but linux wakes the beast, absolutly priceless in code, terminnals and more. drop a link, a few donations might take the edge off? excellent solution and effort, it would be nice if asus kicked down some code or in the least blobs, till then its hats off to the folks in this project - NOW to the issue - it fails on 6.0x AND the recent update to 6.0 has rendered the previously working install, useless, the module is loaded, the led asus::screenpad sys file is no longer present, i reinstalled, with 5.9x we had a working solution, upgrading to 6.0x while keeping 5.9x as backup - it borked both installations.. |
You might have to specifically target whatever 5.x Kernel version you have installed to correctly (re-)build this dkms module. In short;
Reboot, and you should have working brightness controls for the secondary display again :). The updated patch I'm working on is something that hopefully could also be submitted for merging directly in the Kernel. I have not ever done this before, so there might be some caveats that would have to be considered, but my plan is to write it up with the hopes that it can be merged, and in the mean time offer it up as a patch for anyone here who wants to use it in the dkms way. The way I'm implementing it is a little different, in that it actually shows up as display brightness controls rather than "abusing" LED functionality. This would mean the GNOME extension might need to be updated to work with this too, but the way I'm actually currently looking at implementing it, it would just natively adjust brightness of both displays at the same time when using the keyboard shortcuts -- though you do have the option of setting brightness directly through Anyway, please let me know if the above steps worked for you to get things up and running again on your 5.x kernel! :) |
Thanks @jibsaramnim for your efforts, it's really appreciated! |
I appreciate the quick reply - I did in fact edit the prepare .sh file as I
read it browsing thru the posts, it failed to resolve. i stripped all but
the 5.19x code and it still failed. I'm not sure where the hiccup is but
from my experience with this Asus zephyrus duo, as soon as I update to
anything at 6x it's a no go, including specifically editing VERSION in
script? However the platform is tolerable and patience is no problem from
this fellow, I do appreciateb what you have brought to the party and if
there were a contribute link I'd be happy to do so! If there is anything I
can do to facilitate if you so desire, I'm usually crashing and burning a
system down three times per week, I have my stable unit and a hobby unit!
Thank you so very much for helping get others on the band wagon
…On Wed, Nov 23, 2022 at 10:23 PM Dave Jansen ***@***.***> wrote:
i reinstalled, with 5.9x we had a working solution, upgrading to 6.0x
while keeping 5.9x as backup - it borked both installations.
You might have to specifically target whatever 5.x Kernel version you have
installed to correctly (re-)build this dkms module.
In short;
1. Either reboot into your 5.x kernel first, or manually edit the
VERSION value in prepare-for-current-kernel.sh to have the major and
minor (e.g. 5.19) version of your currently installed 5.x kernel.
2. Run prepare-for-current-kernel.sh
3. Run sudo dkms build and specifically target the 5.x kernel version
you have installed. E.g. sudo dkms build -m asus-wmi -v 1.0 -k
5.19.16-200.fc36.x86_64 Be sure to look up your exact kernel version
naming convention.
4. Like above, run sudo dkms install with the exact kernel version
again, e.g. sudo dkms install -m asus-wmi -v 1.0 -k
5.19.16-200.fc36.x86_64
Reboot, and you should have working brightness controls for the secondary
display again :).
------------------------------
The updated patch I'm working on is something that *hopefully* could also
be submitted for merging directly in the Kernel. I have not ever done this
before, so there might be some caveats that would have to be considered,
but my plan is to write it up with the hopes that it can be merged, and in
the mean time offer it up as a patch for anyone here who wants to use it in
the dkms way.
The way I'm implementing it is a little different, in that it actually
shows up as display brightness controls rather than "abusing" LED
functionality. This would mean the GNOME extension might need to be updated
to work with this too, but the way I'm actually currently looking at
implementing it, it would just natively adjust brightness of both displays
at the same time when using the keyboard shortcuts -- though you do have
the option of setting brightness directly through /sys/class/backlight/*.
Anyway, please let me know if the above steps worked for you to get things
up and running again on your 5.x kernel! :)
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4LMD42F6WMLWOJMP46DIATWJ3NUZANCNFSM6AAAAAASGK3CW4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Right, though the steps required to build for specific kernel versions also included running specific Somewhat related, two questions for everyone here: May I ask what Linux flavor you are running, and whether you have experience or familiarity with building and installing your own Kernel for said Linux flavor? |
@jibsaramnim: i'm on debian. Used to be able to compile and install a kernel, didn't do it in a while though... |
I sincerely APPRECIATE all the efforts that people are making to get (keep) this hardware working with the new Linux Kernel, and I LOVE the idea that under 6.0 it could possibly be both merged into the mainline kernel AND that it might work with the native brightness controls. :) That would be EXCELLENT. I also very much believe that even in open-source (or maybe especially in open-source) people should be rewarded for their contributions, SO.... how would you all like to structure that? Is there an on-line crowd-source funding solution that would work, or should we do some kind of bounty system? Plippo, this is your project, what would you like to see? |
I updated the patch to apply to 6.0.11 but it no longer works. The kernel routine "egpu_enable_store()" that used to get things started is no longer called anywhere. I guess this needs a rethink... |
As a temporary solution, @Plippo's original solution is always available as explained here : s-light/ASUS-ZenBook-Pro-Duo-UX581GV#1 (comment) and does not require to build kernel module as it use acpi_call module directly. With this, I am able to control brightness on 6.0.0 manually with commands. Setting is static as startup works for me as I do not need to change it often. I mainly use bottom screen for terminals. |
Oh.. Seriously? Do you know if this will work as is with a zenbook duo 15" (UX582). I mean in here I guess it's not harmful if I try it... |
Not sure if it works for UX582, may be you can try and provide feedback so we all can know. I am using this for UX481 (14 inch LCD variant) and working without any problem on 6.0.0 kernel. As long as it is LCD, it does not seem harmful to the hardware to me in any way. If yours is OLED, I suggest not to set full brightness and do not keep static content on it for long. But as OLED burn in is fully different issue and there are ways to mitigate it, you can try this solution and see if works to control brightness at least. As @Plippo's original comment was for UX581, I guess it works for UX581. For UX582 having OLED, it may require different value in command as per hardware but we can be sure of that only after trying. Did this dkms module work for you on 5.x kernels ? If yes, there are chances it is using same value or we can get that value from this repo itself. |
It works fine in my UX582ZM. Actually, it has a desirable feature wrt the leds interface: @Plippo Would there be a way to read the current value through acpi commands? If yes, we (I) could |
Oh that's cool indeed. I'm using Fedora, and I didn't succeed to have I tried compiling from source various repo (forked from each others). None of them worked. |
Will definitely update if it works. But I'm not able to get |
@sanjibukai oh, wasn't that hard for me in debian bullseye. which version of fedora are you using ? |
I rebased for kernel 6.1-rc
|
It's a homerun - awesome and thanks to all! |
Hi everyone, I'm sorry I couldn't contribute earlier as I was on vacation. |
It's possible, but it's a bit of a nuisance. In the
After calling this, you can now read the return value from
|
@Plippo Ok! thanks your work. |
I was able to create a patch for 6.0 based on yours @yuiiio |
Both Fedora 37 and Arch - not happy with 6.0x patch, seem to compile fine, installs the module, reboot but no /sys/class/leds/*screenpad on either platform - fresh installs... Works great on 5.x kernels - equipment Zephyrus GX650RX Duo Linux 6.0.12-300.fc37.x86_6 Linux Won't be on the ground for a few hours - can't offer much more at this time... Secure and Fastboot off in addition previous kernels / screenpad installs work fine... |
Fedora 37 with 6.1.0-0.rc8.20221209git0d1409e4ff08.62.vanilla.1.fc37 Kernel Vanilla Repo |
patch script seems to fail on debian with 6.0.0 with following error
|
That is okay, the error only happens when trying to clean up, the script should run fine anyway. |
Upgraded kennel to 6.1x and similar result, no sys/class/asus::screenpad using the script everything seemed to be fine however I found the module installed but not enabled, I went manually removing the module, reinstalled from src, updated dkms, installed module, initramfs and it works great, not sure why but it seems the process of dkms and initramfs are where the challenges were, this is fresh install arch 6 |
As I explained previously in #43 (comment) the routine the initializes the code no longer is called by anywhere in the kernel. Therefore the patch, even if it's in place, does not get activated. |
Can you try this patch and see if this works on your system? I was able to get it to build and run fine on my UX482EA running Fedora 37 (Workstation), using the as of right now recent-most Rawhide kernel release (6.1.0-0.rc8). Note that this is based off of the above shared patch, and not the cleanest of implementations; it could still fail to initialize the screenpad bits if Edit: removed my patch as it's unnecessary. |
I don't see why that function should be of any relevance to this. The initialization is called by |
@Plippo Indeed that worked despite of cleanup error. Thank you, your great work prevails once again. Working perfectly fine on 6.0.0 with debian bullseye. |
Hi, how to get it to work for kernel 6.0.0 ?
patch script seems to be failing with following error
The text was updated successfully, but these errors were encountered: