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)

xuggs 2010-06-26 17:46

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I am afraid the fmtx status menu by YoDude in post 31 has an issue :( The phone somehow loses it's ability to play any sound at all. Playing a song would come up with media format not supported. unable to play media error. Restarting the phone would fix everything back.

Another thing.. the Save button on Profiles disappears so any changes to the volume of the ringtone or SMS does not save. I experienced this only after enabling the fmtx status menu applet. For now I will have to switch back to the stock one.

YoDude 2010-07-02 04:18

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

Originally Posted by xuggs (Post 730427)
I am afraid the fmtx status menu by YoDude in post 31 has an issue :( The phone somehow loses it's ability to play any sound at all. Playing a song would come up with media format not supported. unable to play media error. Restarting the phone would fix everything back.

Another thing.. the Save button on Profiles disappears so any changes to the volume of the ringtone or SMS does not save. I experienced this only after enabling the fmtx status menu applet. For now I will have to switch back to the stock one.

This would happen to me sometimes using the stock app.

I have actually gone back to the first one Faheem created using FM Boost. It pops up the notification banner after each source is played but it is rock solid with regard to other Hildon events... If you use Sygic you won't be able to use voice but I'm pretty sure that this is may be an issue with PR1.2 that may be exposing some quick and dirty hildon code from Nokia.

In any event it invokes FM Boost after all hildon events and as a result, doesn't seem to get lost because of these events.

I use it for a couple of hours every day, and other than Sygic... it rocks on.

I will post that version up if anyone is interested. :)

rooster13 2010-07-15 17:59

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

Originally Posted by qwerty12 (Post 723917)
I forgot to unlock the mutex if the power level is already 118. Will fix tomorrow.

Any news about this fix?

qwerty12 2010-07-31 16:58

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
So... there I was, on the Internet, looking at po^H^H^HMaemo stuff, and found this by jacekowski of Chromium fame.

I won't bother repeating its advantages, but it has one disadvantage: fmtx_client must be used - you can't go through the FM transmitter Control Panel applet and enable it from there as it has its own checks. It's not possible for me to create a replacement of that easily so, yeah, I won't bother...

However, what I can do is remove the hacks introduced by me in the boost_variant, clean up my code a little and add support for enabling the transmitter through the applet directly without having the checks of the Control Panel applet.

Usage:
* Tapping once on the button will bring up the Control Panel applet.
* Holding the button down will either quickly disable/enable the transmitter depending on its state.

http://www.freemoe.org/users/qwerty1...731-175624.png

DEB and source: http://www.freemoe.org/users/qwerty12/fmtx2/

rooster13 2010-07-31 17:55

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Excellent idea that when u hold the button it enables / disables the transmitter.

Works well now thank you.

So I guess all the boost stuff is removed and the boost shold be used separetely?

qwerty12 2010-07-31 18:02

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

Originally Posted by rooster13 (Post 771568)
So I guess all the boost stuff is removed and the boost shold be used separetely?

With that fmtxd, I don't even need FM Boost anymore; the power level always stays at 120 despite if it's plugged into a computer/wall charger or not.

rooster13 2010-07-31 19:30

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabledjacekowski
 
Ok so I forgot to install that jacekowskis fmxtd...

How do you install it?

rooster13 2010-08-02 10:27

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Ok, got it now, I had to copy the new fmxtd binary to /usr/sbin directory and give it chmod 755 to make it work.

Of course made a back up of the original fmxtd before doing this...

rooster13 2010-08-02 18:22

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I'm really liking this new FM Transmitter status menu applet!!! Especially now when it works by tap & hold.

I was just wondering could the same thing be done to the Bluetooth status menu applet? It would be really great if it worked like tap & hold enables / disables Bluetooth...

qwerty12 2010-08-03 01:01

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

Originally Posted by rooster13 (Post 773347)
I was just wondering could the same thing be done to the Bluetooth status menu applet? It would be really great if it worked like tap & hold enables / disables Bluetooth...

The closed Bluetooth applet depends on way too many closed components so writing a clone (for me) is out of the question. However, to enable tap-and-hold, all I need is an instance of the button; and I can get this FMTx applet o'mine to get me that. However, there'd be a delay (short, I think...) to get the button. I'm also not familiar with BlueZ's API, and I've been writing enough DBus-GLib code these past few days to give me a perm. headache, so dunno...

YoDude 2010-08-03 02:22

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

Originally Posted by rooster13 (Post 772889)
Ok, got it now, I had to copy the new fmxtd binary to /usr/sbin directory and give it chmod 755 to make it work.

Of course made a back up of the original fmxtd before doing this...

Excactly... I just got around to doing this myself and was going to report the same. Ah, life as it should be and...

Code:

cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level
...reports 120. WooHoo!


1. Make sure FMTX is off before attempting to change the binary to jacekowski's

rooster13 2010-08-03 04:43

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

Originally Posted by qwerty12 (Post 773760)
The closed Bluetooth applet depends on way too many closed components so writing a clone (for me) is out of the question...

No worries mate, thx for looking into it.

Sphinx780 2010-08-05 17:36

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Ok guys, I'm totally new at this so bare with me. I'm going to walk you through what I did and see if I missed a step. I've got this up and running but I only got 120 the first time I ran the transmitter, now it's stuck at 110.

I came to this thread late so the only time I've started to set this up was from Qwerty12's post on #44. So, followed the link, dl'd fmtx_status_menu_item.so and then used Mohammed's xterm copy paste tutorial on page 1 of this thread to back up the original and set up the new file properly...the status bar works as expected, I have made sure to use the status bar when turning on the transmitter. The very first time I turned on the fm trans from the status bar, I was at 120, now the max I get is 110. I can still get 118 using the simple fmtx widget but was hoping to do away with it ;-)

I also attempted a copy and paste of the file again, to see if that would correct the issue making sure the FMTX was off.

If anyone has an idea on what I may need to correct and has the patience to walk me through it a bit I would appreciate it. I'm more than willing to learn but am still very green.

James_Littler 2010-08-05 17:39

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I think 120 caused interfearance so thats why fm boost boosts to 118.

Is there a way to make the icon change when disabled? Like how bluetooth works, i.e. having a red line through the bluetooth icon when it's off.

Sphinx780 2010-08-05 18:10

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I'm fine with either 118 or 120...but I liked the idea of just being able to use the status menu for all of my fmtx needs. If turning on the fmtx through the menu worked as the other chaps have it working, it'd go to 120 instead of the 110 I'm now seeing and I wouldn't need to bother keeping the FMTX widget to get the boost.

I just get puzzled when something works the first time I try it and then gives me a different response from then on...makes me think I screwed something up when doing the install.

rooster13 2010-08-05 18:37

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Could you post the output of:
Code:

cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level
You have to be root first.

Also couple of things to check:
1) Have you rebooted your N900?
2) You have copied jacekowskis fmtxd binary to dir: /usr/sbin/ ?
3) The fmtxd binary has been given chmod 755?

Get root on your X-terminal (sudo gainroot or just type root) and do ls -ltr fmtxd* in dir /usr/sbin/ and post the output here.
Mine looks like this:
Code:

Nokia-N900-44-1:/usr/sbin# ls -ltr fmtxd*
-rwxr-xr-x    1 root    root        30912 Feb 25 16:31 fmtxd.bak.02082010
-rwxr-xr-x    1 root    root        30912 Aug  2 13:16 fmtxd


Sphinx780 2010-08-05 19:07

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

Originally Posted by rooster13 (Post 776883)
Could you post the output of:
Code:

cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level
You have to be root first.

110

Also couple of things to check:
1) Have you rebooted your N900? Yes
2) You have copied jacekowskis fmtxd binary to dir: /usr/sbin/ ?
3) The fmtxd binary has been given chmod 755?
I have not done 2 or 3 and can't say I even understand what you are asking in 3. I'd definitely need a walk through for this part. I'm assuming the j's binary is different from the .so file I cp over to usr/lib/hildon-desktop? Sorry, very very new to this.

Get root on your X-terminal (sudo gainroot or just type root) and do ls -ltr fmtxd* in dir /usr/sbin/ and post the output here.
Mine looks like this:
Code:

Nokia-N900-44-1:/usr/sbin# ls -ltr fmtxd*
-rwxr-xr-x    1 root    root        30912 Feb 25 16:31 fmtxd.bak.02082010
-rwxr-xr-x    1 root    root        30912 Aug  2 13:16 fmtxd



-rwxr-xr-x 1 root root 30912 Feb 25 16:31 is what I get (I'm assuming this is because I haven't copied the binary to /usr/sbin).

rooster13 2010-08-05 19:57

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Ok, no worries mate we'll get this sorted out in no time :)

So you have the FM Transmitter menu applet installed form qwerty12?

Then you need the jacekowskis modified fmtxd binary. Go to http://jacekowski.org/Maemo/FMTXD and download the modified fmtxd binary from the first post.

Save it under /home/user/MyDocs/tmp (this is under your default document root) with name fmtxd_power_mod.

What you are about to do next is at your own risk, I or anybody else on this thread can not be held responsible if you brick your device.

Open X terminal and type sudo gainroot or root to become root (remember to exit X term after this procedure because with root you can do lots of harm to your device).

Once you have root access then type following commands:
Code:

cd /usr/sbin
ls -ltr fm*
mv fmtxd fmtxd.original
cp /home/user/MyDocs/tmp/fmtxd_power_mod ./fmtxd
chmod 755 fmtxd

So what these commands mean:
First we go to the directory where fmtxd binary is located.
Second we do a listing of the directory to see the original fmtxd binary.
Third we make a backup of the orginal fmtxd binary.
Fourth we copy the jacekowskis modified fmtxd binary to the directory.
And last we change the access rights of the binary so that it is runnable.

It is not necessary to reboot the device by I recommend it, just in case...

If still in doubt, feel free to ask for more info.

Sphinx780 2010-08-05 20:34

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Thanks so much for the walk through, and yep, I'm assuming the risk of something going majorly wrong ;)

Status menu applet gets 120 now but it's brought up another issue. it's set the frequency to 76.0 and when I try to change the frequency to anything else I get 'unable to use FM transmitter'

Any ideas?

rooster13 2010-08-05 20:41

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Yeah Jacekowski modified the binary, to go below european min. frequency.

Try to set the frequency to 87.5 and over it should work with that.

Sphinx780 2010-08-05 21:50

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
That's actually the issue, I try to set it to anything else and I get that error.

rooster13 2010-08-05 22:07

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

Originally Posted by Sphinx780 (Post 777123)
That's actually the issue, I try to set it to anything else and I get that error.

Actually the issue seems to be that you cannot disable the FM transmitter if the frequency is set too low. It still can be disabled from the status menu applet by tap & hold.

Well to me this is ok, since my car's radio won't go below 87.5.

Sphinx780 2010-08-05 22:39

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
It's not allowing me to change it from 76 to anything else, when I try to set it to 87.5 or 88.1 or any other frequency other than the 76 it's set at, it gives me the 'unable to use FM transmitter'. So, it is stuck at 76...and my car radio doesn't go that low :-(

btw-Thanks for your help with getting the binary copied over, I do appreciate the tutorial as I start to get more familiar with xterm. I'm sure there'll be a way to figure this out, if not, it'll be fun trying :)

With your help on what the commands mean, I was able to revert back to the original binary without an issue.

YoDude 2010-08-06 02:54

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

Originally Posted by Sphinx780 (Post 777171)
It's not allowing me to change it from 76 to anything else, when I try to set it to 87.5 or 88.1 or any other frequency other than the 76 it's set at, it gives me the 'unable to use FM transmitter'. So, it is stuck at 76...and my car radio doesn't go that low :-(

btw-Thanks for your help with getting the binary copied over, I do appreciate the tutorial as I start to get more familiar with xterm. I'm sure there'll be a way to figure this out, if not, it'll be fun trying :)

With your help on what the commands mean, I was able to revert back to the original binary without an issue.

I saw that you have the FMTX widget installed and I am assuming FMBoost as well.

I uninstalled these first and rebooted and made sure the transmitter was off before I changed the binary and installed qwerty12's hacked .so file.

I haven't had had the issues you report. Perhaps you can try it again after uninstalling the FMTX widget and FMboost as well as anything else that has been added that calls the chip like the camera driver hack that was posted awhile ago.

rooster13 2010-08-06 06:19

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

Originally Posted by Sphinx780 (Post 777171)
btw-Thanks for your help with getting the binary copied over, I do appreciate the tutorial as I start to get more familiar with xterm. I'm sure there'll be a way to figure this out, if not, it'll be fun trying :)

With your help on what the commands mean, I was able to revert back to the original binary without an issue.

No worries, glad if it was helpful.

Have you tried YoDude's suggestion: uninstall the FMTX widget. I had it uninstalled too, so that may be the reason why you are unable to change the frequency.

Sphinx780 2010-08-06 19:29

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Yep, I did try uninstalling the FMTX widget and FM boost and no go.

When I have time over the next week, I'm going to try reverting to the original .so file and try everything from scratch without the widget and boost installed.

When copying over the binary, I never reverted to the original .so file, just left as-is. Do you think that leaving the new .so file in place when copying the binary over would be a potential problem or does it not matter which order they are done in?

rooster13 2010-08-06 19:34

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I don't see any problem as long as you don't use the FM transmitter before all is set.

Transcend 2010-08-06 22:22

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

Originally Posted by Sphinx780 (Post 777017)
Thanks so much for the walk through, and yep, I'm assuming the risk of something going majorly wrong ;)

Status menu applet gets 120 now but it's brought up another issue. it's set the frequency to 76.0 and when I try to change the frequency to anything else I get 'unable to use FM transmitter'

Any ideas?

I was having the same problem what I did is I installed FMTX Faker from the repos and bamm after that I was able to change the frequency.

Sphinx780 2010-08-12 18:20

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Just wanted to give you guys an update, I haven't had time to check on this yet with work and juggling the newborn at home. Thanks again for the help, when I get back around to this I will update all on how goes it.

tokag 2010-10-11 18:14

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
I have a question, would it be possible to hack/replace the connui-bluetooth-status-menu-item.so to have the same short press to bring up the bluetooth control panel and long press for connect/disconnect functionality (basically adding bluzwich widget toggle bluetooth on/off function to the status menu to free up desktop real estate)? i believe it may also a closed program (as it failed to open when i tried to take a peak at it's code, and a google search for a workaround was unfruitful), but that didn't stop this mod from happening. just a though.

Sphinx780 2010-10-18 16:49

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Ok, had a chance to get back to this. Installed FMTX faker per Transcends suggestion and we have it working no problem. Only took 2 months to get back on board :)

rooster13 2010-10-18 17:04

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Good to hear u got it working :)

Wikiwide 2010-10-20 23:00

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

I use jacekowski's fmtxd, seemingly without problems. Now I would like to try qwerty12's applet, the one from fmtx2 directory. But, I have never seen freemoe.org working. Can anybody post the file here or, even better, send it to extras?

Best regards.

D4rKlar 2010-10-20 23:26

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
http://forums.internettablettalk.com...postcount=1952

Kind Regards,
D4rKlar

hutchinsfairy 2010-10-22 15:05

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
Thanks D4rKlar (and Qwerty12!)

hutchinsfairy 2010-10-25 08:52

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
The version posted by D4rKlar doesn't seem to support the long-click on/off functionality mentioned by Qwerty12. Was there a version with this and, if so, does anyone still have a copy? Thanks in advance!

Laughing Man 2010-10-29 03:28

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
So for some reason I have a .deb called maemo-statusmenu-fmtx_0.11+0m5_armel but it won't install.

YoDude 2010-10-29 04:49

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
1 Attachment(s)
Quote:

Originally Posted by Laughing Man (Post 856108)
So for some reason I have a .deb called maemo-statusmenu-fmtx_0.11+0m5_armel but it won't install.

That's old and includes a reference to FMBoost I believe.

Go old school and use the files in the attached zip.


Quote:

Originally Posted by ReadMe.txt

Contents:

- qwerty12's modded status menu item. Install first:
file = [fmtx_status_menu_item.so ]

Place qwerty12's [.so] in [ /usr/lib/hildon-desktop ], being sure to backup the previous one.

- A copy of my original .so is in the "Original" directory found in this archive:
file = [ fmtx_status_menu_item.so.OEM ]
(This is provided as a fall back. Please make a copy of your own as mine might not be virgin. :) )

- A copy of Jacekowski's modified fmtxd binary is in the "FMTXD" directory found in this archive:
file = [ fmtxd ] (with no extention)

Place Jacekowski's modified fmtxd binary in [ /usr/sbin ] directory on the N900 and give it chmod 755 permisions to make it work.


- A copy of my original binary from PR 1.3 is also found in this archive directory:
file = [ fmtx_status_menu_item.so.OEM ]
(Again, this is provided as a fall back. Please make a copy of your own as a precaution.)

Note: The files in this ZIP are provided as a courtesy by me (YoDude) in support of qwerty12' and Jace's efforts. They will be removed by me if either should request them to be.


2disbetter 2010-11-01 17:55

Re: FM Transmitter status menu applet that doesn't hide when FMTX is disabled
 
anyboldy have the orginal pr 1.3 (if it matters) file of this? i replaced mine without backing up the orginal and now have a wierd glitch in which all the system fonts seem enlarged. Thanks for any help!

2d

Edit: YoDude already provided what I'm looking for. Thanks!

jasonisdavid 2010-11-05 20:29

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

Originally Posted by hutchinsfairy (Post 850231)
The version posted by D4rKlar doesn't seem to support the long-click on/off functionality mentioned by Qwerty12. Was there a version with this and, if so, does anyone still have a copy? Thanks in advance!

Did you manage to find it, its the FMTX2 but obviously for some reason the site is down. Does anyone have a copy of this version?


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

vBulletin® Version 3.8.8