Steam for Linux > Limited Beta > Topic Details
ribeiro.breno Dec 8, 2012 @ 12:50pm
Screensaver and power management workaround
TF2 beta does not prevent screensaver and power management to be activated while in fullscreen.

This bothered me while playing TF2 beta and leaving it alone for a while, so I have used a workaround:
1 - Grab this script:
2 - Add these lines to the function "isAppRunning" before the line with "return 0":
if [[ "$activ_win_title" = *hl2_linux* ]];then
#check if hl2 is running.
hl2_process=`pgrep -flc hl2_linux`
if [ $hl2_process -ge 1 ]; then
return 1
3 - Run the script
(in my system, this works "./ 290 &", where 290 is the time between each cycle of the script... you might want to change that)
Date Posted: Dec 8, 2012 @ 12:50pm
Posts: 0