LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB wireless stick shutdown problem (https://www.linuxquestions.org/questions/slackware-14/usb-wireless-stick-shutdown-problem-519898/)

dan_slack 01-16-2007 02:27 PM

USB wireless stick shutdown problem
 
After two days of hard work, I managed to get my new Trendnet TEW-424UB USB wireless card working on my slack 11 machine.
I get the ndiswrapper slack pkg from:
http://www.slackware.com/~alien/slac...pper/pkg/11.0/

I have a single related problem:
The shutdown freezes after
'Unmounting remote file system'.
I've tried to put "ifconfig wlan0 down" in the shutdown script, but the same...
Any suggestions, please?

Tks.

Dan

duryodhan 01-17-2007 07:13 AM

please post more info .... maybe all of what is displayed when you shutdown , any errors in dmesg ... etc. etc.

dan_slack 01-17-2007 06:01 PM

no errors in dmesg... only this freaze after
"Unmounting remote file systems"
The usb light is blinking as it is still "on"
The computer needs to be shut down manualy from powe buton...

Tks.

H_TeXMeX_H 01-17-2007 10:07 PM

Try first:

1) Shutting down the connection (as you said you tried above)
2) Unmounting it manually (if necessary)
3) Removing the card

Before shutdown.

dan_slack 01-20-2007 03:48 PM

H_TeXMex_H,

I don't know how to unmount wlan usb stick :-( since it has no entry in fstab...
Tks.

H_TeXMeX_H 01-20-2007 06:17 PM

Then just unplug it, then shutdown.

gnashley 01-21-2007 12:50 AM

Maybe using rmmod would kill the thing? Which script are you running that in?

dan_slack 02-17-2007 12:18 PM

solved
 
I just put
modprobe -r ndiswrapper
in /etc/rc.d/rc.6 and voila!

perry 05-31-2007 10:19 PM

Quote:

Originally Posted by dan_slack
After two days of hard work, I managed to get my new Trendnet TEW-424UB USB wireless card working on my slack 11 machine.
I get the ndiswrapper slack pkg from:
http://www.slackware.com/~alien/slac...pper/pkg/11.0/

I have a single related problem:
The shutdown freezes after
'Unmounting remote file system'.
I've tried to put "ifconfig wlan0 down" in the shutdown script, but the same...
Any suggestions, please?

Tks.

Dan

similair problem only mine doesn't freeze, it just hangs for about 60 seconds and then continues with the normal shutdown...

still begs the question, whats causing it to pause. something that only started after i got my own wlan0 working using dhcpcd (3.0.5). had to spend the week upgrading my system to 2.6.21.3 and fiddle with the kernel to get everything "else" working, but other than this 60 pause, seems to be well worth it. i love my upgraded slackware 10.1 with the latest 2.6 kernel albeit the ati 9600 radeon is still not doing 10,000 fps (no complaints, i am happy that it is at least working at 150 fps)

wouldn't mind knowing how to shutdown the wlan0 (that's if it is what is causing the problem),

i cant seem to find the proper way to get dhcpcd to shutdown upon command

any help would be greatly appreciated

thanks

- perry

H_TeXMeX_H 05-31-2007 10:24 PM

Hmmm ... well to take down that interface, just do:

Code:

ifconfig wlan0 down
Not sure if that will help tho.

EDIT: oops missed that quote above where it tells you this.

What's the output of 'lsmod' ?

perry 06-08-2007 02:55 PM

This "seemed" to help!
 
Inside /etc/rc.d/rc.M:
Code:

# Initialize the networking hardware.  If your network driver is a module
# and you haven't loaded it manually, this will be deferred until after
# the hotplug system loads the module below.
# Starting iptables firewall
if [ -x /etc/rc.d/rc.iptables ]; then
  /etc/rc.d/rc.iptables start
fi
if [ -x /etc/rc.d/rc.inet1 ]; then
  . /etc/rc.d/rc.inet1
fi
if [ -x /etc/rc.d/rc.wlan0 ]; then
  /etc/rc.d/rc.wlan0 start
fi

and then in /etc/rc.d/rc.6:
Code:

# Stopping wlan0
if [ -x /etc/rc.d/rc.wlan0 ]; then
  /etc/rc.d/rc.wlan0 stop
fi
# Stopping iptables firewall
if [ -x /etc/rc.d/rc.iptables ]; then
  /etc/rc.d/rc.iptables stop
fi
# Shut down PCMCIA devices:
if [ -x /etc/rc.d/rc.pcmcia ] ; then
  . /etc/rc.d/rc.pcmcia stop
  # The cards might need a little extra time here to initialize.
  sleep 5
fi

Code:

#!/bin/sh

if [ "$1" == "start" ]; then
  /sbin/dhcpcd wlan0 &
  /etc/rc.d/rc.wireless wlan0
fi

if [ "$1" == "stop" ]; then
  /sbin/dhcpcd  -k
fi

not "perfect" but much speedier!

- perry

ps.
incidentally, is your wireless modem a distance from your monitor & speakers... i was subsisting on 9-11 Mbs till i gave it longer usb cable and at least 2-3 feet away from monitor/speaker, now i am enjoying 24-36 Mbs

perry 06-08-2007 03:00 PM

Something else to speed up bootup:
 
Make a couple of changes to /etc/rc.d/rc.M
from:
Code:

# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
  echo "Updating shared library links:  /sbin/ldconfig"
  /sbin/ldconfig
fi

# Update the X font indexes:
if [ -x /usr/X11R6/bin/fc-cache ]; then
  echo "Updating X font indexes:  /usr/X11R6/bin/fc-cache"
  /usr/X11R6/bin/fc-cache
fi

to:
Code:

# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
  echo "Updating shared library links:  /sbin/ldconfig"
  /sbin/ldconfig &
fi

# Update the X font indexes:
if [ -x /usr/X11R6/bin/fc-cache ]; then
  echo "Updating X font indexes:  /usr/X11R6/bin/fc-cache"
  /usr/X11R6/bin/fc-cache &
fi

i see no reason to wait for static libraries and the font cache updates to have to pause the bootup process

- perry


All times are GMT -5. The time now is 11:41 AM.