mirror of
				https://github.com/flynx/post-install.git
				synced 2025-10-31 19:40:10 +00:00 
			
		
		
		
	added s1yoga touchpad fix
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									d1fbe4aa46
								
							
						
					
					
						commit
						83dfbed7a7
					
				
							
								
								
									
										28
									
								
								post-install
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								post-install
									
									
									
									
									
								
							| @ -188,7 +188,7 @@ PKG_FLATPAK=( | |||||||
| 
 | 
 | ||||||
| 	# net... | 	# net... | ||||||
| 	org.briarproject.Briar | 	org.briarproject.Briar | ||||||
| 	com.github.ElostonUngoogledChromium | 	com.github.Eloston.UngoogledChromium | ||||||
| 
 | 
 | ||||||
| 	# media... | 	# media... | ||||||
| 	#io.mpv.Mpv | 	#io.mpv.Mpv | ||||||
| @ -245,6 +245,11 @@ ALL_FEATURES=($( \ | |||||||
| # For more info see: | # For more info see: | ||||||
| # 	https://fedoramagazine.org/hibernation-in-fedora-36-workstation/ | # 	https://fedoramagazine.org/hibernation-in-fedora-36-workstation/ | ||||||
| function feature-hibernate(){ | function feature-hibernate(){ | ||||||
|  | 	# dracut configuration... | ||||||
|  | 	cat <<-EOF | sudo tee /etc/dracut.conf.d/resume.conf | ||||||
|  | add_dracutmodules+=" resume " | ||||||
|  | EOF | ||||||
|  | 	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 | ||||||
| @ -488,6 +493,27 @@ function feature-snapshots(){ ( | |||||||
| ) } | ) } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | # XXX needs a bit more setup... | ||||||
|  | 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] | ||||||
|  | User=root | ||||||
|  | Type=oneshot | ||||||
|  | ExecStart=modprobe -r i2c_i801 && modprobe i2c_i801 | ||||||
|  | 
 | ||||||
|  | [Install] | ||||||
|  | WantedBy=suspend.target | ||||||
|  | EOF | ||||||
|  | 
 | ||||||
|  | 	@ sudo systemctl enable fix-touchpad-on-resume.service | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
| # XXX skip scripts starting in "-"  | # XXX skip scripts starting in "-"  | ||||||
| # XXX make the scripts support the same syntax as features... | # XXX make the scripts support the same syntax as features... | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user