adjust socket logic to long time connecting
add test desktop
remove entrance guard useless code
modify desktop logic to support auto shutdown
read card logic