Image: CNET Back with Android Q, Google added a pretty nifty feature called Screen Attention, which is a display management feature that uses the device's front-facing camera to keep the display on, so long as the user is looking at the screen.
How to enable Screen Attention To enable Screen Attention, open the Settings window on your Google Pixel.
After the Advanced section expands, tap Screen Attention (Figure B).
Figure C Enabling the Screen Attention feature on a Google Pixel 4.
But other than those two caveats, the Screen Attention can really be a solid addition to the Pixel phones, especially for those who set their screen timeout to 30 seconds or less and find themselves having to randomly tap their screens to keep them from turning off.