FM radio
Source:alpine/aports/fplinux-fm
Scan for stations and listen with fplinux-fm in a shell on the phone. FM uses the same outputs as other sound. Check support status and your phone page for FM support, available outputs and boot profiles before following this guide.
These procedures apply to supported UMS9117 phones. FM radio is unsupported on the SC9820E Xiaomi Qin 1s+.
FM needs receiver settings in device data prepared from the same phone before FPLinux is loaded. For a downloaded archive, follow the standalone archive guide.
Equalizer settings
Section titled “Equalizer settings”FM shares the equalizer and limiter settings used for audio files; device data enables both by default. Follow the conditions in the phone checklist before starting FM. If it lists playback with EQ/ALC off, disable both:
amixer -c 0 cset name='EQ Playback Switch' offamixer -c 0 cset name='ALC Playback Switch' offThese settings also affect later file playback. Restore them only for a configuration your phone checklist supports.
Listen to a station
Section titled “Listen to a station”-
Plug wired headphones or another 3.5 mm cable into the headphone socket. The cable is the antenna, so it must stay plugged in even if you listen on the speaker.
-
Scan the band:
Phone fplinux-fm scanThe scan covers 87.5 to 108.0 MHz in 0.1 MHz steps and prints candidate frequencies. A candidate is not always an audible station; listen to confirm it.
-
Play a frequency:
Phone fplinux-fm play 100.0Playback continues until you press Ctrl+C. To stop automatically, add a duration, for example
fplinux-fm play 100.0 --seconds=30.
Run fplinux-fm --help for the full syntax.
Volume and outputs
Section titled “Volume and outputs”FM uses the same volume controls, equalizer and output switches as other playback; see Sound and recording. FM is quiet at low volume levels. Where automatic headphone switching is supported, plugging in the cable selects the headphones. If FM speaker output is supported, turn it on with the cable still plugged in, and optionally turn the headphones off:
amixer -c 0 cset name='Speaker Playback Switch' onamixer -c 0 cset name='Headphone Playback Switch' offUnplugging the cable removes the antenna, even if automatic output switching moves the sound to the speaker.
FM and Bluetooth
Section titled “FM and Bluetooth”FM radio and Bluetooth share a controller. FM works while Bluetooth is off, turning Bluetooth off does not stop FM, and stopping FM leaves Bluetooth on if it was on.
If the receiver stops responding
Section titled “If the receiver stops responding”If an fplinux-fm command reports a timeout, stop using FM and cold-boot the phone: power it off completely as described in End the session safely, then load FPLinux again. Until then, the phone cannot go to sleep.
Limitations
Section titled “Limitations”- FM cannot play while an audio file plays or a recording runs.
- No station names and no calibrated signal strength are available.
- FM radio cannot be recorded.
- The phone cannot sleep while the receiver is on, including during a scan.
- Use the equalizer only where your phone page lists support for FM with it enabled.