[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695270: add support for disabling DPMS via preseeding



user events@debian.org
usertags 695270 + events-hardware
thanks

Hi there!

On Thu, 06 Dec 2012 13:19:06 +0100, Holger Levsen wrote:
> On Samstag, 26. Februar 2011, Cyril Brulebois wrote:
>> > So my best guess would be that X has DPMS enabled by
>> > default, and if installation takes to long, it sends the monitor to
>> > sleep?
>> I guess it might make sense to support passing additional options to X
>> through d-i. In this case, you might want to try passing
>
> yes, please add support for this via preseeding. (I hope I submitted this to 
> the right package.)

Holger, the Debian Events Team thanks you for the wishlist bug :-)

The original report you replied to came from Alexander Reichle-Schmehl
working on BabelBox on February 2011:

  <http://lists.debian.org/20110226132347.GG15429@melusine.alphascorpii.net>

And Per Andersson (Cc:ed) and myself recently experienced the same:

  <http://lists.debian.org/CABYrXSSEEYzt9im87NOZQJMXtYMrcn_hMBLnJ8=80_8oSGZ-og@mail.gmail.com>

For the BTS, I am including below the latest solution Cyril (Cc:ed)
suggested, which I have not tried yet:

  <http://lists.debian.org/20121115000105.GB5080@mraw.org>

Thx, bye,
Gismo / Luca

On Thu, 15 Nov 2012 01:01:05 +0100, Cyril Brulebois wrote:
> Ben Hutchings <ben@decadent.org.uk> (14/11/2012):
>> Well those are useful for a nostalgia trip but I can't quite see how
>> they would help to solve the screen-blanking problem.
>> 
>> If you're using the graphical installer then you presumably need to
>> disable the X screen blanker somehow.  That might require adding a check
>> to the relevant udeb.
>
> Picking xset from the x11-xserver-utils package might be a plan, but
> that one is linked against libXmuu.so.1 which isn't provided by any
> udebs. It appears there are only two XmuPrintDefaultErrorMessage()
> calls in xset/xset.c, which you can patch out, leading you to an
> xset (ELF) binary you could include in your images.
>
> I'm attaching a patch to that effect, recipe:
>   apt-get source x11-xserver-utils
>   # apply patch, install b-deps as needed
>   cd xset
>   autoreconf -vfi
>   ./configure
>   make
>
> I haven't checked what happens in a d-i environment with the
> resulting xset program, but you should be able to try:
>   ./xset dpms force on
>
> after having pulled it there.
>
> Mraw,
> KiBi.
>

--8<---------------cut here---------------start------------->8---
diff --git a/xset/configure.ac b/xset/configure.ac
index 513b023..87a12e3 100644
--- a/xset/configure.ac
+++ b/xset/configure.ac
@@ -41,7 +41,7 @@ XORG_DEFAULT_OPTIONS
 AC_CHECK_FUNCS([usleep])
 
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XSET, [xproto >= 7.0.17 xmuu])
+PKG_CHECK_MODULES(XSET, [xproto >= 7.0.17])
 
 # This is used below to allow <X11/Xlib.h> to be found
 PKG_CHECK_MODULES(SET_X11, x11)
diff --git a/xset/xset.c b/xset/xset.c
index 40fc7e1..cc530ff 100644
--- a/xset/xset.c
+++ b/xset/xset.c
@@ -59,7 +59,6 @@ in this Software without prior written authorization from The Open Group.
 #include <X11/keysym.h>
 #include <X11/Xproto.h>
 #include <X11/Xutil.h>
-#include <X11/Xmu/Error.h>
 #ifdef MITMISC
 # include <X11/extensions/MITMisc.h>
 #endif
@@ -1710,10 +1709,10 @@ local_xerror(Display *dpy, XErrorEvent *rep)
 		    progName, rep->resourceid);
 	    break;
 	  default:
-	    XmuPrintDefaultErrorMessage(dpy, rep, stderr);
+            ; /* Avoid pulling Xmu in the d-i babelbox dance */
 	}
     } else
-	XmuPrintDefaultErrorMessage(dpy, rep, stderr);
+	; /* Avoid pulling Xmu in the d-i babelbox dance */
 
     error_status = -1;
--8<---------------cut here---------------end--------------->8---

Attachment: pgpeEbP4OTQg4.pgp
Description: PGP signature


Reply to: