mirror of
https://github.com/flynx/post-install.git
synced 2025-10-29 10:40:09 +00:00
fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
83dfbed7a7
commit
58bc936c84
28
post-install
28
post-install
@ -246,13 +246,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
|
||||||
@ -496,21 +496,17 @@ 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 /etc/systemd/system/fix-touchpad-on-resume.service
|
|
||||||
[Unit]
|
@ cat <<-EOF | sudo tee /usr/lib/systemd/system-sleep/fix-touchpad
|
||||||
Description=Fix touchpad after resume on ThinkPad S1 Yoga
|
#!/bin/sh
|
||||||
After=suspend.target
|
|
||||||
|
|
||||||
[Service]
|
# fixes an issue where the touchpad stops working after suspend/hibernate...
|
||||||
User=root
|
if [ "${1}" == "post" ] ; then
|
||||||
Type=oneshot
|
modprobe -r i2c_i801
|
||||||
ExecStart=modprobe -r i2c_i801 && modprobe i2c_i801
|
sleep 3
|
||||||
|
modprobe i2c_i801
|
||||||
[Install]
|
fi
|
||||||
WantedBy=suspend.target
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ sudo systemctl enable fix-touchpad-on-resume.service
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user