The symptom to this problem is that, after successfulling entering your login information, the system takes about 85 seconds to boot. The real issue occuring is that /usr/lib/accountsservice/accounts-daemon isn't being started correctly by ligthdm. The accounts-daemon wont accept dbus requests, and so the dbus timeout is hit during boot.
Before I start, here is a run down on my machine/setup:
Intel I7.
Xubuntu 12.04.
Encrypted home drive.
Running compiz.
Enabling the log files on lightdm, the follow warnings are displayed (Notice the times):
[+11.58s] DEBUG: Greeter quit
[+36.60s] WARNING: Could not call SetXSession: Timeout was reached
[+61.63s] WARNING: Could not call FindUserByName: Timeout was reached
[+61.63s] DEBUG: Dropping privileges to uid 1000
[+61.63s] DEBUG: Restoring privileges
[+86.65s] WARNING: Could not call FindUserByName: Timeout was reached
If the /usr/lib/accountsservices/accounts-daemon is restarted, after the lightdm login screen is displayed, but before a login, then xfce will start immediately. Otherwise boot times take about 87 seconds.
Also, it was found that the program d-feet, is unable to retrive valid methods from /usr/lib/accountsservices/accounts-daemon before it is restarted. After the deamon is restarted, all dbus methods are visuable and communicate correctly.
A temporary "fix" has been posted:
1. Login
2. cd /usr/share/xsessions
3. Edit xubuntu.desktop:
. Replace the follow:
Exec=startxfce4
To read:
Exec=startxfce4-modified
4. cd /usr/bin
5. Create a file called startxfce4-modified, and store the following script into it:
#!/bin/bash
The symptom to this problem is that, after successfulling entering your login information, the system takes about 85 seconds to boot. The real issue occuring is that /usr/lib/ accountsservice /accounts- daemon isn't being started correctly by ligthdm. The accounts-daemon wont accept dbus requests, and so the dbus timeout is hit during boot.
Before I start, here is a run down on my machine/setup:
Intel I7.
Xubuntu 12.04.
Encrypted home drive.
Running compiz.
Enabling the log files on lightdm, the follow warnings are displayed (Notice the times):
[+11.58s] DEBUG: Greeter quit
[+36.60s] WARNING: Could not call SetXSession: Timeout was reached
[+61.63s] WARNING: Could not call FindUserByName: Timeout was reached
[+61.63s] DEBUG: Dropping privileges to uid 1000
[+61.63s] DEBUG: Restoring privileges
[+86.65s] WARNING: Could not call FindUserByName: Timeout was reached
If the /usr/lib/ accountsservice s/accounts- daemon is restarted, after the lightdm login screen is displayed, but before a login, then xfce will start immediately. Otherwise boot times take about 87 seconds.
Also, it was found that the program d-feet, is unable to retrive valid methods from /usr/lib/ accountsservice s/accounts- daemon before it is restarted. After the deamon is restarted, all dbus methods are visuable and communicate correctly.
A temporary "fix" has been posted: xsessions -modified
1. Login
2. cd /usr/share/
3. Edit xubuntu.desktop:
. Replace the follow:
Exec=startxfce4
To read:
Exec=startxfce4
4. cd /usr/bin modified, and store the following script into it:
5. Create a file called startxfce4-
#!/bin/bash
#Restart the accounts daemon accountsservice /accounts- daemon &
ps -aef | grep accounts-daemon | grep -v grep | awk '{print $2}' | xargs kill -9
/usr/lib/
startxfce4
6. Ensure the permissions are correct on the script: startxfce4- modified
sudo chmod 755 /usr/bin/
7. Reboot
For descussion on the problem, see the following thread: ubuntuforums. org/showthread. php?t=1970326
http://