I am using a Xiaomi Mi Notebook Pro laptop. It is currently connected to an external monitor. It goes into sleep mode easily and I can't get out of it with the laptop lid closed. How can I fix this so that I can wake up from sleep mode when the laptop is closed?
My system details:
Linux 6.2.0-35-generic
Ubuntu 23.04
i5-8250U × 8
UHD Graphics 620 / (NVIDIA GeForce 150MX) but it is not displayed
I've tried everything but the keyboard and mouse do not wake up the system.