Last edit: 24 August 2022

This article only applies to the Raspberry Pi devices, meaning it is only applicable for:

  • FydeOS for You - Raspberry Pi 400
  • openFyde for Raspberry Pi 4B
  • Chromium OS for Raspberry Pi

This article aims to enable fake-kms by modifying the config.txt configuration file.
There are two methods to modify config.txt. Please choose the method that fits you.

#Method 1:Change Configuration in System

#1. Enter the Shell

  • Boot target Chromium OS on a Pi, but with a different display setup so that you can see UI.
  • Press ctrl + alt + t to acess the crosh.
  • Type shell to access the shell.

#3. Modify the Configuration

  • Enter the command to access the config file:

    sudo edit-pi-config 
    
  • Scroll down to find dtoverzlay and change it to the following.

    dtoverlay=vc4-fkms-v3d
    

    Press the ctrl + x key and enter y to save the changes.

#4. Reboot

Enter the following command to reboot.

reboot

#Method 2: Modify Image

Directly modify the image on a Linux machine by mounting its partition 12 and changing the configuration.

#1. Unzip the Firmware

  • Rewrite the <version_string> section according to your firmware name
  • Enter the command to unzip the firmware
xz -d  chromiumos_image_<version_string>.img.xz

#2. Mapping Partition

Run the following command to map the image partition.

sudo kpartx -a chromiumos_image_<version_string>.img

#3. Confirm loop Partition

  • Enter the following command to display the image partition.

    sudo kpartx -l chromiumos_image_<version_string>.img
    

  • Enter the following command to confirm your loop partition.

    cd /dev/mapper/
    ls
    

#4. Mount Partition

Enter the command to mount loop0p12 as crosp12.

sudo mkdir /mnt/crosp12
sudo mount -t msdos /dev/mapper/loop0p12 -o rw /mnt/crosp12

#5. Modify the Configuration

  • Enter the command to access the file:

    sudo nano /mnt/crosp12/config.txt
    
  • Scroll down to find dtoverlay and change it to the following.

    dtoverlay=vc4-fkms-v3d
    

    Press the ctrl + x key and enter y to save the changes.

#6. Delete Partition Map

Enter the following command to delete the partition map:

sudo kpartx -d chromiumos_image_<version_string>.img