I always did this as normal user who is logged into X, not as root...
but maybe try:
xauth merge /home/user_who_is_logged_into_Xorg/.Xauthority
and then try aticonfig again. Also if you are already root you don't need sudo

I've tried it as a normal user to, still same issue.