aboutsummaryrefslogtreecommitdiffci
path: root/config.sh
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh35
1 files changed, 10 insertions, 25 deletions
diff --git a/config.sh b/config.sh
index f232f48..0ab8a88 100755
--- a/config.sh
+++ b/config.sh
@@ -436,9 +436,6 @@ fi
# Surface Pro 12" customizations
#--------------------------------------
-install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/yum.repos.d/kernel-sp12in.repo \
- /etc/yum.repos.d/kernel-sp12in.repo
-
# Device tree. kernel-surface compiles the patched dts in-tree and installs the
# result twice: into its own module tree (dtb/qcom, from dtbs_install) and into
# /usr/lib/surface-dtb/<kver>/. The latter is the master copy
@@ -644,22 +641,6 @@ install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system
# hexagonrpc.service in through the drop-in above.
systemctl enable hexagonrpc.service
-# Fedora's SELinux policy has no qipcrtr_socket permissions for
-# iiosensorproxy_t; the libssc backend needs them to probe the QRTR bus, and
-# without them the daemon exits with "No sensors or missing kernel drivers".
-# Compile and install the local module that grants them (see the .te for
-# details). checkmodule/semodule_package come from checkpolicy; it stays
-# installed because removing it takes policycoreutils-python-utils
-# (semanage, audit2allow) with it.
-dnf install -y checkpolicy
-install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/share/selinux/iio-qipcrtr.te \
- /usr/local/share/selinux/iio-qipcrtr.te
-checkmodule -M -m -o /usr/local/share/selinux/iio-qipcrtr.mod \
- /usr/local/share/selinux/iio-qipcrtr.te
-semodule_package -o /usr/local/share/selinux/iio-qipcrtr.pp \
- -m /usr/local/share/selinux/iio-qipcrtr.mod
-semodule -i /usr/local/share/selinux/iio-qipcrtr.pp
-
# Cameras (msm/camss). Nothing has to be wired up at boot. libcamera's "simple"
# pipeline handler claims qcom-camss and builds the media graph itself in
# configure(), including flipping the csiphy -> msm_csid0 link between the rear
@@ -709,19 +690,23 @@ install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system
/etc/systemd/system/surface-video-firmware.service
systemctl enable surface-video-firmware.service
+# Suspend on Snapdragon is still very unstable. This is the reason why
+# 'mem_sleep_default=s2idle' is set explicitly in the cmdline as 'deep' mode
+# does not function at all.
+# Even then, suspending via gnome settings daemon results in hard freeze.
+# This is why:
+# logind behavior is kept intact with suspend behavior.
+# gnome default power button behavior was replaced with 'interactive'.
install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/logind.conf.d/60-surface-power-key.conf \
/etc/systemd/logind.conf.d/60-surface-power-key.conf
-
-# Ambient light sensor seems to go nuts after I fixed iio-sensor-proxy. Turning
-# it off for now.
-install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dconf/db/local.d/00-als \
- /etc/dconf/db/local.d/00-als
+install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dconf/db/local.d/00-power-button \
+ /etc/dconf/db/local.d/00-power-button
install -Dm644 /tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/dconf/profile/user \
/etc/dconf/profile/user
dconf update
-restorecon -Rv /usr /lib /etc/systemd /etc/dconf /etc/udev/rules.d /etc/yum.repos.d
+restorecon -Rv /usr /lib /etc/systemd /etc/dconf /etc/udev/rules.d
#======================================
# Set the WSL name for ELN