maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Odds and ends (https://talk.maemo.org/showthread.php?t=74915)

Addison 2011-09-19 16:30

Re: Odds and ends
 
Quote:

gconftool-2 --type int --set /apps/modest/update_interval 1
gconftool-2 --type boolean --set /apps/modest/auto_update True
Okay, so this only works some of the time and I haven't quite figured out the pattern just yet.

Just because I turn on the Auto Update, which it always will do, sometimes it seems like it's not actually running.

Do I need to launch some process to kick start this thing going every time?

I would love to hear back from someone on this. :)

Addison 2011-09-20 19:19

Re: Odds and ends
 
It's running perfectly right now and giving me instant notifications for both email and SMS messages.

Could someone stab a guess as to what process is running this update check and how to kick start it without going to the Application-->Email program?


830 user SW< 9636 339 11.1 7.5 matchbox-window
6584 user RW 3944 6581 5.5 3.1 top
786 root SW< 11836 339 4.6 9.3 Xomap
1025 user SW< 45736 989 3.7 36.0 maemo-launcher
6580 user SW 36276 989 3.7 28.5 maemo-launcher
3699 user SW< 94904 989 0.9 74.7 maemo-launcher
6573 user SW 67364 1319 0.0 53.0 browserd
1390 user SW 51404 1 0.0 40.4 gnome-vfs-daemo
1319 user SW 40568 1 0.0 31.9 browserd
1204 user SW< 33180 989 0.0 26.1 maemo-launcher
989 user SW< 21292 1 0.0 16.7 maemo-launcher
1303 user SWN 17108 339 0.0 13.4 metalayer-crawl
1297 user SW 16640 339 0.0 13.1 mediaplayer-eng
3014 root SW< 14672 339 0.0 11.5 advanced-system
1114 nobody SW< 8080 339 0.0 6.3 dnsmasq
971 root SW< 7888 339 0.0 6.2 ke-recv
1208 user SW< 7444 339 0.0 5.8 osso-media-serv
826 user SW< 7272 339 0.0 5.7 sapwood-server
1258 user SW 5260 339 0.0 4.1 alarmd
1276 root SW< 5112 339 0.0 4.0 hulda
905 root SW 4836 339 0.0 3.8 multimediad
6581 user SW 4784 6580 0.0 3.7 bash

auouymous 2011-09-20 19:58

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1092762)
Could someone stab a guess as to what process is running this update check and how to kick start it without going to the Application-->Email program?

1303 user SWN 17108 339 0.0 13.4 metalayer-crawl

Don't use modest and rarely use claws for email tasks but why are you running metalayer-crawler? Do you use media player? If not, you can use asui-settings : services to uncheck and stop it.

Addison 2011-09-20 23:02

Re: Odds and ends
 
Thanks A.

I just reflashed yesterday and totally forgot about metalayer-crawler.

Addison 2011-09-21 00:25

Re: Odds and ends
 
Yes! I think I definitely got it now. :)

It was just a matter of stopping MCE, changing the notification values, then restarting MCE and restoring the brightness settings along with auouymous' set-backlight script.


Turning on 1 minute notifications:
Code:

blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
/etc/init.d/mce stop
gconftool-2 --type int --set /apps/modest/update_interval 1
gconftool-2 --type boolean --set /apps/modest/auto_update True
sudo /etc/init.d/mce start
/usr/bin/set-backlight `gconftool-2 --get /apps/adv-backlight/brightness`
restore_value()
{
  gconftool-2 --type $1 --set $2 `gconftool-2 --get $2`
}
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 120
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
restore_value int /system/osso/dsm/display/display_dim_timeout
restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled
restore_value bool /system/osso/dsm/display/display_on_with_charger


Turning it off:
Code:

bank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
/etc/init.d/mce stop
gconftool-2 --type boolean --set /apps/modest/auto_update False
sudo /etc/init.d/mce start
/usr/bin/set-backlight `gconftool-2 --get /apps/adv-backlight/brightness`
restore_value()
{
  gconftool-2 --type $1 --set $2 `gconftool-2 --get $2`
}
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 120
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
restore_value int /system/osso/dsm/display/display_dim_timeout
restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled
restore_value bool /system/osso/dsm/display/display_on_with_charger



Oh, and auouymous, I don't use any of these mail apps either.

I'm only using it for the LED alerts so I no longer have to check my Gmail account anymore. :)

auouymous 2011-09-21 00:27

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1092886)
I just reflashed yesterday and totally forgot about metalayer-crawler.

Did ASUI break your system?

Addison 2011-09-21 00:51

Re: Odds and ends
 
No. Not at all. In fact, I wish that I would have jumped on your incredible app a long time ago! :)

What happened was that I got a little carried away and kept installing junk until I was left with only 1 kb in flash memory.

Oops! :D

By the way, if there's any way to incorporate the above scripts into ASUI, that would be fantastic.

It basically works just like Google Talk on my Windows PC.

If you forward your Google Voice messages to your gmail account, you'll receive instant notifications on all new messages, SMS, Voice Mail, missed calls, and emails.

You could do this before, but now, you no longer have that 5 minute delay, and when texting with someone, this makes a huge difference. :)

auouymous 2011-09-21 01:39

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1092944)
By the way, if there's any way to incorporate the above scripts into ASUI, that would be fantastic.

Starting and stopping MCE in ASUI, not going to happen. Restarting MCE causes more problems than you think, such as bringing up the device lock keypad and might cause alarmd problems.

After 0.6.0 is released I plan on adding 4 (maybe more) half widgets (the clock is a half widget, volume is a full widget) to ASUI that can each hold 2 buttons. I will also be adding 4-6 command buttons that you can set commands to run as root or user and give them a name and maybe an icon. You'll be able to move any button between the button bars and the new button widgets. Then you can put your scripts in files and call them from buttons in ASUI. :)

the number of button half widgets and command buttons can easily be increased if anyone thinks there should be more.

Addison 2011-09-21 02:09

Re: Odds and ends
 
That's a great idea!

Most likely I'll use those slot widgets to change different profiles for Xbindkeys.

I tend to use Quickswitch the most.
http://talk.maemo.org/showthread.php...ht=quickswitch

But the hardware keys sometimes need to go back to default when playing music.

I also have a setup for right clicks to be used with SCUMM and Dosbox.

So yeah, this will definitely come in handy for me. :)

Addison 2011-09-25 04:57

Re: Odds and ends
 
This one should be easy. :)

In my script I'm doing a bunch of junk and then at the end of it I'm launching

/opt/adom/adom

The thing is, this adom file reports not being able to find qemu-i386.

http://img37.imageshack.us/img37/887...1092500493.png

If I do this in Xterm

cd /opt/adom
./adom

this works just fine.

How can I get this same result in my script?


All times are GMT. The time now is 15:10.

vBulletin® Version 3.8.8