Install / Remove Hardware Enablement Stacks in Ubuntu 16.04

Last updated: February 24, 2017

Linux Kernel

Ubuntu 16.04.2 LTS was released 2 days ago with security updates, corrections for high-impact bugs, and hardware enablement stacks for use on newer hardware.

The LTS enablement stacks provide Linux Kernel 4.8 and newer X support, and they are included in the Ubuntu 16.04.2 desktop ISO images.

For original Ubuntu 16.04, and Ubuntu 16.04.1 users, you have to manually install the HWE stacks. And below will tell you how:

How to Install Hardware Enablement Stacks:

Open terminal from app launcher or via Ctrl+Alt+T shortcut key. When it opens, run command:

sudo apt-get install --install-recommends xserver-xorg-hwe-16.04

Type in your password (no visual feedback) and hit Enter.

After installation, reboot your computer.

How to Uninstall:

1. I don’t like the new X stack in my laptop, so I removed it via commands:

sudo apt remove xserver-xorg-core-hwe-16.04 xserver-xorg-input-all-hwe-16.04 linux-generic-hwe-16.04 xserver-xorg-video-all-hwe-16.04

You’ll see the command also removes the ubuntu-desktop package. Don’t worry. The following commands will install it back.

2. Then install back the original xserver-xorg via commands:

sudo apt install xserver-xorg-core

sudo apt install ubuntu-desktop xserver-xorg xserver-xorg-video-all xserver-xorg-input-all libgl1-mesa-dri:i386 libgl1-mesa-glx:i386

If you want to remove the new kernel 4.8, reboot and select boot with old 4.4 kernel (grub -> Advanced Options), then see this how to tutorial.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

4 responses to Install / Remove Hardware Enablement Stacks in Ubuntu 16.04

  1. After uninstalling, I also had to reinstall xserver-xorg-input-all as my laptop keyboard and USB mouse no longer worked after rebooting. It may also be wise to reinstall xserver-xorg-video-all (or at least the hardware specific package like xserver-xorg-video-intel).

  2. after doing:
    sudo apt install xserver-xorg-core
    you can do:
    sudo apt install xorg
    to get back the old versions of everything including xserver-xorg-input-all and xserver-xorg-video-intel

  3. Thanks, I did a clean install of 16.04.2 and ended up with the new hwe stack and that’s when the problems began. My CPU was running hotter than it should and youtube videos were slow and had popping/crackling sound. As soon as I reverted to the older versions the problems disappeared.