Plippo / asus-wmi-screenpad

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

Ubuntu - No such file or directory #27

Closed kevinchappell closed 2 years ago

kevinchappell commented 2 years ago

I'm not able to see the new device even on a fresh system install. Thought I would make a new issue in case my issue was unrelated to #19.

I'm running the following:

uname -a

Linux UX482 5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Here is the output from the installation steps:

sudo sh prepare-for-current-kernel.sh

Using: patch5.8
--2021-07-25 09:07:01--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/drivers/platform/x86/asus-wmi.c?h=linux-5.8.y
Resolving git.kernel.org (git.kernel.org)... 2604:1380:4030:1000::1, 147.75.56.137
Connecting to git.kernel.org (git.kernel.org)|2604:1380:4030:1000::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 71055 (69K) [text/plain]
Saving to: ‘asus-wmi.c’

asus-wmi.c                 100%[=====================================>]  69.39K  --.-KB/s    in 0.06s   

2021-07-25 09:07:01 (1.22 MB/s) - ‘asus-wmi.c’ saved [71055/71055]

--2021-07-25 09:07:01--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/drivers/platform/x86/asus-wmi.h?h=linux-5.8.y
Resolving git.kernel.org (git.kernel.org)... 2604:1380:4030:1000::1, 147.75.56.137
Connecting to git.kernel.org (git.kernel.org)|2604:1380:4030:1000::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2189 (2.1K) [text/plain]
Saving to: ‘asus-wmi.h’

asus-wmi.h                 100%[=====================================>]   2.14K  --.-KB/s    in 0s      

2021-07-25 09:07:01 (426 MB/s) - ‘asus-wmi.h’ saved [2189/2189]

--2021-07-25 09:07:01--  https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/drivers/platform/x86/asus-nb-wmi.c?h=linux-5.8.y
Resolving git.kernel.org (git.kernel.org)... 2604:1380:4030:1000::1, 147.75.56.137
Connecting to git.kernel.org (git.kernel.org)|2604:1380:4030:1000::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18642 (18K) [text/plain]
Saving to: ‘asus-nb-wmi.c’

asus-nb-wmi.c              100%[=====================================>]  18.21K  --.-KB/s    in 0.03s   

2021-07-25 09:07:01 (700 KB/s) - ‘asus-nb-wmi.c’ saved [18642/18642]

patching file asus-nb-wmi.c
Hunk #1 succeeded at 583 (offset 5 lines).
Hunk #2 succeeded at 593 (offset 5 lines).
Hunk #3 succeeded at 607 (offset 5 lines).
patching file asus-wmi.c
Hunk #3 succeeded at 691 (offset -1 lines).
Hunk #4 succeeded at 836 (offset -1 lines).

sudo dkms add -m asus-wmi -v 1.0

Creating symlink /var/lib/dkms/asus-wmi/1.0/source ->
                 /usr/src/asus-wmi-1.0

DKMS: add completed.

sudo dkms build -m asus-wmi -v 1.0

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.8.0-63-generic -C /lib/modules/5.8.0-63-generic/build M=/var/lib/dkms/asus-wmi/1.0/build...
Signing module:
 - /var/lib/dkms/asus-wmi/1.0/5.8.0-63-generic/x86_64/module/asus-nb-wmi.ko
 - /var/lib/dkms/asus-wmi/1.0/5.8.0-63-generic/x86_64/module/asus-wmi.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

sudo dkms install -m asus-wmi -v 1.0

asus-wmi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-63-generic/updates/dkms/

asus-nb-wmi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.8.0-63-generic/updates/dkms/

depmod...

DKMS: install completed.

Everything looks fine to me but /sys/class/leds/asus::screenpad the device is never created. Any help greatly appreciated.

kevinchappell commented 2 years ago

Finally got it working again. My issue was related to Secure Boot. Even though Secure Boot was disabled the device was not added because the module was not signed (i think)

To fix I had to:

  1. ensure Secure Boot is disabled in the bios
  2. sudo mokutil --disable-validation
  3. reboot
  4. follow Steps 2+ and all was good.

@Plippo thanks for this great tool and instructions.