Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2579  / 2 Years ago, sat, march 12, 2022, 8:17:20

Background and Problem



My laptop (Lenovo ThinkPad X131e 3372-2VU, running Ubuntu 12.04 LTS) freezes when Ubuntu tries to manage the wireless interface's power.



I had to manually disable wireless power management to prevent the freezes, and it never happens ever since I did.



However, now I use jupiter in order to save battery while not on AC power, and it seems that wireless power management is back on, and the system freezes started happening again.



Is there a way to configure jupiter to not manage wireless interface power? Or is it enough to just disable the power management manually (i.e. jupiter won't turn it back on again)?



The jupiter applet has been doing an excellent job otherwise. It has literally doubled my laptop's battery life. So I'd much rather have jupiter around.



Symptoms



Running iwconfig on boot would show the following, even after manually setting wireless power management off (sudo iwconfig eth2 power off) before rebooting or shutting down:



eth2      IEEE 802.11abg  ESSID:"287LyonSt."  
Mode:Managed Frequency:2.437 GHz Access Point: F8:D1:11:9B:89:81
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on


Thanks in advance.


More From » wireless

 Answers
6

After research and some luck (there weren't many information on the internet as to how one can fiddle with jupiter configurations), I was able to find my own answer.



If you look into /usr/bin/jupiter, which is written in python, it tells us that jupiter runs all power-management related shell scripts from 2 files in /usr/lib/jupiter/kernel/:




  • battery for scripts run when the laptop is on battery.

  • power for scripts run when the laptop is on AC power.



To stop jupiter from turning on power-management for your wireless interface card, do the following:




  1. Find the line that says: iw dev $WIFI_ADAPTER set power_save on

  2. Change it to: iw dev $WIFI_ADAPTER set power_save off


[#31928] Monday, March 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cocal

Total Points: 236
Total Questions: 111
Total Answers: 123

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
cocal questions
Tue, Oct 12, 21, 20:46, 3 Years ago
Sat, Oct 8, 22, 04:23, 2 Years ago
Wed, Sep 14, 22, 22:38, 2 Years ago
Sun, Dec 18, 22, 02:24, 1 Year ago
Wed, Jun 29, 22, 17:31, 2 Years ago
;