Re: [qtmoko] running a script once usb-connection is detected
On Tuesday, March 04, 2014 08:16:28 PM robin wrote: > hi, > > thanks to radek I am now able to launch the voicerecorder from the aux > button (see bellow). > > now I would like the recordings to be processed as soon as the phone > realises that it has an internet connection via usb. can anyone help me > if either there is a script which polls for the usb-connection where I > could insert another command or what other solutions there might be. > > what I would like to do in the end is to be able > a) to quickly record a messege (DONE) > aI) increase recording volume just for the message (??) I think you can use udev to launch scripts on USB insert event. Adjusting volume can be done either by restoring whole alsa state file using alsactl -f /path/to/alsa.state restore or it should be possible to use something like "amixer set Master 5%+" - you'd have to figure out correct control names. > ps @ radek: what does the Suspend.service actually launch so you get the > shutdown/restart menu? Hmm i think this menu is just one dialog in qpe process. It's not application. BR Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] Wifi && different locations
El día Wednesday, March 05, 2014 a las 09:29:55PM +0100, Boudewijn escribió: > I'm not quite sure about the 'right' way to do it. I do remember that QtMoko > used to help by shuffling the strongest signal up to the top of the list. > > The unfortunate bit was that it continued to do so while the user entered > credentials, and then applied the credentials to the then topmost entry, > whichever that would be at that moment. Result: mostly no connection, because > the connection that you entered credentials for tumbled down two or three > places for a second or so. In my case it was that the AP in location B was visible in the list of all APs after scan, but when I tried to configure it (i.e. put its credentials) I could not see it in the list of the APs to configure credentials, maybe due to the length of the list. > > Radek (I guess/presume) therefor turned off the dynamic rearrangement of the > visible-networks-list, cautioning that people in more than one network would > suffer what you just described. > > I tried adding another network preset (on the 'main' internet tab, one more > WLAN configuration), but that one does not scan/connect at all. Me too, with same result: adding a 2nd WLAN config does not let you do anything with this. Thanks for your feedback in any case. matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] Wifi && different locations
On Monday 03 March 2014 12:46:20 Matthias Apitz wrote: > I could finaly manage to configure my own AP > at home, say location A; where I could see around 8 other neighbour AP > (...) I could not manage to pick-up the correct AP by its > SSID, maybe due to the long list; and had to remove all config > "Internet" and start from scratch for location B; this is soemhow > boring. Is there an easy config file to pick-up only the AP's I do know > (in the sense of credentials)? > > Or do I do something stupid wrong? I'm not quite sure about the 'right' way to do it. I do remember that QtMoko used to help by shuffling the strongest signal up to the top of the list. The unfortunate bit was that it continued to do so while the user entered credentials, and then applied the credentials to the then topmost entry, whichever that would be at that moment. Result: mostly no connection, because the connection that you entered credentials for tumbled down two or three places for a second or so. Radek (I guess/presume) therefor turned off the dynamic rearrangement of the visible-networks-list, cautioning that people in more than one network would suffer what you just described. I tried adding another network preset (on the 'main' internet tab, one more WLAN configuration), but that one does not scan/connect at all. Sorry for not being of any more help. Best regards, Boudewijn ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] Wifi && different locations
Am 03.03.2014 12:46, schrieb Matthias Apitz: Hi, I'm struggling a bit with qtmoko and Wifi configs, maybe because I'm new to qtmoko and more used to use FreeBSD systems; I'd like to configure a small set of Wifi zones (where I'm normaly in); in FreeBSD I just expand the file /etc/wpa_supplicant.conf with the required values about WPA-PSK, PSK, etc. and all is fine; my netbook picks up the best of each location when I start Wifi there; and I do not have to enter anything when I go from location A to B; How do I do this in qtmoko? I could finaly manage to configure my own AP at home, say location A; where I could see around 8 other neighbour AP which I'm not interested in to connect; then I moved to location B and the FR offered me the 8 AP of location A (which of course are not visible due to the distance between A and B), and in addition around 8 AP of location B; I could not manage to pick-up the correct AP by its SSID, maybe due to the long list; and had to remove all config "Internet" and start from scratch for location B; this is soemhow boring. Is there an easy config file to pick-up only the AP's I do know (in the sense of credentials)? Or do I do something stupid wrong? matthias Hi, take a look at "Settings-> Internet->WLAN->Properties->WLAN Roaming". There You can setup the order of used WLAN's and if You like to stay connected and so on -- Kind regards Sebastian Reinhardt ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
On Sun, Mar 2, 2014 at 8:24 PM, M00R1Z wrote: > Op 2-mrt.-2014, om 19:08 heeft Matthias Apitz het volgende geschreven: >> El día Sunday, March 02, 2014 a las 06:27:44PM +0100, M00R1Z escribió: >> >>> Hi Matthias , >> >> Hello M00R1Z, >> >>> >>> i hade the same / a similar problem >>> and asked on IRC >>> >>> >>> what they(forget who it was) told me / what i did : >> >> would be nice to know from whom and which what background came this >> procedure; > > It was on Qtmoko's IRC channel on irc.freenode.org #qtmoko > and my question got answered by "ChristW' (if i can remember correctly) > i also had contact with radek polak who gave ChristW the info of how to get > around this > (i think ChristW told me) Yes, that was me... Radek actually put this info in a mailing on the mailing list, so that's where I got the info from. Since not everybody has this problem, perhaps there's a race condition _somewhere_ that makes this problem appear. If you have Modem AT communication checked ON at the moment, you can try to turn it OFF sometime in the future and see if the probkem re-appears. Christ van Willegen -- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
GTA04/ QtMoKo v57 WLAN issue
Hi, Radek, You stated bevore that You can not connect to WiFi any longer. I have same issue here. I tried this [1] and, maybe I figured the problem out: As soon as You try to connect to disired network QtMoKo copies the required data to "/etc/wpa_supplicant/wpa_supplicant.conf". Please look at his file, here in mine the "psk" is unencrypted! As soon as I cange this, according to [1], I can connect to WiFi- network with console command in "*3. Connecting to WPA / WPA2 encrypted wifi network"! Then it stays connected! Maybe this is the issue.* One more thing: my phone shows device name "wlan3", but this should not be a problem.. [1] http://pc-freak.net/blog/how-to-connect-to-wifi-network-using-console-or-terminal-on-gnu-linux/ -- Kind regards Sebastian Reinhardt ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[qtmoko] running a script once usb-connection is detected
hi, thanks to radek I am now able to launch the voicerecorder from the aux button (see bellow). now I would like the recordings to be processed as soon as the phone realises that it has an internet connection via usb. can anyone help me if either there is a script which polls for the usb-connection where I could insert another command or what other solutions there might be. what I would like to do in the end is to be able a) to quickly record a messege (DONE) aI) increase recording volume just for the message (??) b) once I have an internet connection have the message translated by an online service c) add a section to my orgmode notes file with the translated message and, a link to the original wav file in case the translation is not good enough, and another link to a script which removes the file, once I do not need it anymore. best regards robin ps @ radek: what does the Suspend.service actually launch so you get the shutdown/restart menu? [Translation] File=QtopiaServices Context=Service:Name [Service] Icon=light-and-power/Light Name[]=Media Session /qtmoko/services/VoiceRecording/ CHANGING DEFAULT BEHAVIOUR OF THE AUX BUTTON -- nano /opt/qtmoko/etc/defaultbuttons.conf [Button0] HeldActionMessage=showRunningTasks() HeldActionService=TaskManager Key=F7 Name=Button PressedActionMessage=toggleRecording() PressedActionService=VoiceRecording the command is toggleRecording() you find it here: nano /opt/qtmoko/services/VoiceRecording.service [Translation] File=QtopiaServices Context=Voice Recorder [Service] Actions = "toggleRecording();recordAudio(QDSActionRequest)" Icon = recordaudio Name[]=Record [toggleRecording()] Icon = recordaudio Name[]=Record Audio ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
El día Sunday, March 02, 2014 a las 08:24:27PM +0100, M00R1Z escribió: > > which I enabled before to debug something; 'Modem AT communication' was > > not on; should I tick this on? > > Tick this ON , that's the fix ^^^ > :-) > > > > >> - reboot > > > > no change of the problem after re-boot :-( > Tick off Modem AT communications as statet above > then reboot > :-) On or off, in what we agree now? :-) matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[qtmoko] Wifi && different locations
Hi, I'm struggling a bit with qtmoko and Wifi configs, maybe because I'm new to qtmoko and more used to use FreeBSD systems; I'd like to configure a small set of Wifi zones (where I'm normaly in); in FreeBSD I just expand the file /etc/wpa_supplicant.conf with the required values about WPA-PSK, PSK, etc. and all is fine; my netbook picks up the best of each location when I start Wifi there; and I do not have to enter anything when I go from location A to B; How do I do this in qtmoko? I could finaly manage to configure my own AP at home, say location A; where I could see around 8 other neighbour AP which I'm not interested in to connect; then I moved to location B and the FR offered me the 8 AP of location A (which of course are not visible due to the distance between A and B), and in addition around 8 AP of location B; I could not manage to pick-up the correct AP by its SSID, maybe due to the long list; and had to remove all config "Internet" and start from scratch for location B; this is soemhow boring. Is there an easy config file to pick-up only the AP's I do know (in the sense of credentials)? Or do I do something stupid wrong? matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
El día Sunday, March 02, 2014 a las 07:07:00PM +0100, Radek Polak escribió: > Hi, > do you have modem AT logging category enabled? > > If not try: long press AUX, from Favourites screen context menu use "Add", > select "Logging". Then answer twice "Yes", from > context menu select "Modem AT communication". After restart QtMoko should > work > as expected. ACK. After enabling 'Modem AT communication' in the Categories of logging, it returned to work. Thanks! Is this a known issue? Maybe someting for the FAQ... matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
El día Sunday, March 02, 2014 a las 06:27:44PM +0100, M00R1Z escribió: > Hi Matthias , Hello M00R1Z, > > i hade the same / a similar problem > and asked on IRC > > > what they(forget who it was) told me / what i did : would be nice to know from whom and which what background came this procedure; > > when you're at the menu to give the pin : > - pres the aux-button to go to favorites (this actually worked, without the > sim/phone unlocked) > - press menu (bottom left corner) and "add" > - add Logging (it should be in the list you see) > - press "loggin" which should now be in your favorites menu > it asks if Syslogd should be enabled -> i answered "no" > - press menu (bottom left corner) and "categories" > - Tick off "Modem AT communication" I did all the above exactly; only ticked off 'Networking' and 'Service' which I enabled before to debug something; 'Modem AT communication' was not on; should I tick this on? > - reboot no change of the problem after re-boot :-( Thanks anyway matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
Hi Matthias , i hade the same / a similar problem and asked on IRC what they(forget who it was) told me / what i did : when you're at the menu to give the pin : - pres the aux-button to go to favorites (this actually worked, without the sim/phone unlocked) - press menu (bottom left corner) and "add" - add Logging (it should be in the list you see) - press "loggin" which should now be in your favorites menu it asks if Syslogd should be enabled -> i answered "no" - press menu (bottom left corner) and "categories" - Tick off "Modem AT communication" - reboot All should work now you should be able to see the buttons let me know if this works greetink' M00R1Z Op 2-mrt.-2014, om 14:46 heeft Matthias Apitz het volgende geschreven: > > Hello > > After a reboot it sits now there showing the keypad for the PIN dialog > and above the message 'Please wait ...'; no buttons are below the > keypad; > > I can SSH into the FR through USB and was thinking that it maybe could > have to do with WLAN; so I moved away the file > > root@neo:~# mv /home/root/Applications/Network/config/wlan0.conf > /home/root/Applications/Network/config/wlan0.conf.away > > and restarted qpe: > > root@neo:~# /etc/init.d/qtmoko-neo stop > root@neo:~# . /opt/qtmoko/qpe.env > root@neo:/root# qpe > NeoKbdDriverPlugin:create() > Before call NeoKbdHandler() > 57671 0 > Network : ## General network update ## > Network : QN: no configuration available > Network : QN: no configuration available > 0 > Network : QN: no configuration available > Unable to register with BlueZ service manager... > Unable to register with BlueZ service manager... > Unable to register with BlueZ service manager... > Unable to register with BlueZ service manager... > Unable to register with BlueZ service manager... > Unable to register with BlueZ service manager... > > That's all. What could I do? > > Thx > > matthias > > -- > Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org > E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail > WWW: http://www.unixarea.de/ | X - No proprietary attachments > phone: +49-170-4527211 | / \ - Respect for open standards > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
Op 2-mrt.-2014, om 20:54 heeft Matthias Apitz het volgende geschreven: > El día Sunday, March 02, 2014 a las 08:24:27PM +0100, M00R1Z escribió: > >>> which I enabled before to debug something; 'Modem AT communication' was >>> not on; should I tick this on? >> >> Tick this ON , that's the fix > ^^^ >> :-) >> >>> - reboot >>> >>> no change of the problem after re-boot :-( >> Tick off Modem AT communications as statet above > >> then reboot >> :-) > > On or off, in what we agree now? :-) sorry , my mistake :-/ ON tick it ON make sure it is Ticked / a box with a "V" in ;-) tell me if it works > > matthias > > -- > Sent from my FreeBSD netbook > > Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 > UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) > UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] PIN dialog: Please Wait ... (for ever)
Hi Matthias Op 2-mrt.-2014, om 19:08 heeft Matthias Apitz het volgende geschreven: > El día Sunday, March 02, 2014 a las 06:27:44PM +0100, M00R1Z escribió: > >> Hi Matthias , > > Hello M00R1Z, > >> >> i hade the same / a similar problem >> and asked on IRC >> >> >> what they(forget who it was) told me / what i did : > > would be nice to know from whom and which what background came this > procedure; It was on Qtmoko's IRC channel on irc.freenode.org #qtmoko and my question got answered by "ChristW' (if i can remember correctly) i also had contact with radek polak who gave ChristW the info of how to get around this (i think ChristW told me) > >> >> when you're at the menu to give the pin : >> - pres the aux-button to go to favorites (this actually worked, without the >> sim/phone unlocked) >> - press menu (bottom left corner) and "add" >> - add Logging (it should be in the list you see) >> - press "loggin" which should now be in your favorites menu >> it asks if Syslogd should be enabled -> i answered "no" >> - press menu (bottom left corner) and "categories" >> - Tick off "Modem AT communication" > > I did all the above exactly; only ticked off 'Networking' and 'Service' i didn't tick these off AFAIK none of the boxes where ticked off > which I enabled before to debug something; 'Modem AT communication' was > not on; should I tick this on? Tick this ON , that's the fix :-) > >> - reboot > > no change of the problem after re-boot :-( Tick off Modem AT communications as statet above then reboot :-) > > Thanks anyway > > matthias > -- > Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org > E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail > WWW: http://www.unixarea.de/ | X - No proprietary attachments > phone: +49-170-4527211 | / \ - Respect for open standards ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] customizing aux/power button or adding button to home screen
On Sun, 2014-03-02 at 13:31 +, robin wrote: > Hi, > > I would like to be able to access some programs in qtmoko faster, so my > question is: Is there either a way to > > to run an app directly when you press the aux button > > and if so, how can I distinguish the length of a press (I know that the > old android version did start three different processes depending on the > length of time you pressed the power button (very short, ~2sec, ~4secs). > > and if this is all not possible, could someone point me to where I should > start reading to be able to change/extend the homescreen, to add any icon > with a call of that application I want to run. > > and even more advanced is there any chance of bind the this process somehow > to a single icon: > -> Application -> QX -> Select Navit -> Click upArrow in Menu -> Click Launch > > many thanks, > > robin > > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community Hi Robin, The Aux button will generate an interrupt when pressed or released. if you look at /proc/interrupts and find the line starting with "50:", you can see the number increase, every time you press the aux button. You could build a script that reads /proc/interrupts, and start another script to launch you application. There is however no way to distinguish between a "normal" press and one to launch your app. You can use a simple timing loop to check how long the aux key is held, and only start your application when aux is pressed for more then x seconds. Kind regards, Ed ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [qtmoko] customizing aux/power button or adding button to home screen
robin writes: > Hi, > > I would like to be able to access some programs in qtmoko faster, so my > question is: Is there either a way to > > to run an app directly when you press the aux button > > and if so, how can I distinguish the length of a press (I know that the > old android version did start three different processes depending on the > length of time you pressed the power button (very short, ~2sec, ~4secs). I'm afraid I can't remember this, even though I know I have looked at it in the past. I think QtMoko just supports two press durations: short and long. > and if this is all not possible, could someone point me to where I should > start reading to be able to change/extend the homescreen, to add any icon > with a call of that application I want to run. I've attached two patches that maybe will give a small clue here. > and even more advanced is there any chance of bind the this process somehow > to a single icon: > -> Application -> QX -> Select Navit -> Click upArrow in Menu -> Click Launch Sorry, no idea - although this is certainly something I've wanted to. Regards, Neil >From 2f559f5893d2f150479d96e5926532d3462e569d Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Thu, 6 Dec 2012 21:23:30 + Subject: [PATCH 1/2] themedhomescreen: Support TaskManager/showRunningTasks() as an action TaskManager/showRunningTasks() pops up a window with 4 tabs: Favorites, Recent, Frequent and Running, with the Running tab showing initially. I think this is more useful than the Favorites/select() action, which only provides the content of the Favorites tab, and would like to bind my home page Star icon to it. Step 1 for that is to make it available as a bindable action. --- src/server/phone/homescreen/themed/themedhomescreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/phone/homescreen/themed/themedhomescreen.cpp b/src/server/phone/homescreen/themed/themedhomescreen.cpp index d70e52e..2acb47d 100644 --- a/src/server/phone/homescreen/themed/themedhomescreen.cpp +++ b/src/server/phone/homescreen/themed/themedhomescreen.cpp @@ -349,6 +349,9 @@ void ThemedHomeScreen::themeItemClicked(ThemeItem *item) } else if (in == "favorites") { QtopiaServiceRequest e( "Favorites", "select()" ); e.send(); +} else if (in == "taskmanager") { +QtopiaServiceRequest e( "TaskManager", "showRunningTasks()" ); +e.send(); } else if (in == "contacts") { QtopiaIpcEnvelope e("QPE/Application/addressbook", "raise()"); } else if( in == "dialer" ) { -- 1.8.5.3 >From 2768568c4cdfd7f9fa0151c91e7928d5148ce7b8 Mon Sep 17 00:00:00 2001 From: Neil Jerram Date: Thu, 6 Dec 2012 21:23:30 + Subject: [PATCH 2/2] Map Star on the home page to whole task manager, not just Favorites tab --- etc/themes/mokofaen/home.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/themes/mokofaen/home.xml b/etc/themes/mokofaen/home.xml index 1380bc2..36d808c 100755 --- a/etc/themes/mokofaen/home.xml +++ b/etc/themes/mokofaen/home.xml @@ -113,7 +113,7 @@ - + -- 1.8.5.3 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community