r/GeForceNOW • u/chalovak • Jan 13 '24
Advice Stuttering issues with GeForce NOW on MacOS over WiFi solved with this simple script
UPD (29th of August): with the upcoming release of the new MacOS I’m receiving complaints regarding the script compatibility with the new version. Once I update my MacBook’s OS I’ll see into the issue and release the fix.
UPD2 (For Sequoia macOS). After the update all you need to do is to edit the sudoers file once again (guess macOS update resets it), repeating the steps mentioned after the script. See EDITING SUDOERS FILE part of the post.
UPD3 (16th of October). It seems that this post is a bit confusing, so I've kept here the script that requires you to edit sudoers file. If you don't want to do it, just add "with administrator privileges" after "do shell script "sudo ifconfig awdl0 down"" in the script (three times this line appears there).
As you may know, GeForce NOW on Macs faces some stuttering issues when playing over WiFi due to the macOS network interface that is crucial for features like AirDrop, Handover and so on.
Disabling this interface by terminal command "sudo ifconfig awdl0 down" helps with the issue, although toggling awdl0 (which stands for this interface) every time you use GeForce NOW is tiresome.
So I created an Apple Script that acts like an app. It launches GFN, disables the interface and keeps it disabled while GFN is running. Once GeForce NOW is closed, the interface is back online again.
The good thing is that you can create this app by yourself by opening Script Editor, creating a new script, entering the following code and saving it as an Application. After that you'll need to edit a special system file to avoid entering password every time this interface is toggled (on that after the script).
1st step. Creating the script
Copy the following script:
-- Disable awdl0 and show message
do shell script "sudo ifconfig awdl0 down"
-- Launch GeForce NOW
tell application "GeForceNOW"
activate
end tell
display notification "awdl0 is now disabled." with title "GeForce NOW Launcher"
-- Function to disable awdl0
on disable_awdl0()
try
display notification "awdl0 is force re-enabled. Disabling..." with title "GeForce NOW Launcher"
do shell script "sudo ifconfig awdl0 down"
on error
display notification "Error disabling awdl0." with title "GeForce NOW Launcher"
end try
end disable_awdl0
-- Check if GeForce NOW is running and awdl0 status
repeat
delay 5 -- Check every 5 seconds
tell application "System Events"
if not (exists (processes where name is "GeForceNOW")) then exit repeat
end tell
try
set awdl0Status to do shell script "ifconfig awdl0"
if awdl0Status contains "status: active" then
disable_awdl0()
end if
on error
-- Ignore if there's an error in checking status
end try
end repeat
-- Re-enable awdl0 and show message
do shell script "sudo ifconfig awdl0 up"
display notification "awdl0 is now re-enabled." with title "GeForce NOW Launcher"Now paste this script into Mac's Script Editor and save it as an Application.
Call it whatever you like (I called it GeForce NOW launcher). You can even give this Application your own icon, to make it prettier. Go to Get Info by right clicking the created application and click on the image in the top left corner of the Get Info window then choose to change the icon.
Step 2. Editing system file
To avoid entering password every time you launch this app, you'll need to add two lines into a special file called sudoers file. To do that go into Terminal app, enter "EDITOR=nano sudo visudo" (it'll ask for a password). This opens the sudoers file in a safe editing environment using the default text editor. Navigate with arrow keys to the bottom of the file and add two lines (do not edit anything else):
yourusername ALL=(ALL) NOPASSWD: /sbin/ifconfig awdl0 down
yourusername ALL=(ALL) NOPASSWD: /sbin/ifconfig awdl0 upWhere "yourusername" is, well, your Mac user name. (To check your username go to this location in Finder: Macintosh HD > Users > ... Here you'll see a folder that's called with your username.)
After that press Control + O (to save the edits of the sudoers file), Enter and Control + X (to exit the editor).
Step 3. Enjoy stutter-free experience on Macs
Can't get any easier
If you have any questions, let me know.
PS. If you want, I can send you my script, that's identical (you can check it in Script Editor), but you'll have to turn off password for awdl0 command or add "with administrator privileges" into it.
PS2. Everything mentioned here (script-wise) is case-sensitive!
35
u/No_Bunch_931 Jan 13 '24
the moment I arrive home im trying this. if this is going to fix the issues I get with my MacBook m1 im going to find you and suck your dick....jokes aside I would name my firstborn after you...
10
u/rebo_arc Jan 13 '24 edited Jan 13 '24
Thanks for this, it is great.
You can also make the icon look like the GFN icon:
Find the GFN app in your applications folder, right click and "Show package contents".
Then navigate to "Resources" folder and find the "cefsimple.icns" file. Select it and Cmd+C to copy.
Next, right click on the app and then choose "Get Info". Highlight the mini script icon at the top of the info pane. Then "Edit>Paste"
Now your application launcher will have the GFN logo.
I drag this to my dock, it is now pretty seemless.
9
u/JuliusSeizure4 Nov 09 '25
2 years later and this post helped me today. you ARE GOD HIMSELF!
4
u/Flobertt Ultimate Jan 13 '24
Works like a charm! Thanks 🙏
4
u/Top_Consideration458 Jun 02 '24
I just found this but I want thank you so much, this worked like a charm. The relief flooded over me when I opened a game and everything looking so fluid.
3
u/AlphaElite30 Dec 09 '24
You are a life saver. I thought I was going crazy because I have very fast internet.
3
u/ComicBit Jan 22 '25
Love the fact that this actually works. I iterated over your idea and made something which doesn't depend from the script but works opening directly the Geforce Now app, I created a GitHub repo with a tutorial on how to install it too.
https://github.com/ComicBit/Geforce-Now-Mac-stutter-free-Launcher
3
u/NxG_Trickzz Jan 20 '26
Hey - just want you to know that this still works. You’re fucking LEGEND. I was having constant stutters - and this fixed it.
2
u/Dipsausage Performance // Netherlands Jan 13 '24
I love you
2
u/Apprehensive_Gift395 Jan 14 '24
This is a game changer. I can finally use my WiFi and play everywhere. Thank you so much OP.
2
u/mlostek Jan 19 '24
Man! This is a game changer. You serve a medal!
2
u/eIdog Apr 10 '24
Hey I just wanted to say that this is AMAZING!! I was having stutter issues every 5 minutes and now I can play perfectly! Thank you!
2
u/phaattiee May 30 '24
You're actually having a laugh...
It only went and bloody worked.
You sir are a Gentleman and a Scholar.
2
u/Alastyn256 Aug 14 '24 edited Aug 14 '24
Thank you so much, sincerely. I have a question: I am new to programming and would like to know how you find these solutions like how do you know what code to write?
2
u/smexy_gorilla Aug 29 '24
Amazing - thank you for this mate! It's solved the stuttering I was getting
2
u/Emotional-Court1951 Sep 27 '24
Thank you so much, I couldn't see a thing on my game and it was taking forever for the game to let me in and now its working fine again.
2
u/AgitatedStatement467 Oct 12 '24
You are a God... I will break off my upcoming marriage and will marry you instead
2
u/GreatLulu Nov 10 '24
This basically saved my (gaming) life. Thank you good sir!
2
u/Responsible_Hour738 Dec 10 '24
This helped me so much! Thank You very much for your work!!!
2
u/Exact3Affect Feb 12 '25
u/chalovak Are you god...? u/Nvidia should really add something like that to its app, or made a partnership with Apple to do so. In the meantime, you're definitely the best, thank you so much.
2
u/Manco70 Mar 08 '25
Can I just say that it is important that EDITOR is in capitals, as a new MacOS user after over 30 years of using Windows, I’ve spent a day trying to make this work without success until I used capitals. Experienced Mac users probably knew this but I didn’t.
2
u/Fun-Shower-5298 Apr 13 '25
After launching the application and playing something I still experienced the same issue. Maybe the performance is a bit better, but there is still the stuttering. I'm even using Ethernet, but nothing seems to work and I'm sure I did everything step by step.
2
u/[deleted] May 03 '25
You are the GOAT.
2
u/pvrisrebecca Aug 06 '25
Thank you so much!! Couldn't figure out what was wrong for months - this fixed it immediately!
2
u/LongjumpingStreet191 Aug 10 '25
your joking, i am from 2025, did this, and it works beautifully! You're a hero man!!!
4
u/Sochi_A Sep 25 '24
Thank you for going above and beyond updating this post to accomodate for the Sequoia update. Absolute godsent.
4
u/Andr9med Nov 27 '25 edited Nov 27 '25
Fonctionne parfaitement. Tout est bon au niveau de la création du script et de l'automatisation. Je te dis un grand merci OP pour ton travail !
Je suis sur un Macbook Air M4)
1
u/RiceOkiiko Mar 08 '24
Perfect, thanks! What about iPhone, I struggle with playing geforce now on it (I bought backbone for this :/). Is it possible to disable those functions with a script?
1
u/[deleted] Mar 10 '24
Any updates on this?
1
u/SnooObjections2833 May 18 '24
Working to add the sudo workaround for password but I'm running into an issue/block: "This file MUST be edited with the 'visudo' command as root.
Any guidance here?
1
u/Upbeat-Departure7571 Jul 26 '24
how do I use the script? entering it in the terminal doesn't work
1
u/Frankitch Aug 01 '24
Bonjour, ce script est il encore à jour ? Je suis tombé sur ce topic car geforce now bug sur mon mac et rencontre des problemes de connection. Je vous remercie pour votre réponse
1
u/Racsnarok Aug 01 '24
Hey!
I used the script and it's great.
However, I did the step for it to not require the password with the steps to go into terminal. Applied with my device user name but it still prompts for password on start, midway, and on close.
Any ideas as to why?
1
u/[deleted] Sep 12 '24
Fuck man it's working, THANK YOU
1
u/Purpose_Worth Sep 15 '24
What it could be if costantly ask me to insert the password while i’m in game?
1
u/Gullible-Lime-383 Oct 29 '24
when i press control o it doesnt give me an option to press enter to save, could you tell the directory of the file im meant to change?
1
u/Richiis_CZ Nov 28 '24
Hey there,
I just saw this post and cant wait to try it at home, but let me ask first. Will it fix stuttering and a pretty big mouse delay if Im not using wifi but Ethernet cable?
1
u/Wubville Dec 10 '24
hey there, really appreciate your efforts! Unfortunately ive ran into a small problem. I've pasted the script into script editor, and attempted to test run it, but it keeps coming up with the error message: error "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required" number 1
Do you have any clue on whats going on?
Thanks
1
u/Direct-Importance-29 Dec 11 '24
i need help im new to macbook when you say it was ask for a password what password??? i dont know what password to enter
1
u/Direct-Importance-29 Dec 11 '24
still asking for a password to run the stripct
1
u/fotuwe Dec 12 '24
For some reason it is not working for me - I can confirm that the stuttering on my mac is caused by the Wifi Connection (everything works like a charm with LAN).
I followed the tutorial with all the steps - I get the notification "awdl0 is now disabled", Geforce Now starts automatically but stutter is present. After quitting Geforce Now I get the message "awdl0 is now re-enabled".
Any idea where to double check for any issues? I also edited the system file - i am not being asked for the password.
1
u/lelegugu Dec 12 '24
Hi, it doesn't work on my macbook at all :( I've done all the steps and it still says this "sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required (1)"
Hope you can help ! Thank you u/chalovak
1
u/KimchiNamja Dec 28 '24
Well daaaaaaamn this fixed everything! Thank you so much
1
u/Helpful_Economist_59 Dec 30 '24
Hi. I've set this up on my MacBook, but instead of Geforce now, I'm using it with Chiaki-ng (the ps5 remote play app). Every time I launch chiaki with the script it says awdl0 is disabled but then after a few seconds it says 'awdl0 is now re-enabled'. Do you know how to fix this?
1
u/ivanezzzzz Jan 19 '25
Big thank you for this! I have been going insane for a week why my network stability sucks and GFN is just a big lag-fest! Now it is perfect, thank you!
1
u/[deleted] Jan 31 '25
I did everything including the terminal edit and I get this every time. Yes I put my name on the your username field.
1
u/Far-Organization6417 Feb 03 '25
OMG, it worked! U r genius ! Thank you a lot!
1
u/theedel79 Feb 20 '25
Thanks a lot for this work and sharing it with us !
FYI this is also working with the Steam app replacing "GeForce Now" with "Steam" and "GeForceNOW" (the process) with "Steam Helper".
And of course virtually any app, providing the good process associated.
1
u/AnnoyingPlastic Mar 03 '25
Thanks for the script! After experiencing micro stutters on the M1 Max Macbook for months (macOS Sequoia), it's resolved by turning off location services and Bluetooth and shutting down awdl0. Now, GFN is finally behaving as it should. I wonder if the issue affects all Mac users. Hope it helps whoever is experiencing stutter issues.
1
u/cachmaha Mar 04 '25
Doesnt work, when I try to go into the sudoers file it asks for a password, you can only autopassword it by right clicking, then it only opens a search window for http files? (new to mac)
1
u/EastKarana GFN Alliance // AU East Mar 12 '25
Without making huge changes to the system. Would just disabling airdrop in the control centre achieve the same result?
1
u/Cynic223 Apr 25 '25
it works well! thank you so much. I have already diabled all airdrop and bluetooth but still lag existed until I find your post. thanks a lot
1
u/CommentContributer Apr 27 '25
M1 Max and this still didn’t fix my issues. I have no stutter on other devices on my network, only the M1 Max. Any other ideas?
1
u/[deleted] Jun 20 '25
It doesn’t work. Every new notification I receive on my iPhone or iPad stutters the game.
1
u/davehax1 Jul 05 '25
Thank you for this! Unfortunately, this didn't resolve the stuttering/lagging that I was experiencing.
What ultimately resolved the issue was forgetting the 2.4ghz wifi endpoint so my macbook only connected to the 5ghz endpoint, then logging in to the router to change the 5ghz channel to 149.
1
u/Captain_-K Aug 19 '25
This is probably a solo issue but regardless of the stuttering issues, whenever I try to use the GFN app for mac with my bluetooth headphones it makes it swap bit rates from high to low making it horrible to play as everything sounds like 360p quality. Any ideas how to stop this? On the internal speakers everything is fine.
1
u/Personal_Mortgage_91 Aug 31 '25
Hey, can you help a lost soul out a bit haha....
I copy pasted the first script that you gave us into the Script editor, clicked the play icon on the top right, created an application that I put on my desktop. Then I opened Terminal as you said, pasted "EDITOR=nano sudo visudo" and as you said it required a password. The thing that I have trouble understanding ( and bare with me, its a stupid question, since I have no idea how code works ) is this " This opens the sudoers file in a safe editing environment using the default text editor. Navigate with arrow keys to the bottom of the file and add two lines". Do I copy and paste the next two lines of code with my username at the bottom of my terminal page ,where the password was, or do I need to open the application that I created prior in script editor and edit it there ?
Thanks for the help!
1
u/EulaFan2021 Sep 12 '25
How do save the script as an application? I copy pasted the exact script into the script editor, but I could find the button to save as an application
1
u/RepulsiveCup1513 Sep 28 '25
ciao! grazie mille, funziona bene. avrei però una domanda, ma come mai alcuni utenti, mac, non lamentano di questo problema? colpisce determinati dispositivi apple e altri no? io ho il mac mini m2 e ho dovuto necessariamente utilizzare il tuo script, mentre in rete leggo di utenti che hanno mac mini m4 o macbook e giocano da dio normalmente. cosa mi sfugge?
1
u/BloodyTrooper02 Oct 14 '25
Hi, u know why when i use the script, the availabe bandswidth halves in 2. Goes from 500-600 available to 250-300
1
u/lawrence_craig Nov 06 '25
Does this work for MacOS26?
1
u/Charlie_Sierra_ Nov 10 '25
I’m trying this in the next few hours. I am on Ethernet though, will this have any effect?
Thank you OP!!!!
1
u/cchurchill1985 Nov 20 '25
This didn't seem to fix my issue unfortunately. What had the most impact was changing my wifi channel from 80mhz to 40mhz. Although the stuttering didn't stop completely, it dramatically improved.
1
u/[deleted] Dec 09 '25
This worked like a charm!
1
u/COREYxTREVOR Ultimate Dec 20 '25
Was having really weird ping issues M4 Macbook Pro, using this script has stabilised it below 20ms over wifi 6! Thankyou so much!
1
u/Tasty_Policy7309 Jan 14 '26
Sorry, I might be just too dumb, but I found the Script Editor, I pasted the script and saved it, but it just drops and error when tried to execute.
Then I tried with the step 2, and after adding EDITOR=nano sudo visudo, just drops a bunch of text and no prompt for password. Any idea what am I doing wrong?
1
u/lildani07 Jan 22 '26
Ehi, thank you so much for the script, I still need to test it, but in meantime I’m just curious, you now why after launching the script and confirming the awdl0 is inactive, airdrop and handoff still working on the Mac ? I expect it broke those service until the script is running but seams it is not.
1
u/z0han0 May 12 '26
I actually love you
1
u/312_JS Jul 19 '26
Turning off AirDrop solved the issue for me.
1
u/Enertingus Aug 08 '26
is putting the application into my mac applications fine? does it affect anything?
1
u/Enertingus Aug 09 '26
my games are stuttering again for some reason. i used it yesterday perfectly fine but now its just stuttering again. any way i can fix this
1
u/Mountain-Ad4940 Oct 03 '26
Is this just for Wifi or does it effect Ethernet as well? mac mini m4 here using Ethernet.
1
u/DepartedDrizzle Jan 13 '24
MacBook Air m1 - I have no issues running GeForce now. Everything runs butter smooth for me without using any commands or scripts. Am I missing something?
1
u/disposablethought Jan 13 '24
Hmm tried this out but still get stuttering every few minutes. Damn.
awdl0 "status: inactive"
1
u/ragumaster Jan 14 '24
Crazy I went away for Xmas and was running my MacBook m1 over WiFi and the stutter was horrible I needed to play in 720P but still happen just less. I try to run that command and it works for a bit then after 1 hour the stutter comes back.
1
u/Iz4e Jan 14 '24
Is the stuttering due to packet loss? How do you know these features are the root cause?
1
u/No_Position_757 Jan 16 '24
thank you so much
1
u/thedonhudson01 Jan 21 '24
You're a lifesaver! Finally, no lag when using GeForce Now on Wi-Fi (using an M3 Pro MBP). Thank you so much!
1
u/alien-native Jan 23 '24
Having trouble configuring the version w/o the password. I'm getting error message: "Sudo: a terminal is required to read the password..."
1
u/GreenTEA_4u Feb 01 '24 edited Feb 01 '24
Where do I write the script and how do I set it up?
If you can could you sent yours?
1
u/Flobertt Ultimate Feb 09 '24
It works perfectly, thanks! But I need help with the part to remove the password. Would you have an example?
1
u/[deleted] Feb 14 '24
Thank you for the script ! But I still have to enter my password every time even I update the config with the step you gave... I am missing something ?
1
u/snowatom-dk Feb 18 '24
u/chalovak this issue is also present on an iPhone. And there is no way of running scripts like this on that. However, it seems that deactivating AirDrop on the iPhone removes the game stutter. But I have not testet enough to be completely sure. Do you have any advice on what to do on an iPhone ?
3
u/V4N0 Founder Jan 13 '24
Great job!! 👍
3
u/sydryx Jan 14 '24
Holy shit thank you so much for this! I could stop the stuttering reliably by turning Location Services off each time I wanted to play, but this script seems to have fixed it as well, and is much more seamless.
3
u/Friendly_Ad_5763 Ultimate Jan 04 '25 edited Jan 04 '25
Awesome! this totally fixed my GFN stuttering issues on a M4 Mac Mini, I've been experiencing stutters even with location services turned off on settings, but this script fixes all those issues.
BTW: I had to use sudo visudo and then authenticate (I'm using iTerm) and then it's just like vim, instead of "EDITOR=nano sudo visudo" which was complaining command didn't exist (zsh: command not found: EDITOR=nano sudo visudo).
1
u/RingOfEpimysium Jun 14 '24
Hey, I was recommended this script in a post I made on the GeforceNow forum. I entered the script into Terminal and received the response
zsh: parse error near `do'
Not quite sure what is going on, if you have any help here.
2
u/francorom Oct 22 '26
Actually, still works with MacBook Air M2 last update 27.01, thank you so much.
2
u/Charming-Coconut3842 Oct 23 '26
You sir are a gentleman and a scholar
2
u/Meljam28 Feb 14 '24
youre a star :)
2
u/Ithebronson Apr 01 '24
wow give this man a job
2
u/No-Awareness9213 Dec 28 '24
dude i love you
2
u/ShaggyNoire Jan 11 '25
Thank you so much, such a simple solution with such a clear guide. Bless you! 🙌🏼
2
u/eternalroree Mar 14 '25
thank you for this 🙏🏻
2
u/zeroninerfive Feb 17 '26
You have used 100% of your brain capacity, dear Sir. It works perfectly fine also with the latest MacOS version. Thank you very very much!
2
u/Alive_Permission1161 Jun 23 '26
This guy is a fucking legend!
Can confirm it still works on my Macbook Air M5 as of June 24th 2026!