LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-08-2022, 08:01 AM   #1
budrz89
Member
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 99

Rep: Reputation: Disabled
Touchpad not working in Asus ROG Strix g15


Hi,

I'm trying to get my touchpad to work for a while now and I don't understand what I'm doing wrong.

I'm using the latest LFS build with kernel 5.16.9. I also have an initramfs setup to load the modules and firmware.

I've attached some outputs from a Devaun Chimaera live (with "-devuan.txt") and my LFS (with "-lfs.txt"). Also I've attached my config file for my kernel.

Any help would be appreciated.
Attached Files
File Type: txt dmesg-lfs.txt (91.5 KB, 12 views)
File Type: txt dmesg-devuan.txt (76.6 KB, 10 views)
File Type: txt lsmod-devuan.txt (6.3 KB, 7 views)
File Type: txt lsmod-lfs.txt (2.5 KB, 4 views)
File Type: txt config-lfs.txt (149.9 KB, 22 views)
 
Old 08-08-2022, 09:20 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
So the driver from devuan dmesg:

Code:
[    7.119460] input: ASUE120A:00 04F3:319B Mouse as /devices/platform/AMDI0010:00/i2c-0/i2c-ASUE120A:00/0018:04F3:319B.0001/input/input16
[    7.120741] input: ASUE120A:00 04F3:319B Touchpad as /devices/platform/AMDI0010:00/i2c-0/i2c-ASUE120A:00/0018:04F3:319B.0001/input/input17
[    7.121924] hid-multitouch 0018:04F3:319B.0001: input,hidraw0: I2C HID v1.00 Mouse [ASUE120A:00 04F3:319B] on i2c-ASUE120A:00
This shows it is connected by i2c and is a platform device. Configuration info is provided by the platform description.

In the LFS dmesg there is a warning:

Code:
[    0.245126] ------------[ cut here ]------------
[    0.245127] WARNING: CPU: 0 PID: 1 at drivers/i2c/busses/i2c-designware-common.c:471 i2c_dw_clk_rate+0x11/0x20
[    0.245131] Modules linked in:
[    0.245132] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.16.9 #6
[    0.245133] Hardware name: ASUSTeK COMPUTER INC. ROG Strix G513QY_G513QY/G513QY, BIOS G513QY.313 07/30/2021
[    0.245134] RIP: 0010:i2c_dw_clk_rate+0x11/0x20
https://elixir.bootlin.com/linux/v5....-common.c#L471
It's unable to get the i2c clock rate from the driver. In the Devuan code it gets it from the platform code and doesn't call this routine. You may be missing some patch in your platform code.
 
1 members found this post helpful.
Old 08-08-2022, 11:23 AM   #3
budrz89
Member
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 99

Original Poster
Rep: Reputation: Disabled
Interesting. In 5.18.16 version they removed that err check.

I'll try upgrading the kernel and see if that fixes anything.

EDIT: I meant on line 480, but that seems irrelevant.

Last edited by budrz89; 08-08-2022 at 02:39 PM.
 
Old 08-08-2022, 02:50 PM   #4
budrz89
Member
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 99

Original Poster
Rep: Reputation: Disabled
Upgrading the kernel didn't fix the problem.

EDIT: I even added some i2c_designware modules (like what was done in Archlinux config: https://github.com/archlinux/svntogi...x/trunk/config ) and it didn't really fix it.

Last edited by budrz89; 08-08-2022 at 04:04 PM.
 
Old 08-11-2022, 01:00 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Please add the output of dmidecode.
 
Old 08-27-2022, 06:53 AM   #6
budrz89
Member
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 99

Original Poster
Rep: Reputation: Disabled
Sorry for the late reply.

@smallpond, I've attached the dmidecode output. It looks like it says that PS/2 type touchpad. I've tried building the mouse PS/2 and hid-multitouch as a module and built-in but neither seemed to solve the problem.

EDIT: attached is my latest kernel config file.
Attached Files
File Type: txt dmidecode.txt (13.5 KB, 15 views)
File Type: txt config-lfs-v2.txt (159.2 KB, 8 views)

Last edited by budrz89; 08-27-2022 at 06:59 AM.
 
Old 08-29-2022, 03:39 AM   #7
budrz89
Member
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 99

Original Poster
Rep: Reputation: Disabled
Wink

Breakthrough guys!

I managed to get my mouse working!

Here is an outline of the steps:

0. Login to your host system, mount your partitions and make the necessary links before you chroot and chroot into your LFS system.

1. I downloaded the generic config file (the .x64 version for me depending on your architecture) from:

https://mirrors.slackware.com/slackw...ernel-configs/

2. Ran

Code:
make menuconfig
changed the host name (CONFIG_DEFAULT_HOSTNAME) to whatever your hostname is, saved and exited.

Note: you may get some warnings saying that 'm' is not a valid module which is fine if it's not a module that you need (which was the case for me). This happens because kernel configs get updated all the time from version to version.

3. Build and install the package (the usual make, make modules_install, etc.)

(See: https://www.linuxfromscratch.org/lfs...10/kernel.html )

4. Downloaded all of the files from:

https://mirrors.slackware.com/slackw...ce/a/mkinitrd/

(a recursive wget may be useful here, like

Code:
wget -r l6 -np -nc --reject "index.html*" -e robots=off
Then you can check the integrity of each file using sha256sums -c *.sha256)

5. Make some changes to the 'Slackbuild" script depending on your package manager (if you have one).

6. Build and install the mkinitrd package.

7. Read the README.initrd.

Tip: If you need to add extra nodules other than ext4 (for example), do:

Code:
mkinitrd -c -k @KERNEL_VERSION@ -m ext4:<module 1>:<module 2>:...
8. Checked some of the modules loaded on my host system

Code:
# lsmod
and

Code:
# dmesg | grep 'i2c' # for example
and particularly look for the words "modules linked". You may have to change the "_" to "-" for the module name.

Some of the modules that I listed in the mkinitrd were

Code:
i2c-hid
hid-multitouch
hid-asus
(some may not be necessary).

9. cd'd into /boot and decompressed the initrd.gz file.

10. Updated my grub.cfg file to include the initrd file (see: https://www.linuxfromscratch.org/blf...initramfs.html )

11. Exited chroot, unmounted the partitions and rebooted.

It almost feels like cheating that I had to use a config file and a mkinitrd from another distro like Slackware, but I figured that they got a working config file so why not use it.

Now it's late for me so I'm going to bed (happy) now that I finally put this to bed after weeks of racking my head on this.

Last edited by budrz89; 08-29-2022 at 03:43 AM.
 
  


Reply

Tags
kernel, touchpad



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Asus Strix Soar (Soundcard) Not Working bfdbfd Linux - Hardware 8 04-12-2023 08:17 AM
[SOLVED] CPU not scaling Ryzen 3800x on ASUS ROG STRIX X470-F Gaming 273 Linux - Hardware 40 10-16-2022 09:47 AM
ASUS ROG Strix GL502 - graphics, wifi and mouse/touchpad problems kwronski Linux - Laptop and Netbook 3 01-23-2018 10:55 PM
No sound card detected - Intel 7320 CPU + Asus Rog Strix Z270 Varsuuk Linux - Hardware 50 05-16-2017 02:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration