Code Monkey home page Code Monkey logo

i8042-spectre-dkms's People

Contributors

dustydecapod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

daniilkoterov

i8042-spectre-dkms's Issues

Alternate workaround/solution

As far as I can tell this module is not being maintained, and no longer works as I encountered the same build errors as other users here did. But this issue is EXTREMELY annoying so I'm just going to leave this alternate solution I dug up for anyone else. This worked (at least thus far) for me on openSUSE tumbleweed, and seems to have worked for people on Ubuntu 22.04 LTS.

As detailed in this post: https://askubuntu.com/questions/1366407/keyboard-does-not-work-for-first-few-seconds
The workaround appears to be to add i8042.nopnp=1 and i8042.dumbkbd=1 to your grub config at /etc/default/grub by appending them to GRUB_CMDLINE_LINUX_DEFAULT=

e.g.:
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/[long number] quiet security=apparmor"
becomes
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/[long number] quiet security=apparmor i8042.nopnp=1 i8042.dumbkbd=1"

Save and regen the grub config via sudo grub2-mkconfig -o /boot/grub/grub.cfg and restart and you should be good to go.

According to this kernel doc https://www.kernel.org/doc/html/v6.6/admin-guide/kernel-parameters.html?highlight=i8042
i8042.dumbkbd = Pretend that controller can only read data from keyboard and cannot control its state (Don't attempt to blink the leds).
i8042.nopnp = [HW] Don't use ACPIPnP / PnPBIOS to discover KBD/AUX controllers.

Hope this can help a couple people fix this annoyance.

Build error

I'm trying to apply this fix but when i run sudo dkms build -m i8042-spectre -v 1.0, i get the following

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.19.0-76051900-generic KDIR=/lib/modules/5.19.0-76051900-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for i8042-spectre: 1.0 not found
Error! Bad return status for module build on kernel: 5.19.0-76051900-generic (x86_64)
Consult /var/lib/dkms/i8042-spectre/1.0/build/make.log for more information.

after checking the file mentioned i see the following

DKMS make.log for i8042-spectre-1.0 for kernel 5.19.0-76051900-generic (x86_64)
Sat Oct 15 06:24:50 PM CEST 2022
make -C /lib/modules/5.19.0-76051900-generic/build M=/var/lib/dkms/i8042-spectre/1.0/build modules
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-76051900-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  You are using:           gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  CC [M]  /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre.o
  MODPOST /var/lib/dkms/i8042-spectre/1.0/build/Module.symvers
ERROR: modpost: /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre: 'i8042_lock_chip' exported twice. Previous export was in vmlinux
ERROR: modpost: /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre: 'i8042_unlock_chip' exported twice. Previous export was in vmlinux
ERROR: modpost: /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre: 'i8042_install_filter' exported twice. Previous export was in vmlinux
ERROR: modpost: /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre: 'i8042_remove_filter' exported twice. Previous export was in vmlinux
ERROR: modpost: /var/lib/dkms/i8042-spectre/1.0/build/i8042-spectre: 'i8042_command' exported twice. Previous export was in vmlinux
make[2]: *** [scripts/Makefile.modpost:128: /var/lib/dkms/i8042-spectre/1.0/build/Module.symvers] Error 1
make[1]: *** [Makefile:1763: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-76051900-generic'
make: *** [Makefile:7: all] Error 2

I'm not an expert at linux and can't figure out what is going wrong.

Cannot install, already exist?

Manjaro Gnome with kernel 5.15.28 (just a default clean install of Manjaro).
when I run

sudo dkms add -m i8042-spectre -v 1.0   

It says command not found, so I install dkms via add/remove software.

After rebooting I tried again:

sudo dkms add -m i8042-spectre -v 1.0                        
Error! DKMS tree already contains: i8042-spectre-1.0
You cannot add the same module/version combo more than once.

sudo dkms build -m i8042-spectre -v 1.0                        3 ✘ 
Module i8042-spectre/1.0 already built for kernel 5.15.28-1-MANJARO (x86_64).

How to proceed?

i8042_spectre: exports duplicate symbol i8042_command (owned by kernel)

I am having this message on kernel logs, is this expected behavior?

I feel like i was unable to replace i8042 with i8042_spectre because its not working

My kernel:

Linux spectre 5.10.98-1-MANJARO #1

My kernel parameters:

modprobe.blacklist=i8042 i8042.debug=1 i8042.unmask_kbd_data=1 dyndbg=\"file atkbd.c +p\" dyndbg=\"file libps2.c +p\"

Kernel logs:

Şub 26 03:26:17 spectre kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=d3a463ae-bd60-4606-ac61-9dd2056e5ea6 rw quiet splash apparmor=1 security=apparmor udev.log_priority=3 i915.enable_dpcd_backlight=1 resume=UUID=a957540c-1b12-4e14-a642-a8a40ad6aff8 modprobe.blacklist=i8042 i8042.debug=1 i8042.unmask_kbd_data=1 "dyndbg=file atkbd.c +p" "dyndbg=file libps2.c +p"
Şub 26 03:26:17 spectre kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=d3a463ae-bd60-4606-ac61-9dd2056e5ea6 rw quiet splash apparmor=1 security=apparmor udev.log_priority=3 i915.enable_dpcd_backlight=1 resume=UUID=a957540c-1b12-4e14-a642-a8a40ad6aff8 modprobe.blacklist=i8042 i8042.debug=1 i8042.unmask_kbd_data=1 "dyndbg=file atkbd.c +p" "dyndbg=file libps2.c +p"
Şub 26 03:26:17 spectre kernel: i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
Şub 26 03:26:17 spectre kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
Şub 26 03:26:17 spectre kernel: i8042: [0] 20 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [0] 65 <- i8042 (return)
Şub 26 03:26:17 spectre kernel: i8042: [0] 20 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [1] 65 <- i8042 (return)
Şub 26 03:26:17 spectre kernel: i8042: [1] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [1] 74 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: i8042: [1] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [2] 65 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Şub 26 03:26:17 spectre kernel: i8042: [3] f2 -> i8042 (kbd-data)
Şub 26 03:26:17 spectre kernel: i8042: [6] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:17 spectre kernel: i8042: [162] ed -> i8042 (kbd-data)
Şub 26 03:26:17 spectre kernel: i8042: [223] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [223] 64 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: i8042: [223] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [223] 65 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: i8042: [223] ab <- i8042 (interrupt, 0, 0)
Şub 26 03:26:17 spectre kernel: i8042: [225] 83 <- i8042 (interrupt, 0, 1)
Şub 26 03:26:17 spectre kernel: i8042: [225] f2 -> i8042 (kbd-data)
Şub 26 03:26:17 spectre kernel: i8042: [228] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:17 spectre kernel: i8042: [229] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:17 spectre kernel: i8042: [229] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [229] 64 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: i8042: [229] 60 -> i8042 (command)
Şub 26 03:26:17 spectre kernel: i8042: [229] 65 -> i8042 (parameter)
Şub 26 03:26:17 spectre kernel: i8042: [318] 3a <- i8042 (interrupt, 0, 1)
Şub 26 03:26:17 spectre kernel: i8042: [318] f2 -> i8042 (kbd-data)
Şub 26 03:26:17 spectre kernel: i8042: [321] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:18 spectre kernel: i8042_spectre: loading out-of-tree module taints kernel.
Şub 26 03:26:18 spectre kernel: i8042: [474] ed -> i8042 (kbd-data)
Şub 26 03:26:18 spectre kernel: i8042_spectre: module verification failed: signature and/or required key missing - tainting kernel
Şub 26 03:26:18 spectre kernel: i8042_spectre: exports duplicate symbol i8042_command (owned by kernel)
Şub 26 03:26:18 spectre kernel: i8042: [535] 60 -> i8042 (command)
Şub 26 03:26:18 spectre kernel: i8042: [535] 64 -> i8042 (parameter)
Şub 26 03:26:18 spectre kernel: i8042: [535] 60 -> i8042 (command)
Şub 26 03:26:18 spectre kernel: i8042: [535] 65 -> i8042 (parameter)
Şub 26 03:26:18 spectre kernel: i8042: [535] ab <- i8042 (interrupt, 0, 0)
Şub 26 03:26:18 spectre kernel: i8042: [538] 83 <- i8042 (interrupt, 0, 1)
Şub 26 03:26:18 spectre kernel: i8042: [538] f2 -> i8042 (kbd-data)
Şub 26 03:26:18 spectre kernel: i8042: [542] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:18 spectre kernel: i8042: [546] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:18 spectre kernel: i8042: [546] 60 -> i8042 (command)
.....
Şub 26 03:26:31 spectre kernel: atkbd serio0: Received ab flags 00
Şub 26 03:26:31 spectre kernel: i8042: [4635] 83 <- i8042 (interrupt, 0, 1)
Şub 26 03:26:31 spectre kernel: atkbd serio0: Received 83 flags 00
Şub 26 03:26:31 spectre kernel: atkbd serio0: f2 [] - 0/00000000 [ab 83]
Şub 26 03:26:31 spectre kernel: i8042: [4635] f5 -> i8042 (kbd-data)
Şub 26 03:26:31 spectre kernel: i8042: [4638] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:31 spectre kernel: atkbd serio0: Received fa flags 00
Şub 26 03:26:31 spectre kernel: atkbd serio0: f5 [] - 0/00000000 []
.....
Şub 26 03:26:32 spectre kernel: i8042: [4655] fa <- i8042 (interrupt, 0, 1)
Şub 26 03:26:32 spectre kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input73
Şub 26 03:26:33 spectre kernel: i8042: [4974] e0 <- i8042 (interrupt, 0, 1)
Şub 26 03:26:33 spectre kernel: i8042: [4976] 2b <- i8042 (interrupt, 0, 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.