Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Screen goes blank while actively playing games
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
gcrew
Tux's lil' helper
Tux's lil' helper


Joined: 22 Feb 2005
Posts: 82
Location: Poughkeepsie, NY

PostPosted: Mon Jan 16, 2012 8:15 pm    Post subject: Screen goes blank while actively playing games Reply with quote

Lately I've been playing a fullscreen game which I can play with my Logitech Dual Action USB controller, and occasional keyboard input.

If I haven't used the keyboard, my screen will go blank after about 15 minutes.

I've read around and found that there are various reasons why my screen will go blank based on setterm, X or kernel settings, etc. I don't really want to turn these off or change the default settings for my machine. I'd rather not even temporarily change my settings just while playing.

What I'm really looking for is a way to have my USB controller count as a source of input so my screen doesn't turn off.

Thanks for any advice.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2390
Location: Germany

PostPosted: Mon Jan 16, 2012 10:53 pm    Post subject: Reply with quote

Hello!

Just try to deactivate the balckscreen or powersave option. Here are some settings that i use, if i want to run a dvd without black screen during inactivity. This should work for your game too!

1.xset -dpms
Code:
-dpms   The -dpms option disables DPMS (Energy Star) features.


2. setterm -blank

Code:

-blank [0-60|force|poke] (virtual consoles only)
              Sets  the  interval  of  inactivity, in minutes, after which the
              screen will be automatically blanked (using APM  if  available).
              Without an argument, gets the blank status (returns which vt was
              blanked or zero for unblanked vt).

              The force option keeps screen blank even if a key is pressed.

              The poke option unblank the screen.


And i used them with a small shell script:

Code:
#!/bin/bash
xset -dpms
setterm -blank
$RUN_GAME_COMMAND


Maybe you need to disable these settings after gaming manually.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2569
Location: Here and Away Again

PostPosted: Tue Jan 17, 2012 11:23 am    Post subject: Reply with quote

I guess one could do something like

Code:
xset -dpms
setterm -blank
game &&
xset +dpms
setterm +blank

so that there would be no manual need to set them after the game or whatever command finishes (the && meaning the rest of the commands come after 'game' has finished properly).
Just an idea there, it might not work just like that, but I think it should be possible in a way something like this.

I can't quite try it out right now myself. =/
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum