The problem of automatically logging out after logging on to ubuntu X is found in Baidu ting today! When listening to songs online, the system suddenly lost its voice and thought that the flash plug-in of chrome crashed. After exiting chrome, chrome could no longer be started, firefox could no longer be started, and opera could be opened, but there was still no sound. After the restart, the system automatically logs out after login and cannot enter the desktop. Ctrl + alt + f1 log on to the virtual terminal and view/var/log/syslog. the following error message is displayed: www.2cto.com Sep 6 11:49:03 fatter-desktop pulseaudio [2513]: [autospawn] core-util.c: Failed to create random directory/tmp/pulse-Dh3GBeC2UXwR: Permission deniedSep 6 11:49:03 fatter-desktop pulseaudio [2513]: [autospawn] lock-autospawn.c: Cannot access autospawn lock. sep 6 11:49:03 fatter-desktop pulseaudio [2513]: [pulseaudio] main. c: Failed to acqu Ire autospawn lock indicates that pulseaudio does not have the permission to create files in the/tmp directory. In this case, the permission is granted to sudo chmod 755/tmp ctrl + alt + f7, after login, the problem is solved.