From c35987e4d5c325d1c657a9d66d780989bba68646 Mon Sep 17 00:00:00 2001 From: Bin Yong Date: Fri, 29 Mar 2024 21:00:19 +0000 Subject: [PATCH] gpu: enable disable_gpu in debian_live and use fbdev (#6) * Create xorg.conf * Update install.sh * Update README.md * Update init_live_session.sh --- README.md | 2 +- init_live_session.sh | 4 +++- scripts/install.sh | 14 +++++++++++--- scripts/xorg.conf | 7 +++++++ 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 scripts/xorg.conf diff --git a/README.md b/README.md index 6793282..8a583e1 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ Hood firewall now is possible to be installed to debian-based Linux systems. Thi On boot menu, press 'e' to goto edit prompt, and then add following to the end of the 'linux' line ``` -module_blacklist=mei,bluetooth ipv6.disable=1 toram=filesystem.squashfs +module_blacklist=mei,bluetooth,i915 ipv6.disable=1 toram=filesystem.squashfs ``` ### Step 1. Get Hood diff --git a/init_live_session.sh b/init_live_session.sh index c947f3c..28a4e62 100755 --- a/init_live_session.sh +++ b/init_live_session.sh @@ -119,7 +119,9 @@ elif [ $machine = "Linux" ]; then #lspci -D |grep hunderbolt | grep "PCI" |cut -d " " -f 1|xargs -L 1 -I {} sh -c "echo {} | sudo tee /sys/bus/pci/drivers/pcieport/unbind" #lspci -D |grep hunderbolt | grep "PCI\|NHI" |sed -E "s|(\w+:\w+)([^ ]+).*|\1/\1\2|"|xargs -I "{}" cat /sys/devices/pci{}/vendor /sys/devices/pci{}/device|xargs -L 2 bash -c "echo \$0 \$1|sudo tee /sys/bus/pci/drivers/vfio-pci/new_id" rfkill block all - bluetoothctl power off + if lsmod |grep -q bluetooth; then + bluetoothctl power off + fi boltctl config global.auth-mode disabled sudo systemctl disable avahi-daemon sudo systemctl stop NetworkManager ntpd avahi-daemon.socket avahi-daemon cups cups-browsed exim4 diff --git a/scripts/install.sh b/scripts/install.sh index 4cd72db..6090609 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -39,7 +39,7 @@ for arg in "$@"; do target=*) target=$(echo $arg|sed "s/[^=]*=//");; wan_port_device_path=*) wan_port_device_path=$(echo $arg|sed "s/[^=]*=//");; yongbin) yongbin=1;harden_only=1;; - debian_live) debian_live=1;raspberrypi=0;harden_only=1;usb_tether=0;disable_wireless=0;disable_gpu=0;; + debian_live) debian_live=1;raspberrypi=0;harden_only=1;usb_tether=0;disable_wireless=0;; esac done @@ -231,6 +231,7 @@ fi sudo tee $prefix/etc/modprobe.d/bin-y-blacklist.conf > /dev/null <