0

I am using arch linux with i3wm. If the computer is idle for I believe 10 minutes, the computer screen will go black. For some reason this causes a weird glitch with firefox which makes me have to restart the computer. So I want to prevent the computer from auto-suspending. Where/how can I do that?

I'd like to know how to do this without installing any packages.

1

I added the following into my .xinitrc and it works fine:

xset s off
xset -dpms
xset s noblank

for further informations see the man page of xset

EDIT: Just realised, my answer is already given in a comment on an other answer

0

I recommend you to use Caffeine-ng: https://github.com/caffeine-ng/caffeine-ng . It is a little status bar application that prevents the activation of both the screensaver and sleep / suspend mode.

You can install it on Arch Linux using the AUR package caffeine-ng:

$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/caffeine-ng.tar.gz
$ tar -xvf caffeine-ng.tar.gz
$ cd caffeine-ng/
$ makepkg
$ sudo pacman -U caffeine-ng-*-any.pkg.tar.xz
  • I'd rather do this without installing extra packages because: 1) I want to know how my system works and how to tweak its settings; 2) I don't like having too much packages bloating my system. – RUBEN GONÇALO MOROUÇO Dec 12 '19 at 20:54
  • In that case, try: xset s noblank; xset s off; xset -dpms – Achraf Cherti Dec 13 '19 at 22:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.