Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9 slow boot

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian 9 slow boot

#21 Post by uthappam »

Thank you. I have downloaded the procedure for setting up systemd-networkd, and it is not so difficult as I had thought.
[edit]Networking is now controlled by systemd-networkd. However, it appears that NetworkManager has not been completely removed. For one thing, the rapidly scrolling messages at boot time include two about NM: the first to say that it is not active, the second to say something about its dependencies. Second, the sub-directory /etc/NetworkManager is still present, with its contents.

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian 9 slow boot

#22 Post by uthappam »

NetworkManager has been completely removed. So too the directory under /etc. The network icon in the system tray indicated no activity even when my Net connection was live, so I discarded it. I could not find a replacement, which is not a handicap as my modem's indicator lights are visible. No colourful words are now showm early in the boot process.

Here is the report of systemd-analyze

Code: Select all

Startup finished in 2.533s (kernel) + 12.711s (userspace) = 15.244s
And here is that of systemd-analyze blame

Code: Select all

4.381s ModemManager.service
          4.271s dev-sda1.device
          2.574s lightdm.service
          1.875s rsyslog.service
          1.866s networking.service
          1.720s ntp.service
          1.512s colord.service
          1.431s upower.service
          1.383s binfmt-support.service
          1.362s polkit.service
          1.073s keyboard-setup.service
           842ms clamav-daemon.service
           809ms speech-dispatcher.service
           755ms systemd-tmpfiles-setup-dev.service
           699ms systemd-fsck@dev-disk-by\x2duuid-404966a5\x2d96c1\x2d42f3\x2db6
           681ms systemd-modules-load.service
           651ms systemd-resolved.service
           629ms lm-sensors.service
           498ms systemd-logind.service
           493ms home.mount
           488ms avahi-daemon.service
           480ms systemd-udevd.service
           468ms systemd-user-sessions.service
But this story is not a happy one. It takes over 40 seconds for the desktop to appear after the log-in prompt does.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian 9 slow boot

#23 Post by bw123 »

...
But this story is not a happy one. It takes over 40 seconds for the desktop to appear after the log-in prompt does.
How long did it used to take?
maybe something here to figure out why...
/var/log/lightdm
or some stuff getting started from here...
/etc/xdg/autostart

It's easy to tweak the stuff, I'm not sure what the problem really is? 40 sec is not a problem if you have a lot of things installed and set to run at startup.

If you want it to work like manjaro, look at how manjaro is configured?
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Debian 9 slow boot

#24 Post by Head_on_a_Stick »

Drop the display manager:

Code: Select all

# systemctl set-default multi-user.target # graphical.target will bring lightdm back
Then make sure that /usr/bin/startxfce4 is set as /etc/alternatives/x-session-manager and add this line to the end of ~/.profile to autostart the desktop after a console login at TTY1:

Code: Select all

[ "$(tty)" = "/dev/tty1" ] && exec startx
deadbang

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian 9 slow boot

#25 Post by uthappam »

I want Debian to work as it used to work. Please read the first post in this thread.

Thank you. I seem not to have explained the situation well. The boot process is as it was (no log in required), but it has become much slower.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Debian 9 slow boot

#26 Post by Head_on_a_Stick »

My suggestion will eliminate LightDM as the cause of the problem (if you still have the delay).

bw123's suggestions to compare Manjaro's configuration and check the logs are good ideas.
deadbang

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian 9 slow boot

#27 Post by uthappam »

Thank you.
[edit] Pushing aside LightDM made no difference to speed and I had to use startx, so I set things back to what they were. I do not understand why you both are suspicious of LightDM, which does not appear in the output of systemd-analyze blame. Here is /var/log/lightdm/lightdm.log:

Code: Select all

[+0.06s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.06s] DEBUG: Starting Light Display Manager 1.18.3, UID=0 PID=460
[+0.06s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.06s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.06s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.06s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.06s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.06s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.06s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.07s] DEBUG: Registered seat module xlocal
[+0.07s] DEBUG: Registered seat module xremote
[+0.07s] DEBUG: Registered seat module unity
[+0.13s] DEBUG: Monitoring logind for seats
[+0.13s] DEBUG: New seat added from logind: seat0
[+0.13s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.13s] DEBUG: Seat seat0: Starting
[+0.13s] DEBUG: Seat seat0: Creating user session
[+0.13s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.13s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.25s] DEBUG: User albert added
[+0.32s] DEBUG: Seat seat0: Creating display server of type x
[+0.32s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.32s] DEBUG: Using VT 7
[+0.32s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.32s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.34s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.34s] DEBUG: DisplayServer x-0: Launching X Server
[+0.34s] DEBUG: Launching process 481: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.34s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.34s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.34s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+3.20s] DEBUG: Got signal 10 from process 481
[+3.20s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+3.20s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+3.48s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+3.48s] DEBUG: Session pid=513: Started with service 'lightdm-autologin', username 'albert'
[+3.80s] DEBUG: Session pid=513: Authentication complete with return value 0: Success
[+3.80s] DEBUG: Seat seat0: Session authenticated, running command
[+3.80s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+3.81s] DEBUG: Session pid=513: Running command /etc/X11/Xsession default
[+3.81s] DEBUG: Creating shared data directory /var/lib/lightdm/data/albert
[+3.81s] DEBUG: Session pid=513: Logging to .xsession-errors
[+4.47s] DEBUG: Activating VT 7
[+4.47s] DEBUG: Activating login1 session 1
[+4.47s] DEBUG: Seat seat0 changes active session to 1
[+4.47s] DEBUG: Session 1 is already active

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Debian 9 slow boot

#28 Post by debiman »

uthappam wrote:But this story is not a happy one. It takes over 40 seconds for the desktop to appear after the log-in prompt does.
your systemd-analyze certainly looks much better now.
unfortunately you seem to have a lot of stuff blocking the desktop. stuff that doesn't run under systemd directly.
stuff... that you need to find out what that is.
sorry the systemd route didn't help.
once you got all that figured out you can probably re-enable nteworkmanager and all that...

fwiw, imo over 40s just to load the desktop is a long time. too long.
even before i got an SSD, and used a 10-year old hard drive, that would've been waaaaay too long. i boot up (and shut down) my desktop twice a day.

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Debian 9 slow boot

#29 Post by uthappam »

debiman wrote:unfortunately you seem to have a lot of stuff blocking the desktop. stuff that doesn't run under systemd directly.
stuff... that you need to find out what that is.
I try to keep my system free from bloat. These are what appear under Application Autostart:

Code: Select all

AT-SPI D-Bus Bus
Orage
PolicyKit Authentication Agent
Power Manager
Print Queue Applet
PulseAudio Sound System
Qas
Screen Locker
Xfsettingsd
XPAD

Post Reply