You are not logged in.

#1 2021-01-03 07:02:28

riazufila
Member
Registered: 2019-09-30
Posts: 16

[SOLVED] Unable to disable Keyboard by blacklisting module atkbd

I've been searching for ways to disable my keyboard (because it acts crazy at times) before X starts and I've found out the easiest way to do this is by:

echo "blacklist atkbd" > /etc/modprobe.d/blacklist.conf

This works like a charm on linux-zen 5.9 on before. But as of, 5.10, the said method no longer works and I'm at lost.

Last edited by riazufila (2021-01-04 01:31:45)

Offline

#2 2021-01-03 08:20:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,016

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

https://github.com/archlinux/svntogit-p … 516073c12#

CONFIG_KEYBOARD_ATKBD=m
CONFIG_KEYBOARD_ATKBD=y

it acts crazy at times

How "crazy"?
Tried to pass "atkbd.reset=1" to the kernel?

Offline

#3 2021-01-03 12:32:08

riazufila
Member
Registered: 2019-09-30
Posts: 16

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

seth wrote:

https://github.com/archlinux/svntogit-p … 516073c12#

CONFIG_KEYBOARD_ATKBD=m
CONFIG_KEYBOARD_ATKBD=y

it acts crazy at times

How "crazy"?
Tried to pass "atkbd.reset=1" to the kernel?

Can you elaborate more regarding the replacement of CONFIG_KEYBOARD_ATKBD? Am I supposed to compile the kernel to change this?

Some of the keyboard's key doesn't work and some presses on its own.

Last edited by riazufila (2021-01-03 12:45:20)

Offline

#4 2021-01-03 12:56:01

loqs
Member
Registered: 2014-03-06
Posts: 18,920

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

If atkbd.reset=1 fails try initcall_blacklist=atkbd_init to disable the module from being initialized.

Offline

#5 2021-01-03 13:30:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,016

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

Can you elaborate more regarding the replacement of CONFIG_KEYBOARD_ATKBD?

The linked patch moved atkbd from a module into the kernel - that's why blacklisting the module now fails.

Offline

#6 2021-01-03 22:40:10

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 290

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

Try disabling with a config file in /etc/sysctl.d example
EDIT: @loqs, I misunderstood Seth response #5, thank you.

Last edited by WFV (2021-01-04 03:11:47)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#7 2021-01-03 22:50:17

loqs
Member
Registered: 2014-03-06
Posts: 18,920

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

WFV you linked to a thread discussing dmesg restriction,  how can you use a runtime setting to disable a module that is built in?

Offline

#8 2021-01-04 01:31:30

riazufila
Member
Registered: 2019-09-30
Posts: 16

Re: [SOLVED] Unable to disable Keyboard by blacklisting module atkbd

loqs wrote:

If atkbd.reset=1 fails try initcall_blacklist=atkbd_init to disable the module from being initialized.

Tried atkbd.reset=1, but it doesn't work. However, initcall_blacklist=atkbd_init works wonder. My in-built keyboard is now disabled before X starts. Thank you! Marked as solved.

Last edited by riazufila (2021-01-04 01:32:27)

Offline

Board footer

Powered by FluxBB