Touchscreen & accelerometer not detected

I have a 2-in-1 laptop. I am booting in BIOS legacy mode.
I’ve installed Slowroll and Gnome wayland desktop.
The laptop is from 2018. Kernel version is 6.9.9.

Strange that some hardware of a 2-in-1 device are detected e.g. stylus and tablet mode switch. But others are not detected: touchscreen and accelerometer [for screen autorotate].

Here some output about the touchscreen:

ed@dell-tw:~> dmesg | grep elants
[    7.186672] [     T43] elants_i2c i2c-ELAN0001:00: supply vcc33 not found, using dummy regulator
[    7.195921] [     T43] elants_i2c i2c-ELAN0001:00: supply vccio not found, using dummy regulator
[    8.252980] [     T43] elants_i2c i2c-ELAN0001:00: nothing at this address
[   13.836450] [   T1527]  btintel snd_soc_core iTCO_vendor_support cfg80211 nls_cp437 snd_hda_core mtd btbcm snd_compress coretemp processor_thermal_device_pci_legacy btmtk i2c_i801 snd_hwdep snd_pcm_dmaengine processor_thermal_device videobuf2_common cros_usbpd_charger cros_ec_sensorhub cros_ec_debugfs cros_ec_sysfs bluetooth snd_pcm intel_xhci_usb_role_switch processor_thermal_wt_hint spi_intel_pci cros_usbpd_logger cros_ec_chardev kvm_intel snd_timer vfat fat intel_rapl_msr cros_ec_dev kvm mc pcspkr i2c_smbus spi_intel ecdh_generic snd rfkill roles soundcore elants_i2c tpm_tis_spi elan_i2c processor_thermal_rfim processor_thermal_rapl intel_rapl_common cros_ec_lpcs processor_thermal_wt_req chromeos_tbmc fan processor_thermal_power_floor cros_ec int3403_thermal cros_usbpd_notify ac processor_thermal_mbox int3400_thermal int340x_thermal_zone tiny_power_button intel_soc_dts_iosf acpi_thermal_rel intel_pch_thermal button chromeos_acpi cros_kbd_led_backlight chromeos_pstore joydev dm_mod loop fuse configfs efi_pstore nfnetlink

ed@dell-tw:~> lsmod | grep elants
elants_i2c             45056  0

And here the output about the accelerometer:

ed@dell-tw:~> monitor-sensor
    Waiting for iio-sensor-proxy to appear

ed@dell-tw:~> dmesg | grep sensor
[   13.836450] [   T1527]  btintel snd_soc_core iTCO_vendor_support cfg80211 nls_cp437 snd_hda_core mtd btbcm snd_compress coretemp processor_thermal_device_pci_legacy btmtk i2c_i801 snd_hwdep snd_pcm_dmaengine processor_thermal_device videobuf2_common cros_usbpd_charger cros_ec_sensorhub cros_ec_debugfs cros_ec_sysfs bluetooth snd_pcm intel_xhci_usb_role_switch processor_thermal_wt_hint spi_intel_pci cros_usbpd_logger cros_ec_chardev kvm_intel snd_timer vfat fat intel_rapl_msr cros_ec_dev kvm mc pcspkr i2c_smbus spi_intel ecdh_generic snd rfkill roles soundcore elants_i2c tpm_tis_spi elan_i2c processor_thermal_rfim processor_thermal_rapl intel_rapl_common cros_ec_lpcs processor_thermal_wt_req chromeos_tbmc fan processor_thermal_power_floor cros_ec int3403_thermal cros_usbpd_notify ac processor_thermal_mbox int3400_thermal int340x_thermal_zone tiny_power_button intel_soc_dts_iosf acpi_thermal_rel intel_pch_thermal button chromeos_acpi cros_kbd_led_backlight chromeos_pstore joydev dm_mod loop fuse configfs efi_pstore nfnetlink

ed@dell-tw:~> lsmod | grep sensor
cros_ec_sensorhub      40960  0

The devices detected by Wayland:

ed@dell-tw:~> sudo libinput list-devices | grep Device
Device:           Power Button
Device:           *Tablet Mode Switch*
Device:           Lid Switch
Device:           Elan Touchpad
Device:           *WCOM005C:00 2D1F:004E Stylus*
Device:           WCOM005C:00 2D1F:004E
Device:           avs_da7219 Headset Jack
Device:           AT Translated Set 2 keyboard
Device:           keyd virtual keyboard
Device:           keyd virtual pointer

For autorotate: is qt6-sensors installed?

just installed - no effect.

normally iio-sensor-proxy should read the accelerometer, so monitor-sensor can report the screen orientation, right?
I also cannot find the iio accelerometer device in /sys/bus/iio/… It seems that the accelerometer driver module is not started.

ed@dell-tw:~> sudo hwinfo | grep accel

  platform device: name = cros-ec-accel.9.auto
    path = /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.9.auto
    type = "", modalias = "platform:cros-ec-accel", driver = ""
  platform device: name = cros-ec-accel.10.auto
    path = /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.10.auto
    type = "", modalias = "platform:cros-ec-accel", driver = ""
  P: /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.10.auto
  M: cros-ec-accel.10.auto
  E: DEVPATH=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.10.auto
  E: MODALIAS=platform:cros-ec-accel
  E: ID_PATH=pci-0000:00:1f.0-platform-cros-ec-accel.10.auto
  E: ID_PATH_TAG=pci-0000_00_1f_0-platform-cros-ec-accel_10_auto
  P: /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.9.auto
  M: cros-ec-accel.9.auto
  E: DEVPATH=/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.9.auto
  E: MODALIAS=platform:cros-ec-accel
  E: ID_PATH=pci-0000:00:1f.0-platform-cros-ec-accel.9.auto
  E: ID_PATH_TAG=pci-0000_00_1f_0-platform-cros-ec-accel_9_auto
/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.10.auto
/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/GOOG0004:00/cros-ec-dev.1.auto/cros-ec-sensorhub.2.auto/cros-ec-accel.9.auto

ed@dell-tw:~> lsmod | grep cros
cros_usbpd_charger     28672  0
cros_ec_sensorhub      40960  0
cros_usbpd_logger      16384  0
cros_ec_debugfs        12288  0
cros_ec_sysfs          12288  0
cros_ec_chardev        12288  0
cros_ec_dev            16384  0
cros_ec_lpcs           20480  0
cros_usbpd_notify      20480  1 cros_usbpd_charger
cros_ec                20480  1 cros_ec_lpcs
cros_kbd_led_backlight    12288  0

According another thread regarding this topic, a restart was necessary after installation of qt6-sensors.

already done - no effect.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.