After I log in to my Ubuntu 14.04 desktop, I see my desktop background for approximately 20 seconds before the actual Unity desktop loads. I installed bootchart and that suggests that the problem is that pactl
is being called and taking a long time to do something, and that the main desktop startup is blocked on that:
How can I identify where this pactl
call is, and why it might be taking a long time?
Logs from pulseaudio startup are at: http://kryogenix.org/random/pulseverbose/.
For Diagnosis (not the solution) you should enable logging on
pactl
module:edit (with sudo) following file
and add following line to the file
After reboot log in
/tmp/pulseverbose.log
will hopefully contain potential problem of pulse audio control. There could be more than one file.Come back and paste it here and we can give you additional hints.
Remove! the line from
/etc/pulse/client.conf
after you finish.For Solution I would first try to reinstall
pulseaudio
, but after we will see logs, possibly this will change. Therefore give us your logs first. Eventually steps to reinstall pulseaudio and alsa could be:but this can be helpless for example if your drivers are wrong/crippled by wrong settings etc.
Update: Diagnosis from log files: Core of your problem lies here
followed by many errors like this:
which takes your time on startup.
Proposed solutions:
xxx Looks like there is a temporary socket left open and pulseaudio does not make it over. Please check if there is a
/tmp/dbus-zgX6izEp13
file and if yes, remove it bysudo rm /tmp/dbus-zgX6izEp13
and try to reboot if there is a change.-- Update: there is not such a file, means that it is created just before the pulseaudio wants to use it or something wants to write it simultaneously. Some configuration could be michmached/doubled.
You can try to purge and reinstall pulseaudio. See the text above.
Please give a short reply if something helps.