LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-16-2007, 03:27 PM   #1
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Rep: Reputation: 15
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
 
Old 01-17-2007, 08:13 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
please post more info .... maybe all of what is displayed when you shutdown , any errors in dmesg ... etc. etc.
 
Old 01-17-2007, 07:01 PM   #3
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Original Poster
Rep: Reputation: 15
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.
 
Old 01-17-2007, 11:07 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
Old 01-20-2007, 04:48 PM   #5
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Original Poster
Rep: Reputation: 15
H_TeXMex_H,

I don't know how to unmount wlan usb stick :-( since it has no entry in fstab...
Tks.
 
Old 01-20-2007, 07:17 PM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Then just unplug it, then shutdown.
 
Old 01-21-2007, 01:50 AM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,775

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Maybe using rmmod would kill the thing? Which script are you running that in?
 
Old 02-17-2007, 01:18 PM   #8
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Original Poster
Rep: Reputation: 15
solved

I just put
modprobe -r ndiswrapper
in /etc/rc.d/rc.6 and voila!
 
Old 05-31-2007, 11:19 PM   #9
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
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
 
Old 05-31-2007, 11:24 PM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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' ?

Last edited by H_TeXMeX_H; 05-31-2007 at 11:26 PM.
 
Old 06-08-2007, 03:55 PM   #11
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Thumbs up 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

Last edited by perry; 06-08-2007 at 04:02 PM.
 
Old 06-08-2007, 04:00 PM   #12
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Thumbs up 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
 
  


Reply

Tags
usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Wireless stick recommendations ZeroH Linux - Hardware 5 04-06-2006 06:03 PM
wireless usb stick firestomper41 Suse/Novell 3 09-02-2005 06:53 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
Q2: Meritline wireless USB adaptor (stick type) mattz40 Debian 0 03-09-2005 05:19 PM
USB Stick Problem ZooL Linux - Hardware 5 01-25-2005 05:53 AM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration