+ case $HOSTNAME in
+ sy|bo)
+ # todo: try removing this. also, see if system76-driver fixes this.
+
+ # on newer laptop, this config makes xorg load an intel module
+ # in Xorg.0.log and display nothing. background:
+ #
+ # I dropped lightdm as I was trying to figure this out, why xorg was
+ # displaying nothing. I did a diff of a working Xorg.0.log from a
+ # popos is, which is in ~/.local/share/xorg/Xorg.0.log if it runs as
+ # a regular user. I noticed 2 differences, on the failing one it was
+ # loading the intel xorg module. On the successful one, it had a
+ # line systemd-logind: got fd for /dev/dri/card1 226:1, on the
+ # failing one it had a line about systemd-logind not knowing the
+ # seat or session or something. There was no search results about
+ # that, switching to xinit made that go away. Note: gpg-agent seems
+ # to be working ok as an ssh agent. xsession has an option
+ # use-ssh-agent but perhaps it decides to leave gpg agent in charge.
+ cat >/etc/X11/xorg.conf.d/20-intel.conf <<'EOF'
+# iank:
+# https://forums.linuxmint.com/viewtopic.php?f=208&t=224942#p1197049
+# prevents konsole from being borderline unusable on system76 intel graphics + i3
+Section "Device"
+ Identifier "Intel Graphics"
+ Driver "intel"
+ Option "TearFree" "true"
+EndSection
+EOF
+ ;;
+ esac
+ ;;
+ noble)
+ pi xinit