diff options
author | pico.dev <pico.dev@gmail.com> | 2020-09-03 15:49:09 +0200 |
---|---|---|
committer | pico.dev <pico.dev@gmail.com> | 2020-09-03 15:49:09 +0200 |
commit | 67aec71b2c1bb59db0519b1265613d1f732eeb66 (patch) | |
tree | 59f112f2fe623eb93ca482e4c08773ed8090f6ca | |
parent | 3c2b2bcbeb37251240c236a690bb3238f3b6a29c (diff) |
Support Fastboot on Intel Graphics
Also framebuffer compression
Enable fastboot
Change grub to systemd as default bootloader
Fixes #67
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | alis.conf | 6 | ||||
-rwxr-xr-x | alis.sh | 12 |
3 files changed, 17 insertions, 5 deletions
@@ -35,7 +35,7 @@ For new features, improvements and bugs fill an issue in GitHub or make a pull r * Kernels: linux-lts, linux-hardened, linux-zen * Desktop environment: GNOME, KDE, XFCE, Mate, Cinnamon, LXDE * Display managers: GDM, SDDM, Lightdm, lxdm -* Graphics controller: intel, nvidia, amd with optionally early KMS start +* Graphics controller: intel, nvidia and amd with optionally early KMS start. With intel optionally fastboot, hardware video acceleration and framebuffer compression. * Bootloader: GRUB, rEFInd, systemd-boot * WPA WIFI network installation * Periodic TRIM for SSD storage @@ -50,8 +50,6 @@ For new features, improvements and bugs fill an issue in GitHub or make a pull r * Script for download installation and recovery scripts and configuration files * Retry packages download on connection/mirror error * Desktop environments (GDM, KDE, XFCE, Mate, Cinnamon, LXDE), display managers (GDM, SDDM, Lightdm, lxdm) and no desktop environment -* Graphics controllers (intel, nvidia, amd) with optionally early KMS start -* GRUB, rEFInd, systemd-boot bootloaders * Packer support for testing in VirtualBox * Installation log with all commands executed and output in a file and/or asciinema video * Wait after installation for an abortable reboot @@ -69,12 +69,14 @@ SYSTEMD_HOMED_CIFS_SERVICE="" HOOKS="base !udev !usr !resume !systemd !btrfs keyboard autodetect modconf block !net !dmraid !mdadm !mdadm_udev !keymap !consolefont !sd-vconsole !encrypt !lvm2 !sd-encrypt !sd-lvm2 fsck filesystems" # bootloader -BOOTLOADER="grub !refind !systemd" # (single) +BOOTLOADER="!grub !refind systemd" # (single) # desktop DESKTOP_ENVIRONMENT="!gnome !kde !xfce !mate !cinnamon !lxde" # (single) DISPLAY_DRIVER="!intel !amdgpu !ati !nvidia !nvidia-lts !nvidia-dkms !nvidia-390xx !nvidia-390xx-lts !nvidia-390xx-dkms !nouveau" # (single) -KMS="false" +KMS="true" +FASTBOOT="true" +FRAMEBUFFER_COMPRESSION="false" DISPLAY_DRIVER_DDX="false" VULKAN="false" DISPLAY_DRIVER_HARDWARE_ACCELERATION="false" @@ -163,6 +163,8 @@ function check_variables() { check_variables_list "DESKTOP_ENVIRONMENT" "$DESKTOP_ENVIRONMENT" "gnome kde xfce mate cinnamon lxde" "false" check_variables_list "DISPLAY_DRIVER" "$DISPLAY_DRIVER" "intel amdgpu ati nvidia nvidia-lts nvidia-dkms nvidia-390xx nvidia-390xx-lts nvidia-390xx-dkms nouveau" "false" check_variables_boolean "KMS" "$KMS" + check_variables_boolean "FASTBOOT" "$FASTBOOT" + check_variables_boolean "FRAMEBUFFER_COMPRESSION" "$FRAMEBUFFER_COMPRESSION" check_variables_boolean "DISPLAY_DRIVER_DDX" "$DISPLAY_DRIVER_DDX" check_variables_boolean "DISPLAY_DRIVER_HARDWARE_ACCELERATION" "$DISPLAY_DRIVER_HARDWARE_ACCELERATION" check_variables_list "DISPLAY_DRIVER_HARDWARE_ACCELERATION_INTEL" "$DISPLAY_DRIVER_HARDWARE_ACCELERATION_INTEL" "intel-media-driver libva-intel-driver" "false" @@ -644,6 +646,16 @@ function mkinitcpio_configuration() { esac arch-chroot /mnt sed -i "s/^MODULES=()/MODULES=($MODULES)/" /etc/mkinitcpio.conf fi + if [ "$DISPLAY_DRIVER" == "intel" ]; then + OPTIONS="" + if [ "$FASTBOOT" == "true" ]; then + OPTIONS="$OPTIONS fastboot=1" + fi + if [ "$FRAMEBUFFER_COMPRESSION" == "true" ]; then + OPTIONS="$OPTIONS enable_fbc=1" + fi + echo "options i915 $OPTIONS" > /mnt/etc/modprobe.d/i915.conf + fi if [ "$LVM" == "true" ]; then pacman_install "lvm2" |