You are not logged in.

#1 2009-01-10 15:53:15

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Is there a way to speed up X start?

Hi there!

I'm new to Arch Linux (used Gentoo for about 9 months and Debian for about 4 years before that) and i really like it.
So i'm not really a newbie when it comes to linux in general.
But I'm at a loss currently.
I'm running Arch on my Dell Latitude (1.6 GHz, 1 GB Ram).
When i boot into runlevel 3 (without X) it takes about 14 seconds from grub to user login.
When booting into runlevel 5 (with X), the laptop needs 47 seconds.
Is there a way to speed up X start?

I tried both setting X to start via the default runlevel in /etc/inittab as well as setting to load my login manager (slim) as a daemon via /etc/rc.conf. When loading as a daemon i tried loading it normally as well as backgrounded. Neither approach led to any remarkable increase in boot time.

Do you have any suggestions on what i could try?

Thanks for your help.

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#2 2009-01-10 16:20:59

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: Is there a way to speed up X start?

What's your terminals? vc/ or tty?


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#3 2009-01-10 16:49:17

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Hi ShadowKyogre,

/etc/inittab tells me it's vc/

Regards,

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#4 2009-01-10 16:54:17

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: Is there a way to speed up X start?

Try changing it to tty.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#5 2009-01-10 18:12:08

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Hi!

I just tried it out, but switching to tty didn't make any difference on boot time.
But I'm curious.
Is it normal that booting to the X-Login screen is taking 3 times the time it takes to boot to console?
I never never noticed this fact in the last 5 years.

Regards,

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#6 2009-01-10 19:02:24

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Is there a way to speed up X start?

Did you have a look at xorg log /var/log/Xorg.0.log ? and may be disabling the auto detection stuff? For me it takes about 7 secs from startx to window manager


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#7 2009-01-10 19:26:56

SaThaRiel
Member
Registered: 2008-09-24
Posts: 19

Re: Is there a way to speed up X start?

You should also install hsetroot. This seems to be the program which slim uses first to set its theme.

Offline

#8 2009-01-11 06:17:02

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Is there a way to speed up X start?

In

/etc/inittab

replace all the

"wait" words with the word "once".

PS Backup inittab first.

Offline

#9 2009-01-11 06:35:58

Intrepid
Member
Registered: 2008-06-11
Posts: 254

Re: Is there a way to speed up X start?

You're using proprietary drivers yes?  Or intel?  If using Nvidia, have you tried using nvidia-xconfig?  My performance increased afterward.  Follow Flamelab's suggestions.  If that doesn't work, do your host names match in /etc/hosts with /etc/rc.conf?  This is proven to slow down servers such as X11.  You said you weren't a newbie, so I don't know if this applies to you.  I also suggest using a different login manager.  SLIM (for me) can start slowly, while entrance, kdm, and gdm are always quick.

Last edited by Intrepid (2009-01-11 06:58:23)


Intrepid (adj.): Resolutely courageous; fearless.

Offline

#10 2009-01-11 14:13:42

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Hi, all...

I tried out your suggestions, but to no avail.
I'm using X with the intel drivers, as my laptop has an i810 chipset.
I'm trying out Entrance (from svn) now. Somewhere I read that slim can slow down the start, too.
So maybe the problem lies with Slim.
Maybe it's a problem with the HAL.
I used bootchartd to map log the boot process, and when i didn't background the starting of the daemons in /etc/rc.conf, it took me 46 seconds just to get the console login prompt.
So I think the problem is with the daemons somewhere.
Maybe have to tweak the starting order a little.

I'll try it and post the results here.

Thanks for your help.

Regards,

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#11 2009-01-11 15:04:53

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Just for information:

i rearranged my Daemons-Line in /et/rc.conf from

DAEMONS=(@preload hal @laptop-mode @acpid @syslog-ng @network !avahi-daemon @udev @alsa @bluetooth @clamav @cpufreq @wicd @fam @fcron @gpm @i8kmon @ntpd @spamd @ifplugd @timidity++)

to

DAEMONS=(syslog-ng hal @udev @fcron @fam @laptop-mode @acpid @cpufreq @i8kmon @alsa @network @ifplugd @wicd @ntpd @bluetooth @clamav @spamd @gpm @timidity++)

.
Just by rearranging the daemons, my boot time went down from 46 to 36 seconds.
I'll have some more finetuning to do, but i think i'm on the right track.

Regards,

Steffen

Last edited by slang (2009-01-11 15:05:48)


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#12 2009-01-11 19:23:47

EnvoyRising
Member
Registered: 2008-08-08
Posts: 118

Re: Is there a way to speed up X start?

Just a couple of things:

1) Isn't having dbus in the DAEMONS() array redundant considering hal calls udev?
2) IIRC, when running wicd, you should disable (!) the network daemon

Not a lot, but i figure that's two less things you have to worry about starting up, even if they are backgrounded.

Offline

#13 2009-01-12 07:30:56

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Hi, EnvoyRising.
You're right.
I already removed the network daemon (but it didn't make any difference on boot time).
Have to try to remove UDEV though.

Thanks for your input!

Regards,

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

#14 2009-01-12 07:38:02

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Is there a way to speed up X start?

Have you made sure that the hostname in rc.conf and /etc/hosts are the same?


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

#15 2009-01-12 10:27:27

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: Is there a way to speed up X start?

XFire wrote:

Have you made sure that the hostname in rc.conf and /etc/hosts are the same?

And that the hostname is on the localhost line in /etc/hosts, that is;

127.0.0.1  localhost  your-hostname


All of your mips are belong to us!!

Offline

#16 2009-01-13 07:33:14

slang
Member
From: Duisburg, Germany
Registered: 2009-01-10
Posts: 12

Re: Is there a way to speed up X start?

Yes, Hostname ist the same in /etc/hosts and /etc/rc.conf
I also removed udev from the daemon list in rc.conf.
Doesn't make any difference.
I think i will tweak the daemon list some more.
Could also be Slim, i'm going to try entrance this evening.

Thank you all for your input so far.
I really appreciate it.

Regards,

Steffen


Life is too short to be taken seriously.
                --- Oscar Wilde

Offline

Board footer

Powered by FluxBB