Help!

Wlan radio-toggle key works half-way

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Laptop RSS
Next:  Accepted libdata-peek-perl 0.27-1 (source i386)  
Author Message
Stefan Monnier
External


Since: Mar 31, 2005
Posts: 79



PostPosted: Wed Jun 03, 2009 5:10 pm    Post subject: Wlan radio-toggle key works half-way
Archived from groups: linux>debian>laptop (more info?)

My machine (MSI Wind) has a wlan-toggle key (Fn-F11) which
enables/disables the wifi's radio (this is done apparently directly by
the BIOS so Linux isn't really told about it), and it also sends some
key event (which by default causes some "setkeycodes" kernel messages).

So the key formally works, but not ideally: when I turn the radio off,
the wifi communication is indeed interrupted, but the driver keeps on
trying to connect, wasting energy.

And when I turn the radio on, if the driver was stopped before it is not
automatically re-started.

I've added a file /etc/hal/fdi/information/msi-wind.fdi which maps the
key code to the "wlan" key, but it doesn't seem to make much difference
(other than getting rid of the harmless kernel messages).

Could anyone help me figure out how it's supposed to work and/or how to
make it work better (e.g. somehow make it that the key event causes
network-manager/wicd/ifupdown to start/stop using the interface)?


Stefan


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
s. keeling
External


Since: Jul 07, 2007
Posts: 79



PostPosted: Thu Jun 04, 2009 12:10 am    Post subject: Re: Wlan radio-toggle key works half-way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stefan Monnier <monnier RemoveThis @iro.umontreal.ca>:
>
> My machine (MSI Wind) has a wlan-toggle key (Fn-F11) which
> enables/disables the wifi's radio (this is done apparently directly by
> the BIOS so Linux isn't really told about it), and it also sends some

Er, if you see it, the kernel must be telling you about it, yes?
Linux generally ignores the lies spat out by BIOS, et al, from what I
know. Of course, I could be deluded, ...

> key event (which by default causes some "setkeycodes" kernel messages).
>
> So the key formally works, but not ideally: when I turn the radio off,
> the wifi communication is indeed interrupted, but the driver keeps on
> trying to connect, wasting energy.

That sounds like software hasn't been told how to react. As in
config? Have you $GOOGLED setkeycodes?

Install "hotkeys" for a start.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Stefan Monnier
External


Since: Mar 31, 2005
Posts: 79



PostPosted: Tue Jul 14, 2009 6:10 pm    Post subject: Re: Wlan radio-toggle key works half-way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> My machine (MSI Wind) has a wlan-toggle key (Fn-F11) which
>> enables/disables the wifi's radio (this is done apparently directly by
>> the BIOS so Linux isn't really told about it), and it also sends some

> Er, if you see it, the kernel must be telling you about it, yes?
> Linux generally ignores the lies spat out by BIOS, et al, from what I
> know. Of course, I could be deluded, ...

>> key event (which by default causes some "setkeycodes" kernel messages).
>>
>> So the key formally works, but not ideally: when I turn the radio off,
>> the wifi communication is indeed interrupted, but the driver keeps on
>> trying to connect, wasting energy.

> That sounds like software hasn't been told how to react. As in
> config? Have you $GOOGLED setkeycodes?

> Install "hotkeys" for a start.

If you google enough for setkeycodes, you'll discover that the
/etc/hal/fdi/information/msi-wind.fdi I alluded to, does exactly use
setkeycodes, just "in the HAL way".
So, no, sadly, setkeycodes is not itself a solution.
The worst part is that I can't even find info about how it is *supposed*
to work.


Stefan


--
To UNSUBSCRIBE, email to debian-laptop-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Laptop All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum