]> git.neil.brown.name Git - plato.git/log
plato.git
10 years agonetman: scan repeatedly while configuring wifi
NeilBrown [Fri, 13 Dec 2013 08:00:32 +0000 (19:00 +1100)]
netman: scan repeatedly while configuring wifi

instead of just once at the start.

10 years agoDnotify: possible fix for multiple signals.
NeilBrown [Fri, 13 Dec 2013 07:58:17 +0000 (18:58 +1100)]
Dnotify: possible fix for multiple signals.

I seem to lose signals sometimes.
This catches signals while handling signals and serialised them.

10 years agotapboard: make '|' more easily accessible.
NeilBrown [Fri, 13 Dec 2013 07:43:33 +0000 (18:43 +1100)]
tapboard: make '|' more easily accessible.

10 years agodialer.py - minor cosmetic things
NeilBrown [Fri, 13 Dec 2013 07:42:31 +0000 (18:42 +1100)]
dialer.py - minor cosmetic things

remove some white space
'changed' should expect an arg, because it gets one

10 years agolock: remove some white space and dead comments
NeilBrown [Fri, 13 Dec 2013 07:40:42 +0000 (18:40 +1100)]
lock: remove some white space and dead comments

10 years agoBattery: improve time-to-empty and average-period display.
NeilBrown [Fri, 13 Dec 2013 07:36:29 +0000 (18:36 +1100)]
Battery: improve time-to-empty and average-period display.

"average period" is now minutes+seconds (not just seconds)
"tiem to empty" is based on long-term average current and is minutes+seconds.

10 years agoRemove some more white space
NeilBrown [Fri, 13 Dec 2013 06:11:21 +0000 (17:11 +1100)]
Remove some more white space

10 years agosms: fix recent change to show list after a send.
NeilBrown [Fri, 13 Dec 2013 06:03:46 +0000 (17:03 +1100)]
sms: fix recent change to show list after a send.

10 years agoMake sms search function work.
NeilBrown [Thu, 12 Dec 2013 22:15:13 +0000 (09:15 +1100)]
Make sms search function work.

10 years agosms: remove some white space
NeilBrown [Thu, 12 Dec 2013 21:55:53 +0000 (08:55 +1100)]
sms: remove some white space

10 years agoEnable finger scrolling for SMS viewing
NeilBrown [Thu, 12 Dec 2013 21:51:40 +0000 (08:51 +1100)]
Enable finger scrolling for SMS viewing

Also go to list view after sending a message so that
the status is visible

11 years agogsm: differentiate between different styles of reset.
NeilBrown [Sun, 17 Feb 2013 03:51:12 +0000 (14:51 +1100)]
gsm: differentiate between different styles of reset.

A CFUN error only requires a soft reset.  And EOF requires a harder
reset.
In each case, reopen devices just in case.

Also make sure status information is cleared until we are up and
running again.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: record status and be more lenient of CFUN errors.
NeilBrown [Sun, 17 Feb 2013 03:28:52 +0000 (14:28 +1100)]
gsmd: record status and  be more lenient of CFUN errors.

Only treat CFUN states as bad if signal level is zero.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogta04-modem-messages: don't abort on bad CRC
NeilBrown [Fri, 25 Jan 2013 04:46:44 +0000 (15:46 +1100)]
gta04-modem-messages: don't abort on bad CRC

I get lots and lots of these, so aborting on each one is not helpful.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agofingerscroll2 - different approach to finger scrolling.
NeilBrown [Fri, 25 Jan 2013 02:25:01 +0000 (13:25 +1100)]
fingerscroll2 - different approach to finger scrolling.

Hopefully temp hack for term.py

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agoterm: close app when child shell dies.
NeilBrown [Fri, 25 Jan 2013 02:24:33 +0000 (13:24 +1100)]
term: close app when child shell dies.

11 years agoterm: simple terminal with keyboard
NeilBrown [Fri, 25 Jan 2013 02:15:53 +0000 (13:15 +1100)]
term: simple terminal with keyboard

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agotapboard: add support for control chars and arrows etc
NeilBrown [Fri, 25 Jan 2013 01:43:51 +0000 (12:43 +1100)]
tapboard: add support for control chars and arrows etc

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agoupdate susman
NeilBrown [Fri, 25 Jan 2013 00:54:46 +0000 (11:54 +1100)]
update susman

11 years agoAdd gta04-modem-messages from Neil Jerram <neil@ossau.homelinux.net>
NeilBrown [Fri, 25 Jan 2013 00:14:10 +0000 (11:14 +1100)]
Add gta04-modem-messages from Neil Jerram <neil@ossau.homelinux.net>

11 years agogsmd: improve CFUN handling, and split 'init' state.
NeilBrown [Thu, 24 Jan 2013 23:39:52 +0000 (10:39 +1100)]
gsmd: improve CFUN handling, and split 'init' state.

Sometimes it can take a little while for CFUN to be effective.
So if it tells us the state is stil '0', we don't want to immediately
try the rest of the init process.

So split the init state into two - one which sets CFUN, and one
which is entered once CFUN says it is OK.

Also, if CFUN says it isn't OK in some way, trigger a reset, but
not too often.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: handle suspend after setting the the timeout.
NeilBrown [Thu, 24 Jan 2013 23:38:03 +0000 (10:38 +1100)]
gsmd: handle suspend after setting the the timeout.

As soon as we acknowledge suspend, we might process an immediate resume.
That will try to abort any timeout.

So it is best to do it *after* we set our timeout, else we get stuck
in that timeout and never abort it.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: don't check for SMS just-in-case during a call.
NeilBrown [Thu, 24 Jan 2013 23:36:38 +0000 (10:36 +1100)]
gsmd: don't check for SMS just-in-case during a call.

It seems that it can be confusing.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: don't call _OPSYS so often.
NeilBrown [Thu, 24 Jan 2013 23:35:35 +0000 (10:35 +1100)]
gsmd: don't call _OPSYS so often.

It seems to cause more problems than it fixes.
Just call at init time.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: allow multiple fields from a reponse to be logged.
NeilBrown [Thu, 24 Jan 2013 23:28:58 +0000 (10:28 +1100)]
gsmd: allow multiple fields from a reponse to be logged.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agoAllow non-default retry count.
NeilBrown [Thu, 24 Jan 2013 23:26:24 +0000 (10:26 +1100)]
Allow non-default retry count.

Somethings should never be retried if they fail - so allow
that to be specified.

Also switch from RESET to POWERDOWN to see if it helps.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agonetman: support configuring wifi networks.
NeilBrown [Thu, 24 Jan 2013 23:22:29 +0000 (10:22 +1100)]
netman: support configuring wifi networks.

We can now add or forget wifi networks, and set the password.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agotapboard - make TAB and ESC more assessible.
NeilBrown [Thu, 24 Jan 2013 23:19:47 +0000 (10:19 +1100)]
tapboard - make TAB and ESC more assessible.

They are just drags on 'space' and 'return'.

Still more work to do here.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agonetman: flag networks that have security enabled.
NeilBrown [Fri, 18 Jan 2013 04:29:39 +0000 (15:29 +1100)]
netman: flag networks that have security enabled.

' ' for 'no'
'!' for ad-hoc network
'*' for 'yes'
'?' for 'some security we probably cannot handle

11 years agocmd: improve detection of command-finished.
NeilBrown [Mon, 14 Jan 2013 20:23:30 +0000 (07:23 +1100)]
cmd: improve detection of command-finished.

We sometimes get an error on read, and spin on it forever.

11 years agoplato_gsm: fix bug with message passing.
NeilBrown [Mon, 14 Jan 2013 20:22:22 +0000 (07:22 +1100)]
plato_gsm: fix bug with message passing.

This call is only need in the recipient of a message (so it can
receive another), not the sender.

11 years agonetman: display current usage for GSM connnection.
NeilBrown [Mon, 14 Jan 2013 20:21:30 +0000 (07:21 +1100)]
netman: display current usage for GSM connnection.

This is fairly hacky but does display the data...

11 years agosendsms: provide access to contacts
NeilBrown [Mon, 14 Jan 2013 20:19:37 +0000 (07:19 +1100)]
sendsms: provide access to contacts

When viewing a message, we can now 'call' the correspondent
or go to the contacts app with a search for the correspondent.

11 years agosound: play any pending sounds on restart.
NeilBrown [Mon, 14 Jan 2013 20:18:24 +0000 (07:18 +1100)]
sound: play any pending sounds on restart.

abort a little  more quickly if something goes wrong,
and check for sounds on restart.

11 years agocontacts: improve selection handling.
NeilBrown [Mon, 14 Jan 2013 20:16:06 +0000 (07:16 +1100)]
contacts: improve selection handling.

Allow a selection of '-' to mean 'just raise without
selecting anything.
Also improve selection code a bit

11 years agodialler: allow easy access to contacts.
NeilBrown [Mon, 14 Jan 2013 20:15:06 +0000 (07:15 +1100)]
dialler: allow easy access to contacts.

If you tap the place where  the name of the contact can
be displayed, it takes you to the  'contacts' app.

11 years agobattery: be firmer about shutdown
NeilBrown [Mon, 14 Jan 2013 20:13:29 +0000 (07:13 +1100)]
battery: be firmer about shutdown

'halt' doesn't seem to work, so use 'poweroff -f'

11 years agogsm-getsms: use recorded SIM card id
NeilBrown [Mon, 14 Jan 2013 20:11:40 +0000 (07:11 +1100)]
gsm-getsms: use recorded SIM card id

rather than getting it again

11 years agodialer: allow previously dialed numbers to be easily accessed.
NeilBrown [Mon, 14 Jan 2013 07:41:04 +0000 (18:41 +1100)]
dialer: allow previously dialed numbers to be easily accessed.

Just press 'backspace' when no number present and it goes to previous number.

Signed-off-by: NeilBrown <neilb@suse.de>
11 years agogsmd: log data usage
NeilBrown [Mon, 31 Dec 2012 20:53:26 +0000 (07:53 +1100)]
gsmd: log data usage

11 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.

11 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.

11 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

11 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.

11 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.

11 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.

11 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.

11 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>
11 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

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>