author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 08 Jul 2012 13:31:00 +0300 | |
changeset 1326 | 8aac6cb8518d |
parent 1282 | ee37f47fd026 |
child 1334 | 9bf0d5a1f0cf |
permissions | -rw-r--r-- |
1281
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
======= |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
Xorg. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
======= |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
Where find info? |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
================ |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
$ man 5 xorg.cong |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
Enable Ctrl+Alt+Backspace. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
========================== |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
$ cat /etc/X11/xorg.conf |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
Section "ServerFlags" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
Option "DontZap" "false" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
EndSection |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
How set standby time? |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
===================== |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
Put something like this in xorg.cong:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
Section "ServerFlags" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
# Disallows the use of the Ctrl+Alt+Keypad-Plus and Ctrl+Alt+Keypad-Minus. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
Option "DontZoom" "true" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
# Blank phase of the screensaver. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
#Option "BlankTime" "0" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
# Standby phase of DPMS mode. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
Option "StandbyTime" "10" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
# |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
#Option "SuspendTime" "0" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
# |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
#Option "OffTime" "0" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
EndSection |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
Time measure in minute. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
41 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
To enable this configuration you must set "DPMS" option in "Monitor" section:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
Section "Monitor" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
Option "DPMS" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
47 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
EndSection |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
50 |
To view current DPMS settings:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
51 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
52 |
$ xset q |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
53 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
54 |
To disable DPMS for current session use command:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
55 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
56 |
$ xset -dpms |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
57 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
58 |
To turn off monitor use:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
59 |
|
1282 | 60 |
$ sleep 1; xset dpms force off |
61 |
||
62 |
See: |
|
63 |
||
64 |
* https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling |
|
1281
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
66 |
Set display dimensions. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
67 |
======================= |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
69 |
To see currect settings type:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
70 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
71 |
$ xdpyinfo | grep dimensions: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
72 |
dimensions: 1280x1024 pixels (382x302 millimeters) |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
73 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
74 |
From this dimensions calculated your display dpi resolution:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
75 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
76 |
$ xdpyinfo | grep resolution: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
77 |
resolution: 85x86 dots per inch |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
78 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
79 |
To set dimensions edit '/etc/X11/xorg.conf' (size in mm):: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
80 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
81 |
$ cat /etc/X11/xorg.conf |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
82 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
83 |
Section "Monitor" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
84 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
85 |
DisplaySize width height |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
86 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
87 |
EndSection |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
88 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
89 |
Overriding EDID Settings for NVidia cards. |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
------------------------------------------ |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
91 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
92 |
If you're using NVIDIA display drivers version 8756 or above and your monitor |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
93 |
reports an EDID DPI value, you must tell the drivers to ignore this value as |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
94 |
it takes precedence over all the above configuration options/arguments:: |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
95 |
|
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
96 |
Section "Monitor" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
97 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
98 |
DisplaySize width height |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
99 |
Option "UseEdidDpi" "false" |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
100 |
... |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
101 |
EndSection |
c8ba8ba3c0c9
view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
102 |