Why does my Dell Latitude 7420 (Windows 11) turn off the display and locks after inactivity despite sleep and display timeouts set to “Never?”

I am trying to fix a Dell Latitude Dell Latitude 7420 running Windows 11. Despite the laptop sleep settings being set to never for both battery in windows settings and control panel, the laptop still sleeps (in which the computer locks and has to be signed in again).

So far, I have tried the following:

  • Ran Dell command update.

  • Used elevated command prompt shown below to force Windows to disable automatic sleep and hibernation.

    powercfg /change standby-timeout-ac 0
    powercfg /change standby-timeout-dc 0
    powercfg /change hibernate-timeout-ac 0
    powercfg /change hibernate-timeout-dc 0
    
  • Checked if there were any presence/motion related settings that would have caused the device to sleep if I moved away.