Page 1 of 1

Accelerometer sensors stopped working on ASUS TM420IA

Posted: 2022-11-26 22:21
by aario
Hi Folks,
Cannot get the accelerometer sensor to work. Obviously the kernel module is not loaded and trying to load it manually amd_sfhtp_hid gives:

Code: Select all

modprobe: FATAL: Module amd_sfhtp_hid not found in directory  /lib/modules/5.18.0-0.deb11.4-amd64
Some information:

Code: Select all

root@TM420IA:~# modprobe amd_sfhtp_hid
modprobe: FATAL: Module amd_sfhtp_hid not found in directory /lib/modules/5.18.0-0.deb11.4-amd64

Code: Select all

root@TM420IA:~# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Code: Select all

root@TM420IA:~# uname -a
Linux TM420IA 5.18.0-0.deb11.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1~bpo11+1 (2022-08-12) x86_64 GNU/Linux

Code: Select all

root@TM420IA:~# lspci | grep -i hub
03:00.7 Signal processing controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub

Code: Select all

root@TM420IA:~# udevadm info --export-db | grep -i iio
root@TM420IA:~#
nothing....

Code: Select all

root@TM420IA:~# lsmod | grep amd
edac_mce_amd           40960  0
kvm_amd               151552  0
kvm                  1085440  1 kvm_amd
ccp                   114688  1 kvm_amd
amd_pmc                28672  0
amdgpu               8167424  72
gpu_sched              53248  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
drm_dp_helper         159744  1 amdgpu
drm_ttm_helper         16384  1 amdgpu
ttm                    86016  2 amdgpu,drm_ttm_helper
drm_kms_helper        196608  4 drm_dp_helper,amdgpu
drm                   622592  28 gpu_sched,drm_dp_helper,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
amd_sfh                32768  0
hid                   155648  4 i2c_hid,hid_multitouch,hid_generic,amd_sfh

Code: Select all

root@TM420IA:~# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-5.18.0-0.deb11.4-amd64 root=/dev/mapper/vg-root1 ro quiet amd_iommu=off iommu=pt resume=UUID=0fad4cd9-b977-46d9-b20f-6763d8a1ee2b
Any idea how to get the kernel module amd_sfhtp_hid is highly appreciated. Thanks in advance.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-11-27 09:37
by p.H
Where did you find that you need to load this module ?
I cannot find any module with that name even in the most recent kernel (6.1). The closest one is amd_sfh and lsmod shows it is already loaded.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-11-27 17:08
by aario
Thanks for the reply @p.H
I got the idea from here https://bbs.archlinux.org/viewtopic.php?id=252815.
Actually the problem is I have this accelometer sensor:

Code: Select all

03:00.7 Signal processing controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub
and in the past on the same version of debian I had these files:

Code: Select all

/sys/devices/0020:1022:0001.0001/HID-SENSOR-200073.1.auto/iio:device0/in_accel_x_raw
/sys/devices/0020:1022:0001.0001/HID-SENSOR-200073.1.auto/iio:device0/in_accel_y_raw
/sys/devices/0020:1022:0001.0001/HID-SENSOR-200073.1.auto/iio:device0/in_accel_z_raw
Now after recent updates they have disappeared. That is the problem. I want to get the sensor to work. Any idea is highly appreciated.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-11-27 19:44
by LE_746F6D617A7A69
aario wrote: 2022-11-27 17:08 Now after recent updates they have disappeared.
Did it worked with non-backported kernel?
Try to boot with previous kernel to test for regression.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-11-29 09:20
by aario
LE_746F6D617A7A69 wrote: 2022-11-27 19:44
aario wrote: 2022-11-27 17:08 Now after recent updates they have disappeared.
Did it worked with non-backported kernel?
Try to boot with previous kernel to test for regression.
Thanks for the reply. Tried:

Code: Select all

linux-headers-5.10.0-18-amd64
linux-headers-5.10.0-18-common
linux-image-5.10.0-18-amd64
linux-kbuild-5.10

linux-headers-5.18.0-0.deb11.4-amd64
linux-headers-5.18.0-0.deb11.4-common
linux-image-5.18.0-0.deb11.4-amd64
linux-kbuild-5.18

linux-headers-6.0.0-0.deb11.2-amd64
linux-headers-6.0.0-0.deb11.2-common
linux-image-6.0.0-0.deb11.2-amd64
linux-kbuild-6.0
None fixed the issue. Plus, on 5.10 I don't have suspend (That's why I use backports in the first place). Still any ideas?

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-11-30 09:53
by aario
Any ideas how to get accel sensors to work on Asus TM420IA?

Re: Accelerometer sensors stopped working on ASUS TM420IA

Posted: 2022-12-02 17:14
by p.H
aario wrote: 2022-11-27 17:08 I got the idea from here https://bbs.archlinux.org/viewtopic.php?id=252815.
IIUC this thread is about an early driver version which was not merged as is into the mainline kernel. The module name was different when it was eventually merged in Linux 5.11.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-12-02 19:03
by Aki
aario wrote: 2022-11-30 09:53 Any ideas how to get accel sensors to work on Asus TM420IA?
See https://www.phoronix.com/news/AMD-Senso ... ub-SFH-1.1

HTH

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-12-03 13:45
by aario
Aki wrote: 2022-12-02 19:03
aario wrote: 2022-11-30 09:53 Any ideas how to get accel sensors to work on Asus TM420IA?
See https://www.phoronix.com/news/AMD-Senso ... ub-SFH-1.1

HTH
Thanks for the reply. I see it talks about the patches being merged into 5.20. As I wrote above, I have tried:

Code: Select all

linux-headers-5.10.0-18-amd64
linux-headers-5.10.0-18-common
linux-image-5.10.0-18-amd64
linux-kbuild-5.10

linux-headers-5.18.0-0.deb11.4-amd64
linux-headers-5.18.0-0.deb11.4-common
linux-image-5.18.0-0.deb11.4-amd64
linux-kbuild-5.18

linux-headers-6.0.0-0.deb11.2-amd64
linux-headers-6.0.0-0.deb11.2-common
linux-image-6.0.0-0.deb11.2-amd64
linux-kbuild-6.0
So why is that it still does not work for me? And it used to work before on the same computer and same installation. It suddenly stopped working. I think it should be some config file somewhere disabled this?

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-12-06 06:04
by Aki
Hi
aario wrote: 2022-12-03 13:45 [..] it used to work before on the same computer and same installation. It suddenly stopped working. [..]
Can you send a system log's extract of previous booting with a kernel when the sensor has been recognized ?

Anyway, the kernel module's name should be amd_sfh.ko and it's in the following kernels from debian stable-backports: https://packages.debian.org/search?mode ... amd_sfh.ko . Try to probe the hardware using this kernel module.

Re: modprobe: FATAL: Module amd_sfhtp_hid not found

Posted: 2022-12-07 09:37
by aario
Thanks for the reply.
Aki wrote: 2022-12-06 06:04 Hi
aario wrote: 2022-12-03 13:45 [..] it used to work before on the same computer and same installation. It suddenly stopped working. [..]
Can you send a system log's extract of previous booting with a kernel when the sensor has been recognized ?
Unfortunately it not possible. I don't have those logs anymore (/var/log is mounted as tmpfs) and I don't know which version of which package to roll back to, to make it work again.
Aki wrote: 2022-12-06 06:04 Anyway, the kernel module's name should be amd_sfh.ko and it's in the following kernels from debian stable-backports: https://packages.debian.org/search?mode ... amd_sfh.ko . Try to probe the hardware using this kernel module.
The module is already loaded. Unloading it with rmmod and then modprobe again also did not solve the problem. Any other ideas?

Re: Accelerometer sensors stopped working on ASUS TM420IA

Posted: 2022-12-12 16:03
by aario
Bump?