Active Topics

 


Reply
Thread Tools
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#31
Can you record the current level using awk and alsamixer sget to a file, like the PID, just before you set it to 100. Then restore it when you do the cleanup up the end.
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#32
Originally Posted by Halftux View Post
And the email application has a session dbus interface (com.jolla.email.ui) maybe it is helpful.

https://together.jolla.com/question/...e-information/

https://talk.maemo.org/showthread.php?t=92303
With this + a simple shell script, shouldn't it be possible to look for certain keywords in incoming mails, and sound an alarm if such are found?
__________________
N900 in 2020
SFOS in 2021
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post:
Posts: 121 | Thanked: 292 times | Joined on Mar 2016
#33
Originally Posted by Android_808 View Post
Can you record the current level using awk and alsamixer sget to a file, like the PID, just before you set it to 100. Then restore it when you do the cleanup up the end.
I'm a little unsure if i can but i'll do my best. Right now, i have the problem that the terminal stops working after some time and i have to restart it. I have gotten one alarm now but i don't want to miss the next one. So- having the sound restored is somewhat the icing on the cake.
 

The Following 2 Users Say Thank You to Veraendert For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#34
Sounds like OOM kills of terminal.

I see my terminal cover often greyed out, i.e. killed and the command just interrupted

I extended my swap manually with a swap file on home (maybe better on SD card like on N900?) and it got better.

Maybe try with ShellEx or qCommand from openrepos?

Or let a cron job restart this command every xx minutes?
(will you get re-notified more often via mail?)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#35
Originally Posted by Veraendert View Post
I'm a little unsure if i can but i'll do my best. Right now, i have the problem that the terminal stops working after some time and i have to restart it. I have gotten one alarm now but i don't want to miss the next one. So- having the sound restored is somewhat the icing on the cake.
Did a little digging. You can use alsamixer -sget Master but you may also be able to use alsactl.

Maybe something like editing the dbus command posted earlier to add

alsactl --file ~/.config/asound.state store

Before the alsamixer -sset Master bit and

alsactl --file ~/.config/asound.state restore

In the kill/cleanup part.
 

The Following 3 Users Say Thank You to Android_808 For This Useful Post:
Posts: 121 | Thanked: 292 times | Joined on Mar 2016
#36
Sounds good, will try. But then the script worked very well twice today already. Which means that i'm really tired. Because it was quite early when my sleep was interrupted.
 

The Following 2 Users Say Thank You to Veraendert For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#37
Cannot help you with this sound stuff,
as I am not really a knowledged one regarding PA, alsa and so on
and all that alsa vodoo just gives me a lot of 'no such device' or 'cannot read control' or similar on XA2...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 121 | Thanked: 292 times | Joined on Mar 2016
#38
No problem, you helped a great deal already. I just need some time to figure things out. As long as i have a working solution, i'm fine.
 

The Following 3 Users Say Thank You to Veraendert For This Useful Post:
Posts: 1,423 | Thanked: 2,620 times | Joined on Jan 2011 @ Touring
#39
To dodge into a different direction may I ask what bulky analog device you have for callouts? Are people still using Motorola Minotaur and Minotaur IIs?(edit, damn they are up to the Minotaur 6, now as big as a little '90s belt pager now but still voice paging.)
I was a paid guy and finished as an officer and EMT-P but ended up taking the tech telated topics during my 8-5 work hours, though we were still doing in the VHF in rural western US when I medical'ed out.
I am also an amateur radio guy so hacking a VHF receiver with tone controls back then was cake though we also had commercial UHF POCSAG pagers with priority so they all beeped about 1-2 sec after the tones came over the VHF dispatch channel.
Not sure what your dispatch's setup looks like.

Big life altering advice for all first responders.
Lift properly, ask for help(hard for young guys, especially young volunteers), protect your spine, stairways with a patient on the cot and you are the backwards guy will get you; the damage you do might put you away fast or might just get worse over time; it is what ended my career.
Also remember that car drivers are what kill by far the most first responders and that people get lax at training events in a way they never would on a real call(hours of repeated extinguish/relight burn to learns especially).
Pass this on to the young guys at your department and wherever you end up doing teaching.

Last edited by biketool; 2020-04-21 at 14:39.
 

The Following 4 Users Say Thank You to biketool For This Useful Post:
spag's Avatar
Posts: 121 | Thanked: 275 times | Joined on Oct 2009 @ Blackhawk Island
#40
Originally Posted by biketool View Post
T
I am also an amateur radio guy so hacking a VHF receiver with tone controls back then was cake
I guess today one could maybe do this with a cheap SDR USB stick and a Raspberry Pi.
 

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


 
Forum Jump


All times are GMT. The time now is 09:55.