[ltp] Re: [Long] Problems with Ericsson F3507g

Bjørn Mork linux-thinkpad@linux-thinkpad.org
Tue, 01 Dec 2009 20:51:09 +0100


Maciej Piechotka <uzytkownik2@gmail.com> writes:

> BTW. How to enable rfkill?
> # find /sys/ | grep rfkill
> #
> [  137.609337] thinkpad_acpi: deprecated sysfs attribute: access by
> process with
>  PID 2689
> [  137.609346] thinkpad_acpi: WARNING: sysfs attribute wwan_enable is
> deprecated and will be removed. Please switch to generic rfkill before
> year 2010

Oh, right.  I have to learn to use the new interface.  But it's harder
to find the correct path:

bjorn@nemi:~$ cat /sys/class/rfkill/rfkill*/name
tpacpi_bluetooth_sw
tpacpi_wwan_sw
phy0
hci0

bjorn@nemi:~$ cat /sys/class/rfkill/rfkill*/type
bluetooth
wwan
wlan
bluetooth

bjorn@nemi:~$ cat /sys/class/rfkill/rfkill*/state
1
1
1
1

bjorn@nemi:~$ ls -la /sys/class/rfkill/rfkill*/state
-rw-r--r-- 1 root root 4096 2009-12-01 10:13 /sys/class/rfkill/rfkill0/state
-rw-r--r-- 1 root root 4096 2009-12-01 10:13 /sys/class/rfkill/rfkill1/state
-rw-r--r-- 1 root root 4096 2009-12-01 10:13 /sys/class/rfkill/rfkill3/state
-rw-r--r-- 1 root root 4096 2009-12-01 20:42 /sys/class/rfkill/rfkill4/state


You can enable or disable each of the radios by writing 1 or 0 to the
appropriate "state" file (in my case, that would be /sys/class/rfkill/rfkill1/state).  

But given your dmesg output, I suspect that there might be something on
your system which will immediately disable it again.  Maybe some "helpful" 
GUI app trying to manage your radios?

But try to enable it and see what happens.  If it works, then fine.  If
it is disabled again then you have to search for the "helpful" application.



Bjørn