My Experience with installing Ubuntu on Acer Iris Xe Max Laptop

I recently bought an Acer Swift 3X SF314-510G renewed laptop from Amazon.in as a backup laptop to test out Windows 11 Insider Edition. Since I use Ubuntu 21.04 (Hirsute Hippo) with GNOME 3.38.4 on my regular laptop, I was curious to see how it will work on this new hardware.

Acer Swift 3X SF314-510G is not just another Intel-powered laptop. This model is unique as it comes with Intel Iris Xe Max GPU ( Intel DG1 ). As of this writing, the Ubuntu official kernel doesn’t have support for this GPU. However, since the 11th Gen Intel Core i5-1135G7 also comes with integrated Iris Xe graphics, the latest Ubuntu bootable USB installation drive booted into it without any issues. Everything was working except the Intel Iris Xe Max GPU because of a lack of drivers.

Installing Ubuntu 21.04 Linux on Acer Swift 3X SF314-510G

Since I was able to boot the live USB without any issues, I thought i will install it after updating Windows 10 to Windows 11. I enrolled in the Windows Insider program and installed the new Windows 11 without any issues. The UI looks much better and polished than the older Windows versions. If you are a Windows user, I would highly recommend you give it a try. From my limited usage, I didn’t see the Blue Screen of Death, which is now black I heard.

After using Windows 11 for a while, I decided to Dual boot Ubuntu 21.04 on my new Acer Swift SF314-510G. Installation went without any issues. Since the new Ubuntu versions support Secure Boot, you don’t have to disable it in the Bios and use legacy mode. Everything got installed and the system rebooted. However, the GRUB bootloader, which was needed for Ubuntu to boot didn’t load at startup. Naturally, I googled for solutions and got a wide range of solutions to try out.

A few users suggested i try the following commands

bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\shimx64.efi
or
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

For me, both of these commands didn’t work. So I moved on to other solutions.

Acer has a Bios feature that lets you choose a .EFI file as trusted. In order to do that, first, you have to set a Bios Supervisor password. You can do that easily from the Security tab. Then you have to choose the Select a UEFI file as trusted for executing option. This will let you browse through the EFI partition. From there, navigate to the ubuntu folder and find the shimx64.efi. If no such file exists, look for grubx64.efi. Select it by entering. It will prompt you to enter a name. After finishing this step successfully, reboot. You will now have a new entry in the bootable items listed in the F12 boot menu. This process will give you the Grub loader to boot from on many many Acer Laptops.

However, in my case, it didn’t. So I repeated the Ubuntu installation process after resetting everything in the BIOS to default. Also i tried with and without Secure boot enabled. I again ran into the same issue. but this time, I got empty EFI Ubuntu folders. When I mounted the EFI ubuntu folder using a live system, I found the needed files there but for some reason, BIOS didn’t show it.

I tried using older Ubuntu versions – even installed older Ubuntu 18.04 LTS just to see if it will give me the GRUB. Now i ran into a new error – Executing ‘grub-install /dev/nvme0n1’ failed – This is a fatal error. I switched back to the latest Ubuntu live CD, and to my surprise, i started to see this new grub-install error in that as well! Again, I google-searched for solutions, and nothing these great minds suggested worked in my case.

Since I am a full-time Ubuntu user, I actually didn’t need to have Dual Boot Windows 11 and Ubuntu on my Acer Swift 3X SF314-510G. I can easily live without it. However, I wanted to test out the new UI and Windows experience, hence the decision to Dual boot. Also, I was afraid Acer has done some bad EFI Secure Boot implementation that wouldn’t let Ubuntu or other Linux booting on their new laptops. So removing Windows, formatting the whole drive, and installing Ubuntu alone was a risk. However, I was forced to do exactly that thanks to a fix suggested by Gparted. I was using Gparted in the live session to look at the partitions, and it alerted me of some issue with a drive. I hit FIX without thinking much and.. managed to corrupt the Windows partition. ie I screwed up. The Windows bootloader recovery tried to fix it automatically and failed. I tried a few different things and all failed. So I went from trying to fix the Ubuntu GRUB loading issue to trying to fix Windows 11 loading issue.

Finally, I decided to wipe everything off and go Full Ubuntu. I did select Install third-party software for graphics and Wi-Fi hardware and additional media formats during the installation and during the first boot, I performed the “Perform MOK management” and used the “Enroll MOK” option. All went well. It worked. I was able to Boot into the new Ubuntu installation without any issues.

I don’t know the exact reason why the GRUB didn’t load properly. It could be a bug in the GRUB, it could be the Windows 11 bootloader blocking other OSes, or maybe it’s due to some bad Acer BIOS EFI issue.

What I am now trying to do is get a Kernel with support for Iris Xe Max GPU ( Intel DG1 ). According to the reports online, the Linux 5.14 kernel will land with the support for the DG1 GPU. Intel developers are pushing various patches to the kernel to support this new GPU. I tried signing and booting with a 5.14.0-051400rc2-generic but is yet to have drivers for the DG1 GPU.

How to Reduce External Monitor Brightness in Ubuntu 21.04 [ Solved ]

Prior to Ubuntu 21.04 update, we could easily reduce the brightness of an external monitor using commands like xrandr or using the brightness-controller app. However, the new Ubuntu 21.04 switched to Wayland, resulting in xrandr and brightness-controller app non-functional.

I did some research on how to reduce external brightness in Wayland and the many ‘solutions’ and suggestions online seem not to work on my laptop. The brightness of my monitor even at its lowest setting is a bit too bright for my eyes. So I had to find a way.

Just Disable Wayland and switch back to Xorg. This lazy fix is for people who jusy want an easy and quick way to get back the functionality and not tinker with a lot of commands to make it work with wayland. Just follow the below commands.

How to disable Wayland in Ubuntu 21.04

  • Open a Terminal ( Ctrl + Alt + T )
  • Enter this command sudo gedit /etc/gdm3/custom.conf
  • Find the line #WaylandEnable=false in the configuration file
  • Remove the # from the above line – it should now read WaylandEnable=false.
  • Save the file
  • Reboot your system

After the reboot, your Ubuntu 21.04 will reboot with Xorg. The Xrandr command and brightness-controller app will now work as it used to be on earlier Ubuntu versions.

If you haven’t tried xrandr or brightness controller app yet, check here to know more on how to use those to reduce external monitor brightness.

[ FIX ] Your bootable USB drive could not be Created while installing Windows on Mac

If you have been trying to install Windows 10 on your Apple Macbook Air / Pro / Mini etc using the Boot camp assistant app, chances are you would run into a “Your bootable USB drive could not be created. There is not enough Disk Space available on the Disk” error. This error comes even when you have a lot of GBs of space free on your thumb drive.

It’s actually very easy to fix. 

The issue is caused by the Filesystem your USB drive is formatted with. By default, it’s formatted to Fat32. This filesystem can’t handle files bigger than 4GB. The Windows 10 installation ISO file has a .wim file that is bigger than 4GB, which when Bootcamp tries to copy, it throws the “Not enough disk space error”.

Here is the step by step Fix

  1. Format your USB drive to Exfat filesystem ( right-click on the Drive, hit format and choose Exfat from Filesystem menu )
  2. Open the Windows 10 iso file and copy all the contents inside it manually to the USB drive you just formatted. ( Don’t copy the .iso file itself )
  3. Then go to Boot camp and uncheck the first option that says Create a Windows 7 or later version install disk. 

Proceed with the rest of the steps. 

Another issue you would probably run into while installing Windows 10 via Bootcamp is having not enough free space to create Windows partition. To free up space, delete Timemachine backups as well as empty the trash.

For more info on Boot camp How to, visit the official Apple doc page here.