0

I'm attempting to change a setting in the following file:

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

...and change the setting from

wifi.powersave = 3

to

wifi.powersave = 2

based on the recommendations here: WiFi randomly disconnected on Ubuntu 18.04 LTS

However I get the following error after editing and saving the file in vim:

>>> /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf: syntax error near line 1 <<< 

What now?

There are four errors like this before the "What now?" - two for line 1 and two for line 2. Any recommendations? Just attempting to fix a Wifi connection issue. Thanks.

cl16
  • 51
  • Are you somehow editing the file using visudo rather than vim itself? What does type -a vim say? – steeldriver Apr 05 '20 at 23:38
  • You're right - it was actually visudo. Looked up how to quit and save with visudo and the change is now saved and working. Thanks. – cl16 Apr 07 '20 at 03:26

0 Answers0