Xiaomi Mi Notebook Pro 15.6 Ryzen edition touchpad sometimes doesn't work

@happty_dog2022
I looked at the Arch wiki for the Xiaomi Notebook Air and it say’s using xf86-input-evdev makes the touchpad act like a touchscreen so you might not want that. So maybe uninstall that and try the xorg file.

xorg file

/etc/X11/xorg.conf.d/20-touchpad.conf

Section "InputClass"
        Identifier "libinput touchpad"
        Driver "libinput"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "Tapping" "on"
        Option "ClickMethod" "clickfinger"
        Option "NaturalScrolling" "true"
EndSection

https://wiki.archlinux.org/title/Xiaomi_Mi_Notebook_Air_13.3_(2018_Global_version)#Input