Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gui-libs/display-manager-init: xdm issue...[solved]
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
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3780

PostPosted: Mon Aug 09, 2021 6:31 pm    Post subject: gui-libs/display-manager-init: xdm issue...[solved] Reply with quote

Boot message:
Code:
Service `xdm' needs non existent service `xdm-setup'
Using openrc here.
No idea what 2 do 2 fix...

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Aug 09, 2021 7:45 pm; edited 3 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31199
Location: here

PostPosted: Mon Aug 09, 2021 6:36 pm    Post subject: Reply with quote

Now service is called display-manager, see related news
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3780

PostPosted: Mon Aug 09, 2021 6:44 pm    Post subject: Reply with quote

Oops, my bad:
Code:
rc-update
       NetworkManager |      default                           
                 acct |                                       
                acpid |                                       
               agetty |                                       
            alsasound | boot                                   
              apache2 |                                       
                 atop |                                       
             atopacct |                                       
               auditd |                                       
               binfmt |                                       
            bluetooth |                                       
             bootlogd |                                       
             bootmisc |                                       
         busybox-ntpd |                                       
     busybox-watchdog |                                       
              cgroups |                                 sysinit
              chronyd |      default                           
          consolefont |                                       
             cpupower |      default                           
               cronie |      default                           
         cups-browsed |                                       
                cupsd |                                       
                 dbus |      default                           
                devfs |                                 sysinit
        device-mapper |                                       
               dhcpcd |      default                           
                dhcpd |                                       
             dhcrelay |                                       
            dhcrelay6 |                                       
      display-manager |      default                           
 display-manager-setup |                                       
              distccd |                                       
              dmcrypt |                                       
                dmesg |                                 sysinit
             dmeventd |                                       
       dnscrypt-proxy |                                       
              elogind | boot                                   
                emacs |                                       
            emacs.luc |                                       
           emacs.root |                                       
               enp1s0 |                                       
           fancontrol |                                       
           fbcondecor |      default                           
                 fsck | boot                                   
                 fuse |                                       
           git-daemon |                                       
             gkrellmd |                                       
                  gpm |      default                           
               hdparm |                                       
             hostname | boot                                   
              hwclock | boot                                   
              incrond |                                       
 intel-undervolt-loop |                                       
             iptables |                                       
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
                 kodi |                                       
           lm_sensors |                                       
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
                  lvm |                                       
       lvm-monitoring |                                       
              lvmetad |                                       
             lvmpolld |                                       
                mdadm |                                       
               mdraid |                                       
         modemmanager |                                       
              modules | boot                                   
             mount-ro |                        shutdown       
                  mpd |                                       
                 mtab | boot                                   
                mysql |                                       
             mysql-s6 |                                       
      mysql-supervise |                                       
           net-online |                                       
               net.lo |                                       
             netmount |                                       
              network |                                       
             nftables |                                       
              numlock |                                       
     openrc-settingsd |                                       
              openvpn |                                       
              osclock |                                       
              pciparm |                                       
        postgresql-10 |                                       
        postgresql-12 |                                       
        postgresql-13 |                                       
              privoxy |                                       
               procfs | boot                                   
            pydoc-2.7 |                                       
            pydoc-3.9 |                                       
          qemu-binfmt |                                       
                 root | boot                                   
               rsyncd |                                       
                rtirq |                                       
             runsvdir |                                       
            s6-svscan |                                       
         save-keymaps | boot                                   
    save-termencoding | boot                                   
            savecache |                        shutdown       
             sendmail |                                       
            spacenavd |                                       
                 sshd |                                       
          staticroute | boot                                   
        stmpfiles-dev |                                 sysinit
      stmpfiles-setup | boot                                   
                 swap | boot                                   
              swclock |                                       
               sysctl | boot                                   
                sysfs |                                 sysinit
            syslog-ng |      default                           
              sysstat |                                       
          teamviewerd |                                       
         termencoding | boot                                   
        tomcat-8-main |                                       
                  tor |      default                           
  transmission-daemon |                                       
                 udev |                                 sysinit
          udev-settle |                                       
         udev-trigger |                                 sysinit
              urandom | boot                                   
       wpa_supplicant |                                       
                  xdm |                                       
                 xrdp |
Really thought I've removed it.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3780

PostPosted: Mon Aug 09, 2021 6:53 pm    Post subject: Reply with quote

Code:
eix gui-libs/display-manager-init
[I] gui-libs/display-manager-init
     Installed versions:  1.0-r3(16:46:46 22/05/2021)[code]efil gui-libs/display-manager-init
 * Searching for display-manager-init in gui-libs ...
 * Contents of gui-libs/display-manager-init-1.0-r3:
/etc
/etc/X11
/etc/X11/startDM.sh -> /usr/bin/startDM
/etc/conf.d
/etc/conf.d/display-manager
/etc/init.d
/etc/init.d/display-manager
/etc/init.d/display-manager-setup
/etc/init.d/xdm
/usr
/usr/bin
/usr/bin/startDM[/code]Is there something wrong here...

Thks 4 ur attention, interest & support.

_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1462
Location: Earth

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

new content of /etc/init.d/xdm :

Code:
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2

depend() {
        need display-manager
}

start() {
        return
}

# vim: set ts=4 :


greetings
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "


Last edited by CooSee on Mon Aug 09, 2021 7:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31199
Location: here

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

What is wrong?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3780

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

Coosee,
Code:
cat /etc/init.d/xdm
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2

# This is here to serve as a note to myself, and future developers.
#
# Any Display manager (gdm,kdm,xdm) has the following problem:  if
# it is started before any getty, and no vt is specified, it will
# usually run on vt2.  When the getty on vt2 then starts, and the
# DM is already started, the getty will take control of the keyboard,
# leaving us with a "dead" keyboard.
#
# Resolution: add the following line to /etc/inittab
#
#  x:a:once:/etc/X11/startDM.sh
#
# and have /etc/X11/startDM.sh start the DM in daemon mode if
# a lock is present (with the info of what DM should be started),
# else just fall through.
#
# How this basically works, is the "a" runlevel is a additional
# runlevel that you can use to fork processes with init, but the
# runlevel never gets changed to this runlevel.  Along with the "a"
# runlevel, the "once" key word means that startDM.sh will only be
# run when we specify it to run, thus eliminating respawning
# startDM.sh when "xdm" is not added to the default runlevel, as was
# done previously.
#
# This script then just calls "telinit a", and init will run
# /etc/X11/startDM.sh after the current runlevel completes (this
# script should only be added to the actual runlevel the user is
# using).
#
# Martin Schlemmer
# aka Azarah
# 04 March 2002

depend() {
   need localmount xdm-setup

   # this should start as early as possible
   # we can't do 'before *' as that breaks it
   # (#139824) Start after ypbind and autofs for network authentication
   # (#145219 #180163) Could use lirc mouse as input device
   # (#70689 comment #92) Start after consolefont to avoid display corruption
   # (#291269) Start after quota, since some dm need readable home
   # (#390609) gdm-3 will fail when dbus is not running
   # (#366753) starting keymaps after X causes problems
   after bootmisc consolefont modules netmount
   after readahead-list ypbind autofs openvpn gpm lircmd
   after quota keymaps
   before alsasound

   # Start before X
   use consolekit dbus xfs
}

setup_dm() {
   local MY_XDM
   
   MY_XDM=$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')

   # Load our root path from profile.env
   # Needed for kdm
   PATH=${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")

   NAME=
   case "${MY_XDM}" in
      kdm|kde)
         EXE=/usr/bin/kdm
         PIDFILE=/run/kdm.pid
         ;;
      entrance*)
         EXE=/usr/sbin/entrance
         PIDFILE=/run/entrance.pid
         ;;
      gdm|gnome)
         # gdm-3 and above has different paths
         if [ -f /usr/sbin/gdm ]; then
            EXE=/usr/sbin/gdm
            PIDFILE=/run/gdm/gdm.pid
            START_STOP_ARGS="--background"
            AUTOCLEAN_CGROUP="yes"
         else
            EXE=/usr/bin/gdm
            PIDFILE=/run/gdm.pid
         fi
         [ "${RC_UNAME}" != "Linux" ] && NAME=gdm-binary
         ;;
      wdm)
         EXE=/usr/bin/wdm
         PIDFILE=
         ;;
      gpe)
         EXE=/usr/bin/gpe-dm
         PIDFILE=/run/gpe-dm.pid
         ;;
      lxdm)
         EXE=/usr/sbin/lxdm-binary
         PIDFILE=/run/lxdm.pid
         START_STOP_ARGS="--background"
         ;;
      lightdm)
         EXE=/usr/sbin/lightdm
         PIDFILE=/run/lightdm.pid
         START_STOP_ARGS="--background"
         ;;
      sddm)
         EXE="/usr/bin/sddm"
         START_STOP_ARGS="-m --background"
         PIDFILE=/run/sddm.pid
         ;;
      *)
         # first find out if there is such executable
         EXE="$(command -v ${MY_XDM} 2>/dev/null)"
         PIDFILE="/run/${MY_XDM}.pid"

         # warn user that he is doing sick things if the exe was not found
         if [ -z "${EXE}" ]; then
            echo "ERROR: Your XDM value is invalid."
            echo "  No ${MY_XDM} executable could be found on your system."
         fi
         ;;
   esac

   if ! [ -x "${EXE}" ]; then
      EXE=/usr/bin/xdm
      PIDFILE=/run/xdm.pid
      if ! [ -x "/usr/bin/xdm" ]; then
         echo "ERROR: Please set your DISPLAYMANAGER variable in /etc/conf.d/xdm,"
         echo "   or install x11-apps/xdm package"
         eend 255
      fi
   fi
}

# Check to see if something is defined on our VT
vtstatic() {
   if [ -e /etc/inittab ] ; then
      grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab
   elif [ -e /etc/ttys ] ; then
      grep -q "^ttyv$(($1 - 1))" /etc/ttys
   else
      return 1
   fi
}

start() {
   local EXE NAME PIDFILE AUTOCLEAN_CGROUP
   setup_dm

   if [ -f /etc/.noxdm ]; then
      einfo "Skipping ${EXE##*/}, /etc/.noxdm found or \"nox\" bootparam passed."
      rm /etc/.noxdm
      return 0
   fi

   ebegin "Setting up ${EXE##*/}"

   # save the prefered DM
   save_options "service" "${EXE}"
   save_options "name"    "${NAME}"
   save_options "pidfile" "${PIDFILE}"
   save_options "start_stop_args" "${START_STOP_ARGS}"
   save_options "autoclean_cgroup" "${AUTOCLEAN_CGROUP:-no}"

   if [ -n "${CHECKVT-y}" ] ; then
      if vtstatic "${CHECKVT:-7}" ; then
         if [ -x /sbin/telinit ] && [ "${SOFTLEVEL}" != "BOOT" ] && [ "${RC_SOFTLEVEL}" != "BOOT" ]; then
            ewarn "Something is already defined on VT ${CHECKVT:-7}, will start X later"
            telinit a >/dev/null 2>&1
            return 0
         else
            eerror "Something is already defined on VT ${CHECKVT:-7}, not starting"
            return 1
         fi
      fi
   fi

   /etc/X11/startDM.sh
   eend 0
}

stop() {
   local curvt retval

   retval=0
   if [ -t 0 ]; then
      if type fgconsole >/dev/null 2>&1; then
         curvt=$(fgconsole 2>/dev/null)
      else
         curvt=$(tty)
         case "${curvt}" in
            /dev/ttyv[0-9]*) curvt=${curvt#/dev/ttyv} ;;
            *) curvt= ;;
         esac
      fi
   fi
   local myexe myname mypidfile myservice
   myexe=$(get_options "service")
   myname=$(get_options "name")
   mypidfile=$(get_options "pidfile")
   myservice=${myexe##*/}
   yesno "${rc_cgroup_cleanup:-no}" || rc_cgroup_cleanup=$(get_options "autoclean_cgroup")

   [ -z "${myexe}" ] && return 0

   ebegin "Stopping ${myservice}"

   if start-stop-daemon --quiet --test --stop --exec "${myexe}" 2>/dev/null; then
      start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
         ${mypidfile:+--pidfile} ${mypidfile} \
         ${myname:+--name} ${myname}
      retval=${?}
   fi

   # switch back to original vt
   if [ -n "${curvt}" ]; then
      if type chvt >/dev/null 2>&1; then
         chvt "${curvt}"
      else
         vidcontrol -s "$((curvt + 1))"
      fi
   fi

   eend ${retval} "Error stopping ${myservice}"
   return ${retval}
}

# vim: set ts=4 :
Seems different here.

I have to find out the reason why:
Code:
ll /etc/init.d/xdm
-rwxr-xr-x 1 root root 6030 avril 12 12:17 /etc/init.d/xdm
Thks 4 ur attention, interest é support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Aug 09, 2021 7:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31199
Location: here

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

Try to rebuild gui-libs/display-manager-init and see if etc-update want to change this file.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3780

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

fedeliallalinea wrote:
Try to rebuild gui-libs/display-manager-init and see if etc-update want to change this file.
Catched.
Sorry for the noise.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
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