Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Black screen with mouse pointer after logging in with SDDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 3:29 am    Post subject: Black screen with mouse pointer after logging in with SDDM Reply with quote

Hey guys,

I've been wanting to start experimenting around with gentoo for quite a while so I thought I'd give it a try and install it in a virtual machine.


The install went perfectly.


After installing everything that I needed, I rebooted to try to log into the desktop environment, everything went smoothly I got the regular SDDM login, but after that I put in my password I received a black screen with nothing but my mouse pointer to move around.


I've already tried several things that I found on previous forum posts but none of them worked for me.


Maybe the answer is really simple but I haven't been able to figure it out.


I've used the wiki for everything


the profile that I am using is the /desktop/plasma (stable)

I am using Xorg, SDDM and KDE Plasma
_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 1:50 pm    Post subject: Reply with quote

Degr,

Xorg started properly as root to run SDDM, which is encouraging.

When you log in as your normal user, Xorg gets restarted as that user. elogind does the root things so that that can happen.
Either Xorg is not starting or there is a problem starting plasma.

Somewhere in your /home/<username>/ you will have an Xorg.0.log file. Put that filo onto a pastebin site and post the URL. Its too big for a post.
wgetpaste can help.

You will also have a /var/log/Xorg.0.log file, which shows what happened when root started Xorg. We know that worked, so its not the one we need.

Post your
Code:
emerge --info
output too please.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 3:49 pm    Post subject: Reply with quote

Hey there, Neddy!

Thank you for replying, I am currently compiling firefox so it'll take me a bit to send all of the info.

If it's of any help I installed Xfce and it works perfectly fine if I start it using startx, if I try logging in with SDDM it'll just give me a black screen.

I'll get back to you with the pastebin ASAP!
_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 5:39 pm    Post subject: Reply with quote

Degr,

That's useful info. If startx works as your normal user, its not a permissions probllem, nor is it an Xorg issue.

Its related to whatever SDDM does after you log in.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 6:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Degr,

Xorg started properly as root to run SDDM, which is encouraging.

When you log in as your normal user, Xorg gets restarted as that user. elogind does the root things so that that can happen.
Either Xorg is not starting or there is a problem starting plasma.

Somewhere in your /home/<username>/ you will have an Xorg.0.log file. Put that filo onto a pastebin site and post the URL. Its too big for a post.
wgetpaste can help.

You will also have a /var/log/Xorg.0.log file, which shows what happened when root started Xorg. We know that worked, so its not the one we need.

Post your
Code:
emerge --info
output too please.


I sincerely apologise, I wasn't able to find the Xorg.0.log (I've went through all of the /home/username/ directories and even used the find command the only thing that came up was the /var/log/Xorg.0.log file) file and firefox failed to compile so i couldn't properly copy and paste the outputs that you've asked into a pastebin, I have taken some screenshots hopefully that's okay.

https://imgur.com/a/rdyvrPD
_________________
-Degr
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 6:43 pm    Post subject: Reply with quote

Also I have no idea what could've went wrong with SDDM, I have installed it according to the wiki. only thing that I could think of is that I have both xdm and display-manager running

EDIT: I would also like to specify that I did launch the startx from my root user. I apologise for not trying to earlier it with my regular user. as soon as my current emerge finishes compiling I'll try it with my regular user and I'll reply with the results
_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 6:58 pm    Post subject: Reply with quote

Degr,

You missed my wgetpaste hint.

Its a command line utility that puts files and command line output on the web. You only post the URL you get back.
Pastes don't last very long but helpers will quote interesting bits is their replies so that future readers can benefit too.

Hmm. Your USE settings are missing elogind, suid and systemd. You need one of them for Xorg to start as a user.

Your profile is default/linux/amd64/17.1 Thats not wrong but you will need to select a lot of use flags for yourself.
To see what I mean, run
Code:
emerge --info
now and make a note of your use flags.

Now choose the
Code:
default/linux/amd64/17.1/desktop
profile and run
Code:
emerge --info
again.
Compare the USE flags that the new profile has added.

Now look at the output of
Code:
emerge -pvuND @world
to see what would happen to your system if you actually used that profile.
The will be new packages and rebuilds with new USE settings.
That's a much better place to start for a GUI install.

So far, you haven't changed anything. You can reset the profile if you wish and add USE flags on a per package package basis.
Its your Gentoo, your way.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 7:25 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Degr,

You missed my wgetpaste hint.

Its a command line utility that puts files and command line output on the web. You only post the URL you get back.
Pastes don't last very long but helpers will quote interesting bits is their replies so that future readers can benefit too.

Hmm. Your USE settings are missing elogind, suid and systemd. You need one of them for Xorg to start as a user.

Your profile is default/linux/amd64/17.1 Thats not wrong but you will need to select a lot of use flags for yourself.
To see what I mean, run
Code:
emerge --info
now and make a note of your use flags.

Now choose the
Code:
default/linux/amd64/17.1/desktop
profile and run
Code:
emerge --info
again.
Compare the USE flags that the new profile has added.

Now look at the output of
Code:
emerge -pvuND @world
to see what would happen to your system if you actually used that profile.
The will be new packages and rebuilds with new USE settings.
That's a much better place to start for a GUI install.

So far, you haven't changed anything. You can reset the profile if you wish and add USE flags on a per package package basis.
Its your Gentoo, your way.


Oh, I wasn't sure what wgetpaste does, thank you for explaining.

Now, I had installed elogind initially and it's service is still running at boot so I am not too sure what went wrong there. And, I will make sure to take a look at what the different use flags.

I was using the default/linux/amd64/17.1 profile for the Xfce DE not for Plasma initially I was using the default/linux/amd64/17.1/desktop/plasma (stable) profile.

I just wanted to add that startx will not boot under my regular user. I have the screenshots right here: https://imgur.com/a/yN6X3Ss. Again, I apologise for not using wgetpaste I had taken them just before I've seen your reply and right now, I'm trying to retrace my steps to see maybe I have missed something in the KDE installation manual.
_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 9:13 pm    Post subject: Reply with quote

Degr,

There is a difference between having a package installed and building things to depend on it.

Lets look at xorg-server.
Code:
$ eix xorg-server
[I] x11-base/xorg-server
     Available versions:  1.20.11(0/1.20.11)^t{tbz2} (~)1.20.11-r2(0/1.20.11)^t (~)1.20.11-r3(0/1.20.11)^t (~)1.20.12(0/1.20.12)^t{tbz2} **9999(0/9999)*l^t {debug dmx doc +elogind ipv6 kdrive minimal selinux suid systemd test +udev unwind wayland xcsecurity xephyr xnest xorg xvfb}


It wants elogind by default. Thats what the +elogind means. Your log shows Cannot open /dev/tty0 (Permission denied) which is typical of Xorg not having the right permissions to set up the console. That's also why it works as root.

What does
Code:
emerge -pv xorg-server
show?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 9:24 pm    Post subject: Reply with quote

Hey, I would like to thank you for your patience with me.

I am still really new to gentoo and this entire process has been pretty difficult but it's helping me learn more about gentoo and how it works

Here's the output:

Code:

# emerge -pv xorg-server

These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild   R    ] x11-base/xorg-server-1.20.11:0/1.20.11::gentoo  USE="elogind ipv6 udev wayland xorg -debug -dmx -doc -kdrive -minimal (-selinux) -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 9:33 pm    Post subject: Reply with quote

Degr

That's correct. USE="elogind ...

Is elogind in the default runlevel?
Code:
rc-update --verbose show
will tell.

If not, add it and start the service, then try startx as your normal user again.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Sun Aug 08, 2021 9:45 pm    Post subject: Reply with quote

Degr,

That looks good too.

Post the log with wgetpaste. Its much easier to read. I'll look at it in the morning (my time).
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Sun Aug 08, 2021 9:47 pm    Post subject: Reply with quote

Hey, I added it to the default runlevel but when I tried to startx it wouldn't start.

Here's the pastebin:

http://dpaste.com/2PHAK8YMC

EDIT: Sorry for deleting some of my previous messages kinda freaked out that I sent the wrong thing.
_________________
-Degr
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Mon Aug 09, 2021 7:14 pm    Post subject: Reply with quote

I have also found that Xorg is running under the root user shouldn't it be running under the regular user?

Code:

$ ps -fC X
UID        PID  PPID  C STIME TTY          TIME CMD
root      2627  2570  0 21:38 tty7     00:00:00 /usr/bin/X -nolisten tcp -auth /var/run/sddm/{c0740052-d262-4163-9151-fe7dd7c172e0} -background none -noreset -displayfd 17 -seat seat0 vt7

_________________
-Degr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Mon Aug 09, 2021 7:35 pm    Post subject: Reply with quote

Degr,

Xorg runs as root when it displays the login screen. It does not yet know the user you will log in as.
Once you log in, Xorg is restarted as the user you log in as.
The answer to your question is that it depends when you look.

Xorg stared at time
Code:
[   526.827] .

Its saving the log in
Code:
[   526.829] (==) Log file: "/home/degr/.local/share/xorg/Xorg.1.log", Time: Mon Aug  9 00:46:21 2021
so we know that its running as user degr. Roots log goes to /var/log but users have no write access there.
Code:
[   528.303] (II) Server terminated successfully (0). Closing log file.
so one and a half seconds after Xorg started, it shut down normally.
Other than that, it looks OK.

Xorg behaves like this this when is not told what to do. How did you configure SDDM to start your desktop session?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Degr
n00b
n00b


Joined: 05 Aug 2021
Posts: 20

PostPosted: Mon Aug 09, 2021 7:56 pm    Post subject: Reply with quote

Hey, I have followed the SDDM wiki page for it's installation

Here's my /etc/sddm.conf file
Code:

[X11]
DisplayCommand=/etc/sddm/scripts/Xsetup

My /etc/sddm/scripts/Xsetup
Code:

setxkbmap us

and my /etc/conf.d/display-manager
Code:

# We always try and start the DM on a static VT. The various DMs normally
# default to using VT7. If you wish to use the display-manager init
# script, then you should ensure that the VT checked is the same VT your
# DM wants to use.
# We do this check to ensure that you haven't accidentally configured
# something to run on the VT in your /etc/inittab file so that
# you don't get a dead keyboard.
CHECKVT=7

# What display manager do you use ?
#     [ xdm | greetd | gdm | sddm | gpe | lightdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="sddm"

_________________
-Degr
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum