Bug 218745 - Laptop Internal keyboard not working on ASUS Vivobook N6506MV on ubuntu 24.04
Summary: Laptop Internal keyboard not working on ASUS Vivobook N6506MV on ubuntu 24.04
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-18 08:35 UTC by Gianni
Modified: 2024-06-30 15:06 UTC (History)
4 users (show)

See Also:
Kernel Version: 6.8.0-22-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Fix keyboard on Asus Vivobook Pro N6506MV (1.25 KB, patch)
2024-04-21 15:56 UTC, Tamim Khan
Details | Diff

Description Gianni 2024-04-18 08:35:42 UTC
Laptop Internal keyboard not working on ASUS Vivobook N6506MV on ubuntu 24.04.


I see a number of other posted bugs for a similar issue and a model-specific, just adding my ASUS model to the list of models which could need to be patched.

Computer details:
Base Board Information
	Manufacturer: ASUSTeK COMPUTER INC.
	Product Name: N6506MV
	Version: 1.0

Kernel: 
6.8.0-22-generic

Output of DSDT as requested in https://bugzilla.kernel.org/show_bug.cgi?id=216158 :

grep -A 40 PS2K dsdt.dsl | grep IRQ -A 1

IRQ (Level, ActiveLow, Exclusive, )
                    {1}

Thank you!
Comment 1 Tamim Khan 2024-04-21 15:56:42 UTC
Created attachment 306189 [details]
Fix keyboard on Asus Vivobook Pro N6506MV

@Gianni, I have attached a patch that should fix your keyboard issues on 6.8+ version of the linux kernel.

Can you try it out and let me know if fixes the problem? Afterwards, I will submit it mailing list to get it merged into the kernel.

Thanks,
Tamim
Comment 2 Gianni 2024-04-24 10:07:09 UTC
(In reply to Tamim Khan from comment #1)
> Created attachment 306189 [details]
> Fix keyboard on Asus Vivobook Pro N6506MV
> 
> @Gianni, I have attached a patch that should fix your keyboard issues on
> 6.8+ version of the linux kernel.
> 
> Can you try it out and let me know if fixes the problem? Afterwards, I will
> submit it mailing list to get it merged into the kernel.
> 
> Thanks,
> Tamim

TL;DR
Some likely unrelated errors but your patch solved my issue, thank you.


I have built the kernel with your patch and edited the changelog manually so that a new version could be generated and tested on my machine.
I did encounter some errors in the build but that could be due to something I did wrong as this was my first time building the kernel. 

```
gcc -g -O -Wall -I/usr/include/tracefs -I/usr/include/traceevent -DVERSION="\"6.8.1\"" -c -o src/osnoise.o src/osnoise.c
In file included from src/osnoise.h:2,
                 from src/osnoise.c:16:
src/trace.h:2:10: fatal error: tracefs.h: No such file or directory
    2 | #include <tracefs.h>
```

However, deb files were generated, and after installing and disabling secure boot I could run ubuntu and use my keyboard.
Comment 3 Artem S. Tashkinov 2024-04-27 14:41:20 UTC
Thanks Tamim Khan, please push a fix if you haven't already done it.
Comment 4 Tamim Khan 2024-05-01 10:21:09 UTC
Patch submitted and accepted. 

Looks like it should appear in 6.10: https://lore.kernel.org/linux-acpi/CAJZ5v0jrw0frQPcMF94SWOSD=J4ktFyTo0jc1kuBKTsiHf-+Wg@mail.gmail.com/T/#t
Comment 5 Bünyamin Akı 2024-05-07 05:56:43 UTC
(In reply to Tamim Khan from comment #4)
> Yama gönderildi ve kabul edildi.
> 
> 6.10'da görünmesi gerekiyor gibi görünüyor:
> https://lore.kernel.org/linux-acpi/
> CAJZ5v0jrw0frQPcMF94SWOSD=J4ktFyTo0jc1kuBKTsiHf-+Wg@mail.gmail.com/T/#t

I am an arch user and my friend has the same model. Is it possible to install this `patch` file with `kpatch`?
Comment 6 eleftherios.giapitzakis 2024-06-29 17:45:13 UTC
Laptop Internal keyboard not working on ASUS Vivobook N6506MU on ubuntu 24.04 (POP OS)

Adding my ASUS model to the list of models which could need to be patched (different variation, my model is N6506MU, exact same hardware with N6506MV only different GPU.

Computer details:
Base Board Information
	Manufacturer: ASUSTeK COMPUTER INC.
	Product Name: N6506MV
	Version: 1.0
Kernel: 
6.9.4

Output of DSDT :

grep -A 40 PS2K dsdt.dsl | grep IRQ -A 1

IRQ (Level, ActiveLow, Exclusive, )
                    {1}
Thank you!
Comment 7 Tamim Khan 2024-06-30 14:52:33 UTC
@eleftherios.giapitzakis@gmail.com: Would you mind creating another bug, attaching the above and CCing me? I can post a patch to fix and then get it submitted upstream to be merged into the kernel.

Thanks,
Tamim
Comment 8 eleftherios.giapitzakis 2024-06-30 14:59:06 UTC
Dear Tamim,

I just saw that there is already another open bug for my laptop (N6506MU):

https://bugzilla.kernel.org/show_bug.cgi?id=218954

Is that enough or do i still need to re-open a bug with the same issue?

Thanks for your assistance!

Lefteris
Comment 9 Tamim Khan 2024-06-30 15:05:36 UTC
Nope, that should be enough. I will post a patch there and then submit it upstream using that ticket.

Thanks,
Tamim
Comment 10 eleftherios.giapitzakis 2024-06-30 15:06:33 UTC
great, thanks again!

Note You need to log in before you can comment on or make changes to this bug.