dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] login screen doesn't load into hyprland when entering correct login

Open lizardonsprings opened this issue 1 year ago • 8 comments

Using Arch: Only way in is to CTRL-SHIFT-F3, login then run Hyprland cmd.

Otherwise I see a black screen for a moment after entering the correct username/password then am returned to log in again.

Hopefully I'm just doing something stupid. Otherwise love the dotfiles, thank you

lizardonsprings avatar Dec 31 '24 01:12 lizardonsprings

That seems like a crash, what display manager are you using?

TheRedCyclops avatar Dec 31 '24 15:12 TheRedCyclops

Yeah agreed, using sddm as recommended.

lizardonsprings avatar Dec 31 '24 15:12 lizardonsprings

experiencing the same issue, can you please tell me the commands you ran after pressing CTRL-SHIFT-F3 new to linux here

rracim-dev avatar Jan 03 '25 15:01 rracim-dev

experiencing the same issue, can you please tell me the commands you ran after pressing CTRL-SHIFT-F3 new to linux here

Simply type Hyprland to load into the desktop environment (case sensitive)

lizardonsprings avatar Jan 04 '25 12:01 lizardonsprings

That seems like a crash, what display manager are you using?

Is there a way I can potentially debug sddm crashing on login do you know?

lizardonsprings avatar Jan 05 '25 12:01 lizardonsprings

If it helps, I'm using a NVIDIA RTX3050Ti

lizardonsprings avatar Jan 06 '25 21:01 lizardonsprings

Opted for a slightly more elegant workaround to skip the greeter.

Edited the sddm config via /etc/sddm.conf.d/ uncommented the user bit and added my username, then umcommented session (use hyprland, no capital H) for auto login

lizardonsprings avatar Jan 06 '25 21:01 lizardonsprings

Please check the Hyprland Wiki for more information how to setup an NVIDA card. Maybe you can find there the solution. I would say that it's not a Dotfiles issue.

mylinuxforwork avatar Jan 07 '25 19:01 mylinuxforwork

@lizardonsprings I was also getting this issue. On a completely clean install on bare metal I was able to log in for the first time, but when I did a reboot, I get the black screen then taken back to the login page. (NVIDIA 2070 Super)

Here's how I resolved it:

# Remove nvidia-dkms if you already have it (it will be reinstalled)
sudo pacman -R nvidia-dkms
sudo pacman -S linux-headers nvidia-dkms nvidia-utils egl-wayland

create and edit /etc/modprobe.d/nvidia.conf. Add this line to the file:

options nvidia_drm modeset=1 fbdev=1

Open /etc/mkinitcpio.conf and go to/uncomment MODULES and put these modules in:

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Make sure you have these envs somewhere in your hyprland config:

env = WLR_DRM_NO_ATOMIC,1
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = GBM_BACKEND,nvidia-drm
env = __GL_GSYNC_ALLOWED,0
env = __GL_VRR_ALLOWED,0

Regenerate your initramfs:

sudo mkinitcpio -P

Reboot.

Hope this helps.

EDIT: Forgot to mention that I couldn't start in uswm mode (bottom left hand corner of the login screen). I changed that and it worked.

pwhite1989 avatar Jan 17 '25 22:01 pwhite1989

There is also an nvidia environment variation that you could take. https://github.com/mylinuxforwork/dotfiles/blob/main/share/dotfiles/.config/hypr/conf/environments/nvidia.conf

mylinuxforwork avatar Jan 19 '25 12:01 mylinuxforwork