Switching Monitor and Keyboard Lids on MacBook With Ubuntu Text-Based UI
If you’re using Ubuntu on a MacBook and prefer a text-based user interface, you may want to control the state of the monitor and keyboard lids. We will provide commands to switch the monitor and keyboard lids on and off, allowing you to customize your MacBook experience.
Switching Monitor Lid
To turn the monitor lid off and disable the backlight, use the following command: