Re: [gentoo-user] Odd problem with Xorg

2018-12-01 Thread Daniel Frey

On 11/30/18 1:33 AM, Peter Humphrey wrote:


Thank you, Dan. I hadn't heard of it, but your report immediately suggested I
try it to reduce the wait while chronyd started, on two machines here. Worked
like a charm: no waiting for enough entropy to be collected.



No problem.

What's weird is that bug is known to affect kernels 4.16.x but all my 
machines use 4.14.x.


Out of eight machines only one of them had this problem, which is even 
more strange. It does happen to be the oldest machine, though.


That laptop has had slow boots, but not necessarily Xorg, for a long 
time and I could never figure it out. I even installed an SSD thinking 
it could've been the HDD in it a couple years ago; that's how long the 
slow booting has happened.


Never occured to me the random number generator could cause that.

Dan



Re: [gentoo-user] Odd problem with Xorg

2018-11-30 Thread wabe
Peter Humphrey  wrote:

> On Thursday, 29 November 2018 18:36:11 GMT wabe wrote:
> > Daniel Frey  wrote:  
> > > On 11/28/18 12:40 PM, Andrew Udvare wrote:  
> > > > > >> On Nov 28, 2018, at 15:09, Daniel Frey
> > > > > >>   
> > > >>   
> > > > > >> wrote:  
> > > >> I've attached the two log files.
> > > >> 
> > > > > I would like to see your syslog in both cases; dmesg output.  
> > > > 
> > > > I left the laptop sitting without logging in and when I came
> > > > back ten minutes later I saw that Xorg started.  
> > > 
> > > I found this in the log:
> > > 
> > > [   298.914537] random: crng init done
> > > [   298.914542] random: 5 urandom warning(s) missed due to
> > > ratelimiting
> > > 
> > > So about five minutes after boot the random number finished
> > > initializing and the Xorg started right after.  
> > 
> > You could install sys-apps/haveged.
> > 
> > I really don't know if this will solve your actual problem, but
> > maybe it helps to speed up the random generation.  
> 
> If you'd read the part you snipped, you'd have seen that Dan had
> indeed tried haveged and it worked.
> 
> Thank you, Dan. I hadn't heard of it, but your report immediately
> suggested I try it to reduce the wait while chronyd started, on two
> machines here. Worked like a charm: no waiting for enough entropy to
> be collected.

Ops. Sorry, I missed that part. 

--
wabe



Re: [gentoo-user] Odd problem with Xorg

2018-11-30 Thread Peter Humphrey
On Thursday, 29 November 2018 18:36:11 GMT wabe wrote:
> Daniel Frey  wrote:
> > On 11/28/18 12:40 PM, Andrew Udvare wrote:
> > > > >> On Nov 28, 2018, at 15:09, Daniel Frey 
> > >> 
> > > > >> wrote:
> > >> I've attached the two log files.
> > >> 
> > > > I would like to see your syslog in both cases; dmesg output.
> > > 
> > > I left the laptop sitting without logging in and when I came back
> > > ten minutes later I saw that Xorg started.
> > 
> > I found this in the log:
> > 
> > [   298.914537] random: crng init done
> > [   298.914542] random: 5 urandom warning(s) missed due to
> > ratelimiting
> > 
> > So about five minutes after boot the random number finished
> > initializing and the Xorg started right after.
> 
> You could install sys-apps/haveged.
> 
> I really don't know if this will solve your actual problem, but maybe
> it helps to speed up the random generation.

If you'd read the part you snipped, you'd have seen that Dan had indeed tried 
haveged and it worked.

Thank you, Dan. I hadn't heard of it, but your report immediately suggested I 
try it to reduce the wait while chronyd started, on two machines here. Worked 
like a charm: no waiting for enough entropy to be collected.

-- 
Regards,
Peter.






Re: [gentoo-user] Odd problem with Xorg

2018-11-29 Thread wabe
Daniel Frey  wrote:

> On 11/28/18 12:40 PM, Andrew Udvare wrote:
> > > >> On Nov 28, 2018, at 15:09, Daniel Frey 
> > > >> wrote:  
> >>
> >> I've attached the two log files.
> > > I would like to see your syslog in both cases; dmesg output.  
> > I left the laptop sitting without logging in and when I came back
> > ten minutes later I saw that Xorg started.  
> 
> I found this in the log:
> 
> [   298.914537] random: crng init done
> [   298.914542] random: 5 urandom warning(s) missed due to
> ratelimiting
> 
> So about five minutes after boot the random number finished
> initializing and the Xorg started right after.

You could install sys-apps/haveged.

I really don't know if this will solve your actual problem, but maybe 
it helps to speed up the random generation. 

--
wabe



Re: [gentoo-user] Odd problem with Xorg

2018-11-28 Thread Daniel Frey

On 11/28/18 12:40 PM, Andrew Udvare wrote:




On Nov 28, 2018, at 15:09, Daniel Frey  wrote:

I've attached the two log files.


I would like to see your syslog in both cases; dmesg output.



I left the laptop sitting without logging in and when I came back ten 
minutes later I saw that Xorg started.


I found this in the log:

[   298.914537] random: crng init done
[   298.914542] random: 5 urandom warning(s) missed due to ratelimiting

So about five minutes after boot the random number finished initializing 
and the Xorg started right after.


After googling around I found a problem in kernels 4.16 that had this 
type of problem but:


4.14.78-gentoo

I waded through results some more and found other having success 
installing haveged and setting it to start on boot... so I tried it and 
now the laptop boots normally!


Weird.

I guess it's solved?

Dan



Re: [gentoo-user] Odd problem with Xorg

2018-11-28 Thread Andrew Udvare



> On Nov 28, 2018, at 15:09, Daniel Frey  wrote:
> 
> I've attached the two log files.

I would like to see your syslog in both cases; dmesg output.