mirror of
https://github.com/flynx/post-install.git
synced 2025-10-29 02:30:08 +00:00
even more tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bfa2c582af
commit
d1d36b9c2b
13
post-install
13
post-install
@ -15,6 +15,9 @@
|
|||||||
# - tasks -- each can consist of configuration and several packages...
|
# - tasks -- each can consist of configuration and several packages...
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
# XXX @ does not work with cat <<EOF | ...
|
||||||
|
#
|
||||||
|
#
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# options...
|
# options...
|
||||||
|
|
||||||
@ -246,13 +249,13 @@ ALL_FEATURES=($( \
|
|||||||
# https://fedoramagazine.org/hibernation-in-fedora-36-workstation/
|
# https://fedoramagazine.org/hibernation-in-fedora-36-workstation/
|
||||||
function feature-hibernate(){
|
function feature-hibernate(){
|
||||||
# dracut configuration...
|
# dracut configuration...
|
||||||
@ cat <<-EOF | sudo tee /etc/dracut.conf.d/resume.conf
|
cat <<-EOF | sudo tee /etc/dracut.conf.d/resume.conf
|
||||||
add_dracutmodules+=" resume "
|
add_dracutmodules+=" resume "
|
||||||
EOF
|
EOF
|
||||||
@ dracut -f
|
@ dracut -f
|
||||||
# a service to disable zram before we hibernate...
|
# a service to disable zram before we hibernate...
|
||||||
# XXX do we need to enable the swap here too???
|
# XXX do we need to enable the swap here too???
|
||||||
@ cat <<-EOF | sudo tee /etc/systemd/system/hibernate-preparation.service
|
cat <<-EOF | sudo tee /etc/systemd/system/hibernate-preparation.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Disable zram before hibernate
|
Description=Disable zram before hibernate
|
||||||
Before=systemd-hibernate.service
|
Before=systemd-hibernate.service
|
||||||
@ -269,12 +272,12 @@ EOF
|
|||||||
|
|
||||||
# disable some memory checks...
|
# disable some memory checks...
|
||||||
mkdir -p /etc/systemd/system/systemd-logind.service.d/
|
mkdir -p /etc/systemd/system/systemd-logind.service.d/
|
||||||
@ cat <<-EOF | sudo tee /etc/systemd/system/systemd-logind.service.d/override.conf
|
cat <<-EOF | sudo tee /etc/systemd/system/systemd-logind.service.d/override.conf
|
||||||
[Service]
|
[Service]
|
||||||
Environment=SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1
|
Environment=SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1
|
||||||
EOF
|
EOF
|
||||||
@ sudo mkdir -p /etc/systemd/system/systemd-hibernate.service.d/
|
@ sudo mkdir -p /etc/systemd/system/systemd-hibernate.service.d/
|
||||||
@ cat <<-EOF | sudo tee /etc/systemd/system/systemd-hibernate.service.d/override.conf
|
cat <<-EOF | sudo tee /etc/systemd/system/systemd-hibernate.service.d/override.conf
|
||||||
[Service]
|
[Service]
|
||||||
Environment=SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1
|
Environment=SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1
|
||||||
EOF
|
EOF
|
||||||
@ -497,7 +500,7 @@ function feature-snapshots(){ (
|
|||||||
# XXX needs a bit more setup...
|
# XXX needs a bit more setup...
|
||||||
function feature-s1yoga-fix-touchpad-resume(){
|
function feature-s1yoga-fix-touchpad-resume(){
|
||||||
|
|
||||||
@ cat <<-EOF | sudo tee /usr/lib/systemd/system-sleep/fix-touchpad
|
cat <<-EOF | sudo tee /usr/lib/systemd/system-sleep/fix-touchpad
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# fixes an issue where the touchpad stops working after suspend/hibernate...
|
# fixes an issue where the touchpad stops working after suspend/hibernate...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user