Results 1 to 8 of 8

Thread: set wireless rate automatically

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Beans
    8

    Angry set wireless rate automatically

    Hi,
    I have recently upgraded my laptop to Hardy via the update manager and since then my maximum wireless rate is only 1MB as reported via iwconfig.
    I can set this to be higher by sudo iwconfig wlan0 rate 54M which works OK and all is fine and dandy. However I don't know how to get this to 'stick' following a reboot.

    I am using fluxbox as WM in order to get a bit more out of my laptop resources (in fact I have the same problem above using Gnome), but I am using nm-applet in the fluxbox apps file to start network manager. This is fine and all wireless connections (my neighbours included) are shown in the list. OK so fine, I have tried using wireless-rate 54M in /etc/network/interfaces but I believe as I am using nm-applet this doesn't actually get used. It certainly doesn't appear to pick up this setting anyway as iwconfig still shows 1MB. There is no other settings in my interfaces file other than
    auto lo
    iface lo inet loopback
    so I believe the only way wireless is being connected is via nm-applet.

    Question is then - how do I either set rate to be 54M in networkmanager (nm-applet) automatically or how do I set it automatically using iwconfig and the interfaces config file????

    Wireless works absolutely fine with the way it is set up other than I can't get the max speed to be set automatically. This only has changed following update to 8.04 (which is pretty annoying).

    Thanks
    Conrad

  2. #2
    Join Date
    Jun 2008
    Beans
    8

    Re: set wireless rate automatically

    is this really that difficult?
    Anyone help as I have tried all I can think of. I am a newbie at this really.
    Do I have to write some sort of script to run at startup - would have thought it should be done using e either nm-applet or iwconfig. I tried using a more hard coded approach using interfaces config file and stopping nm-applet, but that didn't work either. Don't really understand how iwconfig stuff is invoked other than on the command line.
    Thanks
    Conrad

  3. #3
    Join Date
    Jun 2008
    Beans
    3

    Re: set wireless rate automatically

    Problem can be solved in the file:
    /etc/NetworkManager/dispatcher.d/01ifupdown

    This script called everytime you connect to network (wired or not).
    My script has this code in "pre-up" section:
    Code:
        pre-up)
            export MODE="start"
            export PHASE="pre-up"
            if test "$1" = "wlan1"; # Check that interface is wireless
            then
                    # Set WIFI rate to 54;
                    /sbin/iwconfig "$1" rate 54M
            fi;
            exec run-parts /etc/network/if-pre-up.d
            ;;
    Note! You must set rate before interface is really up:
    Code:
    exec run-parts /etc/network/if-pre-up.d

  4. #4
    Join Date
    Jan 2009
    Beans
    8

    Re: set wireless rate automatically

    Hi,as a very "newbie" with the same problem I tried to edit the file to include the modified lines to preset the rate to 54 Mb;I can't save the file however,it tells me I don't have permission.How do I get round this?

  5. #5
    Join Date
    May 2008
    Location
    Nebraska, USA
    Beans
    65
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: set wireless rate automatically

    Quote Originally Posted by brewerdave View Post
    Hi,as a very "newbie" with the same problem I tried to edit the file to include the modified lines to preset the rate to 54 Mb;I can't save the file however,it tells me I don't have permission.How do I get round this?
    Ok first off if you are just point and clicking your way to the file then no you will not be able to save. The way around this is by opening a terminal window applications <accessories <terminal then in terminal type:
    Code:
    nautilus
    It will prompt you for password so type it in.(note the cursor will not show your typing of password) Hit enter and it should open up your home folder. Keep the terminal window open and navigate to location of file and insert your changes. Save and all should work. Or go to terminal and insert:
    Code:
    sudo gedit filename
    Enter your password and of course replace "filename" with whatever file you are trying to edit. This should open the specific file you can make your changes and save file. In both of these ways you are elevating your user privileges to a "root" user. Good luck.
    Ubuntu Registered User #23910
    HP Dualer- dv5zCTO AMD Turion x2 Ultra ZM-80 ATI Radeon Mobility HD3450 Atheros Wireless w/ Broadcom Bluetooth 250gb SATA 3gb Ram Intrepid and Vista

  6. #6
    Join Date
    Jan 2009
    Beans
    8

    Unhappy Re: set wireless rate automatically

    Thanks very much for the help Sava8420 -it worked in so far as I've saved the modified file as listed by kolemik.
    However, it hasn't achieved the primary objective; my network connection stays at 1Mb/sec after a restart!!!!
    So I'm stuck with using sudo iwconfig..... every time I start up to get the full rate wireless connection. I'll continue to research!!!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •