GNOME Bugzilla – Bug 359584
Support TX power configuration
Last modified: 2012-07-27 01:11:34 UTC
"I am using network manager in Dapper to automatically switch between wired and wireless interfaces. Before I started using network manager, I was using the wireless-txpower directive in the interfaces file to ratchet down the transmit power on my wireless interface, which yields a significant improvement in battery life. I cannot find a means of configuring this with network-manager. I can still set wireless options manually with iwconfig." https://launchpad.net/distros/ubuntu/+source/network-manager/+bug/56445
Reading the bug on ubuntu forums, this is more general and more important than just the usage the OP suggested. The root problem is that NM doesn't run any of the scripts in /etc/network/if-up.d, and instead uses scripts in /etc/Network‐Manager/dispatcher.d . This is a (mostly) useless duplication of effort/configuration for folks who don't always run NM. For example, on my amd64 ubuntu feisty machine: ski@ganiodayo:/etc/network/if-up.d$ ls -l total 24 -rwxr-xr-x 1 root root 894 2007-03-27 14:40 avahi-autoipd* -rwxr-xr-x 1 root root 2005 2007-03-27 14:40 avahi-daemon* -rwxr-xr-x 1 root root 3190 2007-04-10 17:49 mountnfs* -rwxr-xr-x 1 root root 462 2007-03-07 15:43 ntpdate* lrwxrwxrwx 1 root root 32 2007-05-01 05:35 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh* Presumably wpasupplicant is unnecessary in this context, but the others like mountnfs and ntpdate are not (and mountnfs is rather important for my usage).
Actually, on a little more digging, it appears that there is a /etc/NetworkManager/dispatcher.d/01ifupdown script which tries to launch scripts from /etc/network/if-up.d . Does this not work on other systems besides ubuntu? If not it's starting to look like an ubuntu bug. Can someone confirm that this works for them on a non-ubuntu machine and I'll refile the bug properly with ubuntu?
If the dispatcher is enabled, you can put whatever you'd like into the dispatcher scripts and it should get executed, yes... 0.7 will support setting the TX power though.
network-manager-
sorry, cat on the keyboard^^ network-manager-0.7~~svn20081018t105859-0ubuntu1.8.10.2 does not turn off txpower on AR5212 (ath5k.ko) when disabling wireless networking in nm-applet. As far as I can see, there's no hook in the dispatcher on disabling i.e. wlan.
It's been there for long time now. zehn97drei: Please report any problems in a new bugreport if applicable to NM 9.x.