Based on repository activity, growth velocity and community engagement.
29
Growth4/30
Activity7/25
Popularity9/25
Trust10/20
200
Stars
High
Sentiment
Votes
200
README.md
Xiaomi Air 13: minimal Ubuntu installation and power optimization steps
Preparation
Make bootable flash drive. Personally I don't use flash drives and I have only one with some files on it. I used this wiki https://wiki.archlinux.org/index.php/Multiboot_USB_drive to prepare multi boot usb.
Download your favorite ubuntu distro. Without reason i chose xubuntu 16.04 (LTS).
after testing it turned out that unity DE with default settings is less efficient than XFCE : minimal power consumption 7W vs 4W.
Power off laptop, power on and press F2 to get in BIOS(?). If I do reboot F2 doesn't work.
Select usb to boot from. If you created usb without UEFI choose legacy mode in boot menu. Save - Reboot
Boot to xubuntu-desktop and run gparted in terminal: sudo gparted. I created 4 partitions for root - / , for /home, swap 8Gb and EFI one (200Mb). Efi partition I did with idea to change boot linux or windows in bios only. Thus I can make grub transparent (without menu and s etc.) when laptop start from hibernate.
You may check power consumption with live usb, in terminal upower -d in my case with USB plugged it was about 7W
I downloaded lubuntu alternate to make minimal installation
Installation
You may want use wifi, in terminal: sudo modprobe -r acer_wmi; sudo service network-manager restart
Start Installation icon. Make some steps. Downloading updates and HD youtube music video will slow down installation.
At page with third-party software you must Turn off secure boot . Without this step we will not be able install efficient NVIDIA driver blob.
Answer no to unmount /dev/sda
In HDD partition selection I chose Something else to do manual selection.
Chose partitions for / and /home and uefi
Make obvious steps: your location, your language, your login details
reboot in ubuntu you probably will need select proper boot order in BIOS
Configuration
Unlock secure boot: follow instructions on blue screen.
In result you will get two errors with intel video firmware:
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6.bin for module i915_bpo
Download it from http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/i915
cd /tmp/
wget http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/i915/skl_guc_ver6_1.bin
wget http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/i915/kbl_dmc_ver1_01.bin
Here you can create links, but i just copied. Update initramfs.
replace nvidia-current to nvidia-370 to get this in bumblebee.conf:
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-370:/usr/lib32/nvidia-370
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-370/xorg,/usr/lib/xorg/modules
Sometimes it could be that installed bumblebee does not have configs, so easy solution is just take my configs
cd /tmp
git clone https://github.com/Golovin-Andrey/xiaomi-mi-13-ubuntu.git
cp -r /tmp/xiaomi-mi-13-ubuntu/bumblebee/ /etc
Checking
stop bumblebee service and run in debug mode
sudo service bumblebeed stop
sudo bumblebeed --debug
It could that bumblebee service could not load. It may come from ppa package issues ( I can't check it but it happens with some user). In this case we should use bumblebee for official repo.