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 that rfkill can block, run  rfkill help

最新文章

  1. 自己写jquery插件之模版插件高级篇(一)
  2. JS技巧
  3. uboot学习第一天
  4. Cardboard开发教程:使用Unity制作Cardboard全景图片浏览器
  5. C2第七次作业解题报告
  6. 因用了NeatUpload大文件上传控件而导致Nonfile portion > 4194304 bytes错误的解决方法
  7. Java_你应该知道的26种设计模式
  8. 【TLD】标签库描述符
  9. 【DP问题集】动态规划试题
  10. dede调取文章内容的第一张图片
  11. 【IE6的疯狂之一】IE6中奇数宽高的BUG
  12. Aptana插件安装、配置
  13. PHPstorm 如何新增项目
  14. Javascript获取数组中最大和最小值
  15. javascript中!=、!==、==、===操作符总结
  16. python 进阶读书笔记1 -- 理解python一切皆对象
  17. .NetCore 下开发独立的(RPL)含有界面的组件包 (一)准备工作
  18. STL容器vector应用注意事项
  19. Ant.OutputIsUnreadableCode
  20. grep命令与正则表达式

热门文章

  1. SpringBoot学习(三)
  2. 又见Python<2>:如何安装第三方库(Windows)
  3. RE:从零开始的AGC被虐(到)生活(不能自理)
  4. 哈希表(散列表)—Hash表解决地址冲突 C语言实现
  5. bzoj 3073: [Pa2011]Journeys -- 线段树优化最短路
  6. hust 1385 islands 并查集+搜索
  7. javascritp 字符串截取
  8. Linux下使用SSH远程执行命令方法收集
  9. Linux下OOM Killer机制详解
  10. hdu4035之经典慨率DP