Bug 691620

Summary: Login appears on second monitor which is powered off
Product: [Fedora] Fedora Reporter: Leif Gruenwoldt <leifer>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: cpanceac, cschalle, dcharlespyle, hhorak, jmorris, lomakin.andrey, mailingdotlist, naheemzaffar, nickysn, r0polach, rstrode, russfink, sanket.mohite, tjwhaynes, twillber, vaughn.jayson
Target Milestone: ---Flags: cpanceac: needinfo?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-02 02:34:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
0.log
none
0-greeter.log
none
Xorg.0.log none

Description Leif Gruenwoldt 2011-03-29 02:35:34 UTC
Description of problem:

I have two displays connected to my desktop. A normal 22" monitor over DVI and an HDMI projector. Both are connected at all times. I usually only turn my projector on to output a movie on. However on bootup GDM puts the login prompt on my projector even though it's powered off. This leaves me with no visible way to login to the desktop.


Version-Release number of selected component (if applicable):

Fedora 15 test day Power Management ISO.

http://jskarvad.fedorapeople.org/pm-test-day-20110324.iso


How reproducible:

Every time.


Steps to Reproduce:
1. Plugin two monitors; DVI and HDMI
2. Power on computer
3. Power on one display (the DVI monitor)
  
Actual results:

Left sitting at a blank gnome/gdm wallpaper with no way to login.


Expected results:

GDM to recognize my projector is powered off and put login screen on the display that is powered on.


Additional info:

video card: AMD Radeon 6870

$ lspci | grep ATI
01:00.0 VGA compatible controller: ATI Technologies Inc Device 6738
01:00.1 Audio device: ATI Technologies Inc Device aa88

Comment 1 Leif Gruenwoldt 2011-04-16 03:38:57 UTC
The problem still exists in the latest nightly build:

Fedora-15-Nightly-20110412.22-x86_64-Live-desktop.iso 

I did notice something that might be useful: I have two displays connected, my DVI monitor and my HDMI projector. My DVI monitor is on, but my projector is  off. As stated in the original report this scenario results in GDM putting the login on the HDMI display despite it being powered off. I managed to blindly login and fire up gnome terminal. xrandr reports that the HDMI display is both connected and on. This is wrong, it is connected but not on.

$ xrandr

Screen 0: minimum 320 x 200, current 2960 x 1050, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1280x720+0+0 (normal left inverted right x axis y axis) 1600mm x 900mm
   1280x720       60.0*+   50.0  
   1920x1080i     25.0     30.0  
   720x576        50.0  
   720x480        59.9  
   640x480        60.0  
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1680x1050+1280+0 (normal left inverted right x axis y axis) 474mm x 296mm
   1680x1050      59.9*+
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1152x864       75.0  
   1024x768       75.1     70.1     60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  


Running "xrandr --output HDMI-0 --off" at this point causes Gnome to smarten up and move the panel, etc onto my DVI display.

Comment 2 Leif Gruenwoldt 2011-04-16 03:41:10 UTC
This bug report could also be titled "GDM/Shell treating powered off monitor as primary display".

Comment 3 Leif Gruenwoldt 2011-04-26 16:22:36 UTC
Still occurs with live media from Test Day:2011-04-21 GNOME3 Final

Comment 4 Fedora Admin XMLRPC Client 2011-06-21 15:28:41 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2011-06-21 15:30:53 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2011-06-21 15:33:25 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora Admin XMLRPC Client 2011-06-21 15:36:11 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Admin XMLRPC Client 2011-06-21 15:42:29 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2011-06-21 15:46:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora Admin XMLRPC Client 2011-06-21 15:48:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Fedora Admin XMLRPC Client 2011-06-21 15:50:52 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 12 Fedora Admin XMLRPC Client 2011-06-21 15:52:10 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 13 Jayson Vaughn 2011-07-03 05:08:26 UTC
Hello,
Thank you for the bug report.  To further help us troubleshoot this bug can you please provide us with the following info if you are still having the same issue:

1) current rpm version of gdm (rpm -qv gdm)
2) attach /var/log/gdm/:0.log
3) attach /var/log/gdm/:0-greeter.log
4) attach /var/log/X.0.log

THanks.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 14 Roman Polach 2012-01-26 23:24:26 UTC
Hi, I have the same problem,
only slightly different things:

1st display on DSUB is on;
2nd display onDVI is off;
login screen is displayed on 2nd display.

The problem persists to next login even if I switch
second display off in gnome display settings dialog.
(probably takes action only for current user, so not to gdm)

Here is needed info:
1) rpm -qv gdm says gdm-3.2.1.1-6.fc16.i686
2) attached /var/log/gdm/:0.log as 0log
3) attached /var/log/gdm/:0-greeter.log as 0greeterlog
4) attached /var/log/Xorg.0.log as Xorg0log

Comment 15 Roman Polach 2012-01-26 23:25:01 UTC
Created attachment 557765 [details]
0.log

Comment 16 Roman Polach 2012-01-26 23:25:29 UTC
Created attachment 557766 [details]
0-greeter.log

Comment 17 Roman Polach 2012-01-26 23:25:58 UTC
Created attachment 557767 [details]
Xorg.0.log

Comment 18 Roman Polach 2012-01-26 23:28:11 UTC
similar problem,
but with liveCD session filled as
https://bugzilla.redhat.com/show_bug.cgi?id=784742

Comment 19 Roman Polach 2012-01-31 14:09:16 UTC
if there is problem detecting on/off state of displays,
the solution could be display login dialog on all displays,
probably using display mirroring...

Comment 20 Toby Haynes 2012-02-28 19:11:17 UTC
Here's the hack I use with GDM to automatically go for mirrored logins if the DVI-0 input is active.

thaynes@nexus6:/etc/gdm/Init
[22583:0]>ls -l 
total 8
-rwxr-xr-x. 1 root root  143 Oct  3 15:31 :0
-rwxr-xr-x. 1 root root 2619 Nov  4 16:40 Default
thaynes@nexus6:/etc/gdm/Init
[22584:0]>cat \:0
#! /bin/sh

if ( xrandr --output DVI-0 --mode "1600x1200" )
then
  xrandr --output DVI-0 --same-as LVDS
  xrandr --output DVI-0 --auto
fi
exit

Comment 21 Sanket Mohite 2012-05-14 05:35:50 UTC
On My Fedora16 Linux box with dual headed Nvidia Graphics Card, with one head connected to monitor via VGA and the other head connected to monitor via DVI; I had the same problem. My Gnome login dialogue was always appearing on the VGA monitor even when both the monitors were on and I wanted it to appear on DVI. 

I found out a solution to this, using /etc/X11/xorg.conf file which I configured as below:


Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" 0 0
#	Screen      2  "Screen2" RightOf "Screen1"
#	Screen      3  "Screen3" RightOf "Screen2"
#	Screen      4  "Screen4" RightOf "Screen3"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	Option         "Xinerama"  "false"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "catalogue:/etc/X11/fontpath.d"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "dri2"
	Load  "extmod"
	Load  "dbe"
	Load  "glx"
	Load  "dri"
	Load  "record"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection



Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Samsung"
	ModelName    "Samsung Syncmaster DVI"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Samsung"
	ModelName    "Samsung Syncmaster VGA"
EndSection



Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 SE/7200 GS"
    Option         "Monitor-VGA-1" "Monitor0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nouveau"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 SE/7200 GS"
    Option     	   "Monitor-DVI-I-1" "Monitor1"
EndSection



Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    SubSection     "Display"
        Depth       24
        Modes	   "1360x768"
	Virtual    1360 768 
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    SubSection     "Display"
        Depth       24
        Modes	   "1360x768"
	Virtual    1360 768 
    EndSubSection
EndSection
  


In the above configuration, "Device" section interprets "Monitor 0" as VGA, but actually its DVI and vice-a-versa for "Monitor 1".  This is because "xrandr --current" command detects them in this (incorrect) fashion !

Now Gnome login dialogue box always appears on both the monitors and the problem is resolved !!!

Comment 22 Russ 2012-11-20 16:25:37 UTC
Toby Haynes' suggestion worked for me, with a few modifications to run on Fedora 17.

1. In /etc/gdm/Init, edit "Default" as root and add the following line at the bottom below the final exit call at the end of the file:

   ...
       fi
     fi
   fi

   . /etc/gdm/Init/\:0 # ADD THIS LINE
   
   exit 0
   ...

2. Determine what xrandr thinks your displays are:
   xrandr --query

For me, DP-0 is the one that comes on, VGA-0 is the one that's never on but also the one that holds the login screen.

3. Create file /etc/gdm/Init/\:0 with these contents:
   #!/bin/sh
   # see https://bugzilla.redhat.com/show_bug.cgi?id=691620#c20

   if ( xrandr --output DP-0 )
   then
     xrandr --output DP-0 --same-as LVDS-0 # maybe should be VGA-0, but works
     xrandr --output DP-0 --auto
   fi
   exit 0

4. Save your work and test with "killall gdm-binary" (root's quick logout!)

Fedora 17, kernel 3.6.5-1.fc17.x86_64, gdm-3.4.1-3.fc17.x86_64

Comment 23 Fedora End Of Life 2013-04-03 17:26:21 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 24 John Morris 2013-04-20 05:53:34 UTC
Running Fedora 18 on a Thinkpad + dock.  Power on with the lapop in the dock and the lid closed.  The BIOS appears on the external Displayport connected display correctly.  Grub & Plymouth are also visible.  But when gdm starts I get a blank wallpaper.  Yup, gdm has decided to make the closed display the primary and is showing a login window there.

Long ago gdm also did this but was at least smart enough that if I moved the pointer onto the external monitor and hit ENTER it would repaint the login window there.  Any chance to at least get that behavior back?  Or something?  This regression has been reported now for two years and counting,

Comment 25 D. Charles Pyle 2013-12-03 00:17:19 UTC
Still happening on Fedora 20-Beta. In my case, my HDMI monitor is placed as Monitor 2 and the DVI monitor (on the right) as monitor 1. It rightly recognizes the HDMI as my primary monitor, but at first logon after connecting the second monitor, it actually placed the DVI monitor as the primary and placed the logon screen on the DVI monitor on the right, which it should not have done.  But now I have it continually referring to the DVI as monitor 1 and the HDMI as monitor 2, and I cannot change it.  At least it is displaying the HDMI monitor as my primary but I had to do that manually.

Comment 26 cornel panceac 2014-03-23 06:07:01 UTC
Same problem on this Fedora 20 updated. I have my TV connected to HDMI, so that i can sometimes watch some video on it, but is usually turned off. Still, my login menu is not on the locally connected VGA display, but on the turned off TV.

$ rpm -q gdm
gdm-3.10.0.1-1.fc20.i686

Comment 27 Aniruddha 2014-05-16 15:54:22 UTC
After a recent yum update I have the same issue on my HP Probook which is connected to a LG monitor. The main GDM screen is displayed on my laptop monitor. This screen is only visible when I increase the brightness.

Comment 28 Toni Willberg 2015-01-02 11:51:52 UTC
Still happens with Fedora 21, fully reproducible.

My computer (Intel NUC) has two display ports: 
 #1 Mini HDMI (HDMI1)
 #2 Mini DisplayPort (HDMI2)

Monitors:
 HDMI1: Philips 50" TV
 HDMI2: Acer V246HL monitor (via DVI-adapter)

I've configured the screens to be mirrored.
                                  --------

To reproduce:
 0) turn off the TV; turn on the monitor, power off the computer
 1) power on the computer
  ==> Login dialog doesn't display on the monitor
 2) turn on the TV
  ==> Login dialog is on the TV screen, but suddenly both displays flash blank and the login dialog jumps to the Acer monitor and disappears from the TV.
 3) lock the screen, press enter to login again
  ==> Login dialog appears on the monitor again, as it should be

Proposed fix:
 a) Login dialog should appear on all screens when using mirroring
 b) There should be an user configurable setting to set where the login dialog should be displayed


[root@nuc1 ~]# lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)

[root@nuc1 ~]# xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 640mm x 360mm
   1920x1080     60.00*+  50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1280x1024     60.02  
   1360x768      59.80  
   1280x720      60.00    50.00    59.94  
   1440x576i     50.00  
   1024x768      60.00  
   1440x480i     60.00    59.94  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
HDMI2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00*+
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      59.97  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Comment 29 You 2015-04-06 15:38:20 UTC
Problem still occurs in Fedora 22.

Instead of figuring our special case handling (mind is Monitor on DVI, TV on HDMI), an option is to by default mirror the display to all found screens instead of extending it?

Comment 30 Fedora End Of Life 2015-11-04 10:58:12 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 31 Fedora End Of Life 2015-12-02 02:35:00 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 32 cornel panceac 2016-10-03 04:28:18 UTC
This is still happening on Fedora 24 x64. Please reopen it.

Comment 33 Roman Polach 2016-10-03 06:54:40 UTC
Sorry, I switched to Ubuntu due to this Fedora bug.
I do not use Fedora anymore.

Comment 34 cornel panceac 2016-10-03 07:00:01 UTC
Anybody can reopen this?