Both

Use this command to confirm if you are using X11 or Wayland:

echo $XDG_SESSION_TYPE

Xorg (X11)

Commands What it does
xset -dpms Disable Monitor power saving