Re: How to tell the system to load right name for wireless card?

2016-03-03 Thread Jude DaShiell
I've had two kinds of instances over here when a wireless wifi adapter 
wasn't picked up correctly.  One of them happened when I accidentally 
changed the usb port the adapter was in and the network profile no 
longer matched.  The second happened as a result of a brown out 
preparatory to a black out of power.  A third instance happened and 
maybe this effects you too.  I run different operating systems on the 
same hardware by swapping out hard drives.  I had run KaliLinux on the 
machine for a little while and returning to talkingarchlinux, on the 
first boot of the machine the wireless wifi adapter wasn't picked up 
correctly.  A subsequent reboot of the machine got a correct connection 
though.  Had this been windows I would have had to reboot more often and 
perhaps would have found this stuff out sooner but we're dealing with 
Linux which is loads more stable especially for those of us who use 
screen readers and accessibility environments like emacspeak.


On Wed, 17 Feb 2016, German wrote:


Date: Wed, 17 Feb 2016 02:31:45
From: German 
To: debian-user@lists.debian.org
Subject: How to tell the system to load right name for wireless card?
Resent-Date: Wed, 17 Feb 2016 07:32:00 + (UTC)
Resent-From: debian-user@lists.debian.org

Hi list,

A couple of days ago I asked why my pc changes the wireless card name.
It switches between AR9285 ( right) and AR5008 ( wrong). Someone
suggested  that this is because another kernel module is loaded by
mistake. Well, it is not the case. When system identified with AR9285,
it loads ath9k and I can connect to the router. When system identifies
my card as AR5008, no kernel module is present at all ( lspci -k). The
wrong card name occurs only when system rebooted. If I gracefully shut
down the system, it always comes up with a right name for the card
( AR9285). So, how to force the system identify my card right no matter
if I reboot or shut down? Thank you.




--



Re: How to tell the system to load right name for wireless card?

2016-02-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Feb 17, 2016 at 07:02:07AM -0500, Jude DaShiell wrote:
> [...]  In my .bashrc I put ping -c 5
> www.google.com|grep % to test if I have a network connection on
> reboot or power up [...]

Hint: ping tells you with an exit status of 0 that all's dandy, so
perhaps you don't need the grep. Ex.

  
  # 8 sec deadline
  if ping -c 2 -w 4  ; then
echo "yay"
  else
echo "nay"
  fi

Add option -q and others to taste.

Of course, if you are just displaying (and not firing off other scripts)
grep is fine :-)

regards
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbEXXkACgkQBcgs9XrR2kaiVgCfSHGgS7BmG7PmdQfSXH1OAVPa
XTIAn27Oyy8/f9C/Gbl2jq4WUWR4Vj6Z
=VT2Z
-END PGP SIGNATURE-



Re: How to tell the system to load right name for wireless card?

2016-02-17 Thread Jude DaShiell
Hi, this may be a problem on the kernel level having nothing to do with 
debian.  Reason I write this is the computer I use has a ralink adapter 
card attached to it which is wireless and it's talkingarch linux and I 
have situations where sometimes the card gets loaded properly on 
talkingarch and sometimes it does not.  Thanks for the lspci -k info, 
I'll use that when I reboot and the card does not get attached correctly 
next time and see if the system like yours finds no network card when 
that happens.  In my .bashrc I put ping -c 5 www.google.com|grep % to 
test if I have a network connection on reboot or power up because of 
this situation now I'll do a little more testing and report what I find 
here.


On Wed, 17 Feb 2016, German wrote:


Date: Wed, 17 Feb 2016 02:31:45
From: German 
To: debian-user@lists.debian.org
Subject: How to tell the system to load right name for wireless card?
Resent-Date: Wed, 17 Feb 2016 07:32:00 + (UTC)
Resent-From: debian-user@lists.debian.org

Hi list,

A couple of days ago I asked why my pc changes the wireless card name.
It switches between AR9285 ( right) and AR5008 ( wrong). Someone
suggested  that this is because another kernel module is loaded by
mistake. Well, it is not the case. When system identified with AR9285,
it loads ath9k and I can connect to the router. When system identifies
my card as AR5008, no kernel module is present at all ( lspci -k). The
wrong card name occurs only when system rebooted. If I gracefully shut
down the system, it always comes up with a right name for the card
( AR9285). So, how to force the system identify my card right no matter
if I reboot or shut down? Thank you.




--



How to tell the system to load right name for wireless card?

2016-02-16 Thread German
Hi list, 

A couple of days ago I asked why my pc changes the wireless card name.
It switches between AR9285 ( right) and AR5008 ( wrong). Someone
suggested  that this is because another kernel module is loaded by
mistake. Well, it is not the case. When system identified with AR9285,
it loads ath9k and I can connect to the router. When system identifies
my card as AR5008, no kernel module is present at all ( lspci -k). The
wrong card name occurs only when system rebooted. If I gracefully shut
down the system, it always comes up with a right name for the card
( AR9285). So, how to force the system identify my card right no matter
if I reboot or shut down? Thank you.