You’ve installed Xubuntu 22.04 on your laptop and things are going smoothly… Then you close the lid on your laptop and discover when you open it back up again that when you move the mouse it moves, but you cannot right or left click for some reason?
The work around we found that appears to fix this is to edit the file:
sudo vi /etc/UPower/UPower.conf
In this file there’s a line that says:
IgnoreLid=false
Change this to:
IgnoreLid=true
Make sure you spell true with a small “t,” if you use a capital for True, it won’t be recognized. Try restarting and now you should be able to open and close the lid without the mouse locking the left and right click.