You are not logged in.

#1 2009-01-18 01:54:18

stboris
Member
From: Russia
Registered: 2009-01-18
Posts: 4

[SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

Today i installed Arch, almost configured it and when i tried to turn on wifi card whith acer-wmi got this

$ sudo echo 1 > /sys/devices/platform/acer-wmi/wireless
-bash: /sys/devices/platform/acer-wmi/wireless: Нет такого файла или каталога

That mean "No such file or directory" Also i can't create file there with any known method (nano, vi, cp)

Does anybody know what to do with that?

Last edited by stboris (2009-01-19 19:08:09)

Offline

#2 2009-01-18 03:39:38

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

If the file does not exist, then it is pretty simple - you cannot write to it wink. I do not think a regular user (or a root user, for that matter) can create files in /sys. With the appropriate permissions you can change contents, but mostly, if a file is not there (in /proc or /sys), that means either something went wrong (hardware not getting detected or configured) or your system does not support the feature you're looking for.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-01-18 09:42:37

stboris
Member
From: Russia
Registered: 2009-01-18
Posts: 4

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

This strange, cause all hardware were detected correctly. And also use of acer-wmi was tested on that model of notebook (Acer Aspire 3020) and reported as working. Also developer of that module have twin of my notebook - Acer Aspire 5020, they almost the same.
So what can i do? Reinstall all system?

Offline

#4 2009-01-18 18:50:29

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

Since Linux 2.6.28 acer-wmi has proper rfkill support so:

    $ cat /sys/devices/platform/acer-wmi/rfkill:rfkill*/{name,state}

You need to install an RTFM interface.

Offline

#5 2009-01-18 21:01:56

stboris
Member
From: Russia
Registered: 2009-01-18
Posts: 4

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

Thanks anrxc. But there strange things. As i searched, now my WiFi-card must work Out-of-Box, but it isn't and LEDs doesn't light too.

$ cat /sys/devices/platform/acer-wmi/rfkill:rfkill*/{name,state}
acer-wireless
1

And also i can't turn it "off"

$ sudo echo -n 0 > /sys/devices/platform/acer-wmi/rfkill:rfkill0/state
-bash: /sys/devices/platform/acer-wmi/rfkill:rfkill1/state: Permission denied

Offline

#6 2009-01-18 21:06:04

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

I noticed that if you have noclobber option set in bashrc it is impossible to write into these files.
EDIT: You could also try something like this:

sudo echo -n 0 >| /sys/devices/platform/acer-wmi/rfkill:rfkill0/state

The ">|" is supposed to override noclobber setting.

Last edited by fwojciec (2009-01-18 21:08:40)

Offline

#7 2009-01-18 22:05:35

stboris
Member
From: Russia
Registered: 2009-01-18
Posts: 4

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

Sorry to all. It seems to be my fault. After

sudo ifconfig wlan0 up

LED turned on. But i have reinstalled Arch before that and it seems to me that i did that command last time. Anyway it works smile))))) Thanks to all

Last edited by stboris (2009-01-18 22:30:24)

Offline

#8 2009-01-19 00:24:22

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] can't write to /sys/devices/platform/acer-wmi/wireless

Congrats smile. Don't forget to put [Solved] in front of your topic title wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB