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 and headphones at the same time (https://talk.maemo.org/showthread.php?t=71712)

CormacB 2011-04-01 18:58

FM Transmitter and headphones at the same time
 
So I'm sitting next to my sister on the train, and she has forgotten to put music on here phone. No problem I say, you can listen to what I am listening to with the fm transmitter. Except it doesn't work. With the modified fmtxd I can turn on the transmitter with headphones plugged in, but I couldn't find a way to turn the sound in the phones back on. Does anyone know if there is any pulse audio trickery that would get this to work?

MohammadAG 2011-04-01 20:01

Re: FM Transmitter and headphones at the same time
 
Unplug, turn on FMTX, replug in.

leetnoob 2011-04-01 20:05

Re: FM Transmitter and headphones at the same time
 
that's a really great use of the fmtx, assuming the advice given above works!

retsaw 2011-04-01 20:24

Re: FM Transmitter and headphones at the same time
 
Quote:

Originally Posted by MohammadAG (Post 980075)
Unplug, turn on FMTX, replug in.

That works for about 30 seconds then the FM transmitter turns off.

Edit: Or is there some transmitter mod I'm missing? I've got the one modded for the extra frequencies and full power.

MohammadAG 2011-04-01 20:27

Re: FM Transmitter and headphones at the same time
 
Quote:

Originally Posted by retsaw (Post 980082)
That works for about 30 seconds then the FM transmitter turns off.

Hmm, it's kinda of a waste, but you could try this in terminal:

Code:

while true; do fmtx_client -p1 && sleep 25; done
and leave the terminal window open the whole time

CormacB 2011-04-01 20:31

Re: FM Transmitter and headphones at the same time
 
Awesome! And really simple too. Though I thought for a second it wasn't working because I forgot about headphoned :)

Edit: hmm, have to test the time limit.
Edit 2: yeah, it turns off, and replugging my headphones every 10 seconds isn't really going to work.

leetnoob 2011-04-01 21:10

Re: FM Transmitter and headphones at the same time
 
Quote:

Originally Posted by CormacB (Post 980087)
Awesome! And really simple too. Though I thought for a second it wasn't working because I forgot about headphoned :)

Edit: hmm, have to test the time limit.
Edit 2: yeah, it turns off, and replugging my headphones every 10 seconds isn't really going to work.

so are you saying that even with the fmtx_client hack above that it still turns off?

edit: changed the sleep 25 to sleep 10 and it keeps the transmitter on, but i didn't tune in a radio so i dont know if it's actually transmitting or not. also wasnt actually listening to music, but the icon stays on. it then turns off when i terminate the script.

edit: woa! my fm transmitter turned off when i killed the script, but then came back on by itself 30 seconds later and stayed on..

edit: yeah, it doesn't work even with the script.. pity.

retsaw 2011-04-02 10:16

Re: FM Transmitter and headphones at the same time
 
Quote:

Originally Posted by MohammadAG (Post 980085)
Hmm, it's kinda of a waste, but you could try this in terminal:

Code:

while true; do fmtx_client -p1 && sleep 25; done
and leave the terminal window open the whole time

As the others have posted it doesn't work, but thanks for trying. On further investigation the time is somewhat variable, I've timed it at between 22 and 50 seconds between plugging in the headphones and the FMTX switching off, also after plugging in the headphones there is a beep every second over the FMTX the same as you get when you aren't playing anything when the FMTX is switched on.

cheve 2011-04-02 11:37

Re: FM Transmitter and headphones at the same time
 
this thread would be helpful http://talk.maemo.org/showthread.php?p=942163

cheers,

leetnoob 2011-04-02 14:34

Re: FM Transmitter and headphones at the same time
 
haven't tried it yet, but that thread implies the fm transmitter turns off when it hasn't been broadcasting sound for a while, so does the act of plugging in the headphones means the sound is diverted from fm to headphones? all i need is a radio and to stop being lazy, might test it later.


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

vBulletin® Version 3.8.8