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

Numlock=on does not work with autologin #508

Open
ziggi opened this issue Oct 8, 2015 · 9 comments
Open

Numlock=on does not work with autologin #508

ziggi opened this issue Oct 8, 2015 · 9 comments
Assignees
Labels

Comments

@ziggi
Copy link

ziggi commented Oct 8, 2015

/etc/sddm.conf:

[General]
Numlock=on

[Autologin]
User=ziggi
Session=awesome
@nbvcxz
Copy link

nbvcxz commented Oct 18, 2015

Confirmed - Archlinux SDDM 0.12.0-4

@jleclanche jleclanche added this to the 0.14 milestone Nov 1, 2015
@plfiorini plfiorini added bug and removed bug labels Nov 5, 2015
@plfiorini
Copy link
Member

NumLock is set by the greeter because it needs a windowing system, but the greeter is not running with autologin. Hence numlock will never be set.

I think this is expected. We should state that on the man page and the sddm.conf comments (the latter can be done with #530)

@plfiorini plfiorini self-assigned this Nov 5, 2015
@jleclanche
Copy link
Member

@plfiorini I don't like that :/ can't we do a raw x call or something?

@plfiorini
Copy link
Member

@jleclanche it currently uses xcb_xkb which requires a display, xkbcommon might be a good candidate.
btw man page already mentioned sddm-greeter :p

@plfiorini plfiorini modified the milestones: 0.15, 0.14 May 2, 2016
@plfiorini plfiorini modified the milestones: 0.16, 0.15 Aug 23, 2016
@ziggi ziggi changed the title Numolock=on does not work with autologin Numlock=on does not work with autologin Oct 8, 2016
@ghost
Copy link

ghost commented Oct 23, 2016

I'm new to linux. I've just installed arch+lxqt+sddm in virtualbox. But how can I not only enable autologin but also activate numlock on bootup?

@jleclanche
Copy link
Member

@goodluckclever If you go in Keyboard & Mouse settings, in Keyboard you can set it so LXQt turns NumLock on after login.

@ziggi
Copy link
Author

ziggi commented Oct 23, 2016

@goodluckclever or you can use numlockx or systemd-numlockontty. For more information go to the wiki.

@ghost
Copy link

ghost commented Oct 23, 2016

@jleclanche Oh, how easy! I made it. Thanks a lot!
@ziggi I've read the web page you recommanded. I just wondered whether there are any other better ways. It seems that "Keyboard & Mouse settings" is the best choice. But thank you all the same!

@plfiorini plfiorini removed this from the 0.16 milestone Nov 20, 2017
@sci-42ver
Copy link

sci-42ver commented Apr 3, 2023

It seems to not work in wayland. (maybe just not using numpad is the best solution)

In /etc, I has the only conf /etc/sddm.conf.d/10-wayland.conf , and Numlock works if not using DisplayServer=wayland and GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell. The two option don't influence wayland compositor (in my env it is plasma-wayland-session ) according to man sddm.conf ( tested with xwininfo )

/etc/sddm.conf.d/10-wayland.conf

[General]                                                                                                                                  
#InputMethod=
Numlock=on
#DisplayServer=wayland
#GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell

[Wayland]
CompositorCommand=/usr/bin/kwin_wayland  --no-lockscreen

## kde theme
[Theme]
CursorTheme=breeze_cursors
Font=Noto Sans,18,-1,0,50,0,0,0,0,0

env

$ pacman -Qs sddm
local/sddm-git 0.19.0.212.g5fceaa9-1
    The Simple Desktop Display Manager
local/sddm-kcm 5.27.3-1 (plasma)
    KDE Config Module for SDDM

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

No branches or pull requests

5 participants