ioi-2023 / contestant-vm

Contestant virtual machine for online IOI (since 2020)
1 stars 2 forks source link

Increase screen blank time #52

Closed horcsinbalint closed 1 year ago

horcsinbalint commented 1 year ago

It would be probably better if the machine never turned its screen off

radl97 commented 1 year ago

It is the choice of the users: I think there is a twoline script to disable screenlock (look at the manual; I have not really tried it)

pobrn commented 1 year ago

I personally use caffeine-ng, which gives you an easy way to enable/disable the screensaver/auto sleep. But it does not seem to available from the Ubuntu repos sadly.

radl97 commented 1 year ago

This is the script responsible for setting the screenlock:

https://github.com/ioi-2023/contestant-vm/blob/a262ca0590a3f27d72652c57b4ba8d56cf9632a0/bin/ioiconf.sh#L194

Which is documented here.

https://github.com/ioi-2023/contestant-vm/blob/a262ca0590a3f27d72652c57b4ba8d56cf9632a0/html/manual.html#L117

Hence, we can close this issue. If I have misunderstood something, feel free to reopen this issue.

Note that personally I think that it's not good disabling automatic screen saver by default -- if a user does not care, have a safer default (does not burn an image on the screen -- not even during testing).