GithubHelp home page GithubHelp logo

microdroid / airplaned Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sammko/airplaned

0.0 2.0 0.0 7 KB

Userspace airplane mode manager for linux.

License: The Unlicense

Makefile 6.17% C 93.83%

airplaned's Introduction

airplaned

An userspace daemon for managing airplane mode. It listens for KEY_RFKILL on a given event device and automatically saves and restores rfkill device state when entering and leaving airplane mode respectively. It's a work in progress and many imperfections are present. The LED name is currently hardcoded to asus-wireless::airplane.

If you wish to use rfkill's integrated input handler and only manage the LED, check out the ledonly branch. (see what I did there?)

How to use

Adjust the #define LEDNAME in airplaned.c to whatever your airplane mode LED is called. (Look into /sys/class/leds) Find your airplane mode button input device by running grep -B5 rfkill /proc/bus/input/devices. You are interested in eventXX listed in the line starting with H:. You may get multiple results, but unless you have multiple airplane mode buttons (contact me) only one of them will be correct. To find it, you could use evtest and monitor the event device for output when pressing the button. On my ASUS zenbook 2 devices are detected and the correct one is called Asus Wireless Radio Control.

make
sudo make install
sudo systemctl enable [email protected]

reboot or sudo systemctl start [email protected].

The daemon should now disable rfkill's integrated input handler and listen for input.

airplaned's People

Contributors

sammko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.