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