Linux wifi power management

Справочная информация

про свой опыт решения некоторых проблем и использования ряда возможностей ОС и приложений

воскресенье, 30 апреля 2017 г.

Linux Mint – «улучшение» работы через WiFi

При использовании соединения WiFi было замечено, что, к сожалению, иногда имеют место самопроизвольные обрывы соединения с последующим его восстановлением. На днях в сети нашлась информация об улучшении соединения по WiFi. И, как говорится, вроде бы «не первый год замужем» (оказывается, фраза имеет весьма широкое толкование), но очевидная вещь никак не приходила в голову.

Повысить скорость и качество соединения с точкой доступа можно через отключение механизма энергосбережения чипсета беспроводной сетевой карты.

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

В Linux Mint в качестве текстового реактора по умолчанию используется xed. В Ubuntu Linux следует вместо xed писать gedit.

[connection]
wifi.powersave = 3

Измените значение с 3 на 0 и сохраните файл. Перезагрузитесь.

Чтобы убедиться, что режим энергосбережения выключен, откройте терминал и введите команду iwconfig (именно iwconfig, а не ifconfig). В результатах выполнения команды должна быть строка Power management:off

Например, в моём случае:

iwconfig
wlx000b81935b96 IEEE 802.11bgn ESSID:»MikroTik»
Nickname:» »
Mode:Managed Frequency:2.412 GHz Access Point: 4C:5E:0C:BB:67:B3
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=100/100 Signal level=95/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

По моему субъективному впечатлению, работа по WiFi немного улучшилась, но, как говорят, «практика – критерий истинности». Поэтому данная рекомендация не может считаться универсальным «рецептом». Но, всё же, это лучше, чем самостоятельно «курить бамбук», не правда ли?

Источник

How to turn off Wireless power management permanently

In Linux Mint 17.3 / 18 iwconfig says the power management of my wireless card is turned on. I want to turn it off permanently or some workaround on this issue.

sudo iwconfig wlan0 power off works, until I reboot the laptop.

Also, if I randomly check iwconfig , sometimes it’s on, despite I did run this command.

I read some articles about making the fix permanent. All of them contained the first step «Go to directory /etc/pm/power.d «, which in my case did not exist.

Читайте также:  Как можно убрать пароль windows 10

I followed these steps:

I entered these two lines into the file:

And I finished with setting proper user rights:

But after reboot the power management is back on.

iwconfig after manually turning power management off

I don’t think this question applies only to Linux Mint, it is a general issue of particular wireless adapters.

5 Answers 5

Open this file with your favorite text editor, I use nano here:

By default there is:

Change the value to 2 . Reboot for the change to take effect.

Possible values for the wifi.powersave field are:

(Informal source on GitHub for these values.)

It is not sufficient to turn off wireless power management at boot.

There are probably hooks like if I plug off power adapter.

So one of possible solutions is as follows; step-by-step.

Create a directory, where you wish to store the file, if not already having one for all your scripts, I personally want to have it in /etc/pm/ :

Create (anywhere you like) a script, name it to be sensible, for me it is:

I used nano , but use whatever, e.g. if you want to create the file graphically, eg. with gedit (LM17) or xed (LM18):

Enter the following contents to the file:

Owner of the file should be root , if you created the file as normal user somewhere, go to the folder where it is and fix it with:

Next, you need to set proper permissions to the file, rwx for owner:

Finally we will be executing the script every minute using CRON; dirty but worky:

If you never edited crontab before, it will ask what editor you wish to use, this is totally up to you.

Paste this to the end of the file:

Wait a minute and then you may check if power management if turned off:

Even if something triggers the power management to turn on, it will last only a minute. Done.

Источник

Как отключить беспроводное управление питанием навсегда

В Linux Mint 17.3 / 18 iwconfig говорится, что управление питанием моей беспроводной карты включено . Я хочу отключить это навсегда или какое-то решение этой проблемы.

sudo iwconfig wlan0 power off работает, пока я не перезагружу ноутбук.

Кроме того, если я случайно проверяю iwconfig , иногда он включен, несмотря на то, что я выполнил эту команду.

Я прочитал несколько статей о том, как сделать исправление постоянным. Все они содержали первый шаг «Перейти в каталог /etc/pm/power.d », которого в моем случае не было.

Я следовал за этими шагами:

Я ввел эти две строки в файл:

И я закончил с настройкой правильных прав пользователя:

Читайте также:  Windows cannot access the specified device path or file all exe files

Но после перезагрузки управление питанием снова включается.

iwconfig после ручного выключения управления питанием

Я не думаю, что этот вопрос относится только к Linux Mint, это общая проблема конкретных беспроводных адаптеров.

Откройте этот файл с помощью вашего текстового редактора, давайте использовать, nano например:

По умолчанию есть

Просто измените его на значение 2 .

Изменения будут активны при следующей перезагрузке.

Значения для поля powersave:

Недостаточно отключить беспроводное управление питанием при загрузке.

Вероятно, есть крючки, как если бы я отключил адаптер питания.

Таким образом, одно из возможных решений заключается в следующем; шаг за шагом.

Создайте каталог, в котором вы хотите сохранить файл, если его еще нет для всех ваших скриптов, я лично хочу, чтобы он был в /etc/pm/ :

Создайте (где угодно) скрипт, назовите его разумным, для меня это:

Я использовал nano , но используйте что угодно, например, если вы хотите создать файл графически, например. с gedit (LM17) или xed (LM18):

Введите в файл следующее содержимое:

Владелец файла должен быть root , если вы создали файл как обычный пользователь где-то, перейдите в папку, где он находится, и исправьте его:

Далее вам необходимо установить соответствующие права доступа к файлу rwx для владельца:

Наконец, мы будем выполнять скрипт каждую минуту, используя CRON; грязный , но worky :

Если вы никогда не редактировали crontab раньше, он спросит, какой редактор вы хотите использовать, это полностью зависит от вас.

Вставьте это в конец файла:

Подождите минуту, а затем вы можете проверить, отключено ли управление питанием:

Даже если что-то запускает управление питанием, оно будет длиться всего минуту. Выполнено.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Turn Wifi Power Management: On

Turn Wifi Power Management: On

Post by Glo » Mon Aug 19, 2019 2:22 pm

Hi, can anyone tell me how to reverse the process to turn WiFi Power Management back On?

Background: I followed the forum entries to figure out how turn Power Management: Off (from On) — I did this because I thought my wifi was being dropped (but my wifi router was just faulty). Since turning Power Management: Off, I have had a lot of interference with AM radio. I tried to reverse engineer all the codes I found in the forum to turn Power Management back On myself, but I have not hit on the right code yet.

Thank you for any help.

Re: Turn Wifi Power Management: On

Post by kc1di » Mon Aug 19, 2019 2:55 pm

save the file and Reboot.

you can check to make sure it’s on by entering this command in the terminal

Re: Turn Wifi Power Management: On

Post by JeremyB » Mon Aug 19, 2019 4:57 pm

Читайте также:  Mac os приложение не может быть запущено

Hi, can anyone tell me how to reverse the process to turn WiFi Power Management back On?

Background: I followed the forum entries to figure out how turn Power Management: Off (from On) — I did this because I thought my wifi was being dropped (but my wifi router was just faulty). Since turning Power Management: Off, I have had a lot of interference with AM radio. I tried to reverse engineer all the codes I found in the forum to turn Power Management back On myself, but I have not hit on the right code yet.

Thank you for any help.

Re: Turn Wifi Power Management: On

Post by catweazel » Mon Aug 19, 2019 5:03 pm

Signal drenching can happen across frequencies if the OP is close to a transmitter, especially if the transmitter is close to the 1.5-1.6GHz upper AM band. It’s possible that the OP needs full power just to overcome local interference.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Wifi Power Management

Wifi Power Management

Post by GearHead350 » Tue Aug 09, 2016 7:39 am

Alright. What I need to do is force wifi power management on for startup. I’ve seen a few posts about disabling it and have tried a couple and just used «on» anywhere that «off» was. But every time I reboot it’s still off by default. When it’s off, I’ve been having problems staying connected to routers for longer than about 30 seconds to a minute and I can only use the internet if setup a mobile hotspot from my phone. Now, when I turn power management on, I don’t seem to have any problems being connected to my home router. I’m fairly new at Linux, so bear with me, but I need just about everything explained, so I can learn it. If anyone can help me, that would awesome.

I’m using Linux Mint 18 on a Dell Inspiron N5110 laptop. It uses Intel Centrino Wireless-N 1030 adapter with the ‘iwlwifi’ driver. If any other information is required, just let me know.

Re: Wifi Power Management

Post by deepakdeshp » Tue Aug 09, 2016 8:31 am

If I have helped you solve a problem, please add [ SOLVED] t o your first post title , it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

Mint 20.1 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20.1 Cinnamon AMD Ryzen3500U/8gb

Re: Wifi Power Management

Post by GearHead350 » Tue Aug 09, 2016 8:41 am

Источник

Оцените статью