| View previous topic :: View next topic |
| Author |
Message |
gcrew Tux's lil' helper


Joined: 22 Feb 2005 Posts: 82 Location: Poughkeepsie, NY
|
Posted: Mon Jan 16, 2012 8:15 pm Post subject: Screen goes blank while actively playing games |
|
|
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 |
|
 |
ChrisJumper Veteran

Joined: 12 Mar 2005 Posts: 1701 Location: Germany
|
Posted: Mon Jan 16, 2012 10:53 pm Post subject: |
|
|
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 |
|
 |
Chiitoo l33t


Joined: 28 Feb 2010 Posts: 616 Location: Finland
|
Posted: Tue Jan 17, 2012 11:23 am Post subject: |
|
|
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. =/ _________________ Kind Regards,
The Noob Unlimited
~sore wa sore kore wa kore~ |
|
| Back to top |
|
 |
ashjeny n00b

Joined: 10 Mar 2012 Posts: 3 Location: australia
|
Posted: Mon Mar 12, 2012 7:33 am Post subject: re |
|
|
| Very nice forum. Players are main part in game. all game depend player. |
|
| Back to top |
|
 |
|