We need a little more info on how you are logging in and out. To a graphical client? Or to the command line? Which windowing system are you using? KDE, Gnome, or another?
You say your system freezes, but you log out manually? What command do you use, and how do you get to the command prompt?
Details are important when talking about Linux, as there are many ways to do things.