Menu

#13 FR: joysticks and dpms

open
nobody
None
4
2003-11-21
2003-11-21
No

My X server is set to turn dpms blank on after 10
minutes without keyboard or mouse activity. When using
gxmame with joysticks, the monitor blanks in mid-play,
because the X server doesn't catch joystick presses. I
would like there to be an option in gxmame that would
deactivate dpms during play.
Here is one way this could be accomplished. Before
the rom begins to load, after a rom has been doubled
clicked, run this command: 'xset -dpms'. When the user
is done playing and presses 'escape' to quit xmame and
return to gxmame, run this command: 'xset +dpms', as
part of the process of redisplaying the frontend. This
behavior could be configurable with a check box in the
"Misc" section of the "Default Options" dialog.
Alternatively, gxmame could simply pass a user
configurable key press to the X server at a user
specified interval, attacking the problem directly.
This would have the side benefit of disabling
screensavers as well.
Unfortunately I don't have the programming
experience to create a patch to do this, but if you
ever have some free time to hack on gxmame, please
consider this feature request. Thanks for reading!

Discussion

  • Stéphane Pontier

    • labels: 431900 -->
    • priority: 5 --> 4
     
  • - 2003-11-22

    Logged In: YES
    user_id=832623

    Hi guys. I attached a script I wrote to monitor gxmame/xmame
    and adjust dpms accordingly. I think it's pretty cool. Just
    unstuff the tarball and run gxmamedisabledpms.sh from
    anywhere. Have fun!

     
  • - 2003-11-23

    Logged In: YES
    user_id=832623

    Well I spent another hour on that dpms script. It's more
    polished now; does everything I need it too. Hopefully it's
    finished.
    Thanks for making gxmame, shadow_walker. You've really built
    something great.

     
  • Stéphane Pontier

    Logged In: YES
    user_id=507424

    thanks for your script, I'll maybe put it on the website or
    in a contrib folder of the distrib.
    I took a look at your script, could you tell me why you are
    toying with ml-donkey server?

     
  • - 2003-11-28

    Logged In: YES
    user_id=832623

    Yeah, it's stupid. Whenever I try to run mldonkey and xmame
    at the same time, the sound periodically skips, and I lose
    frames. I guess I need to buy another cpu; you'd think
    1600mhz would be enough, especially considering xmame is
    opengl accelerated. At any rate, I've uploaded the script
    again, this time without the mldonkey commands. People can
    add them themselves if they need them.

     
  • - 2003-11-28
     

Log in to post a comment.