Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No focus and unresponsive keyboard until click with dual monitor #859

Closed
ghost opened this issue Aug 9, 2017 · 15 comments
Closed

No focus and unresponsive keyboard until click with dual monitor #859

ghost opened this issue Aug 9, 2017 · 15 comments

Comments

@ghost
Copy link

ghost commented Aug 9, 2017

Up-to-date Arch Linux, sddm 0.14.0, breeze theme; 2 screens connected with the same output (cloning), everything works as expected except the focus: the keyboard does nothing at all until i click somewhere.
#501, #514, #612 seem to be related.
This bug is terribly annoying, it makes sddm unusable on my setup...how can I help to finally sort this out?

@ghost
Copy link
Author

ghost commented Aug 13, 2017

Update: typing the password and hitting enter seems to work (although the input field remains empty), so the keyboard isn't truly unresponsive; however, there is no focus to select the user with the arrow keys.

@ghost
Copy link

ghost commented Aug 17, 2017

This is also happening to me, I'm hoping that this issue can get fixed.

@twasiluk
Copy link

twasiluk commented Aug 19, 2017

Happens to me too with sddm 0.14.0-2 (after connecting 2nd monitor).
@steve95 thanks for the tip that you can actually key in the invisible password and it works!

@fabiobulgarella
Copy link

Same problem.

@mederel
Copy link

mederel commented Aug 24, 2017

I am encountering the same problem. I would sincerely like to help out figuring out what is the issue, but I do not know where to start... So if any developer out there of sddm is avail for just a few minutes, to give me hints of what I should do to start digging in I'd be very grateful. (my profile, java dev, basic knowledge of c++, have looked at many many lines of Qt code but never produced many of importance)

@davidedmundson
Copy link
Member

davidedmundson commented Aug 24, 2017 via email

@pasccom
Copy link

pasccom commented Oct 21, 2017

Hello!
I also have a similar problem. However, on one of my 2 screens I can see that 2 sddm windows are superposed (the bottom one is slightly bigger than the second). I guess the on below got focus....
I tried investigating as you proposed, but I have not been able to use the xwininfo xprop or xrandr programs. It says "No protocol specified". Of course the programs work when KDE is running. Does somebody already faced up this problem? and managed to solve it?
So I decided to clone repository and compile sddm myself with some qDebug()s added. I could see that sddm (Qt) sees the 2 screens with the right names and size but the positions are false (see the log below).
It seems to me that this strange behavior is Xorg bad auto-configuration fault. I will try to fix it and see if sddm display is better. Any hints?
Best regards,
Pasccom

systemd journal for sddm*:

sddm[2547]: Initializing...
sddm[2547]: Logind interface found
sddm[2547]: Starting...
sddm[2547]: Adding new display on vt 1 ...
sddm[2547]: Loading theme configuration from ""
sddm[2547]: Display server starting...
sddm[2547]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{##SUID##} -background none -noreset -displayfd 18 -seat seat0 vt1
sddm[2547]: Setting default cursor
sddm[2547]: Running display setup script  "/usr/local/share/sddm/scripts/Xsetup"
sddm[2547]: Display server started.
sddm[2547]: Socket server starting...
sddm[2547]: Socket server started.
sddm[2547]: Loading theme configuration from "/usr/share/sddm/themes/breeze-openSUSE/theme.conf"
sddm[2547]: Greeter starting...
sddm[2547]: Helper path: "/usr/local/libexec/sddm-helper"
sddm[2547]: Adding cookie to "/var/run/sddm/##SUID##"
sddm-helper[2633]: [PAM] Starting...
sddm-helper[2633]: [PAM] Authenticating...
sddm-helper[2633]: [PAM] returning.
sddm-helper[2633]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
sddm[2547]: Greeter session started successfully
sddm-greeter[2642]: High-DPI autoscaling not Enabled
sddm-greeter[2642]: Loading theme configuration from "/usr/share/sddm/themes/breeze-openSUSE/theme.conf"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/default.desktop"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/icewm-session.desktop"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/icewm.desktop"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/kde-plasma.desktop"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/plasma5.desktop"
sddm-greeter[2642]: Reading from "/usr/share/xsessions/xsession.desktop"
sddm-greeter[2642]: Reading from "/usr/share/wayland-sessions/weston.desktop"
sddm-greeter[2642]: Connected to the daemon.
sddm[2547]: Message received from greeter: Connect
sddm-greeter[2642]: Loading file:///usr/share/sddm/themes/breeze-openSUSE/Main.qml...
sddm-greeter[2642]: QObject: Cannot create children for a parent that is in a different thread.
                    (Parent is SDDM::GreeterApp(0x7ffe70c78410), parent's thread is QThread(0xa3ff20), current thread is QThread(0xa96dd0)
sddm-greeter[2642]: QObject: Cannot create children for a parent that is in a different thread.
                    (Parent is SDDM::GreeterApp(0x7ffe70c78410), parent's thread is QThread(0xa3ff20), current thread is QThread(0xa96dd0)
sddm-greeter[2642]: QObject: Cannot create children for a parent that is in a different thread.
                    (Parent is SDDM::GreeterApp(0x7ffe70c78410), parent's thread is QThread(0xa3ff20), current thread is QThread(0xa96dd0)                                                                                               
sddm-greeter[2642]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.                                                                                                                               
sddm-greeter[2642]: QObject: Cannot create children for a parent that is in a different thread.                                                                                                                                          
                    (Parent is SDDM::GreeterApp(0x7ffe70c78410), parent's thread is QThread(0xa3ff20), current thread is QThread(0xa96dd0)                                                                                               
sddm-greeter[2642]: QObject: Cannot create children for a parent that is in a different thread.                                                                                                                                          
                    (Parent is SDDM::GreeterApp(0x7ffe70c78410), parent's thread is QThread(0xa3ff20), current thread is QThread(0xa96dd0)                                                                                               
sddm-greeter[2642]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.                                                                                                                               
sddm-greeter[2642]: file:///usr/share/sddm/themes/breeze-openSUSE/components/UserDelegate.qml:54:9: QML Image: Cannot open: file:///usr/local/share/sddm/faces/.face.icon                                                                
sddm-greeter[2642]: Adding view for "VGA1" QRect(0,0 1280x720)                                                                                                                                                                           
sddm-greeter[2642]: Loading file:///usr/share/sddm/themes/breeze-openSUSE/Main.qml...                                                                                                                                                    
sddm-greeter[2642]: file:///usr/share/sddm/themes/breeze-openSUSE/components/UserDelegate.qml:54:9: QML Image: Cannot open: file:///usr/local/share/sddm/faces/.face.icon                                                                
sddm-greeter[2642]: Adding view for "eDP1" QRect(0,0 1366x768)                                                                                                                                                                           
sddm-greeter[2642]: QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.19'                                                                                                                           
sddm-greeter[2642]: Message received from daemon: Capabilities                                                                                                                                                                           
sddm-greeter[2642]: Message received from daemon: HostName                                                                                                                                                                               
sddm-greeter[2642]: Time engine Clock skew signaled                                                                                                                                                                                      
sddm-greeter[2642]: Reading from "/usr/share/xsessions/plasma5.desktop"                                                                                                                                                                  
sddm[2547]: Message received from greeter: Login                                                                                                                                                                                         
sddm[2547]: Reading from "/usr/share/xsessions/plasma5.desktop"                                                                                                                                                                          
sddm[2547]: Reading from "/usr/share/xsessions/plasma5.desktop"                                                                                                                                                                          
sddm[2547]: Session "/usr/share/xsessions/plasma5.desktop" selected, command: "/usr/bin/startkde"                                                                                                                                        
sddm[2547]: Helper path: "/usr/local/libexec/sddm-helper"
sddm-helper[2686]: [PAM] Starting...
sddm-helper[2686]: [PAM] Authenticating...
sddm-helper[2686]: [PAM] Preparing to converse...
sddm-helper[2686]: [PAM] Conversation with 1 messages
sddm-helper[2686]: [PAM] returning.
sddm[2547]: Authenticated successfully
sddm-greeter[2642]: Message received from daemon: LoginSucceeded
sddm-helper[2686]: pam_unix(sddm:session): session opened for user ##USERNAME## by (uid=0)
sddm-helper[2633]: [PAM] Closing session
sddm-helper[2633]: pam_unix(sddm-greeter:session): session closed for user sddm
sddm-helper[2633]: [PAM] Ended.
sddm[2547]: Auth: sddm-helper exited successfully
sddm[2547]: Greeter stopped.
sddm-helper[2686]: Starting: "/usr/local/share/sddm/scripts/Xsession \"/usr/bin/startkde\""
sddm-helper[2694]: Adding cookie to "/home/##USERNAME##/.Xauthority"
sddm[2547]: Session started

@Xwang1976
Copy link

Xwang1976 commented Oct 22, 2017

I have the same issue.
It seems related to the fact that SDDM is displayed on two monitors (as passccom has said).
I've just managed to have SDDM displayed only on the external monitor (as explained in this post https://bbs.archlinux.org/viewtopic.php?id=231173) and now SDDM responds correctly.

@pasccom
Copy link

pasccom commented Oct 22, 2017

Hello again!
I finally managed to tune xorg.conf and... sddm works satisfactorily
This is not an sddm bug but a Xorg bug: Apparently auto-configuration does not always works properly in multi-head setups (it does something very strange, cloning the both output to the same monitor but still setting two monitors).
Best regards,
Pascom

For your information:

X.Org X Server 1.18.3
Release Date: 2016-04-04
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux PCombes3.localdomain 4.4.90-28-default #1 SMP Fri Oct 6 13:31:05 UTC 2017 (a068031) x86_64

@Xwang1976
Copy link

I agree with you and I've managed to solve it by disabling the internal monitor before SDDM is loaded.
In any case I do not know if it is a problem in case someone has cloned monitor at login.

@ChristianCiach
Copy link

ChristianCiach commented Jan 24, 2018

Same problem here (on Arch Linux), altough I don't have an internal and external monitor, but two desktop monitors. I guess this makes no difference for Xorg, but I would rather not fiddle with the X11 config when literally every other display manager works out of the box.

@ChristianCiach
Copy link

ChristianCiach commented Feb 11, 2018

This problem completely disappeared for me after uninstalling the Intel driver and using KMS instead, as recommended by some (Debian & Ubuntu, Fedora, KDE). This also fixed a few other graphical issues I previously had on boot.

@ghost
Copy link
Author

ghost commented Jan 20, 2019

I would rather not fiddle with the X11 config when literally every other display manager works out of the box.

Agree.
I tried again SDDM (been using LightDM in the meanwhile just because of this issue) and the problem is still there, even with the modesetting driver.

@t3chn0m4g3
Copy link

Same problem in Manjaro 18.0.4 with NVidia drivers. I had a blank screen, just blinking cursor and had to press the ALT key a couple of times until SDDM appeared. Found a solution here ...

sudo su -
pacman -S haveged
systemctl enable haveged
systemctl start haveged
reboot

... and it works.

@Pointedstick
Copy link
Collaborator

Duplicate of #514

@Pointedstick Pointedstick marked this as a duplicate of #514 Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants