Xfce Wake up display from a serial console or over ssh

My 2560x1440 monitor keeps going to sleep after a period of inactivity in xfce. I'm not sure what causes it to go to sleep. Is the the console blanking or is XFCE doing power management - Any tips on determining what process if putting the display to sleep will be appreciated. Anyway, the problem isn't the display going to sleep, it's the waking it up that that's the problem. Most of the time, I press a key and everything wakes up. But, every so now and again, it doesn't wake up. So, I press the power button and press a key and sometimes, it wakes up, but after than no amount of pressing keys, moving the mouse, or power cycling the monitor will cajole it into waking up - when I press power off and back on again it just says "going into energy saver mode" or whatever and stays dark.

Is there a way to force the monitor to wake that I can initiate over my recently implemented serial console, or over ssh? Something along the lines of restarting some service or refresh signal or whatnot?

If not, have you experienced anything similar and what did you do to "fix" it?

This is a desktop with monitor attached via displayport.
 
Looks like HD4000...

Code:
pciconf -lv
0162 subvendor=0x17aa subdevice=0x3083
    vendor     = 'Intel Corporation'
    device     = 'IvyBridge GT2 [HD Graphics 4000]'
    class      = display
    subclass   = VGA

I don't think I have another cable to try, these things are expensive... relatively :).
 
I get this sometimes with one machine with OpenBSD, more often with a MacOS machine. Usually turn monitor on/off, unplug, replug cables and then things spring back to life. But not found why it happens.

Not a very helpful answer, but it might just be one of those things, not FreeBSD specific.
 
I had similar problem once but since I've started using serverflags.conf that issue is gone.
eg. cat /usr/local/etc/X11/xorg.conf.d/serverflags.conf

Code:
Section "Monitor"
    Identifier "LVDS-1"
    Option "DPMS"   "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-1"
    Option "DPMS"   "true"
EndSection

Section "Monitor"
    Identifier  "HDMI-2"
    Option "DPMS"   "true"
EndSection

Section "ServerFlags"
    Option "BlankTime" "30"
    Option "StandbyTime" "31"
    Option "SuspendTime" "32"
    Option "OffTime" "0"
    Option "DontZap"   "off"   # Allow Ctrl+Alt+Backspace
EndSection
 
you can check if DPMS is enabled with xset, like so
Code:
tingo@kg-core2:~ $ xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000002
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    on     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:  500    repeat rate:  20
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  600    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/local/share/fonts/misc/,/usr/local/share/fonts/TTF/,/usr/local/share/fonts/OTF/,/usr/local/share/fonts/100dpi/,/usr/local/share/fonts/75dpi/,catalogue:/usr/local/etc/X11/fontpath.d,built-ins
DPMS (Display Power Management Signaling):
  Standby: 600    Suspend: 0    Off: 900
  DPMS is Enabled
  Monitor is On
back in time, my monitor / graphics card combo was misbehaving, often resulting in the monitor being off, with no obvious way of turning it on again. My workaround was
Code:
xset dpms force off ; sleep 0.1; xset dpms force on
if this or something similar works for you, you can bind it to a shortcut key, so you don't have to type it blindly every time.
 
I had similar problem once but since I've started using serverflags.conf that issue is gone.
This is interesting, Can you give a little more detail on how this works - did you disable something prior to creating the file?

I did xrandr to see what I've got by way of monitors:

Code:
xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 16384 x 16384
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1200     59.88
   1920x1080     60.00    60.00    50.00    59.94    24.00    23.98
   1920x1080i    60.00    50.00    59.94
...

And xset -q:

Code:
xset q
...
DPMS (Display Power Management Signaling):
  Standby: 600    Suspend: 0    Off: 900
  DPMS is Enabled
  Monitor is On

Do I then just create the serverflags file with something like this:

Code:
Section "Monitor"
    Identifier  "DP-2"
    Option "DPMS"   "true"
EndSection

Section "ServerFlags"
    Option "BlankTime" "30"
    Option "StandbyTime" "31"
    Option "SuspendTime" "32"
    Option "OffTime" "0"
    Option "DontZap"   "off"   # Allow Ctrl+Alt+Backspace
EndSection

and it will magically do its thing, or do I also need to change some existing settings?
 
The other thing that I have for Xorg is the driver config (Intel HD 4000) is /usr/local/etc/X11/xorg.conf.d/driver-intel.conf

Code:
Section "Device"   
         Identifier   "Card0"   
         Driver       "modesetting"   
EndSection

xset q
Code:
DPMS (Display Power Management Signaling):
  Standby: 1860    Suspend: 1920    Off: 0
  DPMS is Enabled
  Monitor is On
 
The other thing that I have for Xorg is the driver config (Intel HD 4000) is /usr/local/etc/X11/xorg.conf.d/driver-intel.conf

Code:
Section "Device"  
         Identifier   "Card0"  
         Driver       "modesetting"  
EndSection

xset q
Code:
DPMS (Display Power Management Signaling):
  Standby: 1860    Suspend: 1920    Off: 0
  DPMS is Enabled
  Monitor is On
Which driver are you using drm_kmod or the xorg intel driver?
 
Actually, I used what you provided and created:

Code:
cat /usr/local/etc/X11/xorg.conf.d/serverflags.conf
Section "Monitor"
    Identifier  "DP-2"
    Option "DPMS"   "true"
EndSection

Section "ServerFlags"
    Option "BlankTime" "2"
    Option "StandbyTime" "3"
    Option "SuspendTime" "4"
    Option "OffTime" "5"
    Option "DontZap"   "off"   # Allow Ctrl+Alt+Backspace
EndSection

Code:
cat /usr/local/etc/X11/xorg.conf.d/driver-intel.conf
Section "Device"   
         Identifier   "Card0"   
         Driver       "modesetting"   
EndSection

But it looks like BlankTime is ignored and DPMS is Disabled:

Code:
xset q
...
Screen Saver:
  prefer blanking:  no    allow exposures:  no
  timeout:  300    cycle:  300
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/local/share/fonts/misc/,/usr/local/share/fonts/TTF/,/usr/local/share/fonts/OTF/,/usr/local/share/fonts/Type1/,/usr/local/share/fonts/100dpi/,/usr/local/share/fonts/75dpi/,catalogue:/usr/local/etc/X11/fontpath.d,built-ins
DPMS (Display Power Management Signaling):
  Standby: 180    Suspend: 240    Off: 300
  DPMS is Disabled
 
Back
Top