Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] screen just shows cursor when logging in from 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
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Tue Feb 06, 2024 3:52 pm    Post subject: [SOLVED] screen just shows cursor when logging in from sddm Reply with quote

Ok first
This is my first run with gentoo.
This is also my first post on the forum so I apologize if I have not done something correct here.
I have been using various linux distros for over 10 years.
I have read allot of forum posts and allot of gentoo wikis trying to figure this out.
Just need a little direction or pointed in the right place.
What is happening is sddm launches on startup just fine showing my username.
I put in the password and it goes to a blank screen with a cursor at the top left and locks up the system.
Only way to restart is hold power button down.
This is a laptop.
I installed xfce .
If at the sddm login screen I hit ctl-alt-F1 I can go to a tty screen login and when I type startx I get to xfce.
Just can't do it from sddm.
If you need more info let me know.
Thanks


Last edited by maybl8 on Wed Feb 07, 2024 5:30 am; edited 2 times in total
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Tue Feb 06, 2024 9:37 pm    Post subject: Reply with quote

Here is my xorg file.
https://pastebin.com/Hy4ZwXym
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Tue Feb 06, 2024 10:14 pm    Post subject: Reply with quote

maybl8,

Welcome to Gentoo Forums ! :D

Please provide us /var/log/sddm.log (if it is too long only the actual/last part) and the output of "emerge --info" (so we can see some configurations like systemd or OpenRC).
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 12:03 am    Post subject: Reply with quote

sddm.log
Code:

[18:49:15.317] (II) DAEMON: Display server starting...
[18:49:15.317] (II) DAEMON: Writing cookie to "/run/sddm/xauth_ducOzn"
[18:49:15.317] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt7 -auth /run/sddm/xauth_ducOzn -noreset -displayfd 16
[18:49:17.799] (II) DAEMON: Setting default cursor
[18:49:17.804] (WW) DAEMON: Could not setup default cursor
[18:49:17.804] (II) DAEMON: Running display setup script  "/etc/sddm/scripts/Xsetup"
[18:49:17.813] (II) DAEMON: Display server started.
[18:49:17.813] (II) DAEMON: Socket server starting...
[18:49:17.813] (II) DAEMON: Socket server started.
[18:49:17.814] (II) DAEMON: Loaded empty theme configuration
[18:49:17.814] (II) DAEMON: Greeter starting...
[18:49:17.866] (II) HELPER: [PAM] Starting...
[18:49:17.867] (II) HELPER: [PAM] Authenticating...
[18:49:17.867] (II) HELPER: [PAM] returning.
[18:49:17.916] (II) HELPER: Writing cookie to "/tmp/xauth_GknoTp"
[18:49:17.917] (II) HELPER: Starting X11 session: "" "/usr/bin/sddm-greeter --socket /tmp/sddm-:0-HLwmgo"
[18:49:18.065] (II) DAEMON: Greeter session started successfully
[18:49:20.787] (II) DAEMON: Message received from greeter: Connect


emerge --info
Code:

demo@gentoo /var/log $ sudo emerge --info
Password:
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1/desktop, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-10510U_CPU_@_1.80GHz-with-glibc2.38
KiB Mem:    16000280 total,  13843164 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 05 Feb 2024 23:18:31 +0000
Head commit of repository gentoo: f48c96cc2064be2261d6cdb57254f9df53efd27a

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli clogind crypt cups dbus dbusmenu dri dts dvd dvdr elogind encode exif extensions flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xorg xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Wed Feb 07, 2024 2:29 am    Post subject: Reply with quote

Do you have added "elogind" to your runlevel "boot" ?
https://wiki.gentoo.org/wiki/Elogind#Service
(Check it with "rc-update")

It looks like that SDDM doesnt know what to start. Have you configured this?
https://wiki.gentoo.org/wiki/Xfce/Guide#Graphical_login

Another question: Why do you have changed the default start from /usr/share/sddm/scripts/Xsetup to /etc/sddm/scripts/Xsetup (which looks wrong to me because it should be /etc/sddm.conf.d/...). Do you need some special handling before X11 is starting ?

Maybe my sddm.log can help you (I start kde-plasma)
Code:
[18:59:40.930] (II) DAEMON: Initializing...
[18:59:40.938] (II) DAEMON: Starting...
[18:59:40.938] (II) DAEMON: Logind interface found
[18:59:40.940] (II) DAEMON: Adding new display...
[18:59:40.941] (II) DAEMON: Loaded empty theme configuration
[18:59:40.941] (II) DAEMON: Xauthority path: "/run/sddm/xauth_NWuuuX"
[18:59:40.941] (II) DAEMON: Using VT 2
[18:59:40.941] (II) DAEMON: Display server starting...
[18:59:40.941] (II) DAEMON: Writing cookie to "/run/sddm/xauth_NWuuuX"
[18:59:40.941] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_NWuuuX -noreset -displayfd 16
[18:59:42.048] (II) DAEMON: Setting default cursor
[18:59:42.140] (II) DAEMON: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
[18:59:42.144] (II) DAEMON: Display server started.
[18:59:42.144] (II) DAEMON: Socket server starting...
[18:59:42.144] (II) DAEMON: Socket server started.
[18:59:42.145] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/breeze/theme.conf"
[18:59:42.146] (II) DAEMON: Greeter starting...
[18:59:42.161] (II) HELPER: [PAM] Starting...
[18:59:42.161] (II) HELPER: [PAM] Authenticating...
[18:59:42.161] (II) HELPER: [PAM] returning.
[18:59:42.192] (II) HELPER: Writing cookie to "/tmp/xauth_MCzpFv"
[18:59:42.192] (II) HELPER: Starting X11 session: "" "/usr/bin/sddm-greeter --socket /tmp/sddm-:0-MfuJeH --theme /usr/share/sddm/themes/breeze"
[18:59:42.194] (II) DAEMON: Greeter session started successfully
[18:59:42.270] (II) DAEMON: Message received from greeter: Connect
[18:59:46.203] (II) DAEMON: Message received from greeter: Login
[18:59:46.203] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[18:59:46.206] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "/usr/bin/startplasma-x11" for VT 2
[18:59:46.224] (II) HELPER: [PAM] Starting...
[18:59:46.224] (II) HELPER: [PAM] Authenticating...
[18:59:46.225] (II) HELPER: [PAM] Preparing to converse...
[18:59:46.225] (II) HELPER: [PAM] Conversation with 1 messages
[18:59:46.236] (II) HELPER: [PAM] returning.
[18:59:46.237] (II) DAEMON: Authentication for user  "peter"  successful
[18:59:46.294] (II) HELPER: Writing cookie to "/tmp/xauth_BJtvdj"
[18:59:46.294] (II) HELPER: Starting X11 session: "" "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
[18:59:46.295] (II) DAEMON: Session started true
[18:59:46.322] (II) HELPER: [PAM] Closing session
[18:59:46.322] (II) HELPER: [PAM] Ended.
[18:59:46.323] (II) DAEMON: Auth: sddm-helper exited successfully
[18:59:46.323] (II) DAEMON: Greeter stopped. SDDM::Auth::HELPER_SUCCESS

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 2:33 am    Post subject: Reply with quote

I attempted to follow multiple instructions to solve the issue.
I'm sure I did something or many things wrong trying to solve the issue.
It's hard to know exactly which instruction to follow.
I will look at your info and get back to you with the results.
I don't need anything special that I know of.


I have ran these commands:
Code:

demo@gentoo /var/log $ sudo rc-update add elogind boot
Password:
 * rc-update: elogind already installed in runlevel `boot'; skipping
demo@gentoo /var/log $ sudo rc-update add dbus default
 * rc-update: dbus already installed in runlevel `default'; skipping
demo@gentoo /var/log $ sudo rc-update add display-manager default
 * rc-update: display-manager already installed in runlevel `default'; skipping


I will look at the sddm configs next.
Do I just need to remove the extra config files?
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Wed Feb 07, 2024 2:45 am    Post subject: Reply with quote

maybl8 wrote:
I will look at the sddm configs next.
Do I just need to remove the extra config files?

Maybe. Maybe it will be safer to delete /etc/sddm* and do a re-emerge of sddm with "emerge -1vD sddm"
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 3:29 am    Post subject: Reply with quote

I removed the sddm dir with rm -rf /etc/sddm
I then installed sddm as you instructed .
That didn't make a difference.
So I did some reading and ran this command:

sudo emerge --ask --verbose --depclean sddm

I rebooted and sddm was gone.
startx still launced xfce

I then reinstalled sddm per your command and rebooted.
sddm started
Something different happened .
When I entered the users password it just returned me back to the sddm login screen over and over.
so I did ctrl-alt-F1 and logged in.
ran startx and it went into xfce.

What should I look at next?

Thanks
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 4:57 am    Post subject: Reply with quote

Ok in trying to find some additional learning I did some searching and it lead me to look at .xsession-errors files which said it couldn't find xsm.
I didn't know what xsm was so seeing if it was a package that was needed I installed it.
When I rebooted and tried to login some kind of grid was on the sddm screen and what looked like some kind of text editor was also on the screen. All the text was very very small.
I ctrl-alt-F1 and ran startx.

I hope this helps.
I have no idea what I have messed up here.
Learning gentoo is interesting .
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 5:29 am    Post subject: Reply with quote

I finally figured this out.
Not sure if I did it the right way but it is working.
I went to the /usr/share/sessions folder and change the Xsession.desktop file to have this in it:
Code:

[Desktop Entry]
Name=XSession
Comment=This session logs you into your custom Xsession
#Exec=/etc/X11/Sessions/Xsession
Exec=/etc/X11/Sessions/Xfce
#TryExec=/etc/X11/Sessions/Xsession
TryExec=/etc/X11/Sessions/Xfce
# no icon yet, only the top three are currently used
Icon=
Type=Application


I will mark this solved.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Wed Feb 07, 2024 2:47 pm    Post subject: Reply with quote

maybl8,

first of all: Thanks a lot for your feedback !

Does it mean that adding XSESSION="Xfce4" to /etc/env.d/90xsession did not work ? (https://wiki.gentoo.org/wiki/Xfce/Guide#Graphical_login)

If this is true then our Wiki is wrong with this information and I would like to ask our XFCE experts (I am not) to check it.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Wed Feb 07, 2024 2:54 pm    Post subject: Reply with quote

maybl8 wrote:
I finally figured this out.
Not sure if I did it the right way but it is working.
I went to the /usr/share/sessions folder and change the Xsession.desktop file to have this in it:

This is unlikely to stay as-is for any length of time. That file will be overwritten as system update are run.
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 3:06 pm    Post subject: Reply with quote

pietinger wrote:
maybl8,

first of all: Thanks a lot for your feedback !

Does it mean that adding XSESSION="Xfce4" to /etc/env.d/90xsession did not work ? (https://wiki.gentoo.org/wiki/Xfce/Guide#Graphical_login)

If this is true then our Wiki is wrong with this information and I would like to ask our XFCE experts (I am not) to check it.


I have that setting also but it wasn't working with just that set for me.
If I am the only one reporting this then I may have something interfering with that setting.
I don't know enough about gentoo yet to know for sure.
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 3:07 pm    Post subject: Reply with quote

grknight wrote:
maybl8 wrote:
I finally figured this out.
Not sure if I did it the right way but it is working.
I went to the /usr/share/sessions folder and change the Xsession.desktop file to have this in it:

This is unlikely to stay as-is for any length of time. That file will be overwritten as system update are run.


So what can I do to make it right.
This is how I fixed it but if that is wrong I want the correct way to set it up.
Thanks
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1662

PostPosted: Wed Feb 07, 2024 3:12 pm    Post subject: Reply with quote

Did you choose XFCE as the session type on the SDDM greeter screen?
This can be in various places but the default is often in the top left corner, but the theme can put it anywhere.
Back to top
View user's profile Send private message
maybl8
n00b
n00b


Joined: 06 Feb 2024
Posts: 13

PostPosted: Wed Feb 07, 2024 3:26 pm    Post subject: Reply with quote

No it said XSession
I have changed it to XFCE
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