Thursday, 20 July 2017

Sixth look at Ubuntu 17.10: 'julyshakedown'

UpdateThis work is superseded by my '' script which can respin an official ISO suitable for use on Intel Atom devices.

This week Canonical have issued an 'Ubuntu Artful Desktop July Shakedown – call for testing' requesting:
We’re mid-way through the Ubuntu Artful development cycle, with the 17.10 release rapidly approaching on the horizon. Now is a great time to start exercising the new GNOME goodness that’s landed on our recent daily images! Please download the ISO, test it out on your own hardware, and file bugs where appropriate.
So if you'd like to help out but only have an Intel Atom (Bay Trail or Cherry Trail) or Apollo Lake device then you can either use my '' script to make a bootable ISO for testing or use the 'one I made earlier'. I've used my script to respin the daily Ubuntu 17.10 ISO from the 19th of July and updated it with the v4.13-rc1 kernel packages along with my usual wifi/bluetooth packages and scripts and I've added a small 200MB persistence partition which can be resized after booting.

The ISO respin log file contains:

Script '/usr/local/bin/' called with '-i artful-desktop-amd64-190717.iso -u -l rtl8723bt_4.12.0_amd64.deb -f -f -f -f -c -c -s 200MB' ...
Work directory 'isorespin' used ...
ISO '/home/linuxium/artful-desktop-amd64-190717.iso' respun ...
Kernel boot parameters 'persistent' added ...
Bootmanager 'rEFInd' added ...
Kernel updated with mainline kernel version '4.13.0-041300rc1-generic' ...
Local package '/home/linuxium/rtl8723bt_4.12.0_amd64.deb' added ...
File '/home/linuxium/' added ...
File '/home/linuxium/' added ...
File '/home/linuxium/' added ...
File '/home/linuxium/' added ...
Command run ...
./ Extracting UCM files ...
./ Installing UCM files ...
./ Reloading UCM driver ...
./ Installation of UCM finished 
./ Extracting Broadcom files ...
./ Installing Broadcom files ...
./ Reloading Broadcom driver ...
./ Installing Broadcom bluetooth service ...
Created symlink /etc/systemd/system/ -> /lib/systemd/system/brcmbt.service.
./ Starting Broadcom bluetooth service ...
Running in chroot, ignoring request.
./ Installation of Broadcom finished 
Persistence partition of '200MB' added ...
Respun ISO created as 'linuxium-persistence-v4.13-rc1-artful-desktop-amd64-190717.iso'.

which shows the command used and the respun ISO can be downloaded from here.

Anyone interested in respining their own ISO can download my '' script from here together with full documentation with examples from here.

Please donate if you find the script useful using the following link as everything helps with development costs.


  1. Bonjour,
    Pour les problèmes de son codec,
    lancer la commande alsa-config
    Pour ma tablette Cube iwork1X SurfTab-twin-11-6
    bytcht-noconec et passé à bytcr-rt5651
    Audio ok sur casque
    Ne fonctionne pas
    Micro casque
    Micro tablette
    Haut-parleurs Tablette
    Kubuntu 17.10 4.13.0-rc1

    For problems with its codec,
    Run the alsa-config command
    For my Tablet Cube iwork1X SurfTab-twin-11-6
    Bytcht-noconec and passed to bytcr-rt5651
    Audio ok on headphones
    Does not work
    Micro tablet
    Speakers Tablet
    Kubuntu 17.10 4.13.0-rc1

    1. I have a Cube Iwork11 Ultimate has the setup for bytcr-rt5651. Speaker is not working right now. Headphones working because of routing problems. If you respin your cd. Here is the script I am using for the cube. It installs the Intel Drivers from Intel Updates all the packages on the iso. Configures xorg for intel. Installs and enables HW Accel on chrome.
      #Start isorespin script

      cd /tmp
      #This is for ubuntu 17.04
      #Install Intel Xorg Hardware accelerate Drivers and setup
      echo 'Section "Device"' >> /etc/X11/xorg.conf
      echo ' Identifier "Intel Graphics"; >> /etc/X11/xorg.conf
      echo ' Driver "intel"' >> /etc/X11/xorg.conf
      echo 'EndSection' >> /etc/xorg.conf
      apt-key add RPM-GPG-GROUP-KEY-ilg
      echo "deb zesty main" >> /etc/apt/sources.list
      apt-get -y update
      apt-get -y upgrade i965-va-driver libva-egl1 libva-glx1 libva-tpi1 libva-wayland1 libva-x11-1 libva1 vainfo intel-gpu-tools libunwind8
      apt-get -f --fix-broken install
      apt-get --reinstall install vainfo intel-gpu-tools libunwind8 xserver-xorg-video-intel
      #Finnished Installing Intel Drivers for 17.04

      #Update and clean
      apt-get -y upgrade
      apt-get -y clean
      rm /var/cache/apt/packages/lock

      #Install Chrome and enable full Intel Hardware accelerated
      mv /usr/bin/google-chrome /usr/bin/chrome
      echo "google-chrome --ignore-gpu-blacklist --enable-vaapi --enable-gpu-rasterization --enable-native-gpu-memory-buffers" > /usr/bin/google-chrome
      chmod 755 /usr/bin/google-chrome

      #Setup Audio for bytcr-rt5651
      mkdir -p /usr/share/alsa/ucm/bytcr-rt5651
      mv bytcr-rt5651.conf /usr/share/alsa/ucm/bytcr-rt5651
      mv HiFi /usr/share/alsa/ucm/bytcr-rt5651
      mv asound.state /var/lib/alsa
      #end isorespin script

    2. What is the overhead of running the Intel Drivers and do you think it a good idea to include as a default (see my latest post regarding the target processor option)?

    3. Well, I was not able to run youtube 720p without them. Also since the recipe for the Intel Drivers supports the following it probably would be a good idea to add them.

      Hardware Specification - PRMs
      2016 Intel(r) processors based Kaby Lake platform
      2015-2016 Intel Processors based on Skylake Platform
      2014-2015 Intel Processors based on Cherry Trail / Braswell Platform
      2014-2015 Intel Processors based on Broadwell Platform
      2013 Intel Core Processor Family
      2012 Intel Core Processor Family
      2011 Intel Core Processor Family
      2010 Intel Core Processor Family
      Intel® G45 Express Chipset
      Intel® 965 Express Chipset Family and Intel® G35 Express Chipset Graphics Controller PRM


      I checked and extracted the debs for all the linux intel repository drivers. They overhead is about 20 megs.

      It also support GLX, DRM, DRI

    4. Here is my X log
      8086:22b0:8086:7270 rev 34, Mem @ 0xa0000000/16
      777216, 0x80000000/536870912, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
      LoadModule: "glx"
      Loading /usr/lib/xorg/modules/extensions/
      Module glx: vendor="X.Org Foundation"
      [ 103.460] compiled for 1.19.3, module version = 1.0.0
      [ 103.460] ABI class: X.Org Server Extension, version 10.0
      LoadModule: "intel"
      Loading /usr/lib/xorg/modules/drivers/
      Module intel: vendor="X.Org Foundation"
      [ 103.649] compiled for 1.19.3, module version = 2.99.917
      [ 103.649] Module class: X.Org Video Driver
      [ 103.649] ABI class: X.Org Video Driver, version 23.0
      Integrated Graphics Chipsets:
      i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
      915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
      Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
      GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
      HD Graphics
      Pro Graphics
      : Using Kernel Mode Setting driver: i915, version 1.6.
      0 20170717
      : SNA compiled: xserver-xorg-video-intel 2:2.99.917+gi
      t20170309-0ubuntu1 (Timo Aaltonen )
      : SNA compiled for use with valgrind
      HD Graphics
      : CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2; usin
      g a maximum of 4 threads
      : Creating default Display subsection in Screen sectio
      "Default Screen Section" for depth/fbbpp 24/32
      framebuffer bpp 32
      : RGB weight 888
      : Default visual is TrueColor
      : Output DSI1 has no monitor section
      : Found backlight control interface acpi_video1 (type
      'firmware') for output DSI1
      : Enabled output DSI1
      : Output DP1 has no monitor section
      : Enabled output DP1
      : Output HDMI1 has no monitor section
      : Enabled output HDMI1
      : Output DP2 has no monitor section
      : Enabled output DP2
      : Output HDMI2 has no monitor section
      : Enabled output HDMI2
      : Using a maximum size of 256x256 for hardware cursors
      : Output VIRTUAL1 has no monitor section
      : Enabled output VIRTUAL1
      : Output DSI1 using initial mode 1920x1200 on pipe 0
      : TearFree disabled

      Loading sub module "dri3"
      LoadModule: "dri3"
      Module "dri3" already built-in
      Loading sub module "dri2"
      LoadModule: "dri2"
      Module "dri2" already built-in
      Loading sub module "present"
      LoadModule: "present"
      Module "present" already built-in
      Depth 24 pixmap format is 32 bpp
      : Backing store enabled
      : Silken mouse enabled
      : HW Cursor enabled
      : RandR 1.2 enabled, ignore the following RandR disabl
      ed message.
      : DPMS enabled
      : Display hotplug detection enabled
      : [DRI2] Setup complete
      : [DRI2] DRI driver: i965
      : [DRI2] VDPAU driver: va_gl
      : direct rendering: DRI2 enabled
      : hardware support for Present enabled
      RandR disabled
      SELinux: Disabled on system
      AIGLX: enabled GLX_MESA_copy_sub_buffer
      AIGLX: enabled GLX_ARB_create_context
      AIGLX: enabled GLX_ARB_create_context_profile
      AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
      AIGLX: enabled GLX_INTEL_swap_event
      AIGLX: enabled GLX_SGI_swap_control
      AIGLX: enabled GLX_EXT_framebuffer_sRGB
      AIGLX: enabled GLX_ARB_fbconfig_float
      AIGLX: enabled GLX_EXT_fbconfig_packed_float
      AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
      AIGLX: enabled GLX_ARB_create_context_robustness
      AIGLX: Loaded and initialized i965
      GLX: Initialized DRI2 GL provider for screen 0
      : switch to mode 1920x1200@60.0 on DSI1 using pipe 0,
      position (0, 0), rotation normal, reflection none
      : Setting screen physical size

    5. Here is my spin, I am also using the intel kernel since I went through the changelog and it has alot of intel fixed.

      nice -10 ./ -i xubuntu-17.04-desktop-amd64.iso -k drm-intel-nightly -l pavucontrol_3.0-3build1_amd64.deb -l google-chrome-stable_current_amd64.deb -l intel-graphics-update-tool_2.0.5_amd64.deb -l rtl8723bs_4.12.0_amd64.deb -f -f -f -f -c -c -c -s 200MB

    6. Used with the latest mainline kernel and I'm not seeing any benefit with the Intel driver vs without. And this is on a first gen Intel Commpute stick running 1080p YouTube videos. Maybe different behaviour on other devices or is the drm-intel-nightly a mandatory prerequisite?

  2. tested in my hi12, everything working but sound,even ES8316 has been included in 4.13rc1 (maybe not compiled)
    thanks for this iso.

    1. See comment below from Gérald TOUSSAINT as a workaround until the module is hopefully included by default.

  3. further test.... the goodix driver seems to be broken.

    1. Heres how to fix the goodix driver.
      Step 1. Install the linux-image/headers on your home ubuntu.
      Step 2. Get the working goodix driver.
      mkdir ~/goodix
      cd ~/goodix



      /* Inversions have to happen before axis swapping */
      if (ts->inverted_x)
      #This will fix the inverted X axis bug

      Step 3 reboot into the same kernel as your isorespin iso.

      cd into the goodix directory

      Step 4. Copy the goodix.ko to /lib/modules/#PUTKERNEL VERSION HERE/generic/kernel/drivers/input/touchscreen/

  4. MakeFile
    obj-m := snd-soc-es8316.o
    snd-soc-es8316-objs := es8316.o

    KERNELDIR ?= /lib/modules/$(shell uname -r)/build
    PWD := $(shell pwd)


    $(MAKE) -C $(KERNELDIR) M=$(PWD)


    $(MAKE) INSTALL_MOD_DIR=sound/soc/codecs/ -C $(KERNELDIR) M=$(PWD) modules_install

    rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions vtty

    copy snd-soc-es8316.ko to /lib/modules/4.13.0-041300rc1-generic/kernel/sound/soc/codecs/

    sudo depmod

    sudo make modules_install = error SSL

    1. Thanks. Hopefully later configs will include this as default. Are any userspace files required in addition to allow audio with ES8316?

    2. Not tested but maybe is necessary:

      copy to /system/etc/alsa/bytchtes8316.state

    3. Thanks. I hope some can test and provide feedback.

  5. Have you ever tried a re-spun iso with gnome-flashback? I've tried multiple respun Ubuntu versions and each time it crashes back to the login screen.

    PS. Thank you for your amazing work. This project has put new life into my Dell Venue Pro.

    1. Is the issue just with a 17.10 daily build or do you mean after installing 'gnome-session-flashback' as a package?

    2. It's every version of Ubuntu I try. Daily Builds, Ubuntu 17.04, it doesn't matter. When I run the respun iso, it somehow breaks the ability to use gnome flashback

    3. I'll try and find some time to look into it.

    4. I've tested GNOME flashback by installing on a respun Artful daily ISO and respinning an Artful daily ISO including 'gnome-session-flashback' as a package with both working fine. I can see the sessions with 'ls -l /usr/share/xsessions/' and I can set defaults of accounts under 'ls -l /var/lib/AccountsService/users/'. I can also change the default once the account has a password using the 'gear' as usual. If you want to try respining your own ISO use the command ' -i ubuntu-17.10-alpha2-desktop-amd64.iso --atom -u -p gnome-session-flashback' substituting the ISO of your choice.

  6. Thanks for the great work. I've tried to use the latest isorespin on the latest version of Lubuntu. Unfortunately, I get this error message: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set. I've seen fixes on other sites, but they go over recovery mode. Is there a way to fix this?

    1. Try running the following two commands: 'pkexec chown root:root /usr/bin/sudo' followed by 'pkexec chmod 4755 /usr/bin/sudo'. Otherwise boot from a LiveUSB and after mounting your installed Ubuntu partition and run the 'sudo' command with the same arguments but on the 'broken' sudo file. BTW the fact that you have this problem means you should seriously consider backing up your data and reinstalling in case the root cause has created more problems than just this.

  7. How to get the touch screen ft5x0x_ts work? Must I make a custom kernel?