Re: [PATCH] ideapad: let Fn+F5 also trigger KEY_BLUETOOTH

From
Joey Lee <hidden>
Date
2011-06-14 21:52:15
Also in
lkml, platform-driver-x86
Reply to
Bastien Nocera, 2011-06-14
Hi Ike, 

於 二,2011-06-14 於 10:21 +0100,Bastien Nocera 提到:
On Tue, 2011-06-14 at 16:28 +0800, Ike Panhc wrote:
quoted
The design for ideapad Fn-F5 key is not only for wifi but for all
radio device including wifi, bluetooth and wwan. Idealy it shall
acts like this:

    wifi on          wifi off         wifi on         wifi off
     bt on   ----->   bt on   ----->   bt off  ----->  bt off

This patch will switch wifi mode every key-push and switch
bluetooth mode every two key-push.
If that's what you want to achieve, then the key should be KEY_RFKILL.
That's what the key is there for.
I also agree push the wifi key logic to userland application has more
flexibility.

Highly suggest you can use urfkill daemon:
http://www.google.com.tw/search?sourceid=chrome&ie=UTF-8&q=urfkill

It support KEY_WIRELESS, KEY_BLUETOOTH and KEY_RFKILL, and you can setup
the wifi key rule on urfkill daemon. 
Please feel free send patch to Gary Lin [off-list ref], he can merge
your key rule for ideapad.


Thank's
Joey Lee


--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (5 messages) 5 messages, 4 authors, last reply 2011-06-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help