Ubuntu 14.04.3 (LTS) Display Problem on AMD or Intel

I have recently found my workstation being crazy, it sometimes has the resolution too low, sometime the display blank, and then repeatedly hang after a few moments.
After googling and found that there is a problem with Mesa-GL driver -utopic, so the workaround is to fallback into -vivid package.

The Workstation info:

$ lspci
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation B85 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

$ uname -r
3.19.0-42-generic

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

Replace -utopic into -vivid packages:

sudo apt-get install --install-recommends linux-generic-lts-vivid xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid
libwayland-egl1-mesa-lts-vivid libgl1-mesa-glx-lts-vivid libglapi-mesa-lts-vivid libgles1-mesa-lts-vivid libegl1-mesa-lts-vivid
xserver-xorg-dev-lts-vivid mesa-common-dev-lts-vivid libxatracker-dev-lts-vivid libgles2-mesa-dev-lts-vivid libgles1-mesa-dev-lts-vivid libgl1-mesa-dev-lts-vivid libgbm-dev-lts-vivid libegl1-mesa-dev-lts-vivid

Some of Sources

BlueStacks on Sony Vaio with Switchable Graphics Card

The new version of BlueStacks will need us to upgrade the video card driver to the newest version. On Sony Vaio VPCCA35FG there is two graphic cards that work switchable depending on our configuration. Switchable means there is only one graphic cards that work at a time. The autmoatic method will selects the graphic card with current active application while manual method will selects by what we choose to operate.

Sony Vaio VPCCA35FG has Intel HD Graphics Family and AMD Radeon HD 6630M. BlueStacks will force us to update the graphics driver, then it automatically download and install the new driver. But it didn’t say which graphic card drivers its upgrade (the Intel or AMD one?). On default configuration, it will detect the Intel HD Graphics (not AMD) and it just make the graphic driver confusing since Sony Vaio the graphic driver is officially different from what BlueStacks download.

The solution is to force BlueStacks using our AMD Radeon HD. The automatic switchable method is not work on BlueStacks, so we should put it to manual switchable method and select to use AMD Radeon HD which is High Performance. After you change the configuration on Catalyst Control Center, you should restart BlueStacks and it should not ask us to upgrade the graphic cards.

catalyst-1-devicemanager