Re: new laptop ASUS vivobook max X541SA problem

From: Wojciech Puchar <wojtek_at_puchar.net>
Date: Sun, 23 Jul 2023 12:39:30 UTC
for hms or hmt working at first iichid must work but doesn't. anyway i 
tried loading what you specified - no effect.
> _On 7/20/23 17:37, Wojciech Puchar wrote:
>> everything works under FreeBSD except touchpad
>> i can use this computer without problem after connecting external USB mouse 
>> but
>> it's not how i like it ;)
>> iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
>> iichid0: <ELAN1200:01 04F3:3067 I2C HID device> at addr 0x15 on iicbus0
>> iichid0: Interrupt setup failed
>> 
>> how to fix it? thank you
>> 
>
> Hello.
>
> I know nothing about your laptop, so this is a shot in the dark... but I'll 
> compare with mine (StarLite).
>
>
>
> First, I get "Interrupt setup failed"; actually, I get "Interrupt setup 
> failed. Fallback to sampling".

the problem is that it doesn't fallback to sampling i think.
what i found in sources

#ifdef IICHID_SAMPLING                 device_printf(sc->dev, 
"Interrupt setup failed. Fallback to sampling\n"); 
sc->sampling_rate_slow = IICHID_SAMPLING_RATE_SLOW; #else


added options IICHID_SAMPLING compiled kernel and works now.

iichid0: <ELAN1200:01 04F3:3067 I2C HID device> at addr 0x15 on iicbus0 
iichid0: Interrupt setup failed. Fallback to sampling
hidbus0: <HID bus> on iichid0
hms0: <ELAN1200:01 04F3:3067 Mouse> on hidbus0

works completely, no problems. thank you very much