]> git.neil.brown.name Git - plato.git/log
plato.git
13 years agogsmd: log data usage
NeilBrown [Mon, 31 Dec 2012 20:53:26 +0000 (07:53 +1100)]
gsmd: log data usage

13 years agogsmd/netman : various fixes to recent enhancements.
NeilBrown [Mon, 31 Dec 2012 20:10:52 +0000 (07:10 +1100)]
gsmd/netman : various fixes to recent enhancements.

13 years agonetman: use new gsmd interface for WWAN data.
NeilBrown [Mon, 31 Dec 2012 09:59:01 +0000 (20:59 +1100)]
netman: use new gsmd interface for WWAN data.

i.e. write APN to data-APN, and watch 'data' for updates.

For now, APN is hard-coded.

13 years agoGSMD - add management of data connection.
NeilBrown [Mon, 31 Dec 2012 09:41:16 +0000 (20:41 +1100)]
GSMD - add management of data connection.

If /run/gsm-state/data-APN contains an APN, then gsmd
tries to establish and maintain a data connection.
The 'hso' interface is ifconfiged and the IP is written to
/run/gsm-state/data.
DNS servers are written to /run/gsm-state/dns

13 years agogsmd: record 'sim' and 'sid'.
NeilBrown [Mon, 31 Dec 2012 08:10:19 +0000 (19:10 +1100)]
gsmd: record 'sim' and 'sid'.

SIM number and service provider ID are records as
'sim' and 'sid'.

If 'sid' is a prefix of 'sim', then we aren't roaming.

Different SMS histories and APN values can be keyed off
different 'sim' values, for people who swap sims.

13 years agogsmd: allow repeat= arg to be a function.
NeilBrown [Sun, 30 Dec 2012 20:37:56 +0000 (07:37 +1100)]
gsmd: allow repeat= arg to be a function.

This allows commands to be repeated differently, or not at all,
depending on arbitrary aspects of state.
'data' support will use this.

13 years agogsmd: fix the force_state command.
NeilBrown [Sat, 29 Dec 2012 20:52:02 +0000 (07:52 +1100)]
gsmd: fix the force_state command.

It didn't reset 'lastrun', so it didn't really work.

13 years agogsmd: change 'nextstate' to a queue
NeilBrown [Fri, 28 Dec 2012 06:22:35 +0000 (17:22 +1100)]
gsmd: change 'nextstate' to a queue

and various associated fixes.

13 years agosound: allow a digit in file name to attenutate volume.
NeilBrown [Thu, 27 Dec 2012 07:32:59 +0000 (18:32 +1100)]
sound: allow a digit in file name to attenutate volume.

Signed-off-by: NeilBrown <neil@brown.name>
13 years agoAdd lots of stuff I had been keeping elsewhere
NeilBrown [Wed, 26 Dec 2012 23:14:56 +0000 (10:14 +1100)]
Add lots of stuff I had been keeping elsewhere

13 years agoModify udev usb rule.
NeilBrown [Sun, 22 Apr 2012 06:58:37 +0000 (16:58 +1000)]
Modify udev usb rule.

Turn leds on/off depending on charge status.
 red: charging
 green: powered but not charging
 off: unpowered.

all are slow (3 second) blinks

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd udev rules for GTA04.
NeilBrown [Sun, 22 Apr 2012 05:48:58 +0000 (15:48 +1000)]
Add udev rules for GTA04.

- stable names for Option 3G tty devices
- stable names for input devices
- current setting for different usb cables.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd utils/battery.py
NeilBrown [Sun, 22 Apr 2012 05:04:34 +0000 (15:04 +1000)]
Add utils/battery.py

Battery status monitor for GTA04

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd simple .gitignore file
NeilBrown [Sun, 22 Apr 2012 04:52:05 +0000 (14:52 +1000)]
Add simple .gitignore file

Blast those .pyc files...

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd submodule for susman
NeilBrown [Sun, 22 Apr 2012 04:47:13 +0000 (14:47 +1000)]
Add submodule for susman

susman is needed for working suspend as several plato tools
use it to disable/enable suspend.

And I want to experiment with git submodules.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd utils/lock.py
NeilBrown [Sat, 21 Apr 2012 22:33:45 +0000 (08:33 +1000)]
Add utils/lock.py

Also add associated icons in new 'icons' directory.

'lock' handles locking the display when idle and allowing suspend
when completely idle.

This has lots of dependencies on things that aren't packaged yet.
 - susman (suspend manager)
 - sound (plays sound files when they appear in a directory)

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd lib/vibra.py
NeilBrown [Sat, 21 Apr 2012 21:54:35 +0000 (07:54 +1000)]
Add lib/vibra.py

The vibrator in the GTA04 is presented as an input device with
the 'rumble' force-feedback effect.
This python module provides easy access.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoutil: tapinput
NeilBrown [Sat, 21 Apr 2012 11:49:40 +0000 (21:49 +1000)]
util: tapinput

tapinput uses 'tapboard' to receive input and 'fakeinput'
to pass it to an X application.
So it makes an on-screen keyboard.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd evdev.py
NeilBrown [Sat, 21 Apr 2012 11:42:50 +0000 (21:42 +1000)]
Add evdev.py

evdev monitors /dev/input/event* (event devices) and calls
a callback on each event.
It allows 'grabbing' of devices too

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd tapboard.py
NeilBrown [Sat, 21 Apr 2012 11:22:04 +0000 (21:22 +1000)]
Add tapboard.py

This is similar in concept to tappad.py.
However instead of 3x4 it has 10x4 with many more buttons
which only need to be tapped once.  Dragging buttons give
more options.
But the buttons are quite small.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd tappad.py
NeilBrown [Sat, 21 Apr 2012 11:12:04 +0000 (21:12 +1000)]
Add tappad.py

tappad is a python library module to present a simple
keypad where two taps can produce (nearly) any character.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd fingerscroll.py
NeilBrown [Sat, 21 Apr 2012 10:51:57 +0000 (20:51 +1000)]
Add fingerscroll.py

Fingerscroll is a python/gtk module to display text
and allow it to be scrolled easily with a finger.

No throwing, just dragging.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd scrawl.py
NeilBrown [Sat, 21 Apr 2012 10:48:01 +0000 (20:48 +1000)]
Add scrawl.py

'scrawl' converts mouse/finger movements into letters and numbers.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd fakeinput.py
NeilBrown [Sat, 21 Apr 2012 10:38:56 +0000 (20:38 +1000)]
Add fakeinput.py

'fakeinput' is a python library which makes characters appeared
to be typing at the X11 focus.
This is useful for making an on-screen keyboard for X

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd listselect.py
NeilBrown [Sat, 21 Apr 2012 10:29:50 +0000 (20:29 +1000)]
Add listselect.py

listselect is a python/gtk library module for building lists
that can be easily selected from using a finger on the touch
screen.

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoTrivial tracing python library
NeilBrown [Sat, 21 Apr 2012 10:19:14 +0000 (20:19 +1000)]
Trivial tracing python library

Allows tracing that can easily be turned on/off

Signed-off-by: NeilBrown <neilb@suse.de>
13 years agoAdd dnotify.py
NeilBrown [Sat, 21 Apr 2012 10:17:10 +0000 (20:17 +1000)]
Add dnotify.py

This is a library to make it easy to python scripts to notice when
files changes.

Signed-off-by: NeilBrown <neilb@suse.de>