You are not logged in.

#1 2015-07-19 06:45:52

Hacksign
Member
Registered: 2012-07-30
Posts: 132

Screen flashes after lock screen with 'dm-tool lock' command

lightdm + lightdm-gtk-greeter

It is OK if I start computer normally.
But  when I locked screen with 'dm-tool lock',and light the screen again.My screen just flashes.
I can see the login panel moves very fast from right to left on my screen.
I can input my passwd, and login my system, but the screen just blacked after I succfully logined in.
I had to use 'xrandr --output eDP1 --off && xrandr --output --auto' to light my screen again.
here is an image when the screen flashes:
http://www.hacksign.cn/612022797.jpg
Any suggesstion to solve this is appreciated .



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
--reply mod edit : acually I dont know where the log stored, I read man page of dm-tool, It doesnt support any debug parameters and no description about log system --

Last edited by Hacksign (2015-07-19 06:58:32)

Offline

#2 2015-07-19 06:49:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Screen flashes after lock screen with 'dm-tool lock' command

Graphics card? Driver? Log? Journal? See: How To Ask Questions The Smart Way


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-07-19 14:07:09

andrew_the_p
Member
From: BY
Registered: 2015-03-17
Posts: 16

Re: Screen flashes after lock screen with 'dm-tool lock' command

99.9%: https://bugs.launchpad.net/ubuntu/+sour … ug/1410406
1. lightdm-gtk-greeter.conf:

active-monitor=0
allow-debugging=true

2. Post this file here (the newest one):

/var/log/lightdm/x-*-greeter.log

Last edited by andrew_the_p (2015-07-19 19:12:21)

Offline

#4 2015-07-20 02:22:14

Hacksign
Member
Registered: 2012-07-30
Posts: 132

Re: Screen flashes after lock screen with 'dm-tool lock' command

andrew_the_p wrote:

99.9%: https://bugs.launchpad.net/ubuntu/+sour … ug/1410406
1. lightdm-gtk-greeter.conf:

active-monitor=0
allow-debugging=true

2. Post this file here (the newest one):

/var/log/lightdm/x-*-greeter.log

I added active-monitor & allow-debugging line to lightdm-gtk-greeter.conf,and deleted all files in /var/log/lightdm/

then execute 'dm-tool lock', then light up monitor.
screen flashed again, after I login in with my username & passwd, screen of my extend monitor lighted up, but the primary monitor still black.
cpu usage is normal.
and log file :

[root@XSign lightdm]# pwd
/var/log/lightdm
[root@XSign lightdm]# ls -la
总用量 16
drwx--x--x 2 root lightdm 4096 Jul 20 10:12 .
drwxr-xr-x 8 root root    4096 Jul 20 10:12 ..
-rw------- 1 root root    3963 Jul 20 10:12 x-1-greeter.log
-rw------- 1 root root     958 Jul 20 10:12 x-1.log

lightdm-gtk-greeter is the lastest version 2.0.1
below is the log content:

[root@XSign lightdm]# cat x-1-greeter.log 
** Message: Starting lightdm-gtk-greeter 2.0.1 (May 26 2015, 08:48:40)
** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf
DEBUG-Message: Connecting to display manager...
DEBUG-Message: Wrote 22 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 174 bytes from daemon
DEBUG-Message: Connected version=1.14.2 default-session=awesome show-manual-login=false lock-screen=true hide-users=true has-guest-account=false show-remote-login=true
DEBUG-Message: [Configuration] GTK+ theme: 'Adwaita'
DEBUG-Message: [Configuration] Icons theme: 'Adwaita'
DEBUG-Message: [Configuration] Changing font to 'Terminal'
DEBUG-Message: [Configuration] Font: 'Terminal'
DEBUG-Message: [PIDs] Command executed (#3951): /usr/lib/at-spi2-core/at-spi-bus-launcher

** (lightdm-gtk-greeter:3948): WARNING **: [PIDs] Failed to execute command: upstart

(lightdm-gtk-greeter:3948): GLib-GObject-WARNING **: The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.

(lightdm-gtk-greeter:3948): GLib-GObject-WARNING **: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.

(lightdm-gtk-greeter:3948): GLib-GObject-WARNING **: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
DEBUG-Message: Loaded session /usr/share/xsessions/awesome.desktop (awesome, Highly configurable framework window manager)
DEBUG-Message: [Configuration] Monitor configuration found: '*'
DEBUG-Message: [Background] Connecting to screen: 0x22280c0 (4480x1440px, 945x304mm)
DEBUG-Message: [Background] Monitors found: 2
DEBUG-Message: [Background] Monitor: eDP1 #0 (2560x1440 at 0x0) primary
DEBUG-Message: [Background] No configuration options for monitor eDP1 #0, using default
DEBUG-Message: [Background] Monitor: HDMI2 #1 (1920x1080 at 2560x0)
DEBUG-Message: [Background] No configuration options for monitor HDMI2 #1, using default
DEBUG-Message: [Background] Creating DBus proxy

(lightdm-gtk-greeter:3948): GLib-CRITICAL **: g_variant_get_type: assertion 'value != NULL' failed

(lightdm-gtk-greeter:3948): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(lightdm-gtk-greeter:3948): GLib-CRITICAL **: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed

(lightdm-gtk-greeter:3948): GLib-CRITICAL **: g_variant_unref: assertion 'value != NULL' failed
DEBUG-Message: [Background] UPower.LidIsPresent property value: 0
DEBUG-Message: [Background] Active monitor is not specified, using first enabled monitor from 'active-monitor' list
DEBUG-Message: [Background] Active monitor changed to: eDP1 #0
DEBUG-Message: Starting authentication for user (null)...
DEBUG-Message: Wrote 16 bytes to daemon
DEBUG-Message: Run Gtk loop...
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 26 bytes from daemon
DEBUG-Message: Prompt user with 1 message(s)
DEBUG-Message: Loading users from org.freedesktop.Accounts
DEBUG-Message: User /org/freedesktop/Accounts/User1000 added
DEBUG-Message: Starting authentication for user hacksign...
DEBUG-Message: Wrote 24 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 38 bytes from daemon
DEBUG-Message: Prompt user with 1 message(s)
DEBUG-Message: Providing response to display manager
DEBUG-Message: Wrote 25 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 20 bytes from daemon
DEBUG-Message: Authentication complete for user hacksign with return code 0
DEBUG-Message: Wrote 22 bytes to daemon
DEBUG-Message: Starting session awesome
DEBUG-Message: Wrote 19 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 4 bytes from daemon
DEBUG-Message: SIGTERM received
DEBUG-Message: [PIDs] Process terminated: #3951
DEBUG-Message: Killing greeter with exit()...
[root@XSign lightdm]# cat x-1.log 

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.0.4-2-ARCH x86_64 
Current Operating System: Linux XSign 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64
Kernel command line: initrd=\initramfs-linux.img root=/dev/sda3 rw
Build Date: 15 July 2015  04:09:05PM
 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon Jul 20 10:12:17 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) AIGLX: Suspending AIGLX clients for VT switch
(II) Server terminated successfully (0). Closing log file.

Offline

#5 2015-07-20 06:08:51

andrew_the_p
Member
From: BY
Registered: 2015-03-17
Posts: 16

Re: Screen flashes after lock screen with 'dm-tool lock' command

Is top menu flashes too? "flashed again" - is it the same fast flashing? Or just one single flash?
Log file looks pretty normal. Remove "active-monitor" option and post the same log file.

How it looks if you use different backgrounds for monitors?

[monitor: 0]
background=#00ff00

[monitor: 1]
background=#ff0000

There is only one thing that can cause such behavior (mentioned bug), but I don't understand how it can be triggered with your monitors setup.
What about your greeter/lightdm configs?

Offline

#6 2015-07-21 02:40:07

Hacksign
Member
Registered: 2012-07-30
Posts: 132

Re: Screen flashes after lock screen with 'dm-tool lock' command

andrew_the_p wrote:

Is top menu flashes too? "flashed again" - is it the same fast flashing? Or just one single flash?
Log file looks pretty normal. Remove "active-monitor" option and post the same log file.

How it looks if you use different backgrounds for monitors?

[monitor: 0]
background=#00ff00

[monitor: 1]
background=#ff0000

There is only one thing that can cause such behavior (mentioned bug), but I don't understand how it can be triggered with your monitors setup.
What about your greeter/lightdm configs?

Thanks for reply.

Is top menu flashes too? "flashed again" - is it the same fast flashing? Or just one single flash?
  Yes, top menu flashes too, and It is NOT one single flash, it is flashed as the same frequency as the login panel.
  And, It is not only flash from right to left, sometimes bottom to top(top menu shows in middle of screen, then slowly moved to top, and then again)

I removed active-monitor, and add different background color configuration to /etc/lightdm/lightdm-gtk-greeter.conf,deleted all files in /var/log/lightdm, and lock screen with 'dm-tool lock', when light up monitor again:
top menu & login panel flashed on [monitor: 0] which is green background.
If I move my mouse cursor to [monitor: 1] which is red background.
all things go normally, no flash occured.top menu and login panel showed steady on monitor:1
login in, monitor:0 black, cpu usage normally ....

The difference of these two monitors is the resolution.
monitor:0 is 2560x1440  this is my laptop screen
monitor:1 is 1920x1080 this is an dell P2412H monitor, which is set to be an extended monitor.

hacksign@XSign [10:33:06] : ~                                                                                                       
>> xrandr 
Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
   2560x1440     60.00*+
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1080     60.00  
   1600x1200     60.00  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+  59.94  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

here is my log file:

[root@XSign hacksign]# cat /var/log/lightdm/x-1*
** Message: Starting lightdm-gtk-greeter 2.0.1 (May 26 2015, 08:48:40)
** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf
DEBUG-Message: Connecting to display manager...
DEBUG-Message: Wrote 22 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 174 bytes from daemon
DEBUG-Message: Connected version=1.14.2 default-session=awesome show-manual-login=false lock-screen=true hide-users=true has-guest-account=false show-remote-login=true
DEBUG-Message: [Configuration] GTK+ theme: 'Adwaita'
DEBUG-Message: [Configuration] Icons theme: 'Adwaita'
DEBUG-Message: [Configuration] Changing font to 'Terminal'
DEBUG-Message: [Configuration] Font: 'Terminal'
DEBUG-Message: [PIDs] Command executed (#13850): /usr/lib/at-spi2-core/at-spi-bus-launcher

** (lightdm-gtk-greeter:13847): WARNING **: [PIDs] Failed to execute command: upstart

(lightdm-gtk-greeter:13847): GLib-GObject-WARNING **: The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.

(lightdm-gtk-greeter:13847): GLib-GObject-WARNING **: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.

(lightdm-gtk-greeter:13847): GLib-GObject-WARNING **: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
DEBUG-Message: Loaded session /usr/share/xsessions/awesome.desktop (awesome, Highly configurable framework window manager)
DEBUG-Message: [Configuration] Monitor configuration found: '*'
DEBUG-Message: [Configuration] Monitor configuration found: '0'
DEBUG-Message: [Configuration] Monitor configuration found: '1'
DEBUG-Message: [Background] Connecting to screen: 0x1bd20c0 (4480x1440px, 945x304mm)
DEBUG-Message: [Background] Monitors found: 2
DEBUG-Message: [Background] Monitor: eDP1 #0 (2560x1440 at 0x0) primary
DEBUG-Message: [Background] Monitor: HDMI2 #1 (1920x1080 at 2560x0)
DEBUG-Message: [Background] Creating DBus proxy

(lightdm-gtk-greeter:13847): GLib-CRITICAL **: g_variant_get_type: assertion 'value != NULL' failed

(lightdm-gtk-greeter:13847): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(lightdm-gtk-greeter:13847): GLib-CRITICAL **: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed

(lightdm-gtk-greeter:13847): GLib-CRITICAL **: g_variant_unref: assertion 'value != NULL' failed
DEBUG-Message: [Background] UPower.LidIsPresent property value: 0
DEBUG-Message: [Background] Pointer position will be used to set active monitor: 1280x720
DEBUG-Message: [Background] Active monitor changed to: eDP1 #0
DEBUG-Message: Starting authentication for user (null)...
DEBUG-Message: Wrote 16 bytes to daemon
DEBUG-Message: Run Gtk loop...
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 26 bytes from daemon
DEBUG-Message: Prompt user with 1 message(s)
DEBUG-Message: Loading users from org.freedesktop.Accounts
DEBUG-Message: User /org/freedesktop/Accounts/User1000 added
DEBUG-Message: Starting authentication for user hacksign...
DEBUG-Message: Wrote 24 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 38 bytes from daemon
DEBUG-Message: Prompt user with 1 message(s)
DEBUG-Message: [Background] Active monitor changed to: HDMI2 #1
DEBUG-Message: [Background] Active monitor changed to: eDP1 #0
DEBUG-Message: [Background] Active monitor changed to: HDMI2 #1
DEBUG-Message: Providing response to display manager
DEBUG-Message: Wrote 25 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 20 bytes from daemon
DEBUG-Message: Authentication complete for user hacksign with return code 0
DEBUG-Message: Wrote 22 bytes to daemon
DEBUG-Message: Starting session awesome
DEBUG-Message: Wrote 19 bytes to daemon
DEBUG-Message: Read 8 bytes from daemon
DEBUG-Message: Read 4 bytes from daemon
DEBUG-Message: SIGTERM received
DEBUG-Message: [PIDs] Process terminated: #13850
DEBUG-Message: Killing greeter with exit()...

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.0.4-2-ARCH x86_64 
Current Operating System: Linux XSign 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64
Kernel command line: initrd=\initramfs-linux.img root=/dev/sda3 rw
Build Date: 15 July 2015  04:09:05PM
 
Current version of pixman: 0.32.6
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Jul 21 10:21:40 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) AIGLX: Suspending AIGLX clients for VT switch
(II) Server terminated successfully (0). Closing log file.

and below is my lightdm.conf & lightdm-gtk-greeter.conf & Xorg's 10-monitor.conf:

[root@XSign hacksign]# cat /etc/lightdm/lightdm.conf
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
#
[LightDM]
start-default-seat=true
greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
run-directory=/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters

#
# Seat defaults
#
# type = Seat type (xlocal, xremote)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xserver-layout = Layout to pass to X server
# xserver-config = Config file to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[SeatDefaults]
type=xlocal
pam-service=lightdm
#pam-autologin-service=lightdm-autologin
pam-greeter-service=lightdm-greeter
xserver-command=X
#xserver-layout=
#xserver-config=
xserver-allow-tcp=false
xserver-share=true
xserver-hostname=XSign
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
greeter-session=lightdm-gtk-greeter
greeter-hide-users=true
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
user-session=awesome
#allow-user-switching=true
#allow-guest=true
#guest-session=
session-wrapper=/etc/lightdm/Xsession
#greeter-wrapper=
#guest-wrapper=
display-setup-script=xrandr --output eDP1 --primary --auto --output HDMI2 --right-of eDP1 --auto
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false

#
# Seat configuration
#
# Each seat must start with "Seat:".
# Uses settings from [SeatDefaults], any of these can be overriden by setting them in this section.
#
#[Seat:0]

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#key=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#width=1024
#height=768
#depth=8
[root@XSign hacksign]# cat /etc/lightdm/lightdm-gtk-greeter.conf 
# LightDM GTK+ Configuration
# Available configuration options listed below.
#
# Appearance:
#  theme-name = GTK+ theme to use
#  icon-theme-name = Icon theme to use
#  background = Background file to use, either an image path or a color (e.g. #772953)
#  user-background = false|true ("true" by default)  Display user background (if available)
#  transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default)
#  transition-type = ease-in-out|linear|none  ("ease-in-out" by default)
#
# Fonts:
#  font-name = Font to use
#  xft-antialias = false|true  Whether to antialias Xft fonts
#  xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
#  xft-hintstyle = none|slight|medium|hintfull  What degree of hinting to use
#  xft-rgba = none|rgb|bgr|vrgb|vbgr  Type of subpixel antialiasing
#
# Login window:
#  active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list
#  position = x y ("50% 50%" by default)  Login window position
#  default-user-image = Image used as default user icon, path or #icon-name
#  hide-user-image = false|true ("false" by default)
#
# Panel:
#  panel-position = top|bottom ("top" by default)
#  clock-format = strftime-format string, e.g. %H:%M
#  indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path
#
# Accessibility:
#  a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader.
#  keyboard = command to launch on-screen keyboard (e.g. "onboard")
#  keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default)  Works only for "onboard"
#  reader = command to launch screen reader (e.g. "orca")
#
# Security:
#  allow-debugging = false|true ("false" by default)
#  screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
#
# Template for per-monitor configuration:
#  [monitor: name]
#  background = overrides default value
#  user-background = overrides default value
#  laptop = false|true ("false" by default) Marks monitor as laptop display
#  transition-duration = overrides default value
#
[greeter]
#background=
#user-background=
#theme-name=
#icon-theme-name=
font-name=Terminal
#xft-antialias=
#xft-dpi=
#xft-hintstyle=
#xft-rgba=
#indicators=
#clock-format=
#keyboard=
#reader=
#position=
screensaver-timeout=90
laptop = true
#active-monitor = 0
allow-debugging = true

[monitor: 0]
background=#00ff00
[monitor: 1]
background=#ff0000
hacksign@XSign [10:39:22] : ~                                                                                                       
>> cat /etc/X11/xorg.conf.d/10-monitor.conf 
Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "Device" 
	Identifier 	"Card0" 
	Driver  	"intel"
	BusID 		"PCI:0:2:0" 
	Option 		"ZaphodHeads" "eDP1,DP1,DP2,HDMI1,HDMI2" 
	#Option 		"AccelMethod" "sna" 
EndSection 

Section "Monitor"
	Identifier "Monitor0"
	DisplaySize 541 304
	Option		 "DPMS"
	Option		 "Primary" "true"
EndSection

Section "Monitor"
	Identifier "Monitor1"
	DisplaySize 508 285
	Option		 "DPMS"
	Option		 "RightOf" "Monitor0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor		 "Monitor0"
	SubSection "Display"
		Depth 24
		Modes "2560x1440" "1920x1080" "1024x768" "800x600"
	EndSubsection
EndSection

Section "ServerLayout"
	Identifier 		"default"
	Screen 			0 "Screen0" 0 0  
	#Screen 			1 "Screen1" RightOf "Screen0"  
EndSection

Last edited by Hacksign (2015-07-21 02:42:17)

Offline

#7 2015-07-21 12:08:54

andrew_the_p
Member
From: BY
Registered: 2015-03-17
Posts: 16

Re: Screen flashes after lock screen with 'dm-tool lock' command

The sad news - it is not this bug or something similar: https://bugs.launchpad.net/ubuntu/+sour … ug/1410406
So, there are two possibilities:
1. It's some sort of video driver issue or invalid monitors configuration. It's not clear why everything is ok for 2nd monitor. I'm not very familiar with all this Xorg stuff.
The only thing I can advise in this situation (except obvious "reinstall, swap between proprietary/open drivers") is trying to change monitors setup. You can use lightdm's option "display-setup-script" + xrandr for it.
2. It's greeter bug. Set some image as your login background and describe the results. And about panel - is it occupy all monitor width on "bad" monitor?

Maybe recent update caused this bug. Try to install previous versions of those packages: gtk3 (3.16.4 or 3.14), lightdm-gtk-greeter (2.0.0 or 1.8.5), your video driver.

Offline

#8 2015-07-22 02:48:27

Hacksign
Member
Registered: 2012-07-30
Posts: 132

Re: Screen flashes after lock screen with 'dm-tool lock' command

andrew_the_p wrote:

The sad news - it is not this bug or something similar: https://bugs.launchpad.net/ubuntu/+sour … ug/1410406
So, there are two possibilities:
1. It's some sort of video driver issue or invalid monitors configuration. It's not clear why everything is ok for 2nd monitor. I'm not very familiar with all this Xorg stuff.
The only thing I can advise in this situation (except obvious "reinstall, swap between proprietary/open drivers") is trying to change monitors setup. You can use lightdm's option "display-setup-script" + xrandr for it.
2. It's greeter bug. Set some image as your login background and describe the results. And about panel - is it occupy all monitor width on "bad" monitor?

Maybe recent update caused this bug. Try to install previous versions of those packages: gtk3 (3.16.4 or 3.14), lightdm-gtk-greeter (2.0.0 or 1.8.5), your video driver.

1.display-setup-script is already set, check my previous reply, in lightdm.conf part, xrandr is used to set 2rd monitor as an extend display screen.
2.add a background image solved the flash problem,but it is still black screen after unlock screen.
maybe I should wait the new version ?It seems that black screen is a unsolved bug .....

Offline

#9 2015-07-24 13:05:46

andrew_the_p
Member
From: BY
Registered: 2015-03-17
Posts: 16

Re: Screen flashes after lock screen with 'dm-tool lock' command

Hacksign wrote:

display-setup-script is already set, check my previous reply, in lightdm.conf part, xrandr is used to set 2rd monitor as an extend display screen.

Yep, missed that.

Hacksign wrote:

add a background image solved the flash problem,but it is still black screen after unlock screen.

So, image - ok, color - glitch? Looks interesting. Could you check this with old greeter version (1.8.5)?

Hacksign wrote:

It seems that black screen is a unsolved bug .....

Maybe, someday...

Hacksign wrote:

I had to use 'xrandr --output eDP1 --off && xrandr --output --auto' to light my screen again.

`xrandr -q` output that you have posted - was it done before you run this command?

Offline

#10 2015-09-25 02:02:59

gutierri
Member
Registered: 2015-09-25
Posts: 1

Re: Screen flashes after lock screen with 'dm-tool lock' command

Check your /etc/X11/xorg.config.d If empty, generate a configuration with

# Xorg :0 -configure

then copy the /root/xorg.conf.new folder for /etc/X11/xorg.config.d

Xorg uses default settings, LightDM not find what you need. I had this problem and resolved this way.

Last edited by gutierri (2015-11-09 00:37:40)

Offline

Board footer

Powered by FluxBB