Bug 219891 - Laptop Internal keyboard not working on ASUS VivoBook X1404VAP_X1404VA on ubuntu 22.10
Summary: Laptop Internal keyboard not working on ASUS VivoBook X1404VAP_X1404VA on ubu...
Status: NEW
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: 2025-03-18 07:40 UTC by mrcold.il
Modified: 2025-03-20 07:33 UTC (History)
2 users (show)

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


Attachments
dmesg with patched kernel 6.14.0-rc7+ (101.59 KB, text/plain)
2025-03-19 05:57 UTC, mrcold.il
Details
dmidecode (24.53 KB, text/plain)
2025-03-19 06:59 UTC, mrcold.il
Details
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat (610.08 KB, application/octet-stream)
2025-03-19 07:00 UTC, mrcold.il
Details

Description mrcold.il 2025-03-18 07:40:11 UTC
Hello!

MY ASUS Vivobook 14 X1404VAP_X1404VA laptop keyboard is not working with Ubuntu 22.10.
(original comment https://bugzilla.kernel.org/show_bug.cgi?id=219224#c13, requested as separate issue comment https://bugzilla.kernel.org/show_bug.cgi?id=219224#c10)

Looks like i have same problem as in 219224 issue (similar model comment https://bugzilla.kernel.org/show_bug.cgi?id=219224#c10)

dmidecode: 

System Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: ASUS Vivobook 14 X1404VAP_X1404VA
        Version: 1.0
        Serial Number: S1N0CV05H399023
        UUID: 4f4adcfd-3666-084c-89a4-f6975a5f2083
        Wake-up Type: Power Switch
        SKU Number:
        Family: ASUS Vivobook 14

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK COMPUTER INC.
        Product Name: X1404VAP
        Version: 1.0
        Serial Number: S101NBCV003W58MB
        Asset Tag: ATN12345678901234567
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Default string
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

sudo grep -A 30 PS2K dsdt.dsl | grep IRQ -A 1
                IRQ (Level, ActiveLow, Exclusive, )
                    {1}
uname -a
Linux sh-ASUS-Vivobook-14-X1404VAP-X1404VA 6.11.0-19-generic #19-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 21:43:43 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

sb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.10
Release:        24.10
Codename:       oracular

Its possible to get patch for this?
Also i will be highly appreciated for explanations (pointing me to some docs or etc.) how i can install this patch?
Comment 1 Paul Menzel 2025-03-18 15:40:33 UTC
For the record the private email communication, as the Bugzilla installation had problems:

As you are using Ubuntu, you could try their mainline builds [1], as I
think Hans de Goede added some things to autodetect problematic devices.
For Linux 6.14-rc7 [2]:

     $ cd /dev/shm
     $ wget https://kernel.ubuntu.com/mainline/v6.14-rc7/amd64/linux-image-unsigned-6.14.0-061400rc7-generic_6.14.0-061400rc7.202503170040_amd64.deb
     $ wget https://kernel.ubuntu.com/mainline/v6.14-rc7/amd64/linux-modules-6.14.0-061400rc7-generic_6.14.0-061400rc7.202503170040_amd64.deb
     $ sudo dpkg -i *.deb

### Answer

I ve restarted laptop its booted with mainline kernel, but it still not
works.
Comment 2 Paul Menzel 2025-03-18 16:22:24 UTC
I created a patch, you can try the instructions below. Change the directory `~/linux/` to your likings.

    $ git clone --depth 1 -b master \
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ~/linux/
    $ cd ~/linux/
    $ b4 shazam https://lore.kernel.org/all/20250318160903.77107-1-pmenzel@molgen.mpg.de/T/#u
    $ cp /boot/config-<TAB and choose the latest> .config
    $ sudo apt install b4
    $ make -j $(nproc --all) bindeb-pkg
    $ sudo dpkg -i ../linux-image….deb
    $ sudo systemctl reboot
Comment 3 mrcold.il 2025-03-18 20:08:11 UTC
(In reply to Paul Menzel from comment #2)
> I created a patch, you can try the instructions below. Change the directory
> `~/linux/` to your likings.
> 
>     $ git clone --depth 1 -b master \
>       https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> ~/linux/
>     $ cd ~/linux/
>     $ b4 shazam
> https://lore.kernel.org/all/20250318160903.77107-1-pmenzel@molgen.mpg.de/T/#u
>     $ cp /boot/config-<TAB and choose the latest> .config
>     $ sudo apt install b4
>     $ make -j $(nproc --all) bindeb-pkg
>     $ sudo dpkg -i ../linux-image….deb
>     $ sudo systemctl reboot

After a bit long & tricky process (not sure that i did all properly, it my first time) ive managed to perform all steps.
Sadly but still keyboard is not working. 

uname -a
Linux sh-ASUS-Vivobook-14-X1404VAP-X1404VA 6.14.0-rc7+ #16 SMP PREEMPT_DYNAMIC Tue Mar 18 21:37:49 IST 2025 x86_64 x86_64 x86_64 GNU/Linux

If anything i can do with this? 
Maybe provide some additional information?
Or perform any other actions?

Nevertheless, I am very grateful for all!
Comment 4 Paul Menzel 2025-03-18 20:24:18 UTC
Congratulations on successfully building and then running your self-built Linux kernel. You are a hacker now. ;-)

Hmm, too bad, it does not work yet. Please paste the Linux messages (`sudo dmesg > /dev/shm/20250318--ASUS-Vivobook-14-X1404VAP-X1404VA--linux-6.14-rc7+.log`, and also the output of `git log -p -2` from within the Linux source directory.
Comment 5 mrcold.il 2025-03-19 05:57:46 UTC
Created attachment 307855 [details]
dmesg with patched kernel 6.14.0-rc7+
Comment 6 mrcold.il 2025-03-19 06:10:57 UTC
(In reply to Paul Menzel from comment #4)
> Congratulations on successfully building and then running your self-built
> Linux kernel. You are a hacker now. ;-)
> 
> Hmm, too bad, it does not work yet. Please paste the Linux messages (`sudo
> dmesg >
> /dev/shm/20250318--ASUS-Vivobook-14-X1404VAP-X1404VA--linux-6.14-rc7+.log`,
> and also the output of `git log -p -2` from within the Linux source
> directory.

Thanks :) 
Ive attached dmesg output, output of git log is a bit heavy (~1.5 GB unzipped or ~ 248 Mb zipped) i suppose its will be a problem to attach it here.
($ ~/linux# git --no-pager log -p -2 > /dev/shm/git.log)
Ive uploaded zipped version to google drive, here is link: 
https://drive.google.com/file/d/1RD6hB4LFgH3wvXCp1kNvp0hn-n0i-Pch/view?usp=sharing
Comment 7 mrcold.il 2025-03-19 06:59:52 UTC
Created attachment 307856 [details]
dmidecode
Comment 8 mrcold.il 2025-03-19 07:00:46 UTC
Created attachment 307857 [details]
cat /sys/firmware/acpi/tables/DSDT > dsdt.dat
Comment 9 mrcold.il 2025-03-19 12:34:13 UTC
Update:

Patch that Paul Menzel did - working great! - THANKS!

Problem was on my side - while applying patch empty git email & name, prevented it from being applied.

After cloning, setting git email & name, recompiling & installing keyboard start WORKING like charm.
Comment 10 Paul Menzel 2025-03-19 12:40:09 UTC
Awesome. It’d be great if you could reply to my email with the patch, and add the line:

Tested-by: Your Name <email>
Comment 11 mrcold.il 2025-03-19 12:44:43 UTC
(In reply to Paul Menzel from comment #10)
> Awesome. It’d be great if you could reply to my email with the patch, and
> add the line:
> 
> Tested-by: Your Name <email>

Done (hope i did it for proper mail :)
Comment 12 Paul Menzel 2025-03-19 12:47:45 UTC
Thank you. You need to reply to all (if you do not mind your email getting public). Also just reply in text/plain format (no HTML part), as otherwise the LKML list manager is going to reject it [1].

[1]: https://useplaintext.email/
Comment 13 mrcold.il 2025-03-19 12:52:34 UTC
Sure, done
(hope i don't messed it up again :)
Comment 15 Paul Menzel 2025-03-19 13:10:18 UTC
*persistence
Comment 16 Paul Menzel 2025-03-20 07:33:11 UTC
Downstream Ubuntu report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2103685

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