@ 260802.2

220313.6 · 56db90aa98313c38782eac76f8623d36708777d2

kodos: more changes for kait's laptop

reading declarations

bin/kait-ssh-add-keys

new file mode 100755@@ -0,0 +1,22 @@+#!/bin/sh++set -e++show_status() {+    name="$1"+    if [ -t 1 ]; then+        echo "$name key added"+    else+        notify-send "$name key added"+    fi+}++add_key() {+    name="$1"+    org="$2"+    if ssh-add-key "$name" "$org" 2>/dev/null; then+        show_status "$name"+    fi+}++add_key kodos kait

bin/startup

@@ -24,9 +24,10 @@ case "$(myhostname)" in   monty)     xset m 2 1     ;;-  krusty|kodos)+  kodos)     system76-darter-set-kbd-backlight     system76-darter-configure-touchpad+    kait-ssh-add-keys     ;;   kang)     framework-configure-touchpad

system/etc/default/grub/kodos

new file mode 100644@@ -0,0 +1,63 @@+# GRUB boot loader configuration++GRUB_DEFAULT=0+GRUB_TIMEOUT=0+GRUB_DISTRIBUTOR="Arch"+GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet cryptdevice=UUID=cd3df3c5-6378-43cd-97ca-937b3ed8cb94:cryptroot root=/dev/mapper/cryptroot"+GRUB_CMDLINE_LINUX=""++# Preload both GPT and MBR modules so that they are not missed+GRUB_PRELOAD_MODULES="part_gpt part_msdos"++# Uncomment to enable booting from LUKS encrypted devices+#GRUB_ENABLE_CRYPTODISK=y++# Set to 'countdown' or 'hidden' to change timeout behavior,+# press ESC key to display menu.+GRUB_TIMEOUT_STYLE=menu++# Uncomment to use basic console+GRUB_TERMINAL_INPUT=console++# Uncomment to disable graphical terminal+#GRUB_TERMINAL_OUTPUT=console++# The resolution used on graphical terminal+# note that you can use only modes which your graphic card supports via VBE+# you can see them in real GRUB with the command `vbeinfo'+GRUB_GFXMODE=auto++# Uncomment to allow the kernel use the same resolution used by grub+GRUB_GFXPAYLOAD_LINUX=keep++# Uncomment if you want GRUB to pass to the Linux kernel the old parameter+# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"+#GRUB_DISABLE_LINUX_UUID=true++# Uncomment to disable generation of recovery mode menu entries+GRUB_DISABLE_RECOVERY=true++# Uncomment and set to the desired menu colors.  Used by normal and wallpaper+# modes only.  Entries specified as foreground/background.+#GRUB_COLOR_NORMAL="light-blue/black"+#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"++# Uncomment one of them for the gfx desired, a image background or a gfxtheme+#GRUB_BACKGROUND="/path/to/wallpaper"+#GRUB_THEME="/path/to/gfxtheme"++# Uncomment to get a beep at GRUB start+#GRUB_INIT_TUNE="480 440 1"++# Uncomment to make GRUB remember the last selection. This requires+# setting 'GRUB_DEFAULT=saved' above.+#GRUB_SAVEDEFAULT=true++# Uncomment to disable submenus in boot menu+#GRUB_DISABLE_SUBMENU=y++# Probing for other operating systems is disabled for security reasons. Read+# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this+# functionality install os-prober and uncomment to detect and include other+# operating systems.+#GRUB_DISABLE_OS_PROBER=false

system/etc/default/grub/krusty

deleted file mode 100644@@ -1,55 +0,0 @@-# GRUB boot loader configuration--GRUB_DEFAULT=0-GRUB_TIMEOUT=0-GRUB_DISTRIBUTOR="Arch"-# GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 audit=0 ec_sys.write_support=1 cryptdevice=UUID=82fb86df-0215-48c2-a05c-3f92b240a2c7:cryptroot root=/dev/mapper/cryptroot splash rd.udev.log_priority=0 rd.systemd.show_status=0 vt.global_cursor_default=0"-GRUB_CMDLINE_LINUX_DEFAULT="loglevel=0 audit=0 ec_sys.write_support=1 cryptdevice=UUID=82fb86df-0215-48c2-a05c-3f92b240a2c7:cryptroot root=/dev/mapper/cryptroot rd.udev.log_priority=0 rd.systemd.show_status=0 vt.global_cursor_default=0 dev.i915.perf_stream_paranoid=0"-GRUB_CMDLINE_LINUX=""--# Preload both GPT and MBR modules so that they are not missed-GRUB_PRELOAD_MODULES="part_gpt part_msdos"--# Uncomment to enable booting from LUKS encrypted devices-#GRUB_ENABLE_CRYPTODISK=y--# Set to 'countdown' or 'hidden' to change timeout behavior,-# press ESC key to display menu.-GRUB_TIMEOUT_STYLE=menu--# Uncomment to use basic console-GRUB_TERMINAL_INPUT=console--# Uncomment to disable graphical terminal-#GRUB_TERMINAL_OUTPUT=console--# The resolution used on graphical terminal-# note that you can use only modes which your graphic card supports via VBE-# you can see them in real GRUB with the command `vbeinfo'-GRUB_GFXMODE=auto--# Uncomment to allow the kernel use the same resolution used by grub-GRUB_GFXPAYLOAD_LINUX=keep--# Uncomment if you want GRUB to pass to the Linux kernel the old parameter-# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"-#GRUB_DISABLE_LINUX_UUID=true--# Uncomment to disable generation of recovery mode menu entries-GRUB_DISABLE_RECOVERY=true--# Uncomment and set to the desired menu colors.  Used by normal and wallpaper-# modes only.  Entries specified as foreground/background.-#GRUB_COLOR_NORMAL="light-blue/black"-#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"--# Uncomment one of them for the gfx desired, a image background or a gfxtheme-#GRUB_BACKGROUND="/path/to/wallpaper"-#GRUB_THEME="/path/to/gfxtheme"--# Uncomment to get a beep at GRUB start-#GRUB_INIT_TUNE="480 440 1"--# Uncomment to make GRUB remember the last selection. This requires-# setting 'GRUB_DEFAULT=saved' above.-#GRUB_SAVEDEFAULT="true"

system/etc/libinput/local-overrides.quirks/kodos.disable

new file mode 100644@@ -0,0 +1,6 @@+[Touchpad pressure override]+MatchUdevType=touchpad+MatchName=*SynPS/2 Synaptics TouchPad+MatchDMIModalias=dmi:*svnSystem76*pvrdarp6*+AttrPressureRange=45:44+AttrPalmPressureThreshold=75

system/etc/libinput/local-overrides.quirks/krusty.disable

deleted file mode 100644@@ -1,6 +0,0 @@-[Touchpad pressure override]-MatchUdevType=touchpad-MatchName=*SynPS/2 Synaptics TouchPad-MatchDMIModalias=dmi:*svnSystem76*pvrdarp6*-AttrPressureRange=45:44-AttrPalmPressureThreshold=75

system/etc/mkinitcpio.conf/kodos

new file mode 100644@@ -0,0 +1,67 @@+# vim:set ft=sh+# MODULES+# The following modules are loaded before any boot hooks are+# run.  Advanced users may wish to specify all system modules+# in this array.  For instance:+#     MODULES=(piix ide_disk reiserfs)+MODULES=()++# BINARIES+# This setting includes any additional binaries a given user may+# wish into the CPIO image.  This is run last, so it may be used to+# override the actual binaries included by a given hook+# BINARIES are dependency parsed, so you may safely ignore libraries+BINARIES=()++# FILES+# This setting is similar to BINARIES above, however, files are added+# as-is and are not parsed in any way.  This is useful for config files.+FILES=()++# HOOKS+# This is the most important setting in this file.  The HOOKS control the+# modules and scripts added to the image, and what happens at boot time.+# Order is important, and it is recommended that you do not change the+# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for+# help on a given hook.+# 'base' is _required_ unless you know precisely what you are doing.+# 'udev' is _required_ in order to automatically load modules+# 'filesystems' is _required_ unless you specify your fs modules in MODULES+# Examples:+##   This setup specifies all modules in the MODULES setting above.+##   No raid, lvm2, or encrypted root is needed.+#    HOOKS=(base)+#+##   This setup will autodetect all modules for your system and should+##   work as a sane default+#    HOOKS=(base udev autodetect block filesystems)+#+##   This setup will generate a 'full' image which supports most systems.+##   No autodetection is done.+#    HOOKS=(base udev block filesystems)+#+##   This setup assembles a pata mdadm array with an encrypted root FS.+##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.+#    HOOKS=(base udev block mdadm encrypt filesystems)+#+##   This setup loads an lvm2 volume group on a usb device.+#    HOOKS=(base udev block lvm2 filesystems)+#+##   NOTE: If you have /usr on a separate partition, you MUST include the+#    usr, fsck and shutdown hooks.+HOOKS=(base udev autodetect keymap consolefont modconf block encrypt filesystems keyboard fsck)++# COMPRESSION+# Use this to compress the initramfs image. By default, zstd compression+# is used. Use 'cat' to create an uncompressed image.+#COMPRESSION="zstd"+#COMPRESSION="gzip"+#COMPRESSION="bzip2"+#COMPRESSION="lzma"+#COMPRESSION="xz"+#COMPRESSION="lzop"+#COMPRESSION="lz4"++# COMPRESSION_OPTIONS+# Additional options for the compressor+#COMPRESSION_OPTIONS=()

system/etc/mkinitcpio.conf/krusty

deleted file mode 100644@@ -1,67 +0,0 @@-# vim:set ft=sh-# MODULES-# The following modules are loaded before any boot hooks are-# run.  Advanced users may wish to specify all system modules-# in this array.  For instance:-#     MODULES=(piix ide_disk reiserfs)-MODULES=(i915)--# BINARIES-# This setting includes any additional binaries a given user may-# wish into the CPIO image.  This is run last, so it may be used to-# override the actual binaries included by a given hook-# BINARIES are dependency parsed, so you may safely ignore libraries-BINARIES=()--# FILES-# This setting is similar to BINARIES above, however, files are added-# as-is and are not parsed in any way.  This is useful for config files.-FILES=()--# HOOKS-# This is the most important setting in this file.  The HOOKS control the-# modules and scripts added to the image, and what happens at boot time.-# Order is important, and it is recommended that you do not change the-# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for-# help on a given hook.-# 'base' is _required_ unless you know precisely what you are doing.-# 'udev' is _required_ in order to automatically load modules-# 'filesystems' is _required_ unless you specify your fs modules in MODULES-# Examples:-##   This setup specifies all modules in the MODULES setting above.-##   No raid, lvm2, or encrypted root is needed.-#    HOOKS=(base)-#-##   This setup will autodetect all modules for your system and should-##   work as a sane default-#    HOOKS=(base udev autodetect block filesystems)-#-##   This setup will generate a 'full' image which supports most systems.-##   No autodetection is done.-#    HOOKS=(base udev block filesystems)-#-##   This setup assembles a pata mdadm array with an encrypted root FS.-##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.-#    HOOKS=(base udev block mdadm encrypt filesystems)-#-##   This setup loads an lvm2 volume group on a usb device.-#    HOOKS=(base udev block lvm2 filesystems)-#-##   NOTE: If you have /usr on a separate partition, you MUST include the-#    usr, fsck and shutdown hooks.-# HOOKS=(base udev plymouth autodetect modconf block plymouth-encrypt filesystems keyboard fsck)-HOOKS=(base udev autodetect modconf block encrypt filesystems keyboard fsck)--# COMPRESSION-# Use this to compress the initramfs image. By default, gzip compression-# is used. Use 'cat' to create an uncompressed image.-#COMPRESSION="gzip"-#COMPRESSION="bzip2"-#COMPRESSION="lzma"-#COMPRESSION="xz"-#COMPRESSION="lzop"-#COMPRESSION="lz4"--# COMPRESSION_OPTIONS-# Additional options for the compressor-#COMPRESSION_OPTIONS=()

system/etc/modprobe.d/blacklist.conf/kodos

new file mode 100644@@ -0,0 +1 @@+blacklist thunderbolt

system/etc/modprobe.d/blacklist.conf/krusty

deleted file mode 100644@@ -1 +0,0 @@-blacklist thunderbolt

system/etc/modprobe.d/system76-alsa-base.conf/kodos

new file mode 100644@@ -0,0 +1 @@+options snd-hda-intel model=headset-mode-no-hp-mic patch=system76-audio-patch

system/etc/modprobe.d/system76-alsa-base.conf/krusty

deleted file mode 100644@@ -1 +0,0 @@-options snd-hda-intel model=headset-mode-no-hp-mic patch=system76-audio-patch

system/usr/lib/systemd/system-sleep/system76-darter-hook-sleep/kodos

new file mode 100755@@ -0,0 +1,23 @@+#!/bin/sh++# This is a systemd hook script that is run whenever+# suspend/resume takes place. It should be symlinked into+# /usr/lib/systemd/system-sleep.++# To see logs from this script, use:+#+#   journalctl -b -u systemd-suspend.service++# $1 is 'pre' (going to sleep) or 'post' (waking up)+# $2 is 'suspend', 'hibernate' or 'hybrid-sleep'+case "$1/$2" in+  pre/*)+    if lsmod | grep -q thunderbolt; then+      sudo rmmod thunderbolt+    fi+    ;;+  post/*)+    /home/kait/bin/system76-darter-set-kbd-backlight+    sudo modprobe thunderbolt+    ;;+esac

system/usr/lib/systemd/system-sleep/system76-darter-hook-sleep/krusty

deleted file mode 100755@@ -1,23 +0,0 @@-#!/bin/sh--# This is a systemd hook script that is run whenever-# suspend/resume takes place. It should be symlinked into-# /usr/lib/systemd/system-sleep.--# To see logs from this script, use:-#-#   journalctl -b -u systemd-suspend.service--# $1 is 'pre' (going to sleep) or 'post' (waking up)-# $2 is 'suspend', 'hibernate' or 'hybrid-sleep'-case "$1/$2" in-  pre/*)-    if lsmod | grep -q thunderbolt; then-      sudo rmmod thunderbolt-    fi-    ;;-  post/*)-    /home/andrew/bin/system76-darter-set-kbd-backlight-    sudo modprobe thunderbolt-    ;;-esac