18027
|
1 |
/*
|
|
2 |
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
*
|
|
4 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
5 |
* copy of this software and associated documentation files (the
|
|
6 |
* "Software"), to deal in the Software without restriction, including
|
|
7 |
* without limitation the rights to use, copy, modify, merge, publish,
|
|
8 |
* distribute, and/or sell copies of the Software, and to permit persons
|
|
9 |
* to whom the Software is furnished to do so, provided that the above
|
|
10 |
* copyright notice(s) and this permission notice appear in all copies of
|
|
11 |
* the Software and that both the above copyright notice(s) and this
|
|
12 |
* permission notice appear in supporting documentation.
|
|
13 |
*
|
|
14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
17 |
* OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
18 |
* HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
|
19 |
* INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
|
20 |
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
|
21 |
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
|
22 |
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
23 |
*
|
|
24 |
* Except as contained in this notice, the name of a copyright holder
|
|
25 |
* shall not be used in advertising or otherwise to promote the sale, use
|
|
26 |
* or other dealings in this Software without prior written authorization
|
|
27 |
* of the copyright holder.
|
|
28 |
*
|
|
29 |
*/
|
|
30 |
|
|
31 |
Allow xset dpms settings to override .xscreensaver.
|
|
32 |
|
|
33 |
|
|
34 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.11/driver/timers.c xscreensaver-5.11/driver/timers.c
|
|
35 |
--- xscreensaver-5.11/driver/timers.c 2009-05-27 17:19:00.463193000 -0700
|
|
36 |
+++ xscreensaver-5.11/driver/timers.c 2009-05-27 17:19:17.662370000 -0700
|
|
37 |
@@ -1499,6 +1499,8 @@ watchdog_timer (XtPointer closure, XtInt
|
|
38 |
|
|
39 |
/* If the DPMS settings on the server have changed, change them back to
|
|
40 |
what ~/.xscreensaver says they should be. */
|
|
41 |
+ /* mali- No!! if someone uses xset then let the changes be picked by
|
|
42 |
+ * xscreensaver...do not have to regulate everything from .xscreensaver.
|
|
43 |
sync_server_dpms_settings (si->dpy,
|
|
44 |
(p->dpms_enabled_p &&
|
|
45 |
p->mode != DONT_BLANK),
|
|
46 |
@@ -1506,6 +1508,7 @@ watchdog_timer (XtPointer closure, XtInt
|
|
47 |
p->dpms_suspend / 1000,
|
|
48 |
p->dpms_off / 1000,
|
|
49 |
False);
|
|
50 |
+ **/
|
|
51 |
|
|
52 |
if (si->screen_blanked_p)
|
|
53 |
{
|
|
54 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.11/driver/xscreensaver.c xscreensaver-5.11/driver/xscreensaver.c
|
|
55 |
--- xscreensaver-5.11/driver/xscreensaver.c 2009-05-27 17:19:00.469448000 -0700
|
|
56 |
+++ xscreensaver-5.11/driver/xscreensaver.c 2009-05-27 17:19:17.663626000 -0700
|
|
57 |
@@ -1528,6 +1528,10 @@ main (int argc, char **argv)
|
|
58 |
init_sigchld ();
|
|
59 |
|
|
60 |
disable_builtin_screensaver (si, True);
|
|
61 |
+/*****
|
|
62 |
+ mali- this may need to be taken out in future if it hinders user
|
|
63 |
+ setting dpms values through xset.
|
|
64 |
+ *****/
|
|
65 |
sync_server_dpms_settings (si->dpy,
|
|
66 |
(p->dpms_enabled_p &&
|
|
67 |
p->mode != DONT_BLANK),
|