xorg.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:28:53 +0200
changeset 2227 1e9323e7ec88
parent 1912 8b81a8f0f692
child 2228 837f1337c59b
permissions -rw-r--r--
Removed files: I don't longer have interest on topic.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1282
diff changeset
     1
.. -*- coding: utf-8; -*-
1281
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
=======
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 Xorg.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
=======
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1282
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     7
   :local:
1281
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
Where find info?
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
================
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
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
  $ man 5 xorg.cong
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
Enable Ctrl+Alt+Backspace.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
==========================
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
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
  $ cat /etc/X11/xorg.conf
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
  Section "ServerFlags"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
        Option      "DontZap" "false"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
  EndSection
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
How set standby time?
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
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
Put something like this in xorg.cong::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
  Section "ServerFlags"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
      # 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
    32
      Option "DontZoom"       "true"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
      # Blank phase of the screensaver.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
      #Option "BlankTime"      "0"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
      # Standby phase of DPMS mode.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
      Option "StandbyTime"     "10"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
      #
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
      #Option "SuspendTime"    "0"
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
      #Option "OffTime"        "0"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
  EndSection
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
Time measure in minute.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
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
    46
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
  Section "Monitor"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
      Option "DPMS"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
  EndSection
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
To view current DPMS settings::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
  $ xset q
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
To disable DPMS for current session use command::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
  $ xset -dpms
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
To turn off monitor use::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
1282
ee37f47fd026 Add link.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1281
diff changeset
    63
  $ sleep 1; xset dpms force off
ee37f47fd026 Add link.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1281
diff changeset
    64
ee37f47fd026 Add link.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1281
diff changeset
    65
See:
ee37f47fd026 Add link.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1281
diff changeset
    66
ee37f47fd026 Add link.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1281
diff changeset
    67
 * https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling
1281
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
Set display dimensions.
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
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
To see currect settings type::
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
  $ xdpyinfo | grep   dimensions:
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
  dimensions:    1280x1024 pixels (382x302 millimeters)
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
From this dimensions calculated your display dpi resolution::
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
  $ xdpyinfo | grep resolution:
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
  resolution:    85x86 dots per inch
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    81
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    82
To set dimensions edit '/etc/X11/xorg.conf' (size in mm)::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    83
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    84
  $ cat /etc/X11/xorg.conf
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
  Section "Monitor"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
    DisplaySize     width height
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
  EndSection
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
Overriding EDID Settings for NVidia cards.
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    93
------------------------------------------
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    94
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
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
    96
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
    97
it takes precedence over all the above configuration options/arguments::
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    99
  Section "Monitor"
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
    DisplaySize     width height
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
    Option         "UseEdidDpi"  "false"
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   103
  ...
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   104
  EndSection
c8ba8ba3c0c9 view current DPMS settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105