aarron-lee / gpd-win-tricks

Info on running linux on GPD Win devices
MIT License
41 stars 2 forks source link

kernel drivers for fan (max 2/win 4) fingerprint (win4) and rgb (win 4) exist #2

Open bm16ton opened 3 months ago

bm16ton commented 3 months ago

Hello, maybe not worth mentioning but on my github.com/bm16ton i have kernel drivers for win 4s fingerprint reader (no libfprint support yet) and rgb control. Will have a kernel driver for reprogramming the buttons finished soon (win 4/max 2). And found via Arch linux is a fan driver for win 4/max 2 that i can confirm works on both devices. Im not sure its worth posting but i also moded the xpad driver adding new modes and switching via the menu key. But definitely seemed like the fan driver was worth a mention. Thank you for your repo, resources are sadly thin compared to other similiar products

aarron-lee commented 3 months ago

wow, well this was unexpected. awesome to hear that there's a driver for rgb and fingerprint, I can pass on the info to distro maintainers and see if they could consider packaging them.

just to confirm, is the primary difference for the fan driver the dmi detection for the win 4?

and just out of curiosity, which model win 4 did you test this on? while I'm assuming everything you built will work on the other gpd win 4 models, doesn't hurt to get clarity on which device you specifically tested on.

bm16ton commented 3 months ago

Yes i have the 2023 win4, and was the first to apparently test it despite it being in arch. It did not work for me till i changed the dmi code (if memory serves he had correct strings just compared to wrong area) and i sent the patch. Apparently the win4 previous model has same dmi name but has "default string" for version, and 2023 has "Ver 1.0" . I also tested it on my 2024 win max 2 and it works. I did see where the fan driver just recently got submitted and needs more reviews. The kernel devs are truly my heros and i cant imagine any of them having the patience to deal with my code/incompetence compared to them. Tho it is my dream to get a driver in the kernel someday. Christ i started the fingerprint driver with one for a different model but same company, and in the end nothing was the same.I really need to go clean that up before anyone sees it. Sidenote the previous model win4 uses different registers for fan, and the win4 2023 and max 2 use the same. One last thing i was surprised when the fan driver was submitted noone mentioned switching it from ecram writes to wmi, i thought that was the way it was supposed to be moving forward, and again the win max 2 and win 4 share that code. I have regular access to win mini now to for testing, if i can ever be of service for testing just ask. Thank you for your time, i appreciate it:)

---------- Forwarded message --------- From: Aarron Lee @.> Date: Tue, Jul 30, 2024, 1:38 PM Subject: Re: [aarron-lee/gpd-win-tricks] kernel drivers for fan (max 2/win 4) fingerprint (win4) and rgb (win 4) exist (Issue #2) To: aarron-lee/gpd-win-tricks @.> Cc: Ben Maddocks @.>, Author @.>

wow, well this was unexpected. awesome to hear that there's a driver for rgb and fingerprint, I can pass on the info to distro maintainers and see if they could consider packaging them.

just to confirm, is the primary difference for the fan driver the dmi detection for the win 4?

and just out of curiosity, which model win 4 did you test this on? while I'm assuming everything you built will work on the other gpd win 4 models, doesn't hurt to get clarity on which device you specifically tested on.

— Reply to this email directly, view it on GitHub https://github.com/aarron-lee/gpd-win-tricks/issues/2#issuecomment-2258872009, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAWMPY5RUMKKCJV5OJFJNTZO7FQTAVCNFSM6AAAAABLWKZXEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYHA3TEMBQHE . You are receiving this because you authored the thread.Message ID: @.***>

Cryolitia commented 1 month ago

https://github.com/Cryolitia/gpd-fan-driver

The fan driver is here