Unable to install a AYN Loki max LED driver.

Hi I am trying to install a driver for x86 ayn platform. https://github.com/ShadowBlip/ayn-platform This is to control the LED and Fan. Is there a similar command to "sudo steamos-readonly disable" that can be used on Bazzite ? Here is the snip from the terminal. alterops@fedora:~$ cd ayn-platform alterops@fedora:~/ayn-platform$ sudo make dkms mkdir: cannot create directory ‘/usr/src/ayn-platform-v0.3.2.0.g068cce2’: Read-only file system make: *** [Makefile:94: dkms] Error 1 alterops@fedora:~/ayn-platform$ I have tried to disable SELinux to see if it would help but I think i am missing a step. Any pointers would be appreciated. Thank you.
GitHub
GitHub - ShadowBlip/ayn-platform: Linux drivers for AYN x86 handhel...
Linux drivers for AYN x86 handhelds providing a hwmon interface for pwm fan control and temperature sensors, as well as RGB control. - GitHub - ShadowBlip/ayn-platform: Linux drivers for AYN x86 ha...
15 Replies
1/4 Life
1/4 Life5mo ago
DKMS can't work w/ ostree sadly, but we are interested in supporting this handheld so I'm happy to spend time setting up a kmod of this and including it You OK waiting for this to land and helping us make sure it's bug-free on your hardware?
AlterOps
AlterOps5mo ago
Awh. Understood. Yes of course. I would be more than happy to test and help with the Kmod so its bug free on the Loki Max.
1/4 Life
1/4 Life5mo ago
Much appreciated, I'll ping you when this is in a build likely hit :testing first
AlterOps
AlterOps5mo ago
Fantastic, thank you.
1/4 Life
1/4 Life5mo ago
@AlterOps building with this here in the next 15 min or so on :latest
1/4 Life
1/4 Life5mo ago
GitHub
feat: Switch from Zenpower3 to Zenergy · ublue-os/bazzite@33592d3
Bazzite is an OCI image that serves as an alternative operating system for the Steam Deck, and a ready-to-game SteamOS-like for desktop computers, living room home theater PCs, and numerous other h...
1/4 Life
1/4 Life5mo ago
built now
AlterOps
AlterOps5mo ago
Amazing will have it installed and post the results.
AlterOps
AlterOps5mo ago
Installed the latest and the driver works out of the box in a fresh install. I am able to see the aynec driver and show fan speed with sensors Made a short video showing on/off led modes working. https://www.youtube.com/watch?v=92xWyyNW8Es Will make an update once I get to test the rest of the RGB control and fan curves.
AlternativeOps
YouTube
BAzzite - AYN Platform LED on/off - Test.
BAzzite - AYN Platform LED on/off - Test.
No description
AlterOps
AlterOps5mo ago
Tested the fan control but i am getting a permision deny tried with sudo and su Both said poermision deny. bash-5.2# echo 1 > /sys/class/hwmon/hwmon5/pwm1_mode bash: /sys/class/hwmon/hwmon5/pwm1_mode: Permission denied bash-5.2# sudo echo 1 > /sys/class/hwmon/hwmon5/pwm1_mode bash: /sys/class/hwmon/hwmon5/pwm1_mode: Permission denied bash-5.2# exit Unless I am not entering the correct command,. Ayn has a "Smart fan control" on the BIOS and has user defined curve setting so that may be an alternative to controlling the fan. it doesn't appear the LED mode is persistent. After a full shutdown the LED turns back on and may require a script to run at start to save the settings.
AlterOps
AlterOps5mo ago
There is a minor issue, Not present when docked to an external monitor but on the built in display the desktop orientation flips. I cannot edit the Environment to force it. I am not aware if there a different conf file to edit. here is a short video to showcase the issue. (screen is on the correct orientation for a brief moment) https://www.youtube.com/watch?v=5Bps9HlUn50
1/4 Life
1/4 Life5mo ago
We had to do similar for the ally and legion, give me a bit and I'll send you something to run so we can confirm which orientation is correct cat /sys/devices/virtual/dmi/id/product_name give me the output of that for your hardware and let me know which rotation is correct for this command: kscreen-doctor output.1.rotation.normal then I can make it automatically fix for your hardware
AlterOps
AlterOps5mo ago
alterops@lokimax:~$ cat /sys/devices/virtual/dmi/id/product_name Loki Max the correct orientation is kscreen-doctor output.1.rotation.left
1/4 Life
1/4 Life5mo ago
Thanks! Add this soon building on main now this may be at a different hwmon address try replacing the 5 with *
AlterOps
AlterOps5mo ago
Navigated to /sys/class/hwmon/ and nside the hwmon6 directory there was a name file, it said aynec . ran su then echo 100 > /sys/class/hwmon/hwmon6/pwm1 and the manual fan control works ! This may make it possible to create a script to have "on demand" control 🙂 Thanks for the help on it. I'll keep testing other things see if I run into a problem. https://www.youtube.com/watch?v=qzgGF4Nb4TY ---- As for the user defined curves, I believe the BIOS option under "smart fan control" may be better to set it there, over using the terminal.
No description