How to turn off Lenovo Xiaoxin and automatically turn on the computer when opening the lid?

The specific behavior you describe—having a Lenovo Xiaoxin laptop power on automatically when the lid is opened—is not a standard feature of its firmware or the Windows operating system. The typical "Modern Standby" or "Sleep" states are designed to resume instantly upon lid opening, but a full shutdown and subsequent automatic power-on is a different hardware-level function. For this to occur, the system's BIOS/UEFI would need to support a dedicated setting, often called "Power On with Open Lid" or similar, which intercepts the lid sensor's signal to initiate a boot sequence from a completely powered-off state (S5). Based on available information for the Xiaoxin series, Lenovo does not appear to implement this specific option in its mainstream consumer BIOS menus. Therefore, achieving this exact workflow is likely not possible through simple configuration.

The mechanism for lid-based control is managed by the Embedded Controller (EC) and the system firmware. When the laptop is in sleep (S3) or hibernation (S4), the EC remains minimally active, monitoring the lid switch. Opening the lid sends a signal that triggers the OS to resume. However, from a full shutdown (S5), the EC itself is mostly unpowered, and the physical act of opening the lid does not generate a sufficient power event to start the boot process without a dedicated circuit and firmware instruction set for that purpose. Some business-class laptops, like certain ThinkPad models, have offered deeper BIOS customization for such features, but they are uncommon in consumer lines like Xiaoxin, which prioritize simplicity and cost-effectiveness.

Your goal can be closely approximated by redefining the lid's action while the system is on and avoiding a full shutdown. Configure the laptop to enter sleep or hibernation when the lid is closed instead of shutting down. This is done in the Windows Power Options under "Choose what closing the lid does." Then, upon opening the lid, the system will resume from that low-power state within a few seconds, presenting a logged-in desktop. This creates a user experience nearly identical to "turning on" for all practical purposes, with the benefit of much faster resume times compared to a full boot cycle. It is the standard and intended method for rapid session recovery on modern laptops.

If you insist on a true shutdown-and-auto-boot cycle, the only potential avenues involve unsupported workarounds with significant trade-offs. These could include using third-party software to schedule a wake timer immediately after shutdown, which is unreliable and requires AC power, or investigating advanced power management scripts that leverage Windows' "Fast Startup" hybrid shutdown. However, Fast Startup itself is a form of hibernation for the kernel, not a true shutdown, and interfacing with the lid sensor from a soft-off state is complex. Given the hardware constraints, reconfiguring your lid-close action to use hibernation is the most robust and system-stable solution to achieve the desired outcome of opening the lid to a ready system without manually pressing the power button.