LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2023, 04:43 AM   #16
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,986

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556

If it wasn't happening before and it's now happening, it would be nice to know why and what.
 
1 members found this post helpful.
Old 08-07-2023, 08:01 AM   #17
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 175

Rep: Reputation: 70
the dev of sddm seems willing to do some changes to restore the expected behaviour when not using journald, so if anyone wants to contribute to the open issue on github with better/quicker feedback than the one I can provide, feel free

https://github.com/sddm/sddm/issues/1780
 
1 members found this post helpful.
Old 08-07-2023, 08:30 AM   #18
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,432

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by lonestar_italy View Post
the dev of sddm seems willing to do some changes to restore the expected behaviour when not using journald, so if anyone wants to contribute to the open issue on github with better/quicker feedback than the one I can provide, feel free

https://github.com/sddm/sddm/issues/1780
Until systemd is found, enable_journald (on or off) does nothing

Code:
if(SYSTEMD_FOUND)
    add_definitions(-DHAVE_SYSTEMD)
    set(CMAKE_AUTOMOC_MOC_OPTIONS -DHAVE_SYSTEMD)

    # libsystemd-journal was merged into libsystemd in 209
    if(${SYSTEMD_VERSION} VERSION_LESS 209)
        pkg_check_modules(JOURNALD "libsystemd-journal")
    else()
        pkg_check_modules(JOURNALD "libsystemd")
    endif()

    if(ENABLE_JOURNALD)
        if(JOURNALD_FOUND)
            add_definitions(-DHAVE_JOURNALD)
            set(CMAKE_AUTOMOC_MOC_OPTIONS -DHAVE_JOURNALD)
        else()
            message(WARNING "Disable journald support for lack of libsystemd-journal")
        endif()
    endif()
I only have very few lines (~15) in TTY1, mainly DAEMON and HELPER

And session logs (wayland & xorg) are in : .local/share/sddm/
 
Old 08-07-2023, 08:45 AM   #19
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 175

Rep: Reputation: 70
Quote:
Originally Posted by marav View Post
Until systemd is found, enable_journald (on or off) does nothing
but it should not find systemd in our case. OR would it need explicit -DHAVE_SYSTEMD=OFF ?

Quote:
Originally Posted by marav View Post
I only have very few lines (~15) in TTY1, mainly DAEMON and HELPER
yes, it's not a tragedy, but it wasn't happening before 0.20 and also the output covers the login prompt on tty1 and any other thing should be there while a sddm event happens. More lines will add in case you log in more than once.
 
Old 08-07-2023, 09:00 AM   #20
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,047

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
Quote:
Originally Posted by lonestar_italy View Post
yes, it's not a tragedy, but it wasn't happening before 0.20 and also the output covers the login prompt on tty1 and any other thing should be there while a sddm event happens. More lines will add in case you log in more than once.
Excuse me, but LuckyCyborg already said that we can simulate the behavior of systemd in this case with the supervisor daemon.

Indeed, the supervisor daemon included in Slackware can capture the output of the supervised program, sending it to syslog or to a log file.

Code:
       -l spec, --errlog=spec
           Send daemon's standard output and standard error to the syslog destination or file that is specified by spec. If spec is a syslog destination of the form "facility.priority",
           then output is sent to syslog(3). Otherwise, output is appended to the file whose path is given in spec. By default, output is sent to the syslog destination, daemon.err. See
           the MESSAGING section below for more details.

       -b spec, --dbglog=spec
           Send daemon's debug output to the syslog destination or file that is specified by spec. If spec is a syslog destination of the form "facility.priority", then output is sent
           to syslog(3). Otherwise, output is appended to the file whose path is given in spec. By default, output is sent to the syslog destination daemon.debug. See the MESSAGING
           section below for more details.

       -o spec, --output=spec
           Capture the client's standard output and standard error, and send it to the syslog destination or file that is specified by spec. If spec is a syslog destination of the form
           "facility.priority", then output is sent to syslog(3). Otherwise, output is appended to the file whose path is given in spec. By default, output is discarded unless the
           --foreground option is present, in which case, the client's stdout and stderr are propagated to daemon's stdout and stderr, respectively. See the MESSAGING section below for
           more details.

       -O spec, --stdout=spec
           Capture the client's standard output, and send it to the syslog destination or file that is specified by spec. If spec is a syslog destination of the form
           "facility.priority", then output is sent to syslog(3).  Otherwise, stdout is appended to the file whose path is given in spec. By default, stdout is discarded unless the
           --foreground option is present, in which case, the client's stdout is propagated to daemon's stdout. See the MESSAGING section below for more details.

       -E spec, --stderr=spec
           Capture the client's standard error, and send it to the syslog destination or file that is specified by spec. If spec is a syslog destination of the form "facility.priority",
           then stderr is sent to syslog(3).  Otherwise, stderr is appended to the file whose path is given in spec. By default, stderr is discarded unless the --foreground option is
           present, in which case, the client's stderr is propagated to daemon's stderr. See the MESSAGING section below for more details.
This is from the man file for the daemon.

After all, I think there is no problem with SDDM. The problem is with the laziness of Slackware users to adapt to the evolution of programs, and the fact that they do not accept that something can change in their behavior. Amazing, but it happens.

My opinion is that those who are unhappy with the current behavior of SDDM, instead of pestering the SDDM developers, would do well to adapt the Slackware scripts.

If this additional work does not suit you gentlemen, stop insisting Slackware to swim against the river. The simplest way would be to use systemd like everyone else, right?

Quote:
Originally Posted by Vogtinator
It's been so long that I've used sysvinit that I have no idea what the expected behaviour is.
https://github.com/sddm/sddm/issues/...ent-1667255778

Last edited by ZhaoLin1457; 08-07-2023 at 01:06 PM.
 
2 members found this post helpful.
Old 08-07-2023, 09:10 AM   #21
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,432

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by lonestar_italy View Post
but it should not find systemd in our case. OR would it need explicit -DHAVE_SYSTEMD=OFF ?
We already have it
Code:
option(NO_SYSTEMD "Disable systemd support" OFF)
Code:
mkdir -p cmake-build
cd cmake-build
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_MANDIR=/usr/man \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DBUILD_MAN_PAGES:BOOL=TRUE \
    -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf" \
    -DUSE_QT5:BOOL=TRUE \
    -DENABLE_JOURNALD:BOOL=FALSE \
    -DENABLE_PAM:BOOL=ON \
    -DNO_SYSTEMD:BOOL=TRUE \
    -DUSE_ELOGIND:BOOL=TRUE \
    ..
 
1 members found this post helpful.
Old 08-07-2023, 03:35 PM   #22
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 796

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
From todays ChangeLog.txt:
Quote:
kde/sddm-0.20.0-x86_64-2.txz: Rebuilt.
Eliminate duplicate log messages polluting the first virtual console.
With the revised wrapper script '/usr/bin/sddm':
Code:
#!/bin/sh
# Customized environment (LANG definition):
if [ -f /etc/default/sddm ]; then
  . /etc/default/sddm
fi

# Ensure non-world readable permissions on /var/log/sddm.log:
touch /var/log/sddm.log
chmod 640 /var/log/sddm.log

# Add a timestamp:
date >> /var/log/sddm.log

# Redirect stdout/stderr to /dev/null to avoid polluting a virtual
# console with duplicate log messages:
exec /usr/bin/sddm.bin "$@" 1> /dev/null 2> /dev/null
 
3 members found this post helpful.
Old 08-08-2023, 03:09 AM   #23
pchristy
Senior Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,124

Original Poster
Rep: Reputation: Disabled
Yes, the latest update seems to have completely cleared the problem - without any need to invoke systemd or its work arounds (thank heavens!).

Many thanks to our Benevolent Dictator!

--
Pete
 
2 members found this post helpful.
Old 08-08-2023, 05:41 PM   #24
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by ZhaoLin1457 View Post
...The simplest way would be to use systemd like everyone else, right?
Hmmm... instead of adding two million lines of code, I by far prefer the one-liner offered.
 
1 members found this post helpful.
  


Reply

Tags
latest, sddm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SDDM has only 1 screen and non-SDDM has both screens. Why? kevinbenko Linux - Newbie 4 12-17-2022 07:27 AM
sddm not starting / Auth: sddm-helper exited with 6 (or 11) wael_h Slackware 2 07-11-2021 12:02 PM
Get first day of last month and last day of last month in bash xowl Linux - Software 18 02-09-2017 09:49 AM
[SOLVED] I'm experiencing several X-server crashes since update from last Monday markush Slackware 7 01-18-2011 02:38 PM
can't watch any videos since last update..! polocadena Linux - Newbie 1 05-07-2009 08:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration