The novelist was detained shortly after Christmas and later charged with "offensive communication" in a case that has raised international concern, with the European Union among those calling for a "comprehensive investigation" into rights abuses in Uganda.
Rukirabashaija said he was tortured in custody and appeared on television at the weekend to reveal painful-looking welts criss-crossing his back and scars on other parts of his body.
The charges against him relate to unflattering comments on Twitter about Museveni, who has ruled Uganda since 1986, and his powerful son Muhoozi Kainerugaba.