maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   FM Transmitter status menu applet that doesn't hide when FMTX is disabled (https://talk.maemo.org/showthread.php?t=43395)

qwerty12 2010-06-09 00:34

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
No, that one is my fault, sorry.

This status menu applet runs FM Boost without checking to see if it's already set to 118. I'll add a check later on today.
It's 1:34 in the morning so I must piss off and get to sleep now. :)

YoDude 2010-06-09 02:55

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Quote:

Originally Posted by qwerty12 (Post 706422)
No, that one is my fault, sorry.


This status menu applet runs FM Boost without checking to see if it's already set to 118. I'll add a check later on today.
It's 1:34 in the morning so I must piss off and get to sleep now. :)

Good night. By the time you are up I'll be snoozin so I'll post this now.

Well an good but no appology is necessary and I thank you for your efforts so far. I now have much more than I did just a few days ago. :)

As I understand it your app invokes the event perhaps more often than it needs to but I was thinking that we wouldn't know that had another program not coded the notification banner invoked by the event.
I didn't recall seeing this notification banner when FM-Boost was first installed before the other widget . I would think FM-Boost would have created these same events. That is why I thought it was not an OEM notification rather a relic of a since removed "extra".


The same kind of thing occurs if I force a shut down of the device...
@ next boot, a banner left over from the long gone Kernel Power app pops up telling me it is reverting to the stock kernel. It doesn't because I am no longer using Kernel Power and I know the kernel that I am using remains. However, I still see this Kernel Power branded banner none the less.

Not knowing exactly how it is done I was thinking' that there must be a notification configuration file somewhere and I could simply comment out these instances... Or better yet, insert my own dang text. :cool:

I guess I should read up on something about this instead of just shooting from the hip, eh? :D

shazosbourne 2010-06-11 09:12

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Does using this applet chew battery like the desktop widget did? Since removing the FMTX desktop widget, my battery life has improved more than 50%.
Looks like a more than suitable replacement if so.

qwerty12 2010-06-11 09:33

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Quote:

Originally Posted by shazosbourne (Post 710080)
Does using this applet chew battery like the desktop widget did? Since removing the FMTX desktop widget, my battery life has improved more than 50%.
Looks like a more than suitable replacement if so.

Well, it wakes up if the FMTx daemon reports a change to it (like the original), but it does pretty much the same more or less when woken up as the original applet. If I read IDA's output for the original applet correctly, this one also frees the memory properly.

@YoDude
Quote:

Originally Posted by YoDude (Post 706515)
Good night. By the time you are up I'll be snoozin so I'll post this now.

Well an good but no appology is necessary and I thank you for your efforts so far. I now have much more than I did just a few days ago. :)

As I understand it your app invokes the event perhaps more often than it needs to but I was thinking that we wouldn't know that had another program not coded the notification banner invoked by the event.
I didn't recall seeing this notification banner when FM-Boost was first installed before the other widget . I would think FM-Boost would have created these same events. That is why I thought it was not an OEM notification rather a relic of a since removed "extra".


The same kind of thing occurs if I force a shut down of the device...
@ next boot, a banner left over from the long gone Kernel Power app pops up telling me it is reverting to the stock kernel. It doesn't because I am no longer using Kernel Power and I know the kernel that I am using remains. However, I still see this Kernel Power branded banner none the less.

Not knowing exactly how it is done I was thinking' that there must be a notification configuration file somewhere and I could simply comment out these instances... Or better yet, insert my own dang text. :cool:

I guess I should read up on something about this instead of just shooting from the hip, eh? :D

Download it again. :)

Yes, it does run fmboost more times than is necessary but that should be fixed now due to its checking of the current power level. FM Boost is a script that just runs echo. It does nothing else. Our widgets will run the script and then display the banner, independently.

Actually, I believe that message is saying that it just won't load the overclocked settings; the kernel remains in-place.

Anyway, Banners and Banner-like dialog boxes are implemented in the Hildon library (HildonBanner and HildonNote respectively). My widget will call HildonBanner directly.

--

kernel-power-settings is a package consisting of scripts.

FreeDesktop has a specification on notifications: http://www.galago-project.org/specs/notification/

What's special about this is that D-Bus methods are invoked to display those notifications, and most D-Bus methods can be called using the dbus-send tool. Hildon Desktop implements this specification and will pass messages sent to it to a HildonBanner/HildonNote instance.

In short, dpkg -L kernel-power-settings and find out which of those scripts is running dbus-send.

YoDude 2010-06-12 15:11

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Quote:

Originally Posted by qwerty12 (Post 710118)
Well, it wakes up if the FMTx daemon reports a change to it (like the original), but it does pretty much the same more or less when woken up as the original applet. If I read IDA's output for the original applet correctly, this one also frees the memory properly.

@YoDude


Download it again. :)

Yes, it does run fmboost more times than is necessary but that should be fixed now due to its checking of the current power level. FM Boost is a script that just runs echo. It does nothing else. Our widgets will run the script and then display the banner, independently.

Actually, I believe that message is saying that it just won't load the overclocked settings; the kernel remains in-place.

Anyway, Banners and Banner-like dialog boxes are implemented in the Hildon library (HildonBanner and HildonNote respectively). My widget will call HildonBanner directly.

--

kernel-power-settings is a package consisting of scripts.

FreeDesktop has a specification on notifications: http://www.galago-project.org/specs/notification/

What's special about this is that D-Bus methods are invoked to display those notifications, and most D-Bus methods can be called using the dbus-send tool. Hildon Desktop implements this specification and will pass messages sent to it to a HildonBanner/HildonNote instance.

In short, dpkg -L kernel-power-settings and find out which of those scripts is running dbus-send.

Man you pointed to the fishing hole and told us what bait you used... You have even offered us your surplus fish!


You truly are the best dude...

Warmest regards,
YoDude


"I see.", said the blind man...

YoDude 2010-06-14 00:31

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Dude,
Last night I got a chance to do some real world testing and this widget passed with flying colors. The test included transmitting music from my N900 into a taverns sound system via their FM reciever for approximately 3.5 hours. While this occured the N900's browser was used to look up lyrics, all kinds of arcane trivia, and to verify or disprove the nightly quota of general barroom BS.

As a result your widget has received the coveted 4 Cocktail, Bartender's Approval rating. :)

Since you did all the work on this widget, for each Cap'n Morgan and Coke I consumed while I conducting the test, I made sure that I had a corresponding one of equal size and value on your behalf. I figured it was the only fair thing to do. :D

Needless to say a good time was had by all. Thanks!

Livinmalife 2010-06-17 20:46

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Works like a charm... Cheers guys....

Was just thinking I needed this!

xuggs 2010-06-19 10:22

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
The path seems to be dead.
_http://www.freemoe.org/users/qwerty12/fmtx_status_menu_item.so

qwerty12 2010-06-19 10:31

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Quote:

Originally Posted by xuggs (Post 721488)
The path seems to be dead.
_http://www.freemoe.org/users/qwerty12/fmtx_status_menu_item.so

'Tis because Freemoe is down. Don't have a copy, sorry.

handaxe 2010-06-19 11:50

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
You might be able to pick up a copy via google cache but it is dated 5 Jun and qwerty12 made further changes on the 9th.

HA


All times are GMT. The time now is 08:58.

vBulletin® Version 3.8.8