found this bugs with kubuntu 11.04beta2! and this case no found with ubuntu 11.04beta2
use this command and any command with "sudo" sudo xrandr No protocol specified Can't open display :0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/370607 Title: X applications won't run under sudo -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs