Notices


Reply
Thread Tools
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#21
Originally Posted by Estel View Post
You could start with Orecchiette, including the dreaded daemon to record calls without bringing up GUI
Trust me, I had considered that. But it is not ideal for a number of reasons. To start with, I would like to have "some" visual indication that Orecchiette is recording. That means either bring up the full GUI anyway or rewrite the app with two GUIs, which sounds like a real nightmare. Also, GUI or no GUI, running Orecchiette would still take the same amount of RAM so one may as well have the GUI running as it is now.

I need to come up with something else for the challenge
__________________
Русский военный корабль, иди нахуй!
 

The Following 4 Users Say Thank You to pichlo For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#22
Originally Posted by pichlo View Post
To start with, I would like to have "some" visual indication that Orecchiette is recording.
Frankly, I can perfectly live without such notification. Option in the Orecchiette settings enabling background recording of program (one for temporary enabling/disabling, and a checkbox for "persistent after reboot") would be all that is needed.

Bringing any indicators during a call i extremely bad idea, considering all the things with CPU and RAM priorities calls have (and should have). *Maybe* you could rig a new indicator LED pattern, that would fire up when Orecchiette daemon is recording - this could work without interruptions, for example, showing red "record" led when it's recording - but I'm still not sure that it's necessary, (albeit cool) so if could be optional, the better.

Also, I think that having 0 GUI would allow to load less things into memory/CPU after all, wouldn't it? It would need to only do a small subset of things Orecchiette is doing now (command for recording with [pre]set parameters, command to stop). Sure, recording is still most intensive task, but all that GUI drawing would be gone.

Or, maybe it should be done just like Torchio/Lanterne, i.e. GUI-less second application, and that 2nd one would be daemonized?

There must be a way - after all, despite being badly written and unreliable, recaller *was* working for recording conversations, without impacting actucal call.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#23
Originally Posted by Estel View Post
Also, I think that having 0 GUI would allow to load less things into memory/CPU after all, wouldn't it? It would need to only do a small subset of things Orecchiette is doing now (command for recording with [pre]set parameters, command to stop). Sure, recording is still most intensive task, but all that GUI drawing would be gone.
I suspect the memory and CPU load of the GUI is vanishingly small compared to the frankly enormous cost of using GStreamer to grab two different audio streams, combine them, convert them to another format, and save them to a file.

There must be a way - after all, despite being badly written and unreliable, recaller *was* working for recording conversations, without impacting actucal call.
I would guess that at least some of the unreliability of recaller is due to it saturating the CPU, and the only reason the actual call is not impacted is that the OS is favoring it over other processes. (Certainly, this seems to be the case when Orecchiette saturates the CPU.)
 

The Following 4 Users Say Thank You to Copernicus For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#24
OK, I've had a VERY brief play with it, measuring the memory consumption with and without GUI etc. Below are rough RSS values as reported by 'top'.

Code:
App started     3588
Qt started     12048  (+8460)
GUI started    16444  (+4396, or +12856 on bare app before Qt started)
Recording      21932  (+5488)
GUI closed*)   15508

*) The cross in top right corner clicked, GUI gone, app spinning on getchar() just before the closing brace in main().
Start recording without starting the GUI was too much work for a short experiment like that but if those numbers scale well then a GUI-less app that does just recording should take less memory than a GUI app that does nothing.

I think it's worth trying after all. I will continue this topic in the Orecchiette thread but you might need to be patient. It's a school break which means more quality time with the kids and less time left for programming.
__________________
Русский военный корабль, иди нахуй!

Last edited by pichlo; 2014-04-13 at 20:51.
 

The Following 4 Users Say Thank You to pichlo For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#25
About notification:

some time ago i packaged aosd:
http://talk.maemo.org/showthread.php?p=1412324

And with aosd_cat you can obtain great results without use a complete gui to show some info while doing other things.


One request (or two):

in my opinion it would be better to set the delay (-t) in seconds or ms.
Also the morse code should have a speed rate parameter (i suppose that not all of us are so experienced to understand something at that speed...)
..Morse is not dead: https://www.fit.ac.jp/~tanaka/fitsat.shtml

Last edited by xes; 2014-04-13 at 23:50.
 

The Following 5 Users Say Thank You to xes For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#26
Just noticed while in the package interface, Torchio has no icon.
As per Maemo packaging guidelines CLI applications should have a terminal-like icon to indicate they have no GUI.

Have a look at zzztop for an example.
I don't think there's an issue with overlaying a pasta shape over this example, if you wish
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#27
Thanks! I've pushed up an update to Torchio, with the following icon. (Hopefully it isn't too bad...)
Attached Images
 
 

The Following 5 Users Say Thank You to Copernicus For This Useful Post:
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#28
Originally Posted by xes View Post
in my opinion it would be better to set the delay (-t) in seconds or ms.
Also the morse code should have a speed rate parameter (i suppose that not all of us are so experienced to understand something at that speed...)
Drat, can't believe I missed this request last week. Sorry about that.

I'm not sure that I want to change the way that the timeout is defined; if you're wanting to stop the display in just a few milliseconds, it seems to me that you're trying to do something different than just avoiding battery drain...

However, setting the speed of the Morse code display is easy, and I really should have just copied over the code from Lanterne in the first place. Torchio 0.0.4 is now moving up to extras-devel, and has a new option "-d nnn" which sets the dot duration value. The "nnn" is a numeric value describing the amount of milliseconds that a dot should be held. Torchio currently supports values from 1 millisecond to 600000 milliseconds (10 minutes). This should affect the speed of the pulsed, SOS, and Morse code modes.

Very cool! (Although I could see this kind of technology becoming very irritating, if advertisers start trying to use it. )
 

The Following 3 Users Say Thank You to Copernicus For This Useful Post:
Reply

Tags
flashlight, nokia n900

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:01.