View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#170
Hi AlMehdi
Can you explain please how to restore this tweak to default:

Code:
# Force wifi powersave off
​
		echo ""
		echo " This will run a loop every minute"
		echo " and keep wifi powersave off."
		echo ""
		echo " This is very power hungry."
		echo ""
		read -p "Press enter to start (ctrl+c to end): " ANS
		read -p "Password: " -s PASSWORD
		echo ""
		echo $PASSWORD | devel-su -c "develsh -c 'while true;
		do
			date \"+%T\"
			/sbin/iwconfig wlan0 power off
			count=0
			while [ \$count -le 5 ];
			do
				/usr/bin/bmestat|sed -n '/current/p'
				/sbin/iwlist wlan0 power
				sleep 10
				count=\$((count+1))
			done
		done'" >/dev/null
		read -p "Now power save will continue as default" end
	;;
Thanks