I often close my laptop lid to save space on my desk while the computer is connected to external monitors and input devices.
When I first plug my external touchpad (a Seenda MOS400) into the laptop, it works great. As soon as I close the lid, the computer stops responding to the touchpad. The computer is definitely not going into suspend or logging me out, because the external monitors and keyboard continue to work without interruption with the lid closed. If I unplug and re-plug the trackpad while the lid is closed, the computer notices and starts responding to it again.
I have had this problem with a Dell XPS 13 9380 and a newer 9340, under both Ubuntu 22.04 and 24.04, but I'm presently on 24.04 so that's the one I'd like to find a fix for.
The output of xinput --list, which I've seen mentioned in similar questions, is as follows (it's the same whether the touchpad is working or not):
WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ xwayland-pointer:15 id=6 [slave pointer (2)]
⎜ ↳ xwayland-relative-pointer:15 id=7 [slave pointer (2)]
⎜ ↳ xwayland-pointer-gestures:15 id=8 [slave pointer (2)]
⎜ ↳ xwayland-touch:15 id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ xwayland-keyboard:15 id=9 [slave keyboard (3)]
I have tried the rmmod and modprobe commands mentioned here while the touchpad was not responding, but they did not seem to have any effect, though, granted, there was an error message:
$ sudo rmmod i2c_hid
rmmod: ERROR: Module i2c_hid is in use by: i2c_hid_acpi
$ sudo modprobe i2c_hid
$
I'm happy to add any other information that would help diagnose or fix this!