[SOLVED] Login screen takes too long to appear

Kernels & Hardware, configuring network, installing services

[SOLVED] Login screen takes too long to appear

Postby cgirerd » 2018-05-03 20:16

Hello everyone,

I am a happy user of Debian for years now, but I am not an expert at all. I am running Debian Stretch (with gnome) along with Windows 10 (dual boot) on a Thinkpad X220, and my system is frequently updated. Everything was running smoothly till this afternoon, when I faced a problem I have difficulties to solve by myself.
Here is my problem: when booting Debian, I can no longer reach the login screen. All the information displayed on the screen are the same as usually during the boot sequence, but the UI then doesn't seems to launch as usually after that.
What I tried to do to solve the problem:
- I booted on Gparted from a USB key, and performed a fsck on my root partition (/dev/sda6), but no errors were found.
- When starting my computer, I booted in recovery mode, which gave me access to a console. After spending some time there (trying to troubleshoot my problem), I enter "exit", and sometimes the login screen appears, but 90% of the time I get stuck here as would happen if I boot Debian.
What happened recently:
There were no unusual changes in my system that come to my mind that could explain this problem. The only thing I did two days ago was updating Windows 10 to "April 2018 Update". But I don't know if this update can create a Debian booting problem.

I am happy to give you all the logs you would need if you tell me how to get them.
Last edited by cgirerd on 2018-05-19 11:37, edited 5 times in total.
cgirerd
 
Posts: 19
Joined: 2018-05-03 19:24

Re: Debian Strech - boot problem

Postby Dai_trying » 2018-05-03 20:30

One thing that can cause this sort of issue is a lack of space, you can use a console (press Ctrl+Alt+F1 at your blank screen) and then login and then you can check what free space is available using df and if any of them are 90% used or higher it might help to either resize that partition or remove any surplus files.
There are other reasons that can cause your issue and this is just the simplest one to fix :D
Dai_trying
 
Posts: 422
Joined: 2016-01-07 12:25

Re: Debian Strech - boot problem

Postby aschokker » 2018-05-03 20:49

Hi, you did not sudo apt update/upgrade your system recently?
Which kernel version do you use?

I have more or less the same problem as you described (on a HP Elitebook 8470p). However, I upgraded my system recently, a.o. a new kernel, version 4.9.0-6. In my case it takes ca. 3 minutes booting time before the login screen appears, while it used to be ca. 15 seconds. Problem may be related to the sound card (?), as under the new kernel I do not have sound anymore, while under kernel 4.9.0-5 (and before) sound always worked perfectly.
aschokker
 
Posts: 2
Joined: 2018-05-03 20:15

Re: Debian Strech - boot problem

Postby debiman » 2018-05-04 03:22

cgirerd wrote:Here is my problem: when booting Debian, I can no longer reach the login screen. All the information displayed on the screen are the same as usually during the boot sequence, but the UI then doesn't seems to launch as usually after that.

yes, but what exactly do you see? that's the important question.
a text login? something else? red messages?
User avatar
debiman
 
Posts: 2209
Joined: 2013-03-12 07:18

Re: Debian Strech - boot problem

Postby aschokker » 2018-05-04 08:46

After the blue GRUB screen, I see one line of text (the line I normally see) stating that my system is clean, number of files etc. This line is displayed for almost 3 minutes, after which the graphical login screen appears. I can login normally. The system behaves normally except for sound; I do not have sound with kernel 4.9.0-6. If I boot with the previous kernel the boot process is fast and I do have sound.
aschokker
 
Posts: 2
Joined: 2018-05-03 20:15

Re: Debian Strech - boot problem

Postby cgirerd » 2018-05-04 11:56

Dai_trying wrote:One thing that can cause this sort of issue is a lack of space, you can use a console (press Ctrl+Alt+F1 at your blank screen) and then login and then you can check what free space is available using df and if any of them are 90% used or higher it might help to either resize that partition or remove any surplus files.
There are other reasons that can cause your issue and this is just the simplest one to fix :D


Thank you for your answers. There is planty of space on my 2 partitions: 7Go of free space in my root partition, and 90Go in my /home partition.

aschokker wrote:Hi, you did not sudo apt update/upgrade your system recently?
Which kernel version do you use?


I use the latest kernel from Debian stable, which is linux-image-4.0.9.6-amd64. In recovery mode, I also tried to boot using the previous kernel that was listed in the menu, linux-image-4.0.9.5-amd64, but the problem still occurs.

debiman wrote:yes, but what exactly do you see? that's the important question.
a text login? something else? red messages?


Well, no red messages, errors or whatever. Just what I usually have, which is:
Code: Select all
/dev/sda6: clean, 968520/2957312 files, 9634551/11825152 blocks
[    5.195997] bluetooth hci0: firmware: failed to load brcm/BCM20702A1-0a5c-21e6.hcd (-2)

And I get stucked exactly here.
The message concerning the bluetooth is normal, I would have to install my bluetooth properly, but this is not the problem here.
cgirerd
 
Posts: 19
Joined: 2018-05-03 19:24

Re: Debian Strech - boot problem

Postby debiman » 2018-05-04 18:02

no, it's not the bluetooth.
have you tried to wait it out?
or can you switch to another tty, ot press Ctrl-C or something, to get a prompt?
User avatar
debiman
 
Posts: 2209
Joined: 2013-03-12 07:18

Re: Debian Strech - boot problem

Postby cgirerd » 2018-05-04 18:55

Yes, I can switch to another tty and get a prompt.
I think I might have found another user who has the same problem. He openned a thread the same day as I did here : http://forums.debian.net/viewtopic.php?f=6&t=137403
cgirerd
 
Posts: 19
Joined: 2018-05-03 19:24

Re: Debian Strech - boot problem

Postby cgirerd » 2018-05-04 19:28

Following the previous link to the other thread, I could successfully login in another tty (tty2), and run startx. My system ran as expected for a couple of minutes, and then my computer switched to tty1 by itself. This looks like the same problem as explained in the first post of the other thread (http://forums.debian.net/viewtopic.php?f=6&t=137403)
cgirerd
 
Posts: 19
Joined: 2018-05-03 19:24

Re: Debian Strech - boot problem

Postby lbrunosouzati » 2018-05-04 23:31

Look, I have the same problem. I found a temporary solution. I have 2 notebooks as an Asus x202e and also a Lenovo G40-80. The asus I modified by installing a ssd of 128gb lenovo I modified with the installation of 1 ssd of 256gb. I noticed that in the last update of kernel 4.88-1 I think it was on 04/30/2018 the boot in asus x202e (it takes about 24 minutes to load the gnome). For test I switched ssd to the source hd. And strangely the system charged fast. I already tested ssd on the asus x202e itself and on other computers and systems. Apparently the disk usually runs the debian-only bug in this specific kernel version (4.88-1). The funniest of all is that my other computer the Lenovo G40-80 also uses ssd and had no problems. Look at the only solution I found is to downgrade the kernel myself. (it is a security risk) but until a correction comes out.

CTRL + ALT + F2 opens the console

* log in normally (in text mode)

* using root or sudo

apt install linux-image-4.9.0-5-amd64

On the boot screen, just choose the version that you installed.

Recalling that the newest version 4.9.0-6 is the version that started to present the problem.

Once again sorry for the English of google translator! :D
lbrunosouzati
 
Posts: 7
Joined: 2018-02-02 06:44

Re: Debian Strech - boot problem

Postby cgirerd » 2018-05-05 09:37

lbrunosouzati wrote:[...]
apt install linux-image-4.9.0-5-amd64

On the boot screen, just choose the version that you installed.

Recalling that the newest version 4.9.0-6 is the version that started to present the problem.

Once again sorry for the English of google translator! :D


Thanks for your answer. I already had linux-image-4.9.0-5-amd64 and was sure to have tried booting on it without success... I just tried now for a couple of times and it is working fine. Quite weird! Thank you for this temporarily fix :D
If this is a quite general problem of linux kernel 4.9.0-6, may I tag this topic has solved?
cgirerd
 
Posts: 19
Joined: 2018-05-03 19:24

Re: Debian Strech - boot problem

Postby lbrunosouzati » 2018-05-05 11:03

Better leave it open. Well, I did some more tests here and I noticed that this error persists. In 10 attempts to boot a 3 may show error. I did a clean install of Debian 9 with LXDE and noticed that this error does not happen even in the newer kernel. Something tells me that the network manager used in GNOME in XFCE and KDE in the kernel is causing this slowness. 24 minutes to boot is not a very normal time. Best to leave the topic open even. :D
lbrunosouzati
 
Posts: 7
Joined: 2018-02-02 06:44

Re: Debian Strech - boot problem

Postby smalltimer » 2018-05-05 21:07

Hi, I'm running Debian on an X220 and am facing the exact same problem. I think the culprit is systemd-fsckd.service which refuses to deactivate.
Here's the output of ' # systemd-analyze plot '. Any ideas how to resolve this ? :(

https://pasteboard.co/HjPmFHf.png
smalltimer
 
Posts: 4
Joined: 2018-05-05 20:48

Re: Debian Strech - boot problem

Postby julieng » 2018-05-05 21:53

Hi,
same kind of problem here on a lenovo X220 ( intel I3, intel video chip)
(dual boot with windows 7, I rarely use it, but to be sure it was not a hard drive failure -which is a SSD in fact- I booted on 7, and no problem with it)
Debian 9, usually updated without any problem.
Last update tonight which goes to 4.9.88 gave me barely the same bug.
After boot sequence, no gdm, it stays on the black screen with log lines.( /dev/sda clean ... and no more lines)
it takes minutes to reach gdm ( and time is money ... wait ... no)
I can go to tty , but there it is crazy : I can log in , but sometimes the cursor stops blinking, and I can not write anything with keyboard. I have to ctrl+alt+F2 ( or whatever ttys) again to be able to write. And it makes it again and again ...
When logged in a tty, for instance in tty4 I was installing 4.9.15 from backports , and tty switch alone to tty2 ( where I am not logged in)
Same problem with kernel 4.9.15, same problem with the kernel 4.9.80 (4.9.0-5 which was ok before this update)
The strange tty things were only during the time I wait for gdm, after gdm is reached, ttys are fine.
julieng
 
Posts: 1
Joined: 2018-05-05 21:27

Re: Debian Strech - boot problem

Postby kevinthefixer » 2018-05-06 01:33

I'd just like to add a bit of info, sorry no solutions. I have the same symptoms, starting with the first boot after the kernel update, with this exception: my system boots normally a few seconds after any input from a pointing device, mouse, touchpad, or the Dell mouse pointer thingie in the middle of the keyboard. I did not lose my sound. FWIW this is a Dell Latitude E4300, all Intel board, sound, graphics etc. Running XFCE with SLIM login manager so I can have an unattended boot.
kevinthefixer
 
Posts: 28
Joined: 2018-05-05 22:30

Next

Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable