I tried unsquashing recalbox system, modified the /etc/profile to add the line they recommend on scummvm forums "export SDL_VIDEO_X11_DGAMOUSE=0" and re squashed recalbox..
On reboot I can ssh in and 'printenv' shows the environment variable required is there and persistent but when playing scummvm the problem is still present?