You are not logged in.

#1 2024-07-21 11:47:55

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Getting black screen after logging in

Hi, I updated my Arch Linux laptop after a few months and after logging in, I am getting a black screen and only the cursor is showing. However, I can access tty and upon seeing the journal logs I cannot find the issue. Would someone be able to help me with this?

Offline

#2 2024-07-21 15:12:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

You're logging from lightdm into an xfce4 session?

loginctl session-status 2

would list the XFCE session (but the index is historic, based on the journal - in doubt check "loginctl list-sessions")
Once you made sure you found the xfce4 session, post it

loginctl session-status 2 | curl -F 'file=@-' 0x0.st

In doubt try to disable the compositor and post your xorg log
https://wiki.archlinux.org/title/Xfwm#Composite_manager
https://wiki.archlinux.org/title/Xorg#General

Offline

#3 2024-07-22 03:47:25

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

Output of

loginctl session-status 2

I am not using xfce. I think it might be loaded as well (used to use this earlier before switching to i3). Also, openbox here actually points to i3. Sorry for my bad configuration.

Output of xorg logs.

In the xorg logs, I can see these errors-

[     5.929] (EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory)
[     5.929] (EE) AIGLX error: unable to load driver i965

Are they the reason for the black screen?

Offline

#4 2024-07-22 06:42:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

Possibly. Certainly get rid of xf86-video-intel
Do you also use eg. picom?

Also, openbox here actually points to i3

Otherwise we might have to go at that…

Offline

#5 2024-07-22 08:04:10

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

After removing xf86-video-intel, link to the logs. I am getting this error now (still the black screen though)-

[     5.862] (II) LoadModule: "intel"
[     5.863] (WW) Warning, couldn't open module intel
[     5.863] (EE) Failed to load module "intel" (module does not exist, 0)

I am not using any compositor- picom or anything else.

Offline

#6 2024-07-22 08:16:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

You've a config File that explicitly references the Driver - remove that.

Offline

#7 2024-07-22 08:46:56

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

Ok, is there a way to find out which package is using the driver? I am unable to find a package config which uses that driver.

Offline

#8 2024-07-22 08:50:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

grep -ri intel /{etc,usr/share}/X11/xorg.conf*

Offline

#9 2024-07-22 09:09:52

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

Unfortunately, there was a keyboard backlight conf file and after removing it I am still getting the same error in the logs.

Offline

#10 2024-07-22 14:34:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General
What's the current output of

grep -ri intel /{etc,usr/share}/X11/xorg.conf*

?

Offline

#11 2024-07-22 16:00:41

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

Xorg log link.
The output of the grep command is empty.

Offline

#12 2024-07-22 16:15:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

And where do you see any error there?
You can also remove the other xf86-video-* packages, does the original problem still exist?
If yes, we'll have to look at your session, you're aware that on default i3 you'd basically just get a black screen and a cursor if you're not autostarting anything else?
Are any processes running you'd expect to display windows?

Offline

#13 2024-07-23 04:29:46

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

I think there is an error line in the logs-

[     5.731] (EE) Failed to load module "intel" (module does not exist, 0)

Isn't that a cause of concern?
Even after removing the xf86-video-* packages, I am still getting the same error.
Okay let me check regarding the i3 issue, I am aware that there is a black screen on the default i3. I am loading the sxhkd, polybar as well after loading i3, but nothing is being displayed and no sxhkd shortcuts are working. I will need to narrow down the program which might be causing the issue.

Offline

#14 2024-07-23 05:58:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

Isn't that a cause of concern?

No, the server will consider all matching drivers and step over them. That's absolutely normal.
No idea why this is marked as an error, but it's not fatal and no concern.

After logging into a black screen and from a login on a different tty, check what processes are actually running. You can also

loginctl session-status <index>

w/ "<index>" likely being "2" but that depends on the session history (strict increment)

Offline

#15 2024-07-28 04:09:55

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

Hi, I got a little busy at work and was trying to solve the issue. What I found out was that the i3 was being loaded correctly, but, other programs like systemctl, sxhkd, polybars and others were giving errors as these packages were not found. I then set my PATH variable in .xprofile and everything started working normally. I don't know how the PATH variable got erased after the update.
Also, after removing the xf86-video-intel package, now XF86MonBrightness* is not working, which package is a suitable replacement for changing the brightness?

Offline

#16 2024-07-28 07:07:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Getting black screen after logging in

which package is a suitable replacement for changing the brightness?

https://archlinux.org/packages/extra/any/acpilight/

I then set my PATH variable in .xprofile and everything started working normally. I don't know how the PATH variable got erased after the update.

That's bad and wrong - my money is on you actually running nix stuff

├─805 /home/sudddddd/.nix-profile/bin/zsh --login /etc/lightdm/Xsession /usr/bin/openbox-session
         ├─810 /usr/bin/python3.10 /home/sudddddd/.local/bin/safeeyes
         └─818 /nix/store/pwkb43q48dskasafiw8bk1fsci84jf4w-i3-4.22/bin/i3

why are we using nix tbw? All of that is in the repos.

Offline

#17 2024-07-28 07:27:27

sudddddd
Member
Registered: 2024-07-21
Posts: 9

Re: Getting black screen after logging in

I just wanted to try nix. I could not work it out as smoothly as the packages in the repos. I am planning to remove the nix packages.
Thanks for all the help and patience in solving my issue. I learnt a lot in the process.

Offline

Board footer

Powered by FluxBB