Make a script to launch your miner:
#!/bin/bash
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
sgminer -n
Also make sure the drivers are installed correctly and system detects all the gpus. You can verify that by running:
DISPLAY=:0 aticonfig --odgt --adapter=all
or
clinfo