lid

The lid test validates that a system with an integrated display accurately detects when its lid is opened or closed. It also confirms that the system turns off the backlight accordingly. You can run this test to ensure proper display control and system response for laptop systems.

What the test covers

The lid test is only valid for systems that have integrated displays. These systems have a lid that can be opened and closed. The lid is detected by searching the udev database for a device with "lid" in its name:

E: NAME="Lid Switch"
RHEL version supported
  • RHEL 8
  • RHEL 9
  • RHEL 10
What the test does
The test uses udev parameters to determine when the lid is open or closed. It also confirms that the system can turn off the display’s backlight when the lid is closed.
Preparing for the test
To prepare for the test, ensure that the power management settings do not put the system to sleep. Also ensure the settings don’t trigger hibernation when the lid is closed. Make sure the lid is open before you start the test run.
Running the test

The lid test is interactive. Run the following command, then select the lid test name from the list that displays.

 rhcert-run

Answer Yes when asked if you are ready to begin the test. Close the lid when prompted and watch to see if the backlight turns off. You might need to look through the gap between the keyboard and lid to check.

This helps you verify that the backlight has turned off. Answer Yes if the backlight turns off, or No if it does not.

Run time

The lid test takes about 30 seconds to perform. This is approximately the time it takes to close the lid just enough for the backlight to turn off.

Because this test runs on laptops, a suspend test must accompany the required supportable test for each run. The suspend test adds about 6 minutes to each run, and supportable adds another minute.