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

password field does not have focus on dual display setup #514

Open
markg85 opened this issue Oct 18, 2015 · 12 comments
Open

password field does not have focus on dual display setup #514

markg85 opened this issue Oct 18, 2015 · 12 comments

Comments

@markg85
Copy link

markg85 commented Oct 18, 2015

Hi,

I know recent releases have had some fixes for dual display setups since the login used to be displayed on each monitor. Now only on the primary monitor.

A small side effect of this is that the mouse cursor initial position is in the center of the entire display surface (both screens combined). So for instance if i have two displays (of 1920x1200) next to each other the total resolution is 3840x1200. Now the initial mouse position would be at (or around) 1920x600 (center pixel). However, it seems the cursor is offset just ONE pixel to the right which means that the right display has the cursor (the left display has the login). This minor issue causes the password field to not have focus. It gains focus as soon as i move the mouse to the left part of the screen.

This is a minor annoyance, but annoying nevertheless. Would it be possible to fix this issue in the next sddm release?

@markg85
Copy link
Author

markg85 commented Oct 18, 2015

Note, what i described was with version 0.12.
I just installed the master branch and it shows the greeter on every display again (like it used to be some versions back). It's not a "fix", but it works for me.

@plfiorini
Copy link
Member

I don't understand what's broken with master, could you elaborate please?

BTW Whether showing the password prompt on all outputs or only on the primary one is up to the theme. SDDM screen model expose it.

@markg85
Copy link
Author

markg85 commented Oct 20, 2015

The greeter that i'm using (just the plasma 5 greeter) shows:

  • Only on the primary display with version 0.12.x
  • On all displays with master

I thought that might be a bug.

Regarding the password prompt (the reason i opened this bug report) is a theme issue according to you so this bug report can be closed for that.

@plfiorini
Copy link
Member

I'll check the themes later to see if there something wrong with the screen model.

@mikkeloscar
Copy link

I experience the same problem with my own theme were I set visible: primaryScreen on the UI elements.

The best solution would be to force the cursor to spawn on the primary screen, but I'm not sure that is possible?

Another solution which I have seen in lightdm is to make the UI elements "follow" the mouse, so if the mouse is focusing on the first screen the UI elements appear on that, and if it is focusing on the second they appear on that instead.

The third solution is obviously having the UI elements appear on both screens but that it just confusing because it looks like the screens are mirrored even though that is not the case.

@yaomtc
Copy link

yaomtc commented Feb 25, 2017

I have a 4K monitor as my primary on the left, and a 1080p monitor on the right. When SDDM appears, the cursor ends up right-of-center on the 4K monitor - however the password field on the 1080p monitor has focus. So where the cursor ends up doesn't seem to have any affect on where the focus ends up.

@avakyan-georgiy
Copy link

Problem still persist on Manjaro with sddm 0.14.0-2. I have a laptop with lid closed and monitor (via) hdmi staying on it. Every reboot I need to click near the password field to get it focused.
Here's my sddm.conf:

[Autologin]
Relogin=false
Session=plasma

[General]
HaltCommand=/usr/bin/systemctl poweroff
Numlock=on
RebootCommand=/usr/bin/systemctl reboot

[Theme]
Current=breath
CursorTheme=breeze_cursors
FacesDir=/usr/share/sddm/faces
ThemeDir=/usr/share/sddm/themes

[Users]
DefaultPath=/bin:/usr/bin:/usr/local/bin
HideShells=
HideUsers=
MaximumUid=60000
MinimumUid=1000
RememberLastSession=true
RememberLastUser=true

[WaylandDisplay]
SessionCommand=/usr/share/sddm/scripts/wayland-session
SessionDir=/usr/share/wayland-sessions

[XDisplay]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
DisplayStopCommand=/usr/share/sddm/scripts/Xstop
MinimumVT=1
ServerArguments=-nolisten tcp
ServerPath=/usr/bin/X
SessionCommand=/usr/share/sddm/scripts/Xsession
SessionDir=/usr/share/xsessions
XauthPath=/usr/bin/xauth
XephyrPath=/usr/bin/Xephyr

@Musikolo
Copy link

Hi,

I'm also having the issue described in this thread. When I start up my laptop with a mDP cable connected to a monitor, I can see the same output (SDDM login) in both screens (monitor & laptop), but the password field doesn't get focused. So, I have to manually click on the password field to enter my password. Pressing several times the Tab key makes no difference.

If I restart with no mDP connected, i.e., a single screen available, everything works fine though.

It would be very nice to find a solution for this annoying bug were found soon.

Thank you!

P.S: Using ArchLinux + KDE 5.10.5 64bit+ SDDM 0.15.0

@developer91234
Copy link

Still happening.

@developer91234
Copy link

This doesn't depend on the theme either. Just tested a whole bunch of them, including those that supposedly work, and they all suffer from the exact same problem. Currently I'm getting mirrored displays. I suppose you could get something else depending on the order in which you plug/unplug displays before/after logout. But one thing you will not get, except by some strange coincidence is correct behavior: login fields focused on primary screen with no visual distortions on any screen.

@LudSkywalker
Copy link

In my case, an solution to fix the problem is search in de main.qml or login.qml in which part are located the form or the input for the password, and in this put the property focus:primaryScreen, this make than you can put your password, press enter and login, but you can't see the password field changing(this because in dual monitor the screen by default is not the primary), in the case of you are using lubuntu default theme, just replace "focus:true" to "focus:primaryScreen" at the line 130 in Main.qml located in /usr/share/sddm/themes/lubuntu/

@IncorrigiblyBelligerent

Well, my case is a bit curious. I am running OpenSUSE Tumbleweed with KDE on a dual monitor setup. When there is no Xsetup and a blank /etc/sddm.conf, the monitors are stacked horizontally, and the password field is in focus, meaning when I type something, it automatically fills up the password field.

But when I put this in /usr/share/sddm/scripts/Xsetup:
xrandr --output DP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --mode 1920x1080 --same-as DP-1

and add this in /etc/sddm.conf:

[XDisplay]
# Xsetup script path
# A script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup

the monitors are mirrored, as dictated by the script, but the password field is not in default focus anymore. I need to click it to enter the password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants