Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for 6.1.14 - Still working when installing with --force #49

Open
sanjibukai opened this issue Mar 9, 2023 · 1 comment
Open

Comments

@sanjibukai
Copy link

Hello everybody,

Before starting, just a shout-out to the author and everybody contributing! Thanks so much!

A couple of months ago I installed this on my Asus UX582 on Fedora.
Finally I'm using back Linux on this machine and updated the system..
I expected the screenpad brightness to not work anymore which indeed was not working anymore.
I tried to go through the steps again.. So I did the following:

  • cd /usr/src/asus-wmi-1.0
  • sudo sh prepare-for-current-kernel.sh <- I'm getting a FAILED for Hunk 2 here
  • sudo dkms add -m asus-wmi -v 1.0 <- Probably not necessary since I have a error stating it already exists
  • sudo dkms build -m asus-wmi -v 1.0 <- Not sure what I got here since I restarted but now it says already built
  • sudo dkms install -m asus-wmi -v 1.0 <- I got an error and had to use --force

But after restarting I noticed it worked again.

IIRC, after the update I switched from 6.0.x to 6.1.10

But another remark it's that I'm getting many update in Fedora which is updating the Kernel..
I'm currently in 6.1.14 and on every minor update I have to still go trough these steps.

As long as it's working I don't really care running a bunch of commands and restarting but I remember having read that for minor versions kernel updates it should just work..

So I wonder if I have something to fix to make that error disappearing and maybe having the minor updates working...

Also, is there any other resource for making that laptop working in Linux? Like the touchpad calculator and other shortcut keys maybe?

@sanjibukai
Copy link
Author

Still using Fedora, I just get my computer updated to kernel 6.1.18 and I have to redo those commands again:
FWIW, now I did it from start here is the output I got when running those commands:prepare-for-current-kernel.sh:

# sudo sh prepare-for-current-kernel.sh
# ... Some outputs with progress bars
patching file asus-nb-wmi.c
Hunk #1 succeeded at 549 (offset 4 lines).
Hunk #2 FAILED at 555.
Hunk #3 succeeded at 573 (offset 5 lines).
1 out of 3 hunks FAILED -- saving rejects to file asus-nb-wmi.c.rej
patching file asus-wmi.c
Hunk #2 succeeded at 211 (offset 2 lines).
Hunk #3 succeeded at 1157 (offset 114 lines).
Hunk #4 succeeded at 1233 (offset 114 lines).
Hunk #5 succeeded at 1326 (offset 122 lines).

# sudo dkms add -m asus-wmi -v 1.0
Error! DKMS tree already contains: asus-wmi-1.0
You cannot add the same module/version combo more than once.
# -> As expected that step is not necessary

# sudo dkms build -m asus-wmi -v 1.0
ign command: /lib/modules/6.1.18-200.fc37.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j20 KERNELRELEASE=6.1.18-200.fc37.x86_64 -C /lib/modules/6.1.18-200.fc37.x86_64/build M=/var/lib/dkms/asus-wmi/1.0/build...
Signing module /var/lib/dkms/asus-wmi/1.0/build/asus-wmi.ko
Signing module /var/lib/dkms/asus-wmi/1.0/build/asus-nb-wmi.ko

# sudo dkms install -m asus-wmi -v 1.0
asus-wmi.ko.xz:
Running module version sanity check.
Module version  for asus-wmi.ko.xz
exactly matches what is already found in kernel 6.1.18-200.fc37.x86_64.
DKMS will not replace this module.
You may override by specifying --force.

asus-nb-wmi.ko.xz:
Running module version sanity check.
Module version  for asus-nb-wmi.ko.xz
exactly matches what is already found in kernel 6.1.18-200.fc37.x86_64.
DKMS will not replace this module.
You may override by specifying --force.
Error! Installation aborted.


# sudo dkms install -m asus-wmi -v 1.0 --force
asus-wmi.ko.xz:
Running module version sanity check.
 - Original module
   - Found /lib/modules/6.1.18-200.fc37.x86_64/kernel/drivers/platform/x86/asus-wmi.ko.xz
   - Storing in /var/lib/dkms/asus-wmi/original_module/6.1.18-200.fc37.x86_64/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/6.1.18-200.fc37.x86_64/extra/

asus-nb-wmi.ko.xz:
Running module version sanity check.
 - Original module
   - Found /lib/modules/6.1.18-200.fc37.x86_64/kernel/drivers/platform/x86/asus-nb-wmi.ko.xz
   - Storing in /var/lib/dkms/asus-wmi/original_module/6.1.18-200.fc37.x86_64/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/6.1.18-200.fc37.x86_64/extra/
depmod....

Then after restarting the screenpad brightness is working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant