mirror of
				https://github.com/FeralInteractive/gamemode.git
				synced 2025-11-03 23:44:09 +01:00 
			
		
		
		
	Warn users if no governor is found so they spot issues sooner
See issue 44
This commit is contained in:
		
							
								
								
									
										11
									
								
								bootstrap.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								bootstrap.sh
									
									
									
									
									
								
							@@ -8,6 +8,17 @@ fi
 | 
			
		||||
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
# Check for scaling governor support and warn about it
 | 
			
		||||
if [ ! -f "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" ]; then
 | 
			
		||||
	echo "WARNING: CPUFreq scaling governor device file was not found at \"/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor\"."
 | 
			
		||||
	echo "This probably means that you have disabled processor scheduling features in your BIOS. See README.md (or GitHub issue #44) for more information."
 | 
			
		||||
	echo "This means GameMode's CPU governor control feature will not work (other features will still work)."
 | 
			
		||||
 | 
			
		||||
	# In the future, when gamemode can handle the lack of governor control on its own
 | 
			
		||||
	read -p "Would you like to continue anyway [Y/N]? " -r
 | 
			
		||||
	[[ $REPLY =~ ^[Yy]$ ]]
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Echo the rest so it's obvious
 | 
			
		||||
set -x
 | 
			
		||||
meson --prefix=/usr build -Dwith-systemd-user-unit-dir=/etc/systemd/user
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user