On 2022-10-24, Sriranga Veeraraghavan <srira...@berkeley.edu> wrote: > Hi, > > I just installed OpenBSD 7.2 on my Surface Go 3, and everything seems > to work as well as it did with OpenBSD 7.1 on my Surface Go 2, except > for one thing - the trackpad is not enabled after resuming from > hibernate (the keyboard and the touch screen are enabled). I can > re-enable the trackpad manually with: > > xinput --enable /dev/wsmouse2 > > I have tried putting this in /etc/apm/resume, but it doesn’t seem to > work. > > Has anyone experienced something similar? If so, are there any > recommendations on how to automatically re-enabled a trackpad after > resuming from hibernate?
X clients need to have DISPLAY set, plus access to whatever auth is needed to connect to your X session, neither of which are usually the case from /etc/apm/resume. You can try "su $your_username -c 'env DISPLAY=:0 xinput [...]'". As for the problem in the first place, a good start would be to make a bug report that includes dmesg from boot and after resuming, plus the rest of information that sendbug(1) populates in the template. -- Please keep replies on the mailing list.