Author: pebender
Date: Sun Dec 14 11:22:13 2008
New Revision: 4094

Added:
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_run_without_ss
    
(contents, props changed)
Modified:
    trunk/gar-minimyth/html/minimyth/document-changelog.txt
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_exit
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_start
     
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_term_start

Log:
- Added mm_run_without_ss
     - When run using 'mm_run_without_ss {program} [{program-arg} ...]' it  
will
       deactivate the XScreenSaver while {program} is running.



Modified: trunk/gar-minimyth/html/minimyth/document-changelog.txt
==============================================================================
--- trunk/gar-minimyth/html/minimyth/document-changelog.txt     (original)
+++ trunk/gar-minimyth/html/minimyth/document-changelog.txt     Sun Dec 14  
11:22:13 2008
@@ -12,6 +12,10 @@
      MythTV 0.21:         version 0.21.0,         release-0-21-fixes branch  
svn 19358.
      MythTV trunk:        version trunk.19357     trunk svn 19357.

+Added mm_run_without_ss
+    - When run using 'mm_run_without_ss {program} [{program-arg} ...]' it  
will
+      deactivate the XScreenSaver while {program} is running.
+
  Modified kernel
      - Enabled use of out-of-tree ALSA 1.0.18a drivers now that they  
include a
        fix for the hda-intel suspend-to-RAM problem.

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_exit
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_exit
         
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_exit
         
Sun Dec 14 11:22:13 2008
@@ -9,6 +9,4 @@

  $minimyth->x_applications_exit(':game');

-$minimyth->application_stop('mm_ss_suspend');
-
  1;

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_start
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_start
        
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_game_start
        
Sun Dec 14 11:22:13 2008
@@ -246,11 +246,8 @@
          die join("\n", '', "error: console name $game_console has no valid  
emulator.",  '', @{usage()}) . "\n";
      }

-    # Suspend screen saver while the emulator is running.
-    system(qq(/usr/bin/mm_ss_suspend $program));
-
-    # Run the emulator.
-    system(join(' ', $emulator->{'program'}, @{$emulator->{'argument'}},  
qq('$game_file')));
+    # Run the emulator with the screen saver deactivated.
+    system(join(' ', '/usr/bin/mm_run_without_ss', $emulator->{'program'},  
@{$emulator->{'argument'}}, qq('$game_file')));

      # Save game settings.
      if ($minimyth->var_get('MM_GAME_SAVE_ENABLED') eq 'yes')

Added:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_run_without_ss
==============================================================================
--- (empty file)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_run_without_ss
    
Sun Dec 14 11:22:13 2008
@@ -0,0 +1,38 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use threads;
+use threads::shared;
+
+my @command = @ARGV;
+
+sub suspend
+{
+    require MiniMyth;
+
+    my $minimyth = new MiniMyth;
+
+    my $timeout = $minimyth->var_get('MM_X_SCREENSAVER_TIMEOUT');
+    if ((! defined($timeout)) || ($timeout <= 0))
+    {
+        $timeout = 1;
+    }
+    $timeout *= 30;
+
+    while (1 == 1)
+    {
+        $minimyth->x_screensaver_deactivate();
+        sleep $timeout;
+    }
+}
+
+my $suspend_thread = undef;
+
+$suspend_thread = threads->create('suspend') || die;
+$suspend_thread->detach();
+
+system(@command);
+
+1;

Modified:  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_term_start
==============================================================================
---  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_term_start
        
(original)
+++  
trunk/gar-minimyth/script/meta/minimyth/files/source/rootfs/usr/bin/mm_term_start
        
Sun Dec 14 11:22:13 2008
@@ -16,9 +16,7 @@

  my $devnull = File::Spec->devnull;

-system(qq(/usr/bin/mm_ss_suspend $program > $devnull 2>&1 &));
-
-...@command = ('/usr/bin/rxvt', '-display', ':0.0', '-e', @command);
+...@command =  
('/usr/bin/mm_run_without_ss', '/usr/bin/rxvt', '-display', ':0.0', '-e',  
@command);

  system(@command);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to