-
Notifications
You must be signed in to change notification settings - Fork 23
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
Upstreaming #28
Comments
I've hesitated because I fear the patch would probably not be accepted as it could be seen as a "misuse" of the led interface by using it for a screen (which is not really an LED). I myself would also prefer using the backlight interface for the ScreenPad, but there is currently no good support in the desktop environments for having two active backlight devices controlling different screens, so using the backlight interface would break the default experience for all users (as they could no longer control the main screen using the backlight keys on the keyboard or the system applet - at least that was the problem I had using Gnome). Unfortunately I don't have much time right now so I'm not able to look into improving support in the various desktop environments. |
Thank you anyway for offering to help! If you think there is a chance that a patch using the led interface could be accepted, we could of course give it a try. |
Once you get the right email list and find the right CC the kernels are really nice and if they have another idea how this should be done they will help you and guide you through. |
Is it possible to add lightbar support through this led interface? Parsing through the source code, I found definitions, functions and structures indicating a lightbar. |
Well the kernel’s led interface is just a generic interface to support all kinds of LEDs, so probably supporting a lightbar would be possible (I have to admit I don't really know what a lightbar is, but I suppose it is some kind of LED). But I would rather keep this issue here on the topic of upstreaming. |
Yes, I thought so. On UX581GV, the laptop provides a lightbar with multiple LEDs to indicate battery charge status or the performance mode. On windows, the lightbar also allows for alexa light effects. I find the performance mode indication helpful to let me know if the laptop is running on performance or powersave mode with or without the charger. |
I found this link indicating patches to make some lightbar work: https://lore.kernel.org/lkml/[email protected]/ |
It seems that this asus-wmi module prevents me from getting platform profile support and custom fan curves which is handled by asus-wmi. The newer asus-wmi module has the performance power profile option but this current one does not. |
I found a workaround with this module not working with newer kernels
All I did was uncomment all the lines and save and restart my laptop. So it does seem like 0x00050031and 0x00050032 are the correct targets for my laptop (GX551QS)as suggested by this post: Hope this helps someone else having similar issues. |
It would be really nice if this could all be upstreamed so we can remove the whole manual build/install steps, making these laptops even more accessible to less technical people who still wish to run Linux (and just in general smoothen the experience, of course). I wonder if there is a way to rely on something like a GNOME extension to support cases where more than one display can have its brightness adjusted, which would be a nice way to implement all of this the "correct' way. Something like this, perhaps. Out of curiosity, how involved would it be to have a test branch with the "correct" backlight implementation? I know there is a |
A small follow-up to my previous comment; I was curious so have actually gone ahead and written a rudimentary implementation by basically looking at how it was already done for a main monitor and adapt this for a secondary display. I have this work done in a branch over in my fork here. There's probably some cleaning up to do as-well as some better ways to handle certain things as I'm really not all that familiar with C, but in its current form it does actually work. Unfortunately GNOME does not yet support controlling brightness of multiple displays, and the extension (or actually, the DDC utility itself) does not support internal displays, so with this more "technically correct" implementation, on GNOME you're left not being able to control the brightness of both displays through the GUI, only one. The good news is that there is currently a WIP PR for a first implementation related to this, but it's about a year old and there seems to be some progress left to be done yet. I'm not actually sure if KDE or other DE's already have this properly implemented, that'd be interesting to see. The command line methods (e.g. I'm thinking that this "technically correct" implementation would be a nice one to submit upstream, but as it might take some more time before DE(s) correctly support multi-displays like this, it might also be nice to have a slightly patched version that just synchronizes brightness levels between both monitors, basically how the GNOME extension handles it currently, but without the overhead of it having to force this synchronization. If anyone else has any ideas, thoughts and/or feedback, please do let me know! (all of this was done and tested on an UX482EA. If you have a different model, I'd love to hear how this might work on yours!) |
@jibsaramnim I can help you to create a patch on mainline kernel and submit upstream if you like? It's 100% better to get this stuff in to mainline rather than have people relying on various dkms modules in different stages of sync with upstream. |
I'm planning on re-doing my work based on Kernel 6.1, the current patches need modifications to support those anyway, so I'd like to bring my "this could theoretically be upstreamed" stuff in line with that. After that I would love an extra pair of eyes to help make it as good as it can be, and to have it actually upstreamed yes. I've never submitted anything to the Linux Kernel before, so that part does feel very daunting.
Agreed! If you're ok with it, I'd love it if you could send me an email or so so we can work out the details of how to make this happen as smoothly as possible. Thanks so much! |
Sorry for updating an old issue, but getting this project into the main kernel would be truly awesome. Have you had a try at it yet or faced any blockers? Is there something the community can do to help? |
Hi there, are you intending to upstream this to the kernel? If not, why not? And can I help you do this? (I've already contributed a lot of patches).
The text was updated successfully, but these errors were encountered: