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

Failed install on PH315-54 #17

Closed Soothsayer86 closed 2 years ago

Soothsayer86 commented 2 years ago

Please excuse any formatting issue as this is my first GitHub Post I've recently install Ubuntu 20.04.3 LTS 64-bit GNOME 3.36.8

  1. I did locate the sys folder 7A4DDFE7-5B5D-40B4-8595-4408E0CC7F56
  2. Everything went smooth until the below "sudo ./unstall.sh

Am I dealing with a permissions issue? I did a quick google search on apparmor. Here's the output:

dfresh@dfresh:~/acer-helios-300-rgb-keyboard-linux-module$ sudo ./install.sh [sudo] password for dfresh: make -C /lib/modules/5.11.0-36-generic/build M=/home/dfresh/acer-helios-300-rgb-keyboard-linux-module modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-36-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-36-generic' [ 993.465267] audit: type=1107 audit(1632436309.625:47): pid=700 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.9" pid=2214 label="snap.snap-store.ubuntu-software" peer_pid=712 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' [ 993.465474] audit: type=1107 audit(1632436309.625:48): pid=700 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call" bus="system" path="/org/freedesktop/PolicyKit1/Authority" interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" mask="send" name=":1.9" pid=2214 label="snap.snap-store.ubuntu-software" peer_pid=712 peer_label="unconfined" exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?' [ 993.694243] audit: type=1400 audit(1632436309.853:49): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/etc/PackageKit/Vendor.conf" pid=2214 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [ 1099.179225] acer_wmi: Acer Laptop WMI Extras unloaded [ 1099.199925] facer: module verification failed: signature and/or required key missing - tainting kernel [ 1099.200394] facer: Acer Laptop ACPI-WMI Extras [ 1099.200428] facer: Function bitmap for Communication Button: 0x801 [ 1099.211244] input: Acer WMI hotkeys as /devices/virtual/input/input44 [*] Done

Any help is much appreciated!

JafarAkhondali commented 2 years ago

Did you disable secure boot? it must be disabled If that didn't work, try to disable apparmor

JafarAkhondali commented 2 years ago

Closing as no response

Shawshank-dulal commented 2 years ago

I have disabled secure boot, tried disabling apparmor and so on. It is not working. Here is the output of the installation: image

and Here is the output when I try to run facer_rgb.py Screenshot from 2022-03-21 19-41-53

mmsaeed509 commented 2 years ago

@Shawshank-dulal try

sudo rm /dev/acer-gkbbl-0
sudo./uninstal_service.sh
sudo apt install linux-headers
sudo ./install_service.sh
Shawshank-dulal commented 2 years ago

removing file produces such error: image

mmsaeed509 commented 2 years ago

@Shawshank-dulal try

sudo apt install linux-headers
sudo ./install_service.sh
Shawshank-dulal commented 2 years ago

@mmsaeed509 Thanks for your quick reply. I have already tried that. It is not working even after uninstalling and reinstalling. Similarly, is this output expected when executing ./install_service.sh ? image

Also FYI, the turbo mode is working

mmsaeed509 commented 2 years ago

the acer-gkbbl-0 file is not the correct file

in my machine is /dev/acer-gkbbl-static-0 use the TAB key to complete the correct file

I encountered this problem, here is my solution

sudo rm /dev/acer-gkbbl-static-0

sudo ./uninstall_service.sh

cd ..

rm -rf acer-predator-turbo-and-rgb-keyboard-linux-module

sudo pacman -S linux-headers 

git clone https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module.git

cd acer-predator-turbo-and-rgb-keyboard-linux-module

chmod +x install_service.sh

then install the module

sudo ./install_service.sh

and her is the out put

[Mode: install]
[Remove old data]
[Create directories]
[Copy new data]
sending incremental file list
LICENSE
Makefile
README.md
facer_rgb.py
install.sh
install_openrc.sh
install_service.sh
keyboard.webp
refresh.sh
uninstall.sh
uninstall_service.sh
src/
src/facer.c

sent 2,644,072 bytes  received 256 bytes  5,288,656.00 bytes/sec
total size is 2,642,584  speedup is 1.00
[Create turbo-fan service]
Created symlink /etc/systemd/system/multi-user.target.wants/turbo-fan.service → /etc/systemd/system/turbo-fan.service.

worked well with me, try it may be working with you

Shawshank-dulal commented 2 years ago

Thank you for your effort. It is still not working since the install is producing different output than you. Please have a look at below:

[Mode: install] [Remove old data] [Create directories] [Copy new data] sending incremental file list LICENSE Makefile README.md facer_rgb.py install.sh install_openrc.sh install_service.sh keyboard.webp refresh.sh uninstall.sh uninstall_service.sh src/ src/facer.c

sent 2,644,089 bytes received 256 bytes 5,288,690.00 bytes/sec total size is 2,642,584 speedup is 1.00 [Create turbo-fan service] Synchronizing state of turbo-fan.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable turbo-fan update-rc.d: error: turbo-fan Default-Start contains no runlevels, aborting.

mmsaeed509 commented 2 years ago

try to give permission cd /dev && sudo chmod +x acer-gkbbl-0 acer-gkbbl-static-0