tried the patch in comment #3, #4 and #6 on 16.04 and 14.04, got below result:
1, 14.04 (kernel 3.19.0-37, u-s-d: 14.04.20151012, compiz 2014.20150313)
1.1 without patch
u-s-d and compiz crashed and system logout after adjust resolution by use display setting at u-c-c (unity-control-center) or use command "xrandr -s 1"
1.2 with patch
1.2.1, can not set the resolution by use display setting at u-c-c, the error info please refer to attachment setting-error.jpg
1.2.2, can change resolution by command "xrandr -s 1" successfully.
2, 16.04 (kernel 4.4.0-21, u-s-d: 16.04.20160209, compiz 16.04.20160415)
2.1 without patch
u-s-d crashed once when change resolution by display setting or cmd, but system will not logout, user can continue change resolution without crash.
2.2 with patch
same result with without patch.
tried the patch in comment #3, #4 and #6 on 16.04 and 14.04, got below result:
1, 14.04 (kernel 3.19.0-37, u-s-d: 14.04.20151012, compiz 2014.20150313) control- center) or use command "xrandr -s 1"
1.1 without patch
u-s-d and compiz crashed and system logout after adjust resolution by use display setting at u-c-c (unity-
1.2 with patch
1.2.1, can not set the resolution by use display setting at u-c-c, the error info please refer to attachment setting-error.jpg
1.2.2, can change resolution by command "xrandr -s 1" successfully.
2, 16.04 (kernel 4.4.0-21, u-s-d: 16.04.20160209, compiz 16.04.20160415)
2.1 without patch
u-s-d crashed once when change resolution by display setting or cmd, but system will not logout, user can continue change resolution without crash.
2.2 with patch
same result with without patch.