LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Wifi failing in 14.2 (https://www.linuxquestions.org/questions/slackware-14/wifi-failing-in-14-2-a-4175583869/)

kgs 07-05-2016 07:25 PM

Wifi failing in 14.2
 
Hi everyone.

I'm having a problem in 14.2. After some time (usually at least 4 hours) my wifi goes down and will not come back up.

Code:

root@darkstar:~# ifconfig wlan0 up
SIOCSIFFLAGS: Input/output error
root@darkstar:~#

Unloading and reloading my wifi card's modules does not fix the problem.

I use wicd from /extra for all my connections. As per the readme included with it I do not configure my network during setup. rc.networkmanager is -x. lspci id's the card in my laptop as "Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)."

2 things currently revive the wifi: rebooting or suspending to ram.

Using powertop I enabled some power saving settings on the card the first several times I booted this system. Since the wifi has failed a few times now I have left these setting alone on my most recent bootup to see if that is related to the problem.

Has anyone encountered something similar? What can I do to fix this?

bassmadrigal 07-05-2016 07:28 PM

Have you tried with networkmanager or just using just wpa_supplicant by itself? I'd be curious to find out if it is a bug with wicd or a hardware/module/firmware bug.

onebuck 07-06-2016 09:22 AM

Member response
 
Hi,

Quote:

Originally Posted by kgs (Post 5571054)
Hi everyone.

I'm having a problem in 14.2. After some time (usually at least 4 hours) my wifi goes down and will not come back up.

Code:

root@darkstar:~# ifconfig wlan0 up
SIOCSIFFLAGS: Input/output error
root@darkstar:~#

Unloading and reloading my wifi card's modules does not fix the problem.

I use wicd from /extra for all my connections. As per the readme included with it I do not configure my network during setup. rc.networkmanager is -x. lspci id's the card in my laptop as "Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)."

2 things currently revive the wifi: rebooting or suspending to ram.

Using powertop I enabled some power saving settings on the card the first several times I booted this system. Since the wifi has failed a few times now I have left these setting alone on my most recent bootup to see if that is related to the problem.

Has anyone encountered something similar? What can I do to fix this?

What happens when you use as root;
Code:

/etc/rc.d/rc.inet1 restart
From 'man rc.inet1;
Quote:

NAME
rc.inet1 - Slackware network configuration script.

DESCRIPTION
rc.inet1. This script configures network interfaces. Wireless interfaces are configured just like any network device but accept many more
configuration parameters.
rc.inet1 reads its configuration parameters from a file `rc.inet1.conf'. The `rc.inet1.conf' file contains a series of variable array def-
initions, with each array index corresponding to a single network interface.

OPTIONS
The way to start your network (the configuration of your nics and bringing the interfaces up, and creating a default route if required) is
by running the command:

/etc/rc.d.rc.inet1

Restarting the whole network (all available network interfaces) is done in a similar fashion:

/etc/rc.d.rc.inet1 restart

More generically speaking, you can start/stop/restart any network interface yourself by running one of the commands:

/etc/rc.d.rc.inet1 INTERFACE_start

/etc/rc.d.rc.inet1 INTERFACE_stop

/etc/rc.d.rc.inet1 INTERFACE_restart

where `INTERFACE' is the name of an existing network interface (eth0, wlan0, ...)

WIRELESS
The script rc.wireless takes care of configuring the wireless parameters for a network interface. This script does not run independently.
Instead, it is executed by the generic network configuration script rc.inet1.
If a wireless interface is detected, rc.wireless will use iwconfig , iwpriv and possibly wpa_supplicant to associate the card with an
access point (in managed mode) or peer it with another computer (in ad-hoc mode), and enable an encryption modus like WPA.

FILES
/etc/rc.d/rc.inet1 network configuration script

/etc/rc.d/rc.inet1.conf parameter definition file (is being read by rc.inet1 and rc.wireless)

/etc/rc.d/rc.wireless wireless configuration script

/etc/rc.d/rc.wireless.conf
parameter definition file ( deprecated )
As per the above man page you(as root) can use the network device name by;
Code:

/etc/rc.d.rc.inet1 wlan0_restart
If your network device is named something else then just replace '/etc/rc.d.rc.inet1 INTERFACE_restart' INTERFACE with your network device name explicitly.
Hope this helps.
Have fun & enjoy!
:hattip:

kgs 07-07-2016 12:43 PM

Thanks for the replies guys. It has been almost two days now and my wifi is still running fine after the last reboot (and no suspending to ram either). I'm assuming then that it was one of the following two commands that was responsible for the problem:

Code:

iw dev wlan0 set power_save on
echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';

I will probably try running each of those one at a time and wait for the wifi to die again. I'll then try out your suggestions and report back.


All times are GMT -5. The time now is 05:46 AM.