Touchscreen ELAN2514 not properly detected in HP envy x360 15-eu0718ng

The touchscreen on my HP env x360 15-eu0718ng convertible laptop is working with basic functionality (that is, I can click), but is not properly detected as a touchscreen so neither configuration, two-finger scrolling or automatic on-screen keyboard display are working.

From /proc/bus/input/devices, I found out that it’s an ELAN2514 with a yet unknown device id 04f3:2cf9:

I: Bus=0018 Vendor=04f3 Product=2cf9 Version=0100
N: Name="ELAN2514:00 04F3:2CF9"
P: Phys=i2c-ELAN2514:00
S: Sysfs=/devices/platform/AMDI0010:02/i2c-0/i2c-ELAN2514:00/0018:04F3:2CF9.0001/input/input21
U: Uniq=
H: Handlers=event7 mouse2 
B: PROP=2
B: EV=1b
B: KEY=400 0 0 0 0 0
B: ABS=3273800000000003
B: MSC=20

That id is not present in any file in /usr/share/libwacom. I tried adding it manually to elan-2514.tablet, but that didn’t change a thing. Now I am unsure how to proceed to get this supported?

Hello @supermihi and welcome :wink:

Probably you need to add this?

File: /etc/X11/xorg.conf.d/00-touchscreen.conf

Section "InputClass"
    Identifier "Elan driver override"
    MatchUSBID "04f3:*"
    MatchDevicePath "/dev/input/event*"
    MatchIsTablet "true"
    Driver "wacom"
EndSection

Found here: Add support for HP Spectre x360 Convertible 15-df0xxx · Issue #70 · linuxwacom/wacom-hid-descriptors · GitHub

Hi @megavolt,
thanks for your hint! After adding that file, situation somewhat improves, as now:

$ xinput list-props 9
Device 'ELAN2514:00 04F3:2CF9':
	Device Enabled (162):	1
	Coordinate Transformation Matrix (164):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Calibration Matrix (303):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Calibration Matrix Default (304):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Send Events Modes Available (286):	1, 0
	libinput Send Events Mode Enabled (287):	0, 0
	libinput Send Events Mode Enabled Default (288):	0, 0
	Device Node (289):	"/dev/input/event9"
	Device Product ID (290):	1267, 11513

However, Gnome settings still say “no Wacom tablet connected”, so I cannot configure anything, and multi-touch scrolling etc. still do not work.