# how to activate/enable automatic screen blank after x minutes and wake up on touch again

**URL:** https://dietpi.com/forum/t/how-to-activate-enable-automatic-screen-blank-after-x-minutes-and-wake-up-on-touch-again/3981
**Category:** General Discussion
**Created:** [5 April 2020 16:38 UTC](https://dietpi.com/forum/t/how-to-activate-enable-automatic-screen-blank-after-x-minutes-and-wake-up-on-touch-again/3981 "2020-04-05T16:38:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![QLink](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/q/bcef8e/32.png) [@QLink](https://dietpi.com/forum/u/QLink)
#### Post date: [5 April 2020 16:38 UTC](https://dietpi.com/forum/t/how-to-activate-enable-automatic-screen-blank-after-x-minutes-and-wake-up-on-touch-again/3981/1 "2020-04-05T16:38:56Z")

</div>

hi guys,

i’m planning to use my raspi 4 with dietpi + original 7 inch touch screen for homeautomation use mounted on a wall.  
i can’t find any settings in dietpi-config where i can set screensaver settings or powersaving settings for touch screen.

i want dietpi to turn off/blank screen after x minutes of no input activity.  
i want dietpi to turn on/wake screen when touch input is recognized.

nice2have would be if turn on/off could also be faded because it would look much nicer, but that’s just nice2have …

is it possible to get these things working with dietpi “onboard” features or do i have to install things like [backlight dimmer](https://github.com/DougieLawson/backlight_dimmer/blob/master/README.md) or [rpi-backlight](https://github.com/linusg/rpi-backlight) ?

best regards

---

<div class="post-metadata">

### Author: ![pkoevesdi](https://dietpi.com/forum/user_avatar/dietpi.com/pkoevesdi/32/2051_2.png) [@pkoevesdi](https://dietpi.com/forum/u/pkoevesdi)
#### Post date: [17 September 2023 11:54 UTC](https://dietpi.com/forum/t/how-to-activate-enable-automatic-screen-blank-after-x-minutes-and-wake-up-on-touch-again/3981/2 "2023-09-17T11:54:13Z")

</div>

For future reference, this works for me:

> [@Enable screensaver/blank screen for RPi touchscreen](https://dietpi.com/forum/t/enable-screensaver-blank-screen-for-rpi-touchscreen/3126/8):
>
> I’ve been looking for a way to get the screen turn off after some time automatically for a few days now. Putting my tweaked script into this folder was the only working solution after manually disabling xscreensaver. Thanks. For my my own future reference. #!/bin/bash DISPLAY=:0 xset dpms 60 60 60

Only problem: the touch gets recognized as input, which is stupid. The user doesn’t see anything, but can do anything.  
For reference, I asked this here: [Don't recognize wake touch as input](https://dietpi.com/forum/t/dont-recognize-wake-touch-as-input/17895)
