Portál AbcLinuxu, 14. listopadu 2025 18:23
Řešení dotazu:
xset q a nastavenia DPMS. To druhá záleží od použitého prostredia.
Log o tom asi nenájdeš.
anf3@tyh1:~$ xset -q
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 20/10 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0 WhitePixel: 16777215
Font Path:
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins
DPMS (Energy Star):
Standby: 600 Suspend: 600 Off: 600
DPMS is Enabled
Monitor is On
xset to nastaví pre práve bežiaci X server. Po reboote to bude naspäť. Asi by si chcel upraviť /etc/X11/xorg.conf (Option "DPMS" "false", alebo optiony StandbyTime, SuspendTime, OffTime).
# This is a sample xorg.conf. All sections are commented out, but may # be uncommented in order to enable them. You'll almost definitely # need to edit the values given here to suit your own system. # # It is not recommended to uncomment any more than is necessary, as # the server will choose good defaults in most cases. Thus, your # xorg.conf should only be used to override the server when those # defaults are incorrect for your system. # # For full documentation see xorg.conf(5) # Section "Files" # FontPath "/usr/share/fonts/X11/100dpi" # FontPath "/usr/share/fonts/X11/75dpi" # FontPath "/usr/share/fonts/X11/cyrillic" # FontPath "/usr/share/fonts/X11/misc" # FontPath "/usr/share/fonts/Type1" # ModulePath "/usr/lib/xorg/modules" # EndSection # Section "ServerFlags" # Option "DontZap" "False" # Option "DefaultServerLayout" "Layout" # Option "AllowMouseOpenFail" "False" # Option "AllowEmptyInput" "True" # Option "AutoAddDevices" "True" # EndSection # Section "Module" # Load "glx" # EndSection # Section "Extensions" # Option "Composite" "Enable" # EndSection # Section "InputDevice" # Identifier "Keyboard" # Driver "kbd" # Option "CoreKeyboard" # Option "XkbRules" "xorg" # Option "XkbModel" "pc105" # Option "XkbLayout" "us" # EndSection # Section "InputDevice" # Identifier "Mouse" # Driver "mouse" # Option "CorePointer" # Option "Device" "/dev/input/mice" # Option "Protocol" "ExplorerPS/2" # EndSection # Section "Device" # Identifier "Video Card" # Driver "vesa" # Option "AccelMethod" "EXA" # Option "Monitor-LVDS" "Monitor1" # Option "Monitor-VGA" "Monitor2" # EndSection # Section "Device" # Identifier "Internal Graphics Card We Disable" # Option "Ignore" "true" # BusID "PCI:1:0:0" # EndSection # Section "Monitor" # Identifier "Monitor1" # DisplaySize 304 228 # EndSection # Section "Monitor" # Identifier "Monitor2" # HorizSync 24-82 # VertRefresh 55-77 # Option "RightOf" "Monitor1" # EndSection # Section "Screen" # Identifier "Screen" # Device "Video Card" # Monitor "Monitor" # DefaultDepth 24 # SubSection "Display" # Depth 24 # Virtual 3072 1200 # EndSubSection # EndSection # Section "ServerLayout" # Identifier "Layout" # Screen "Screen" # InputDevice "Keyboard" # InputDevice "Mouse" # EndSection
# This is a sample xorg.conf. All sections are commented out, but may
# be uncommented in order to enable them. You'll almost definitely
# need to edit the values given here to suit your own system.
#
# It is not recommended to uncomment any more than is necessary, as
# the server will choose good defaults in most cases. Thus, your
# xorg.conf should only be used to override the server when those
# defaults are incorrect for your system.
#
# For full documentation see xorg.conf(5)
# Section "Files"
# FontPath "/usr/share/fonts/X11/100dpi"
# FontPath "/usr/share/fonts/X11/75dpi"
# FontPath "/usr/share/fonts/X11/cyrillic"
# FontPath "/usr/share/fonts/X11/misc"
# FontPath "/usr/share/fonts/Type1"
# ModulePath "/usr/lib/xorg/modules"
# EndSection
# Section "ServerFlags"
# Option "DontZap" "False"
# Option "DefaultServerLayout" "Layout"
# Option "AllowMouseOpenFail" "False"
# Option "AllowEmptyInput" "True"
# Option "AutoAddDevices" "True"
# EndSection
# Section "Module"
# Load "glx"
# EndSection
# Section "Extensions"
# Option "Composite" "Enable"
# EndSection
# Section "InputDevice"
# Identifier "Keyboard"
# Driver "kbd"
# Option "CoreKeyboard"
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# EndSection
# Section "InputDevice"
# Identifier "Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ExplorerPS/2"
# EndSection
# Section "Device"
# Identifier "Video Card"
# Driver "vesa"
# Option "AccelMethod" "EXA"
# Option "Monitor-LVDS" "Monitor1"
# Option "Monitor-VGA" "Monitor2"
# EndSection
# Section "Device"
# Identifier "Internal Graphics Card We Disable"
# Option "Ignore" "true"
# BusID "PCI:1:0:0"
# EndSection
Section "Monitor"
Option "DPMS"
# Identifier "Monitor1"
# DisplaySize 304 228
EndSection
# Section "Monitor"
# Identifier "Monitor2"
# HorizSync 24-82
# VertRefresh 55-77
# Option "RightOf" "Monitor1"
# EndSection
# Section "Screen"
# Identifier "Screen"
# Device "Video Card"
# Monitor "Monitor"
# DefaultDepth 24
# SubSection "Display"
# Depth 24
# Virtual 3072 1200
# EndSubSection
# EndSection
Section "ServerLayout"
Option "BlankTime" "0" # minuty, ne sekundy jako u prikazu xset
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
# Identifier "Layout"
# Screen "Screen"
# InputDevice "Keyboard"
# InputDevice "Mouse"
EndSection
Section "Monitor"
Identifier "Monitor1"
Option "DPMS"
EndSection
Section "ServerLayout"
Identifier "Monitor1"
Option "BlankTime" "0" # Blank the screen in 10 minutes
Option "StandbyTime" "0" # Turn off screen in 20 minutes
Option "SuspendTime" "0" # Full hibernation in 30 minutes
Option "OffTime" "0" # Turn off DPMS monitor
EndSection
Vse ostatni zustalo zakomentovano. DPMS tak zustava "enabled" ale aspon nevypina monitor. Vic by se mi libilo mit to nejak osetrene prikazem spustenym "po spusteni". U Fedory na takove prikazy byl adresar .autostart nebo tak nejak, ale ne Debianu nevim kam bych to dal. X -configure rika ze x server uz bezi ale hlavne ze to uz jakz takz jde.
X -configure a pozorne čítaj, čo to píše.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.