linux rfkill接口
来源:互联网 发布:node.js和python 编辑:程序博客网 时间:2024/05/23 11:55
RFKill
Many computer systems contain radio transmitters, including Wi-Fi, Bluetooth, and 3G devices. These devices consume power, which is wasted when the device is not in use.
RFKill is a subsystem in the Linux kernel that provides an interface through which radio transmitters in a computer system can be queried, activated, and deactivated. When transmitters are deactivated, they can be placed in a state where software can reactive them (a soft block) or where software cannot reactive them (a hard block).
The RFKill core provides the application programming interface (API) for the subsystem. Kernel drivers that have been designed to support RFkill use this API to register with the kernel, and include methods for enabling and disabling the device. Additionally, the RFKill core provides notifications that user applications can interpret and ways for user applications to query transmitter states.
The RFKill interface is located at
/dev/rfkill
, which contains the current state of all radio transmitters on the system. Each device has its current RFKill state registered in sysfs
. Additionally, RFKill issues uevents for each change of state in an RFKill-enabled device.Rfkill is a command-line tool with which you can query and change RFKill-enabled devices on the system. To obtain the tool, install the rfkill package.
Use the command
rfkill list
to obtain a list of devices, each of which has an index number associated with it, starting at 0
. You can use this index number to tell rfkill to block or unblock a device, for example:rfkill block 0
blocks the first RFKill-enabled device on the system.
You can also use rfkill to block certain categories of devices, or all RFKill-enabled devices. For example:
rfkill block wifi
blocks all Wi-Fi devices on the system. To block all RFKill-enabled devices, run:
rfkill block all
To unblock devices, run
rfkill unblock
instead of rfkill block
. To obtain a full list of device categories thatrfkill can block, run rfkill help
- linux rfkill接口
- linux rfkill
- RFKill
- rfkill
- RFKill
- RFKill
- RFKill
- Linux中智能小开关rfkill
- 用rfkill来控制linux下的无线设备
- 嵌入式linux开发板上增加rfkill命令
- 在 Linux 下使用 rfkill 软开关蓝牙及无线功能
- rfkill的用法
- rfkill的使用
- rfkill: WLAN hard blocked
- rfkill - RF kill switch support (翻译)
- rfkill - RF kill switch support (翻译)
- rfkill - RF kill switch support (翻译)
- ubuntu rfkill 启动无线网卡等无线设备
- 指针数组和数组指针
- 河南省第几届大学生程序设计 序号互换
- JDK中的javac,java,appletviewer作用
- QT使用GIF作程序启动画面
- 程序比程序员更理解c语言! cdecl程序(分析c语言的声明
- linux rfkill接口
- [JavaScript语言精粹]学习笔记
- Oracle亲身实验1:基本的SELECT语句
- MSDN的整合问题的解决---让VS2003用上MSDN2005
- 序号互换
- 使用WinDbg调试程序
- 42种编程语言写hello world .
- 欢送2月喜迎3月——明天更精彩!
- WIN7从家庭普通版升级到旗舰版