Plippo / asus-wmi-screenpad

Variation of the asus-wmi kernel module with screenpad brightness support
Other
166 stars 23 forks source link

Does not work on Ubuntu 22.10 #50

Open ExposedCat opened 1 year ago

ExposedCat commented 1 year ago

Not sure if related to this module, but

OS: Ubuntu 22.10 x86_64 Host: ZenBook UX482EA_UX482EA 1.0 Kernel: 5.19.0-35-generic GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]

[  +0.002556] asus_wmi: ASUS WMI generic driver loaded
[  +0.018890] asus_nb_wmi: loading out-of-tree module taints kernel.
[  +0.000073] asus_nb_wmi: module verification failed: signature and/or required key missing - tainting kernel
[  +0.003771] asus_wmi: Initialization: 0x1
[  +0.002063] asus_wmi: BIOS WMI version: 9.0
[  +0.000114] asus_wmi: SFUN value: 0x21
[  +0.000007] asus-nb-wmi asus-nb-wmi: Detected ATK, not ASUSWMI, use DSTS
[  +0.000006] asus-nb-wmi asus-nb-wmi: Detected ATK, enable event queue
[  +0.009751] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input23
[  +0.009166] asus_wmi: fan_curve_get_factory_default (0x00110024) failed: -19
[  +0.000635] asus_wmi: fan_curve_get_factory_default (0x00110025) failed: -19
MDCore commented 1 year ago

I had a similar problem with it not working on 22.10. I fixed it by turning off Safe Boot in the BIOS.

PTFOPlayer commented 1 year ago

consider installing and building with --force flag

ExposedCat commented 1 year ago

@PTFOPlayer --force did not help @MDCore turned off for me 🤔

MDCore commented 1 year ago

@ExposedCat I turned off then uninstalled and reinstalled - including the extra blacklisting step. Beyond that, I don't have any suggestions unfortunately!

lamualfa commented 1 year ago

Follow this gist for installation instructions on Ubuntu:

https://gist.github.com/lamualfa/e421ea7ad9d8f3ccf6eaa452a379e43e

1. Install the prerequisite packages (skip if already installed)

sudo apt install dkms
sudo apt install linux-headers-generic

2. Install & build Asus WMI Screenpad module

sudo mkdir /usr/src/asus-wmi-1.0
cd /usr/src/asus-wmi-1.0
sudo wget 'https://github.com/Plippo/asus-wmi-screenpad/archive/master.zip'
sudo unzip master.zip
sudo mv asus-wmi-screenpad-master/* .
sudo rmdir asus-wmi-screenpad-master
sudo rm master.zip
sudo sh prepare-for-current-kernel.sh
sudo dkms add -m asus-wmi -v 1.0
sudo dkms build -m asus-wmi -v 1.0 --force
sudo dkms install -m asus-wmi -v 1.0 --force

3. Reboot/restart your computer

sudo reboot

4. Blacklist the interfering built-in module

echo "blacklist mfd_aaeon" | sudo tee /etc/modprobe.d/aaeon-blacklist.conf
sudo update-initramfs -k all -u

5. Create a new rule to run the command without using sudo

sudo echo '# rules for asus_nb_wmi devices
# make screenpad backlight brightness write-able by everyone
ACTION=="add", SUBSYSTEM=="leds", KERNEL=="asus::screenpad", RUN+="/bin/chmod a+w /sys/class/leds/%k/brightness"' | sudo tee /etc/udev/rules.d/99-asus.rules

6. Reboot/restart your computer

sudo reboot

7. Install Asus Screenpad Control to control the Screenpad using GUI Application

sudo apt install -y libgtk-3-dev build-essential gcc pkg-config make
wget 'https://github.com/lakinduakash/asus-screenpad-control/archive/master.zip'
unzip master.zip
cd asus-screenpad-control
make
sudo make install