Power management

Ask questions about Arch Linux ARM. Please search before making a new topic.

Power management

Postby ThaWalrus » Thu Mar 17, 2016 4:27 pm

I'm using a Raspberry Pi 3.

The device becomes wirelessly unreachable after an hour or so. I figured a solution to this, which is disabling power management of the network device. This is done by either $this->bbcode_second_pass_code('', 'iwconfig wlan0 power off') or $this->bbcode_second_pass_code('', 'iw wlan0 set power_save off').

How to keep the power management off after rebooting the system?

Thanks,
me.
ThaWalrus
 
Posts: 9
Joined: Sat Oct 11, 2014 6:55 pm

Re: Power management

Postby andiling » Sat Mar 19, 2016 8:24 pm

You can add your command to netctl@.service.
andiling
 
Posts: 69
Joined: Sun Mar 06, 2016 8:34 pm

Re: Power management

Postby ThaWalrus » Sun Mar 20, 2016 10:38 pm

I am not using netctl, any alternative?
ThaWalrus
 
Posts: 9
Joined: Sat Oct 11, 2014 6:55 pm

Re: Power management

Postby moonman » Mon Mar 21, 2016 4:00 am

what is the kernel module ? chceck the args it supports with "modinfo". There is usually an arg that will control power management. If there is you can use modprobe to disable it on boot: https://wiki.archlinux.org/index.php/ke ... le_options
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Power management

Postby andiling » Mon Mar 21, 2016 4:31 am

Or write your own service file with the appropriate command.
andiling
 
Posts: 69
Joined: Sun Mar 06, 2016 8:34 pm

Re: Power management

Postby moonman » Mon Mar 21, 2016 9:01 am

$this->bbcode_second_pass_quote('andiling', 'O')r write your own service file with the appropriate command.

It is much easier to have a file containing "option <module> power_save=0" or similar (given the option is available) than writing a service file.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Power management

Postby andiling » Mon Mar 21, 2016 9:17 am

It's easy to say something is much easier and write a "given the option is available"... I guess it depends on personal preference how to set up one's own system. However, yours would be definitely the cleaner way.

$this->bbcode_second_pass_code('', '# modinfo brcmfmac | grep parm
parm: txglomsz:maximum tx packet chain size [SDIO] (int)
parm: firmware_path:string
parm: debug:level of debug output (int)
parm: fcmode:mode of firmware signalled flow control (int)
parm: roamoff:do not use internal roaming engine (int)')
andiling
 
Posts: 69
Joined: Sun Mar 06, 2016 8:34 pm


Return to User Questions

Who is online

Users browsing this forum: Google [Bot] and 17 guests

cron