Announcement

Collapse
No announcement yet.

Wireless connection drops every few minutes, and the reconnects

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Wireless connection drops every few minutes, and the reconnects

    Give wicd a try.

    .

    Comment


      #17
      Re: Wireless connection drops every few minutes, and the reconnects

      It's now ben 3,5 hours and it is still connected. So i guess there is some kind of problem with the network mnager?

      Comment


        #18
        Re: Wireless connection drops every few minutes, and the reconnects

        Originally posted by marvo
        It's now ben 3,5 hours and it is still connected. So i guess there is some kind of problem with the network mnager?
        Seems so. The fact that network manager didn't wanna stop when you issued the command is pretty incidative. We may look at some logs later on, but for now, does your laptop mostly stay at home or do you carry it around frequently?
        "The only way Kubuntu could be more user friendly would be if it came with a virtual copy of Snowhog and dibl"

        Comment


          #19
          Re: Wireless connection drops every few minutes, and the reconnects

          Usually i have it at home, but i take it other places from time to time.
          I've already taken the commands you gave me and created a shell script that promts for the SSID and then connnects to that network -just in case hehe.
          EDIT: If it's a very extensive way to fix this, i'll jut try to switch to Wicd

          Comment


            #20
            Re: Wireless connection drops every few minutes, and the reconnects

            Originally posted by marvo
            EDIT: If it's a very extensive way to fix this, i'll jut try to switch to Wicd
            There is a better way than a shell script. The Debian family has the best tool for setting network connections, it's called ifupdown. It is a "higher" level tool for ifconfig, iwconfig and gang, and it reads its configuration from the file /etc/network/interfaces.

            What you can do is turn the network off with

            Code:
            ip link set wlan0 down,
            then open this file, say with Kate

            Code:
            kdesudo kate /etc/network/interfaces
            And add this in

            Code:
            allow-hotplug wlan0
               wireless-mode managed
               wireless-essid YOUR NETWORK NAME
            Save, then run

            Code:
            ifup wlan0
            voila, you got a network connection (I hope). If it does work, you need to stop network-manager from starting. I'm not quite sure what the command for that is with Ubuntu and upstart. I do it with

            Code:
            update-rc.d network-manager remove
            Try this, if it doesn't work, you can try to install rcconf or bum, which are graphical frontends to the init system. The reason for this is network manager overwrites stuff in /etc/network/interfaces, so the file is useless, the two methods don't work together. Once you remove network manager from startup, your wifi should connect automatically. You can use the /etc/network/interfaces file to connect at home, wicd to connect while away. So you can install wicd, run
            Code:
            ifdown wlan0
            when you need to use wicd, run the wicd daemon with

            Code:
            sudo service wicd start
            wicd-curses (or wicd-gtk)
            and connect. Or you can just use wicd full time if it works. I'm not completely sure it will, this might be a wpasupplicant problem (wicd and network manager are frontends to that program in a way). I suggest you try the /etc/network/interfaces file first, so you can use that as a starting point. If stuff works out, you can purge network-manager all together.

            Also, look into using ceni.

            There, I gave you a bunch of (too many) options

            Read the manpages for ifupdown and interfaces

            Code:
            man ifupdown
            man interfaces
            You can take this opportunity to learn stuff about wireless networking. Sorting all of that out is worth it, because you will no longer feel the inevitable need to panic once stuff blows up (I'm talking from personal experience )
            "The only way Kubuntu could be more user friendly would be if it came with a virtual copy of Snowhog and dibl"

            Comment


              #21
              Re: Wireless connection drops every few minutes, and the reconnects

              Thanks! I'll stick to this until i find a solution to this problem

              Comment


                #22
                Re: Wireless connection drops every few minutes, and the reconnects

                You've found the solution, your problem is called network manager
                You could try to use network-manager-gnome. It looks uglier, but it's known to be somewhat more reliable.
                "The only way Kubuntu could be more user friendly would be if it came with a virtual copy of Snowhog and dibl"

                Comment


                  #23
                  Re: Wireless connection drops every few minutes, and the reconnects

                  wicd has a kde front end, called wicd-kde.

                  The problem could be with plasma-widget-network-manager, rather than network-manager-kde.

                  I removed both of those and installed wicd and wicd-kde, so far the connection has been a lot more stable.

                  .

                  Comment

                  Working...
                  X