Similar problem in Ubuntu 16.04.1 (Unity), with AMD APU (AMD A4-7210 APU with AMD Radeon R3 Graphics "MULLINS") + AMD GPU (AMD Radeon R5 M330) on a Lenovo Yoga 500-14ACL.
Everytime I launch a 3D game application with DRI_PRIME=1, the system hangs and returns to the lightdm login screen.
I also tried to use a xubuntu session (installing xubuntu-core package) with xfwm or compton, but the problem persists.
Similar problem in Ubuntu 16.04.1 (Unity), with AMD APU (AMD A4-7210 APU with AMD Radeon R3 Graphics "MULLINS") + AMD GPU (AMD Radeon R5 M330) on a Lenovo Yoga 500-14ACL.
Everytime I launch a 3D game application with DRI_PRIME=1, the system hangs and returns to the lightdm login screen.
I also tried to use a xubuntu session (installing xubuntu-core package) with xfwm or compton, but the problem persists.