portrain mode setup

Signed-off-by: Fons <lord.fontana@gmail.com>