An attack by the Tulunids of Egypt had to be repelled .
A revolt of the Berbers put down with much loss of life .
An attack by the Tulunids of Egypt had to be repelled and a revolt of the Berbers put down with much loss of life .