LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   changing to graphical login on current kdm is missing (https://www.linuxquestions.org/questions/slackware-14/changing-to-graphical-login-on-current-kdm-is-missing-4175698005/)

timsoft 07-20-2021 08:29 AM

changing to graphical login on current kdm is missing
 
Hi All, I have come accross a problem in that normally to enable graphical boot/login I just change the id entry in inittab from 3 to 4
Trying it with current didn't work for me.
I checked the rc.4 script to see what should be happening.
sddm doesn't appear to work on my test machine, and kdm is missing entirely.

startx from text login works fine.
what happened to the kde login manager? I can't find it when greping /var/lib/pkgtool/packages/*

LuckyCyborg 07-20-2021 08:33 AM

Quote:

Originally Posted by timsoft (Post 6268024)
Hi All, I have come accross a problem in that normally to enable graphical boot/login I just change the id entry in inittab from 3 to 4
Trying it with current didn't work for me.
I checked the rc.4 script to see what should be happening.
sddm doesn't appear to work on my test machine, and kdm is missing entirely.

startx from text login works fine.
what happened to the kde login manager? I can't find it when greping /var/lib/pkgtool/packages/*

The Plasma5 uses SDDM as login manager.

timsoft 07-20-2021 09:35 AM

Unfortunately sddm doesn't appear to work on my test pc. when in runlevel 4 it does nothing, and you are dropped to a regular text login

Attempting to run it from a run level3 login and it does nothing, it just sits with the text there, until i press ctrl-C to get back to a text prompt.

I verified that startx and startkwayland work on their own from run level 3.

LuckyCyborg 07-20-2021 10:54 AM

Quote:

Originally Posted by timsoft (Post 6268054)
Unfortunately sddm doesn't appear to work on my test pc. when in runlevel 4 it does nothing, and you are dropped to a regular text login

Attempting to run it from a run level3 login and it does nothing, it just sits with the text there, until i press ctrl-C to get back to a text prompt.

I verified that startx and startkwayland work on their own from run level 3.

SDDM should run as root to do its job. You can change to runlevel 4 on /etc/inittab

If everything else, then you hit a bug on SDDM. You can look on its log to see what it does not like: /var/log/sddm.log

timsoft 07-20-2021 11:37 AM

hmmm. When I log in as root in init 3 sddm appears to hang when I try to run it.
looking at /var/log/sddm I see
Code:

datestamp (II) DAEMON: Initializing...
datestamp (II) DAEMON: Starting...
datestamp (II) DAEMON: Logind interface found

then after waiting for a minute and nothing happens, I ctrl-c to get to a prompt, and
Code:

datestamp (II) DAEMON: Signal received: SIGNINT
is added to the log

it doesn't actually appear to do anything. I tried manually switching (ctrl-alt-Fx) between the 4 text vts and 7 (normally the graphics one, but there is nothing on the graphics one).

I do have a radeon.modeset=0 on my kernel line (otherwise I can't see anything part-way through the kernel boot), but as both x and wayland start manually ok, that shouldn't effect things.

timsoft 07-20-2021 11:42 AM

I tried running sddm in test mode, and it endlessly goes in a loop filling up the log. I can provide the repeating part if it would help

BrunoLafleur 07-21-2021 08:30 AM

In the past I had some problems with sddm on Ubuntu with sddm not lauching and freezing some times. And from time to time it was working...

So in the current Slackware I don't use it on that laptop. I use gdm or kdm (I have a recompiled sbo like version).

I have also an arm version of the current Slackware on a Raspberry PI4 and I use gdm because SDDM seems to have the same stability problems (but with very different hardware).

gdm is easy to install. It has few dependencies.

BrunoLafleur 07-21-2021 08:49 AM

Maybe an explanation for the problem :
https://bugzilla.redhat.com/show_bug.cgi?id=1912046

Slackware has now elogind which maybe have the same sort of problem as systemd for SDDM because it is an extract of systemd. It is not directly the fault of systemd but some variables given to it are not POSIX so they are filtered.

timsoft 07-21-2021 10:22 AM

Thanks BrunoLafleur, I had a look at that, and checked env, but there wasn't a single environment variable with non standard characters
(A-Z,1-9,_ ) so it doesn't look like that is the cause.

enorbet 07-21-2021 11:21 AM

Is this some sort of minimalist install? instead of the Full Recommended Install? The only issue I have ever seen with SDDM is that /etc/sddm.conf contains the line

Code:

# The lowest virtual terminal number that will be used.
MinimumVT=7

which, for a time, did not auto switch VTs for me resulting in a blank VT1 and requiring a manual "Alt-F7" to get to X. These days it works fine with no manual intervention.

BrunoLafleur 07-22-2021 03:55 AM

The problems reported for SDDM seems to be very random. They don't seem to depends on graphical cards nor with the kernel or are common to at least some of them on different architecture.

For me I have only full current Slackware. But problems appears with very different arch and distributions.

And also env variables maybe set inside components of the system and maybe not visible in the console environnement of the user.

Also PAM is setting some env variables in particular for desktop managers like SDDM, KDM or GDM. In the Slackware current they seem to be correctly set.

timsoft 07-23-2021 05:21 AM

in my case the install is a full install of current. I have tried manually switching to vt7 but there is nothing on that page.
I haven't got round to trying it on some different hardware, but I can rig up a barebones and try it out to see if it affects more than one bit of hardware for me. The hardware giving me the problem is a 27" imac which reports an RV770/M98L ati graphics with lspci, although as previously noted I do have radeon.nomodeset=0 as a kernel option so that I can see stuff, (and I did install the x86-video-fbdev from extra). The fact I can run x or wayland manually seems to point to an sddm issue.

timsoft 07-23-2021 09:42 AM

I should comment that on the problem computer, which although it is set to boot to runlevel 4, appears to be in runlevel 3, ie no graphical login,
sddm and sddm.bin appear to be running (ps -A shows them) even though there is no graphical display started.

BrunoLafleur 07-23-2021 09:55 AM

Quote:

Originally Posted by timsoft (Post 6269092)
I should comment that on the problem computer, which although it is set to boot to runlevel 4, appears to be in runlevel 3, ie no graphical login,
sddm and sddm.bin appear to be running (ps -A shows them) even though there is no graphical display started.

There is also a lot of SDDM problems due to generating random data at boot.

And also SDDM launching before video drivers.

I don't know if those are pertinent with Slackware current.

Are you using generic or full kernel ?

timsoft 07-23-2021 11:36 AM

I am using huge kernel (5.13.4), everything up to date as of today


All times are GMT -5. The time now is 11:58 AM.