You are not logged in.

#1 2015-02-26 20:41:02

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Gnome3 long boot time

Hello everyone,
I've done a fresh archlinux installation and I've decided to use gnome.
I installed it with:

pacman -S gnome
systemctl enable gdm

but on boot I have 30-40 seconds of black screen before gdm login view appear and another 20-30 seconds of black screen to login, no splash screen or loading screen.
How is that possible?

Offline

#2 2015-02-26 21:17:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Gnome3 long boot time

How long does it take if you disable GDM and run it from .xinitrc instead?

Post the output of:

systemd-analyze critical-chain

Jin, Jîyan, Azadî

Offline

#3 2015-02-26 21:34:50

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

I've created e file named .xinitrc in my home folder with this code

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# XFCE in questo caso è il default
case $1 in
    xfce) exec startxfce4;;
    kde) exec startkde;;
    gnome);;
    *) exec gnome-session;;
esac

Then I've disabled gdm with

systemctl disable gdm

and rebooted. After login I've typed

startx

then 40-50 seconds or more of black screen and finally gnome-shell is loaded

This is the output

systemd-analyze critical-chain

graphical.target @4.410s
└─multi-user.target @4.410s
  └─systemd-logind.service @4.236s +173ms
    └─basic.target @3.530s
      └─sockets.target @3.529s
        └─dbus.socket @3.529s
          └─sysinit.target @3.515s
            └─swap.target @3.515s
              └─dev-disk-by\x2duuid-dbf81cd6\x2db25a\x2d4072\x2d8390\x2dc8e1a23c995f.swap @3.457s +57ms
                └─dev-disk-by\x2duuid-dbf81cd6\x2db25a\x2d4072\x2d8390\x2dc8e1a23c995f.device @3.457s

Offline

#4 2015-02-26 21:45:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Gnome3 long boot time

Anything in the logs?


Jin, Jîyan, Azadî

Offline

#5 2015-02-26 22:00:09

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

In /var/log there isn't anything. Should I look elsewhere?

Offline

#6 2015-02-26 22:04:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Gnome3 long boot time

See man journalctl
https://wiki.archlinux.org/index.php/Systemd#Journal

For example, just after you reach the desktop look at the output of:

journalctl -xn

Jin, Jîyan, Azadî

Offline

#7 2015-02-26 22:04:37

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

I don't know why it takes so much time to load gdm but I think that the delay after login is due to pulseaudio startup time...

How can I set a splash or loading screen?

Offline

#8 2015-02-26 22:08:48

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Gnome3 long boot time

Gigitsu wrote:

How can I set a splash or loading screen?

I'm not sure, but I think this is relevant:
https://wiki.archlinux.org/index.php/Plymouth

I don't use splash screens so I could be wrong about this.

You can also set a splash image in your boot loader/manager -- see the ArchWiki pages for details.


Jin, Jîyan, Azadî

Offline

#9 2015-02-26 22:10:27

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

this is the output

journalctl -xn

-- Logs begin at gio 2015-02-26 19:13:23 CET, end at gio 2015-02-26 23:07:25 CET. --
feb 26 23:07:02 g2arch avahi-daemon[860]: Network interface enumeration completed.
feb 26 23:07:02 g2arch avahi-daemon[860]: Registering new address record for fe80::be20:8bf9:a350:bed on enp4s0.*.
feb 26 23:07:02 g2arch avahi-daemon[860]: Registering new address record for 192.168.0.2 on enp4s0.IPv4.
feb 26 23:07:02 g2arch avahi-daemon[860]: Registering new address record for fe80::2f1d:c832:7947:2a73 on enp6s0.*.
feb 26 23:07:02 g2arch avahi-daemon[860]: Registering HINFO record with values 'X86_64'/'LINUX'.
feb 26 23:07:03 g2arch org.gnome.EpiphanySearchProvider[592]: ** (org.gnome.EpiphanySearchProvider:826): WARNING **: Error saving EphyNodeDB as XML: Failed to create file '/home/gigitsu/.config/epiphany/ephy-bookmarks.xml.9KDGUX': No such file or directory
feb 26 23:07:03 g2arch avahi-daemon[860]: Server startup complete. Host name is g2arch.local. Local service cookie is 2753452216.
feb 26 23:07:04 g2arch avahi-daemon[860]: Service "g2arch" (/services/ssh.service) successfully established.
feb 26 23:07:04 g2arch avahi-daemon[860]: Service "g2arch" (/services/sftp-ssh.service) successfully established.
feb 26 23:07:25 g2arch gnome-session[575]: Gjs-Message: JS LOG: Received error from DBus search provider epiphany.desktop: Gio.IOErrorEnum: È stato raggiunto il timeout

Offline

#10 2015-02-26 22:25:20

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

The problem is my webcam, I've detached it and boot time is decreased  drastically. I have an hd microsoft webcam...

Offline

#11 2015-02-28 10:00:37

Gigitsu
Member
Registered: 2013-12-06
Posts: 21

Re: Gnome3 long boot time

Anyway thankyou had_on_a_stick, if I find a solution to pulseaudio slow webcam recognition I will post here

Offline

Board footer

Powered by FluxBB