Re: Re-enable trackpad after resuming from hibernate
srira...@berkeley.edu (Sriranga Veeraraghavan), 2022.10.24 (Mon) 10:18 (CEST): > 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. When running X.Org things from hotplugd or apmd, remember these run as root and aren't allowed to run commands in your X environment. /usr/bin/su -l -s /bin/sh \ -c "xinput --enable /dev/wsmouse2" That might do the job. Possibly you have to use xhost(1) too, I do not remember atm. Marcus > Has anyone experienced something similar? If so, are there any > recommendations on how to automatically re-enabled a trackpad after > resuming from hibernate?
Re: Re-enable trackpad after resuming from hibernate
On 2022-10-24, Sriranga Veeraraghavan 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.
Re-enable trackpad after resuming from hibernate
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? Thanks, -ranga