I am trying to address this issue for a while, but been unable to resolve it. When I put the laptop (ThinkPad P15s Gen1) to sleep mode manually, it will not go to sleep mode, it will try to go to sleep, but wake up in a few seconds (lock screen). I have no idea how to resolve it, other than maybe reformat, which I would prefer not to do. I used to have 20.04, but ended up upgrading to 24.04 hoping it would fix, but it didn't. I also tried using a live CD to see if a fresh ubuntu 20.04 would go to sleep mode, and it did, so perhaps that means bios settings are correct?
Any help would be hugely appreciated. Thanks!
Edit: I used to have cuda installed, but I removed it to eliminate if it was causing an issue.

