--- a/915resolution.c	2011-04-20 17:45:52.000000000 +0200
+++ b/915resolution.c	2011-06-26 19:49:35.518220179 +0200
@@ -66,7 +66,7 @@
 
 GRUB_MOD_LICENSE ("GPLv3+");
 
-#define printf					grub_printf
+#define printf(args...)				quiet?0:(grub_printf(args))
 #define malloc					grub_malloc
 #define free					grub_free
 #define strcmp					grub_strcmp
@@ -102,6 +102,8 @@
 
 #define DEBUG 0
 
+int quiet;
+
 typedef unsigned char * address;
 typedef unsigned char byte;
 typedef unsigned short word;
@@ -781,7 +783,7 @@
 
     *list = *mode = *x = *y = *raw = *htotal = *vtotal = 0;
     *bp = 0;
-
+    quiet = 0;
     *forced_chipset = CT_UNKWN;
     
 
@@ -868,7 +870,16 @@
             return 0;
         }
     }
-    
+
+    if ((argc > index) && !strcmp(argv[index], "-q")) {
+        quiet = 1;
+        index++;
+
+        if(argc<=index) {
+            return 0;
+        }
+    }
+  
     if (argc-index < 3 || argc-index > 6) {
         return -1;
     }
@@ -903,13 +914,14 @@
 }
 
 static void usage(void) {
-    printf("Usage: 915resolution [-c chipset] [-l] [mode X Y] [bits/pixel] [htotal] [vtotal]\n");
+    printf("Usage: 915resolution [-c chipset] [-l] [-r] [-q] [mode X Y] [bits/pixel] [htotal] [vtotal]\n");
     printf("  Set the resolution to XxY for a video mode\n");
     printf("  Bits per pixel are optional.  htotal/vtotal settings are additionally optional.\n");
     printf("  Options:\n");
     printf("    -c force chipset type (THIS IS USED FOR DEBUG PURPOSES)\n");
     printf("    -l display the modes found in the video BIOS\n");
     printf("    -r display the modes found in the video BIOS in raw mode (THIS IS USED FOR DEBUG PURPOSES)\n");
+    printf("    -q don't write any output\n");
 }
 
 static int main (int argc, char *argv[])
@@ -917,10 +929,13 @@
     vbios_map * map;
     cardinal list, mode, x, y, bp, raw, htotal, vtotal;
     chipset_type forced_chipset;
-    
+    int parse_args_ret;
+
+    parse_args_ret = parse_args(argc, argv, &forced_chipset, &list, &mode, &x, &y, &bp, &raw, &htotal, &vtotal); 
+ 
     printf("Intel 800/900 Series VBIOS Hack : version %s\n\n", RES915_VERSION);
 
-    if (parse_args(argc, argv, &forced_chipset, &list, &mode, &x, &y, &bp, &raw, &htotal, &vtotal) == -1) {
+    if (parse_args_ret == -1) {
         usage();
         return 2;
     }
