Update: This work is superseded by my 'isorespin.sh' 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 'isorespin.sh' script to make a bootable ISO for testing
The ISO respin log file contains:
Script '/usr/local/bin/isorespin.sh' called with '-i artful-desktop-amd64-190717.iso -u -l rtl8723bt_4.12.0_amd64.deb -f linuxium-install-UCM-files.sh -f wrapper-linuxium-install-UCM-files.sh -f linuxium-install-broadcom-drivers.sh -f wrapper-linuxium-install-broadcom-drivers.sh -c wrapper-linuxium-install-UCM-files.sh -c wrapper-linuxium-install-broadcom-drivers.sh -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/linuxium-install-UCM-files.sh' added ...
File '/home/linuxium/wrapper-linuxium-install-UCM-files.sh' added ...
File '/home/linuxium/linuxium-install-broadcom-drivers.sh' added ...
File '/home/linuxium/wrapper-linuxium-install-broadcom-drivers.sh' added ...
Command run ...
# wrapper-linuxium-install-UCM-files.sh
./linuxium-install-UCM-files.sh: Extracting UCM files ...
./linuxium-install-UCM-files.sh: Installing UCM files ...
./linuxium-install-UCM-files.sh: Reloading UCM driver ...
./linuxium-install-UCM-files.sh: Installation of UCM finished
# wrapper-linuxium-install-broadcom-drivers.sh
./linuxium-install-broadcom-drivers.sh: Extracting Broadcom files ...
./linuxium-install-broadcom-drivers.sh: Installing Broadcom files ...
./linuxium-install-broadcom-drivers.sh: Reloading Broadcom driver ...
./linuxium-install-broadcom-drivers.sh: Installing Broadcom bluetooth service ...
Created symlink /etc/systemd/system/multi-user.target.wants/brcmbt.service -> /lib/systemd/system/brcmbt.service.
./linuxium-install-broadcom-drivers.sh: Starting Broadcom bluetooth service ...
Running in chroot, ignoring request.
./linuxium-install-broadcom-drivers.sh: 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.
Please donate if you find the script useful using the following link http://goo.gl/nXWSGf as everything helps with development costs.
23 comments:
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
Hello,
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
Headset
Micro tablet
Speakers Tablet
Kubuntu 17.10 4.13.0-rc1
tested in my hi12, everything working but sound,even ES8316 has been included in 4.13rc1 (maybe not compiled)
thanks for this iso.
further test.... the goodix driver seems to be broken.
MakeFile
obj-m := snd-soc-es8316.o
snd-soc-es8316-objs := es8316.o
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
EXTRA_CFLAGS := -DDEBUG=0
all:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
modules_install:
$(MAKE) INSTALL_MOD_DIR=sound/soc/codecs/ -C $(KERNELDIR) M=$(PWD) modules_install
clean:
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
Because
sudo make modules_install = error SSL
Thanks. Hopefully later configs will include this as default. Are any userspace files required in addition to allow audio with ES8316?
See comment below from Gérald TOUSSAINT as a workaround until the module is hopefully included by default.
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.
Not tested but maybe is necessary:
https://bugzilla.kernel.org/show_bug.cgi?id=189261#c85
copy to /system/etc/alsa/bytchtes8316.state
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?
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.
Is the issue just with a 17.10 daily build or do you mean after installing 'gnome-session-flashback' as a package?
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
I have a Cube Iwork11 Ultimate
https://github.com/plbossart/UCM/tree/master/ 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 01.org. Updates all the packages on the iso. Configures xorg for intel. Installs and enables HW Accel on chrome.
#Start isorespin script
#!/bin/bash
cd /tmp
#This is for ubuntu 17.04
#Install Intel Xorg Hardware accelerate Drivers and setup
wget https://download.01.org/gfx/RPM-GPG-GROUP-KEY-ilg
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 https://download.01.org/gfx/ubuntu/17.04/main 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
wget https://raw.githubusercontent.com/plbossart/UCM/master/bytcr-rt5651/bytcr-rt5651.conf
wget https://raw.githubusercontent.com/plbossart/UCM/master/bytcr-rt5651/HiFi
wget https://raw.githubusercontent.com/burzumishi/linux-baytrail-flexx10/master/sound/alsa_ctrl/alsa_cr_spk.sh
mv bytcr-rt5651.conf /usr/share/alsa/ucm/bytcr-rt5651
mv HiFi /usr/share/alsa/ucm/bytcr-rt5651
wget https://raw.githubusercontent.com/plbossart/UCM/master/bytcr-rt5651/asound.state
mv asound.state /var/lib/alsa
#end isorespin script
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
wget https://raw.githubusercontent.com/blocksonic/gt9xx/master/Makefile
wget https://raw.githubusercontent.com/torvalds/linux/master/drivers/input/touchscreen/goodix.c
#REMOVE THE FOLLOWING LINES FROM goodix.c
/* 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
make
Step 4. Copy the goodix.ko to /lib/modules/#PUTKERNEL VERSION HERE/generic/kernel/drivers/input/touchscreen/
Thanks. I hope some can test and provide feedback.
I'll try and find some time to look into it.
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)?
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
See 01.org
I checked and extracted the debs for all the linux intel 01.org repository drivers. They overhead is about 20 megs.
It also support GLX, DRM, DRI
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/libglx.so
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/intel_drv.so
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
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
n
"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
backend
: 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
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 ./isorespin.sh -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 linuxium-install-UCM-files.sh -f wrapper-linuxium-install-UCM-files.sh -f linuxium-install-broadcom-drivers.sh -f wrapper-linuxium-install-broadcom-drivers.sh -c wrapper-linuxium-install-UCM-files.sh -c wrapper-linuxium-install-broadcom-drivers.sh -c intel3dchrome.sh -s 200MB
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?
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 'isorespin.sh -i ubuntu-17.10-alpha2-desktop-amd64.iso --atom -u -p gnome-session-flashback' substituting the ISO of your choice.
How to get the touch screen ft5x0x_ts work? Must I make a custom kernel?
Post a Comment
All comments now moderated so that spam can be deleted.