JafarAkhondali / acer-predator-turbo-and-rgb-keyboard-linux-module

Linux kernel module to support Turbo mode and RGB Keyboard for Acer Predator notebook series
GNU General Public License v3.0
358 stars 66 forks source link

Cannot change RGB light on my ACER Nitro AN515-55 #12

Closed GamerMine closed 2 years ago

GamerMine commented 2 years ago

Hello, After installing the module, I try to use one of the templates and it does not work. It's not changing anything on my keyboard. I use Ubuntu 21.04. The linux header is installed. I hope I can use this module =)

JafarAkhondali commented 2 years ago

Hi Did you disable secure boot in bios? As reported by https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module/issues/7, it should work for your laptop.

GamerMine commented 2 years ago

Thank you for your response =) Yes the Secure Boot is disabled in bios =) Maybe I did something wrong, here is the steps I followed :

JafarAkhondali commented 2 years ago

Can you try these steps as well?

sudo ./uninstall.sh sudo apt update && sudo apt install linux-headers-generic linux-headers-$(uname -r)

add #include <linux/uaccess.h> and #include <asm/uaccess.h> after line 32 of src/facer.c ( first try to add them separately, if none worked, try to add them both)

sudo rm /dev/acer-gkbbl-0
sudo ./install.sh

and try running python script with sudo. It should work then. If not, check the output of ./install.sh command and dmesg

GamerMine commented 2 years ago

So I tried everything but it is still nor working. Here is the output of sudo ./install.sh : 2021-09-18_21-28

And there is the last few lines of the output of dmesg : image

Oh, and when I try to delete /dev/acer-gkbbl-0, it says that the file does not exist

JafarAkhondali commented 2 years ago

I think this has something to do with vmlinux.

try these

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse"  | sudo tee -a /etc/apt/sources.list.d/ddebs.list
apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym

Source: https://www.ibm.com/docs/en/linux-on-systems?topic=linuxonibm/liacf/oprofkernelsymrhel.html

GamerMine commented 2 years ago

Okay so I have installed the vmlinux thing and it is not complaining about it anymore. But it is still not working =) The sudo ./install.sh output as slightly changed so here is it : image

EDIT : I rebooted my laptop and it is now complaining about vmlinux again =( I have verified that vmlinux is installed and it is. I think it is just nof finding it

JafarAkhondali commented 2 years ago

hmm, try installing other kernels for your distro. I am pretty sure that this should work with your laptop, it's just a software problem

GamerMine commented 2 years ago

I updated the kernel of my laptop and it is still not working. My previous kernel was 5.11.0-18 and now it is 5.11.0-34. When recompiling (when I add or remove the two includes) it always complain about vmlinux. Is it normal that in dmseg it says : acer_wmi: Acer Laptop WMI Extras unloaded ?

JafarAkhondali commented 2 years ago

Then give Ubuntu live a try. Unloading acer-wmi is normal, cause my repo is the extended version of acer-wmi

GamerMine commented 2 years ago

Okay, so I tried in an Ubuntu live and it doesn't work either. I start thinking that my computer is not compatible =( Maybe I have a slightly different revision of the Nitro AN515-55 ? I really don't know

JafarAkhondali commented 2 years ago

If you have a 4-zone RGB keyboard, then this should work for you

GamerMine commented 2 years ago

Okay after a lot a search I found that the AN515-55 model has a lot of different revision and I figured out that if the keyboard has a red painting when it is off, then the keyboard is not RGB and unfortunately my keyboard have that paint. I'm sorry for all of this =)

JafarAkhondali commented 2 years ago

😄 Ok