Peppermint OS Community Forum

Support => Advanced Topics => Topic started by: Pikolo on February 18, 2017, 09:37:32 am

Title: HWE has arrived
Post by: Pikolo on February 18, 2017, 09:37:32 am
According to http://www.omgubuntu.co.uk/2017/02/download-ubuntu-16-04-2-lts?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+d0od+%28OMG%21+Ubuntu%21%29 (http://www.omgubuntu.co.uk/2017/02/download-ubuntu-16-04-2-lts?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+d0od+%28OMG%21+Ubuntu%21%29) Ubuntu 16.04.2 is here. I know I'll be upgrading(I'm running the 4.8 kernel anyway), because the generic kernel means I can stop checking kernel updates weekly.
One thing I noticed(according to https://wiki.ubuntu.com/Kernel/RollingLTSEnablementStack (https://wiki.ubuntu.com/Kernel/RollingLTSEnablementStack)) is that there are two generic kernel images available, the generic one and a lowlatency one. Which one should I use? I remember some people were advocates of the low latency kernel, but is there a list of pros and cons?
Title: Re: HWE has arrived
Post by: VinDSL on February 18, 2017, 11:27:39 am
[T]here are two generic kernel images available, the generic one and a lowlatency one. Which one should I use?

I'm in a waiting room, so I'll keep it short ...  ;)

I run both, but unless you have special needs, or you feel adventurous, it's best for most users to stick with 'generic'.

Title: Re: HWE has arrived
Post by: PCNetSpec on February 18, 2017, 01:58:15 pm
If you're wondering if the low-latency kernel would speed up your PC .. the answer is IN MOST USE CASES NO .. otherwise it would be the generic kernel wouldn't it?, the kernel devs are not in the habit of slowing down peoples systems just for the heck of it :)

The low-latency kernel gives priority to certain events (mainly audio), but to do this it basically has to keep a much closer eye out for those events . keeping that eye out comes at a (small) cost to the entire system, and obviously prioritising one thing means demoting another ;)

The generic kernel is set to offer the best balance for most people/situations/systems .. so unless you're a musician, or sound recording engineer and are suffering stuttering audio, stick to the generic kernel.
Title: Re: HWE has arrived
Post by: perknh on February 18, 2017, 11:11:32 pm
IThe generic kernel is set to offer the best balance for most people/situations/systems .. so unless you're a musician, or sound recording engineer and are suffering stuttering audio, stick to the generic kernel.

I bumped up to the newer kernel and I'm delighted to report that the volume keys are now working on my Toshiba Satellite C70-A for the first time ever running Peppermint.  Although I'm very happy about this, my case is an exception.  If the computer you're using is working perfectly fine, don't fix it. ;)
Title: Re: HWE has arrived
Post by: perknh on February 19, 2017, 03:34:25 pm
The low-latency kernel gives priority to certain events (mainly audio), but to do this it basically has to keep a much closer eye out for those events . keeping that eye out comes at a (small) cost to the entire system, and obviously prioritising one thing means demoting another ;)

This is so true.  After a day with the new kernel, I notice that exiting suspend, or sleep mode, takes considerably longer than before.  I gained something I wanted wanted with the new kernel, namely the functionality of my sound keys, but I have lost the speed I liked when coming out of suspend.  I don't think this is a coincidence:  I think this is because of the new kernel.
Title: Re: HWE has arrived
Post by: Pikolo on February 20, 2017, 07:31:33 pm
For me the update didn't include the kernel because I've been running 4.8 since December. The X-server drivers however are a disaster, to the point where I'm looking for a way to downgrade. A game that previously run just fine now freezes and lags to the point of being unplayable.

Is there an easy way to go back to non HWE drivers? Re-installing would take far too long
Title: Re: HWE has arrived
Post by: PCNetSpec on February 20, 2017, 08:04:30 pm
possibly...

do you have a log file with the update in it ?
Title: Re: HWE has arrived
Post by: Pikolo on February 21, 2017, 07:06:58 pm
possibly...

do you have a log file with the update in it ?

Maybe? Where would I look for that?

Ask Ubuntu (https://askubuntu.com/questions/14328/where-can-i-look-up-my-update-history) suggests it's in /var/log/apt/history.log and I scrolled through it to find the relevant command
Code: [Select]
Start-Date: 2017-02-19  03:20:17
Commandline: apt install --install-recommends xserver-xorg-hwe-16.04
Requested-By: pshem (1000)
Install: xserver-xorg-video-qxl-hwe-16.04:amd64 (0.1.4-3ubuntu3~16.04.1, automatic), xserver-xorg-video-vesa-hwe-16.04:amd64 (1:2.3.4-1build2~16.04.1, automatic), linux-image-generic-hwe-16.04:amd64 (4.8.0.36.8, automatic), xserver-xorg-video-amdgpu-hwe-16.04:amd64 (1.1.2-1~16.04.1, automatic), linux-generic-hwe-16.04:amd64 (4.8.0.36.8, automatic), xserver-xorg-input-synaptics-hwe-16.04:amd64 (1.8.3-1ubuntu1~16.04.1, automatic), xserver-xorg-hwe-16.04:amd64 (1:7.7+13ubuntu4~16.04.2), xserver-xorg-video-all-hwe-16.04:amd64 (1:7.7+13ubuntu4~16.04.2, automatic), xserver-xorg-video-fbdev-hwe-16.04:amd64 (1:0.4.4-1build5~16.04.1, automatic), xserver-xorg-video-vmware-hwe-16.04:amd64 (1:13.1.0-2ubuntu3~16.04.1, automatic), xserver-xorg-video-intel-hwe-16.04:amd64 (2:2.99.917+git20160706-1ubuntu1~16.04.1, automatic), xserver-xorg-core-hwe-16.04:amd64 (2:1.18.4-1ubuntu6.1~16.04.1, automatic), xserver-xorg-input-wacom-hwe-16.04:amd64 (1:0.33.0-0ubuntu1~16.04.1, automatic), thermald:amd64 (1.5-2ubuntu2, automatic), xserver-xorg-input-evdev-hwe-16.04:amd64 (1:2.10.2-1ubuntu1~16.04.1, automatic), linux-headers-generic-hwe-16.04:amd64 (4.8.0.36.8, automatic), xserver-xorg-video-nouveau-hwe-16.04:amd64 (1:1.0.12-2~16.04.1, automatic), xserver-xorg-input-all-hwe-16.04:amd64 (1:7.7+13ubuntu4~16.04.2, automatic), xserver-xorg-video-radeon-hwe-16.04:amd64 (1:7.7.1-1~16.04.1, automatic), xserver-xorg-video-ati-hwe-16.04:amd64 (1:7.7.1-1~16.04.1, automatic)
Remove: xserver-xorg-input-all:amd64 (1:7.7+13ubuntu3), xserver-xorg-input-synaptics:amd64 (1.8.2-1ubuntu3), xserver-xorg:amd64 (1:7.7+13ubuntu3), xserver-xorg-video-r128:amd64 (6.10.0-1build2), xserver-xorg-video-siliconmotion:amd64 (1:1.7.8-1ubuntu6), xserver-xorg-video-vesa:amd64 (1:2.3.4-1build2), xserver-xorg-video-nouveau:amd64 (1:1.0.12+git1607191931.6473b6~gd~x), xserver-xorg-video-amdgpu:amd64 (1.1.99+git1609091931.0f8df8~gd~x), xserver-xorg-core:amd64 (2:1.18.4-0ubuntu0.2), xserver-xorg-video-cirrus:amd64 (1:1.5.3-1ubuntu3), xserver-xorg-video-trident:amd64 (1:1.3.7-1build2), xserver-xorg-video-fbdev:amd64 (1:0.4.4-1build5), xserver-xorg-video-savage:amd64 (1:2.3.8-1ubuntu3), xserver-xorg-input-wacom:amd64 (1:0.32.0-0ubuntu3), xserver-xorg-input-vmmouse:amd64 (1:13.1.0-1ubuntu2), xserver-xorg-video-mach64:amd64 (6.9.5-1build2), xserver-xorg-video-sisusb:amd64 (1:0.9.6-2build5), xserver-xorg-video-intel:amd64 (2:2.99.917+git1609081931.15c5ff~gd~x), xserver-xorg-video-tdfx:amd64 (1:1.4.6-1build2), xserver-xorg-video-vmware:amd64 (1:13.1.0-2ubuntu3), xserver-xorg-input-evdev:amd64 (1:2.10.1-1ubuntu2), xserver-xorg-video-all:amd64 (1:7.7+13ubuntu3), xserver-xorg-video-ati:amd64 (1:7.7.99+git1609061931.38797a~gd~x), xserver-xorg-video-radeon:amd64 (1:7.7.99+git1609061931.38797a~gd~x), xserver-xorg-video-neomagic:amd64 (1:1.2.9-1build2), xserver-xorg-video-mga:amd64 (1:1.6.4-1build2), xserver-xorg-video-openchrome:amd64 (1:0.3.3+git20160310-1)
End-Date: 2017-02-19  03:21:21
Title: Re: HWE has arrived
Post by: PCNetSpec on February 21, 2017, 07:42:54 pm
Okay, don't blame me if this goes horribly wrong:
Code: [Select]
sudo apt-get remove xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04 linux-image-generic-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04 linux-generic-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-hwe-16.04 xserver-xorg-video-all-hwe-16.04 xserver-xorg-video-fbdev-hwe-16.04 xserver-xorg-video-vmware-hwe-16.04 xserver-xorg-video-intel-hwe-16.04 xserver-xorg-core-hwe-16.04 xserver-xorg-input-wacom-hwe-16.04 thermald xserver-xorg-input-evdev-hwe-16.04 linux-headers-generic-hwe-16.04 xserver-xorg-video-nouveau-hwe-16.04 xserver-xorg-input-all-hwe-16.04 xserver-xorg-video-radeon-hwe-16.04 xserver-xorg-video-ati-hwe-16.04
then:
Code: [Select]
sudo apt-get install --reinstall xserver-xorg-input-all xserver-xorg-input-synaptics xserver-xorg xserver-xorg-video-r128 xserver-xorg-video-siliconmotion xserver-xorg-video-vesa xserver-xorg-video-nouveau xserver-xorg-video-amdgpu xserver-xorg-core xserver-xorg-video-cirrus xserver-xorg-video-trident xserver-xorg-video-fbdev xserver-xorg-video-savage xserver-xorg-input-wacom xserver-xorg-input-vmmouse xserver-xorg-video-mach64 xserver-xorg-video-sisusb xserver-xorg-video-intel xserver-xorg-video-tdfx xserver-xorg-video-vmware xserver-xorg-input-evdev xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-radeon xserver-xorg-video-neomagic xserver-xorg-video-mga xserver-xorg-video-openchrome
you might then need to manually uninstall the 4.8 kernel.
Title: Re: HWE has arrived
Post by: Pikolo on February 21, 2017, 07:56:26 pm
Okay, don't blame me if this goes horribly wrong:
Code: [Select]
sudo apt-get remove xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04 linux-image-generic-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04 linux-generic-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-hwe-16.04 xserver-xorg-video-all-hwe-16.04 xserver-xorg-video-fbdev-hwe-16.04 xserver-xorg-video-vmware-hwe-16.04 xserver-xorg-video-intel-hwe-16.04 xserver-xorg-core-hwe-16.04 xserver-xorg-input-wacom-hwe-16.04 thermald xserver-xorg-input-evdev-hwe-16.04 linux-headers-generic-hwe-16.04 xserver-xorg-video-nouveau-hwe-16.04 xserver-xorg-input-all-hwe-16.04 xserver-xorg-video-radeon-hwe-16.04 xserver-xorg-video-ati-hwe-16.04
then:
Code: [Select]
sudo apt-get install --reinstall xserver-xorg-input-all xserver-xorg-input-synaptics xserver-xorg xserver-xorg-video-r128 xserver-xorg-video-siliconmotion xserver-xorg-video-vesa xserver-xorg-video-nouveau xserver-xorg-video-amdgpu xserver-xorg-core xserver-xorg-video-cirrus xserver-xorg-video-trident xserver-xorg-video-fbdev xserver-xorg-video-savage xserver-xorg-input-wacom xserver-xorg-input-vmmouse xserver-xorg-video-mach64 xserver-xorg-video-sisusb xserver-xorg-video-intel xserver-xorg-video-tdfx xserver-xorg-video-vmware xserver-xorg-input-evdev xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-radeon xserver-xorg-video-neomagic xserver-xorg-video-mga xserver-xorg-video-openchrome
you might then need to manually uninstall the 4.8 kernel.
4.8 kernel has been running here since late Decemebr without issues, I intend to leave it. Just one question though...
Shouldn't I install the new packages first? Because it seems like I'll be doing operations on an X emulated terminal that involve removing X...
The other way around it I can think of is doing something like
Code: [Select]
sudo stopx
if that's even a command. I think I read an update tutorial for aptosid once that dealt with turning the X server off for updates
3rd way I can think of is chaining them, so that the commands are executed and hopefully It all works afterwards :)
Title: Re: HWE has arrived
Post by: PCNetSpec on February 21, 2017, 08:20:20 pm
No .. X should stay in memory as long as you don't stop it before running the second command.

I doubt it would let you run them the other way around anyway.
Title: Re: HWE has arrived
Post by: Pikolo on February 21, 2017, 09:26:00 pm
If it's kept in the memory, should I restart before veryfing I'm golden? Either way, I made a script to do both because that makes me feel safer  ::)
Code: [Select]
#! /bin/bash

#remove
sudo apt-get remove xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04 linux-image-generic-16.04 xserver-xorg-video-amdgpu-hwe-16.04 linux-generic-16.04 xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-hwe-16.04 xserver-xorg-video-all-hwe-16.04 xserver-xorg-video-fbdev-hwe-16.04 xserver-xorg-video-vmware-hwe-16.04 xserver-xorg-video-intel-hwe-16.04 xserver-xorg-core-hwe-16.04 xserver-xorg-input-wacom-hwe-16.04 thermald xserver-xorg-input-evdev-hwe-16.04 linux-headers-generic-16.04 xserver-xorg-video-nouveau-hwe-16.04 xserver-xorg-input-all-hwe-16.04 xserver-xorg-video-radeon-hwe-16.04 xserver-xorg-video-ati-hwe-16.04

#reinstall
sudo apt-get install --reinstall xserver-xorg-input-all xserver-xorg-input-synaptics xserver-xorg xserver-xorg-video-r128 xserver-xorg-video-siliconmotion xserver-xorg-video-vesa xserver-xorg-video-nouveau xserver-xorg-video-amdgpu xserver-xorg-core xserver-xorg-video-cirrus xserver-xorg-video-trident xserver-xorg-video-fbdev xserver-xorg-video-savage xserver-xorg-input-wacom xserver-xorg-input-vmmouse xserver-xorg-video-mach64 xserver-xorg-video-sisusb xserver-xorg-video-intel xserver-xorg-video-tdfx xserver-xorg-video-vmware xserver-xorg-input-evdev xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-radeon xserver-xorg-video-neomagic xserver-xorg-video-mga xserver-xorg-video-openchrome

Given my long good run with the 4.8 kernel, I'm removing the 4.4 headers instead. Wish me luck. If I don't reply before tomorrow, it means I butchered my system :D

Edit after running: seems like I got the linux-generic names wrong, but the rest installed fine. Restart time
Title: Re: HWE has arrived
Post by: PCNetSpec on February 21, 2017, 09:37:17 pm
Yeah you won't know for sure until you reboot .. but DO NOT reboot until you've run BOTH commands.
Title: Re: HWE has arrived
Post by: Pikolo on February 21, 2017, 09:56:00 pm
It worked. Thank you very much for teaching me how to use the apt log, PCNetSpec!

Now, let's see if it fixed the regression....

Edit: It DID, and WOW! Average FPS in a benchmark I run every graphics update is up by 3 FPS, from 24 to 25.5(was 24.9 on Mesa13, so there is slight progress there). No freezes I've seen so far... Will test longer, but I think something is deeeply wrong with the new xserver package for intel is broken, to the point where I might try to file a launchpad bug
Title: Re: HWE has arrived
Post by: PCNetSpec on February 22, 2017, 12:46:00 pm
You're welcome :)

as a matter of interest can you post the output from
Code: [Select]
inxi -G
for me please.
Title: Re: HWE has arrived
Post by: Pikolo on February 28, 2017, 08:31:07 am
Sure. Sorry for the delay
Code: [Select]
pshem@PiLenovo ~ $ inxi -G
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@59.97hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 17.0.0 - padoka PPA