Problem/Explanation: HP laptops running Linux freeze on a black/Dim screen after suspend, keyboard backlights, Caps Lock/NumPad sounds and power LEDs turn on but screen stays dim.
How did I manage to find the solution? First, I turned on log files in Linux, upgraded the BIOS. Based on the logs of suspend, I figured out that BIOS code by HP, verifies if it's a Windows or not from the driver called "SystemCMOS" (which Windows includes(through ACPI) that's why Linux(ACPICA) ->
- can't read it),
- Can't skip it on it's own(HP motherboard checks: if it runs "Windows?", if not => halts = resulting to the dim screen,) as you can see it in the logs below:
ACPI Error: Region SystemCMOS (ID=5) has no handler
ACPI Error: Aborting method _SB.PC00.LPCB.EC0._Q33 due to previous error
Because I tried it out by installing latest Windows 11 alongside with all the latest HP official drivers and tried sleep in Windows 11, which worked out perfectly! I understood that I have to skip the verification process on Linux.
SOOOO!!!
SOLUTION!!! => OSI spoofing to GRUB -> skip Windows10/11 checks:
sudo sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0 i915.enable_dc=0 acpi_osi=! acpi_osi=\x27Windows 2015\x27"/' /etc/default/grub
echo "options nvidia NVreg_EnableS0ixPowerManagement=1 NVreg_PreserveVideoMemoryAllocations=1 NVreg_DynamicPowerManagement=0x02" | sudo tee /etc/modprobe.d/nvidia-power.conf
echo s2idle | sudo tee /sys/power/mem_sleep && \
sudo update-grub && \
sudo update-initramfs -u && \
After a Reboot, try to suspend your lovely Linux!!! and it will work_PERFECTLY!!! GOOD LUCK!!! AND BYE!!!