added xrandr res detection