• Stars
    star
    411
  • Rank 101,807 (Top 3 %)
  • Language
    Python
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

general rfkill applet for the gnome panel written in python
rfkill applet
version 0.8

Access to the rfkill switches on the system

Warning: I never programmed python, nor pygtk, never any applet, never
dbus/hal, so please do expect this applet to make your computer disappear
in flames.

Code sources and thanks:
- gfreqlet.sf.net for pygtk applets
- dbus/hal interface by trial and error with loads of help from the
  plasmoid-applet-killswitch of Eva Brucherseifer
  (see http://www.basyskom.org/~eva/log_installation_vaio_z21vnx.html)
- rfkill access mode from the source code of rfkill user space program
  and thanks to hints by Johannes Berg <johannes AT sipsolutions DOT net>


Installation:
- you have to install Python interface to GNOME Applet installed
  On Debian/Ubuntu the package name is python-gnomeapplet
- put rfkill-applet.py into /usr/bin/rfkill-applet  (no .py extension!)
  and make it executable (chmod a+x /usr/bin/rfkill-applet)
- put rfkill-applet.server into /usr/lib/bonobo/servers/ and make it
  executable (chmod a+x /usr/lib/bonobo/servers/rfkill-applet.server)
- put rfkill-applet.png into /usr/share/pixmaps
- put rfkill-applet-hardoff.png into /usr/share/pixmaps
- put rfkill-applet.config into 
     either /etc/rfkill-applet.config
     or     $HOME/.rfkill-applet.config
- restart gnome session
- add the applet

Sys file access:
Since version 0.8 rfkill-applet can be used to turn on/off "settings"
in the /sys file hierarchy, of in fact, everywhere. See examples
that make sense for the sony laptop in the example configuration file.
If you need write access as user you have to specify some udev rules
that allow write access to these files.

By default rfkill-applet will first try to use /dev/rfkill if available
and read/writeable. This access method is the preferred one as it is
less resource intensive (no need to wake up every 3 secs). This interface
to the rfkill subsystem was introduced in the kernel in 2.6.31-rc series.
In case /dev/rfkill is not available or not useable rfkill-applet falls
back to HAL/DBUS access.

To configure /dev/rfkill access I recommend:
- adding a group rfkill
- adding the users that should be allowed to change rfkills to this group
- adding a line to one of the config files for udev (or creating a new one),
  eg /etc/udev/rules.d/99-local.rules with one line:
  	KERNEL=="rfkill", NAME="rfkill", OWNER="root", GROUP="rfkill", MODE="660"


HAL/DBUS is normally already configured so that each user can access
the rfkill stuff.


Bugs: many, help needed, suggestions welcome!

Copyright (C) 2009, 2010, 2011 Norbert Preining <[email protected]>
Licensed under GPLv3

More Repositories

1

kobo-ja-dict-enhance

Enhance built-in Japanese dictionaries from Kobo with English definitions
Perl
428
star
2

cinnadock-p2

For of the Cinnadock Plus plugin to update it to current Cinnamon
JavaScript
423
star
3

debian-gwaei

C
421
star
4

debian-graph

Representing Debian UDD in a graph database
Perl
421
star
5

jfontmaps

dvipdfmx map files and support programs for Japanese font setup
Perl
420
star
6

piwigopress

Piwigo-Wordpress integration
PHP
420
star
7

build-tlptexlive

scripts and patches for building tlptexlive
Shell
420
star
8

debian-speg

Python
420
star
9

eagloss

multi script chinese glossary
TeX
420
star
10

debian-pycson

Python
419
star
11

debian-mu

C++
419
star
12

debian-xxhash

C
418
star
13

pgf-blur

Development of pg-blur package
TeX
417
star
14

nautilus-sendto-scripts

Development of a nautilus-sendto extension that allows sending to user-configurable scripts
Gettext Catalog
417
star
15

slick-google-map-plugin

Free Google map Wordpress plugin
PHP
416
star
16

ptex2pdf

convert Japanese TeX documents to pdf
Lua
415
star
17

texlive-rewrite

Rewrite of some core scripts in TeX Live from shell to perl
Perl
413
star
18

sony-control-center

Fork of the sony-f11-vaio-control-center to work with newer kernels and with all Sony laptops supported by the sony-laptop kernel module.
C++
412
star
19

sony-laptop-zseries

adapted kernel module for zseries laptops
C
412
star
20

tlmgr-electron-react

tlmgr gui using electron and react
JavaScript
411
star
21

tlptexlive-root

packaging stuff for tlptexlive
Perl
410
star
22

okular-debian

packaging okular for debian
C++
163
star
23

elixir-debian

Debian packaging of Elixir
Elixir
158
star
24

acme-debian

Debian packaging of python acme
Python
158
star
25

certbot-debian

Debian packaging of certbot
Python
157
star
26

qpdfview-debian

Debian packaging of qpdfview
HTML
152
star
27

mupdf-debian

packaging of mupdf for debian
C
151
star
28

pymupdf-debian

Packaging of pymupdf for Debian
SWIG
150
star
29

rspamd-debian

debian packaging of rspamd
C
150
star
30

susi-assistant

SUSI Smart Assistant
Python
110
star
31

rssguard-debian

Debian packaging of RSS Guard
C++
6
star