I have followed the following thread for guidance

running openSuse13.2 on an Asus Laptop

Thread: My wireless doesn’t work - a primer on what I should do next

with the following results:

/sbin/lspci
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev01)

dmesg | less
[11.522390] iee80211 phy0: Atheros AR9485 Rev1 mem=oxffffc90004900000, irq=17

/usr/sbin/iwconfig
wlp250 IEEE 802.11bgn ESSID: off/any
Mode: managed Access Point: Not Associated TX-Power=off
Retry Short limit : 7 RTS thr: off Fragment thr: off
Power Management : off

lo no wireless extensions
enp3sof2 no wireless extensions

Looks like no power is going to the wireless adapter, but I’m not sure that is the issue.

Any advice how to get it working would be appreciated.

Am Fri, 29 Apr 2016 14:56:02 GMT
schrieb jssuse

> /usr/sbin/iwconfig
> wlp250 IEEE 802.11bgn ESSID: off/any
> Mode: managed Access Point: Not Associated
> TX-Power=off
> Retry Short limit : 7 RTS thr: off Fragment thr:
> off
> Power Management : off

> Looks like no power is going to the wireless adapter, but I’m not sure
> that is the issue.
>

The “Power Management: Off” is certainly not the problem as it indicates “no
power saving mode enabled”, but the “TX-Power=off” looks like you might be
correct as this indicates the amount of power used for transmitting.

Post the output of

/usr/sbin/rfkill list

and if you get “command not found”, try

cat /sys/class/rfkill/rfkill*/{state,hard}

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

AK,
Thank you for responding and sorry for the long delay in getting back - the laptop I’m learning SUSE on is in my office.

I tried both command lines in a terminal window, both cam back with “no such file or directory”

Any further suggestions?

> I tried both command lines in a terminal window, both cam back with “no
> such file or directory”>

If you have a wired connection (which I presume as your first post contains
Inforamtion which would be quite lot to type and mostly nobody ever did this
without errors), connect your machine via cable and run

sudo zypper install rfkill

before using the

/usr/sbin/rfkill list

command.

In addition, you can read

http://www.linux-tips-and-tricks.de/en/overview/

and download/run the script collectnwdata.sh for a full set of useful
informations.

If you don’t have another way of connecting to the internet, download the
scriptfrom another machine, transfer it to the affected machine and post the
content of the resulting file (after transferring it back obviously), as it
will contain information needed for further steps.

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

AK,
I did type it all in. I appreciate your patience. It will probably take a few days to get to a cable.

I went to download/run the script collectnwdata.sh but looking at the instructions I am bound to screw it up flipping between windows and Linux and saving to a USB.

Is there a way to just turn the power on and override any kill instructions??

Jeff

> AK,
> I did type it all in. I appreciate your patience. It will probably take
> a few days to get to a cable.
>

Well, considering this, I suspect you mistyped at least the cat command in my
first reply.

As far as I can see, you have an atheros card, most likely powered by the
“ath9k” kernel module (aka “driver”) as lspci shows a 9xxx-number for your
device.

This driver is dependant on two other kernel modules mac80211 and cfg80211 which
means to the best of my knowledge there must be
a /sys/class/rfkill/rfkill$NUMBER (starting from 0) as the module cfg80211
depends on another kernel module called “rfkill” (which is not the program
rfkill, but they are related).

The program rfkill is a user space application to communicate with the rfkill
module.

Let me show you the outputs on my system:

lspci -knn | grep -A3 -i Atheros
02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network
Adapter (PCI-Express) [168c:002b] (rev 01) Subsystem: Askey Computer Corp.
Device [144f:7173] Kernel driver in use: ath9k

Yes, by coincidence my wireless device is also driven by ath9k.

find /sys/class/ -iname “rfkill”
/sys/class/misc/rfkill
/sys/class/rfkill

Yes, there is a rfkill sub directory in /sys/class (even two, but let’s ignore
that for now).

Now let’s have a look and split the command from my first answer into two single
commands.

cat /sys/class/rfkill/rfkill*/state
1

This means “Radio is on”

cat /sys/class/rfkill/rfkill*/hard
0

This means “not blocked by hardware switch”, which would be a crucial
information as this type of block is done by a hardware switch and can not be
unblocked by rfkill.

If rfkill is installed, things become easier:

/usr/sbin/rfkill list
1: phy0: Wireless LAN
Soft bl1: ocked: no
Hard blocked: no

Now let’s block wifi by software (soft block)

/usr/sbin/rfkill block wifi

/usr/sbin/rfkill list
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no

And the other commands give
cat /sys/class/rfkill/rfkill1/state
0

Radio is off

cat /sys/class/rfkill/rfkill1/hard
0

blocked by software and not by hardware.

As you (and me also) suspect radio being turned off, this information would be
useful in order find out if the suspicion is true or not.

Unblocking soft locks via rfkill is quite easy

/usr/sbin/rfkill unblock wifi

/usr/sbin/rfkill list
1: phy0: Wireless LAN
Soft bl1: ocked: no
Hard blocked: no

This could also be done without rfkill, but I think for some user new to linux,
rfkill is the better idea.

However, if you get a “Hard blocked: yes” unblocking with rfkill will most
likely be impossible, there are very few “exceptions” most of them depending on
other rfkill devices present in the system which simulate a hard block, so the
complete output of rfkill list is importatnt.

In most cases, unblocking a hard block will work via a hardware switch, a key
combination or even worse by setting UEFI/BIOS parameters or even more worse
there is a setting done by a (pre)installed Windows system, which (in most
cases on shutdown) sends a non-documented/non-standard “switch radio
off”-command to the BIOS/UEFI that can not be understood/reverted by linux.

But this is all speculation withut further facts and I am writing this down
here in order for other users reading this thread in the future to get some
idea what is behind all this “black magic” of

Radio

Frequency

Kill Switches

(which btw. explains the name “rfkill”).

So let’s try this:

You say you are running 13.2, fine, but that is not sufficient information to
give dedicated advise on which rfkill package to install, you will have to find
out yourself by having a look at the output of

arch

If this outputs “x86_64” you will need to download this package

http://download.opensuse.org/distribution/13.2/repo/oss/suse/x86_64/rfkill-0.5-4.1.2.x86_64.rpm

if the output is “i586” or “i686”, download this one

http://download.opensuse.org/repositories/openSUSE:/13.2/standard/i586/rfkill-0.5-4.1.2.i586.rpm

Copy the package from a USB to your linux machine, I would prefer the /tmp
folder.

Now you can install the package manually by running

sudo rpm -Uvh /tmp/rfkill*.rpm

If you use another folder, you must adjust the command accordingly, the output
should look like this:

sudo rpm -Uvh /tmp/rfkill*.rpm
Preparing… ################################# [100%]
Updating / installing…
1:rfkill-0.5-4.1.2 ################################# [100%]

Now you can run rfkill commands and see what is going on.

However, if you manage to run the script and post it’s output file, that would
give a lot more useful information, especially if there is another problem not
visible yet.

AK

Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

P.S. Copying outputs by typing is not even necessary, let me show you:

iwconfig wlan0
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off

and now

iwconfig wlan0 > /tmp/foobar.txt

The “>” redirects the output to /tmp/foobar.txt (creating that file if not
presentyet ).

This file can then be copied to an external medium.

If you have several commands and want to append the output, use “>>” instead
of “>”:

/usr/sbin/iwconfig wlan0 > /tmp/foobar.txt

(this overwrites the previous content, so beware!).

/sbin/lspci -knn | grep -A3 -i Atheros >> /tmp/foobar.txt

(this appends the output to the file)

And now, what is inside /tmp/foobar.txt?

cat /tmp/foobar.txt

wlan0 IEEE 802.11bgn Mode:Master Tx-Power=off
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off

02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network
Adapter (PCI-Express) [168c:002b] (rev 01) Subsystem: Askey Computer Corp.
Device [144f:7173] Kernel driver in use: ath9k

I think you get the idea.

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)

AK,
Thank you. I have to suspend my efforts to get wireless until I figure a few more things out. I’ll report back to this thread when I have some answers.

In the meantime let me tell you about the struggle. I have tried hard wired to the internet but couldn’t get connected - not sure but maybe the network manager was off. I was sweating in the garage where my modem is so I abandoned ship, figuring I would download rfkill to a USB using windows and install to the Linux system. I got “ConsoleKit-0.4.6-4.1.4.x86_64.rpm” on the flash drive from the link you sent (seems like what you wanted), shut down Windows and rebooted Suse… but there was no USB to be found. So I am at an impasse the machine has won round one and two. I did in the GUI Services Manager 4 row of “system-rfkill0” 1,2,3, all marked disabled, inactive… so I tried to enable and make active system-rfkill0; but when I save and go out and back into Services Manager it is back to disabled. Makes me think there is a hard block (that I cannot unblock with fn F2, or ctrl F2)

As this is not really leading to a point and as I understand how difficult this
might be for a complete newcomer, let me give you a last, semi-technical advise,

Do a search for the nearest “LUG” (=Linux User Group), try to find out, when
they have their usual meetings.

Try to contact the LUG and ask if you can take your machine to one of these
meetings and ask them for help.

Doing this “hands on” is a lot easier and it is
very likely you will find someone with necessary expertise.

Also, they most likely will have (preliminary) wired access without having to go
to the garage first, :slight_smile:

If possible, show them this thread here, some of my suggestions
might be helpful as a starting point.

If you find a LUG near to your home and they offer a so called “Linux Install
Fest”, even better, go for it.

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)