You are not logged in.

#1 2009-12-19 09:04:16

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Prompt is really slow in ALL Terminals

good night everyone

I am a novice user of arch, I've installed 3 days ago and so far I have managed to solve some problems and doubts that I had ... but yet I have not managed to resolve this

from one moment to another, the prompt for the gnome-terminal takes 5 to 10 seconds to appear, all i saw was a white window, and after 10 seconds, the prompt. I thought it would be a problem with this terminal, so I uninstalled gnome-terminal and installed sakura, it seems to work very well, but after resbooting the PC, the same problem ... and so I went through several more [urxvt, xterm and terminal] and all have the same problem.

it's not something very serious, but somehow it is "annoying" behavior.

oh, i almost forgot... same things hapen if i do a console login, so i guess it has something to do with bash?

I hope you can help me, and thanks big_smile


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#2 2009-12-19 09:20:33

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Prompt is really slow in ALL Terminals

Does it happen for all user accounts? Anything weird in your .bashrc?

Offline

#3 2009-12-19 10:08:34

Kitty
Member
From: The Burning Desert
Registered: 2008-01-11
Posts: 88

Re: Prompt is really slow in ALL Terminals

Is bash_completion enabled? That can cause a 2-3 second hang even on my quad-core.


/etc/rc.d/ is where daemons reside. Beware.

Offline

#4 2009-12-19 12:20:02

leeyee
Member
From: Kingston, Canada
Registered: 2009-01-07
Posts: 150

Re: Prompt is really slow in ALL Terminals

mikesd wrote:

Does it happen for all user accounts? Anything weird in your .bashrc?

yup, have a look at your .bashrc. Besides, try to run "gnome-terminal" in gnome-terminal and see the outputs.


Archlinux x86_64 on Thinkpad T400
Intel X4500MHD / ATI HD3470 Graphics, 2G RAM, 160G HD

Offline

#5 2009-12-19 16:59:24

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Prompt is really slow in ALL Terminals

thanks for answering so fast!! o_O big_smile

@mikesd i only have two accounts, mine and root, but yep, it happens in both. and in my .bashrc there's nothing weird, just 9 alias.

@kitty i thing i do have bash_completion enabled. i will try to disable it and test again.

@leeyee i tried that, believe me.... the problem is that the first terminal that is open it's the one that gets slow... so if i try to run a terminal in terminal, shows nothing weird.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#6 2009-12-20 06:16:47

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Prompt is really slow in ALL Terminals

well, no sad it has nothing to do with the bash completion... i deactivate it ans still happens

dont know why its happening, and i dont think its because mi bashrc, there are only 9 alias and nothing else

so.. anyone knows another theory of why this is happening?


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#7 2009-12-20 06:22:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Prompt is really slow in ALL Terminals

Post your .bashrc - that will help with suggestions.

Have you customized your PS1 at all? If so, roll back to the default to see if that is the issue:

#PS1='[\u@\h \W]\$ '

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2009-12-20 08:11:18

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Prompt is really slow in ALL Terminals

#Instalar o actualizar
alias remove="yaourt -Rs"
alias install="yaourt -S"
alias update="yaourt -Syu --aur"
alias search="yaourt -Ss"
alias huerfanos="yaourt -Rns $(pacman -Qtdq)"
alias clean="yaourt -Scc"
alias optimize="sudo pacman-optimize && sync"
#montar particion ntfs
alias windows="sudo mount /dev/sda4"
alias deswindows="sudo umount /dev/sda4"

this is my .bashrc

and no, mi PS1 it's the default one


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#9 2009-12-20 08:49:45

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Prompt is really slow in ALL Terminals

Try and confirm that it is a BASH issue. At least that will isolate the problem. Try setting another shell for one of the accounts and see if that removes the delay. tcsh is only a 250K download and didn't pull in any dependencies on my system. That would be a good choice.

Offline

#10 2009-12-20 09:06:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Prompt is really slow in ALL Terminals

MGu3l wrote:

...
and no, mi PS1 it's the default one

So that is not your full .bashrc? Is your PS1 explicitly declared in there?

Do you have the same delay in TTY1-6?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2009-12-20 21:00:45

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Prompt is really slow in ALL Terminals

#Instalar o actualizar
alias remove="yaourt -Rs"
alias install="yaourt -S"
alias update="yaourt -Syu --aur"
alias search="yaourt -Ss"
alias clean="yaourt -Scc"
alias optimize="sudo pacman-optimize && sync"
#montar particion ntfs
alias windows="sudo mount /dev/sda4"
alias deswindows="sudo umount /dev/sda4"

#PS1='[\u@\h \W]\$ '

this is exactly my .bashrc

and, As far as i remeber that doesn't happen in tty1-6 ... neither in root session


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#12 2009-12-20 21:24:35

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Prompt is really slow in ALL Terminals

Depending on what graphic driver you're using, try enabling KMS (check the wiki for the particulars for your driver). I noticed a similar behavior with urxvt being VERY slow to refresh when I was using a larch install on a flash drive with the nouveau drivers. Enabling KMS fixed it. Not sure, but worth a try!

Scott

Offline

#13 2009-12-20 22:37:33

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: Prompt is really slow in ALL Terminals

alias huerfanos="yaourt -Rns $(pacman -Qtdq)"

This is the problem.  Double quotes cause 'pacman -Qtdq' to be executed when the alias is defined.  Use single-quotes.

Last edited by chpln (2009-12-20 22:40:13)

Offline

#14 2009-12-21 02:37:19

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: Prompt is really slow in ALL Terminals

well thanks a lot for all your ideas...

finally i was able to solve this... the problem was a package called "quick-init". it's supposed to speed up your boot proces, and it really does, but for me, besides of this prompt problem, when i scroll down/up in chromium or any browser that i installed, it was kind of "laggy"...

so finally i decided to uninstall this "quick-init" and Voilà! prompt problem solved, and scroll problem solved.

@chpin last night i erased that alias from mi bashrc, cause its behavior was kind of strange... it was triyin to remove nt-tools an prcbind or something like that, and when i pressed y to delete them and reboot.... well, my system was F**ked up and had to reinstall again :S


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#15 2009-12-27 15:25:47

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Prompt is really slow in ALL Terminals

fyi you can debug this kind of slowness by putting echo statements in /etc/bash.bashrc and ~/.bashrc and maybe prefixing some source statements with 'time'.
this helped me finding out i was loading bash completion 3 times (:roll:) and even though i have about 100 aliases and a few hundred lines of small functions, loading this was only a few ms.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB