Comment 8 for bug 1501041

Revision history for this message
Doug McMahon (mc3man) wrote : Re: No visible display in ubuntu session when using nvidia drivers via nvidia-prime until screen goes to sleep, then waked up

What happens in an ubuntu session is -
After logging in, no display. If the session is left inactive until display is put to sleep, then awakining it thru keyboard or mouse brings back a visible display. (default is 5 min. of inactivity

A simple startup script via startup applications demonstrates -
script in ~/bin

#!/bin/bash
xset dpms force off
xset dpms force on

~/.config/autostart/unblank.desktop

[Desktop Entry]
Type=Application
Exec=unblank1
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=unblank
X-GNOME-Autostart-Delay=3

So with above in place after the blind login > 3 secs > visible display is returned

It's been suggested that xorg.conf needs some serverflags, ie.

Section "ServerFlags"
        Option "BlankTime" "0"
        Option "OffTime" "0"
EndSection

Though not effective here as a standalone section & if there is an xorg.conf solution then it needs to be patched into ubuntu-drivers-common