• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FM radio: testing instructions and feedback

Scheduled Pinned Locked Moved OS
fm-radio
26 Posts 10 Posters 5.6k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nero355
      last edited by nero355 14 Jan 2022, 17:46

      It's great that you have put effort into this for those who use the feature a lot!

      But...

      I am not one of those people so I won't be testing this on my BQ E5 HD πŸ™‚

      Sorry! :flushed_face:

      My phones :

      • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
      • ZUK Z2 Pro - ZUI Android 8.x
      • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

      P.S. : I am NOT a developer! ;)

      1 Reply Last reply Reply Quote 0
      • M Offline
        mardy @Guf
        last edited by 14 Jan 2022, 19:29

        @guf said in FM radio: testing instructions and feedback:

        @mardy The output of command:

        phablet@ubuntu-phablet:~$ sudo ls -l /dev/fm* /dev/radio*
        ls: cannot access '/dev/fm*': No such file or directory
        crw-rw----+ 1 system system 81, 18 Apr 14  1971 /dev/radio0
        phablet@ubuntu-phablet:~$ 
        

        This looks promising! πŸ™‚ But you will have to play with the udev rules to change the group of the file to android_media, otherwise the phablet user will not be able to open the device.

        1 Reply Last reply Reply Quote 0
        • M mardy referenced this topic on 18 Jan 2022, 16:52
        • E Offline
          eichenbast
          last edited by 26 Jan 2022, 17:21

          Re: FM radio: testing instructions and feedback

          Enabling my device, the Xperia X -- First:

          phablet@ubuntu-phablet:~$ sudo ls -l /dev/fm* /dev/radio*
          [sudo] password for phablet:
          ls: cannot access '/dev/fm*': No such file or directory
          crw-rw----+ 1 system system 81, 18 Oct 27 1971 /dev/radio0

          Second: Install the .debs (fm-radio-service; fm-radio-tools). No problem!

          Third, Start the command-line client:
          phablet@ubuntu-phablet:~$ fm-radio-client.py

          1. Quit
          2. Open tuner
            Choose an action: 2

          That is the result:
          Traceback (most recent call last):
          File "/usr/bin/fm-radio-client.py", line 226, in pick_action
          command.action()
          File "/usr/bin/fm-radio-client.py", line 156, in open_tuner
          tuner_path = service.open_tuner()
          File "/usr/bin/fm-radio-client.py", line 26, in open_tuner
          return self.__service.OpenTuner()
          File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in call
          return self._proxy_method(*args, **keywords)
          File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in call
          **keywords)
          File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
          dbus.exceptions.DBusException: com.lomiri.FMRadioService.Error.ResourceError: Radio backend not available

          Seems to be similar to the output from BQ U Plus, isnΒ΄t it?
          (IΒ΄m not a porter or expert, only a user - but really like fm on my phone and missing that in UT.)

          So, thank u for your work!

          1 Reply Last reply Reply Quote 1
          • E Offline
            eichenbast
            last edited by 27 Jan 2022, 08:14

            What should be the next for the Xperia X?

            M 1 Reply Last reply 18 Feb 2022, 12:07 Reply Quote 1
            • H Offline
              hsce1 @mardy
              last edited by 30 Jan 2022, 16:41

              @mardy
              Wow! FM radio on Ubports would be a dream!

              It is for sure not one of the priority devices but could fm radio potentially also work on the S3Neo?
              zcat /proc/config.gz | grep -n RADIO_IRIS gives:

              2587:CONFIG_RADIO_IRIS=y
              2588:CONFIG_RADIO_IRIS_TRANSPORT=y
              

              https://forums.ubports.com/topic/3652/call-for-testing-samsung-s3-neo-s3ve3g-owners/91

              M 1 Reply Last reply 18 Feb 2022, 12:15 Reply Quote 0
              • ? Offline
                A Former User @mardy
                last edited by 16 Feb 2022, 08:07

                @mardy I have the Redmi Note 9 Pro since yesterday. Since I have to go back from Android 11 to Android 10 anyway, I will download this global version V12.0.3.0.QJZMIXM. Everything else that has to do with the radio I will do at a later date. I tried to get the Redmi Note 7 Pro but no chance.

                M 1 Reply Last reply 18 Feb 2022, 12:17 Reply Quote 0
                • M Offline
                  mardy @eichenbast
                  last edited by mardy 18 Feb 2022, 12:07

                  @eichenbast said in FM radio: testing instructions and feedback:

                  What should be the next for the Xperia X?

                  The syslog (/var/log/syslog) captured while trying the FM radio would be helpful πŸ™‚

                  Edit: ah, sorry, now I see, that this device exposes with the /dev/radio0 device. That's currently not supported, but I'm working on that too. πŸ™‚
                  Can you please download the fmbin program from here (for 64bit devices) or here (for 32 bit devices), then copy it to the device, make it executable, and run it?

                  Once it starts, type:

                  init
                  enable
                  

                  and paste here the syslog. πŸ™‚

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mardy @hsce1
                    last edited by 18 Feb 2022, 12:15

                    @hsce1 said in FM radio: testing instructions and feedback:

                    @mardy
                    Wow! FM radio on Ubports would be a dream!

                    It is for sure not one of the priority devices but could fm radio potentially also work on the S3Neo?
                    zcat /proc/config.gz | grep -n RADIO_IRIS gives:

                    2587:CONFIG_RADIO_IRIS=y
                    2588:CONFIG_RADIO_IRIS_TRANSPORT=y
                    

                    https://forums.ubports.com/topic/3652/call-for-testing-samsung-s3-neo-s3ve3g-owners/91

                    Nice! Please follow the instructions from the comment just above this one πŸ™‚

                    1 Reply Last reply Reply Quote 1
                    • M Offline
                      mardy @Guest
                      last edited by 18 Feb 2022, 12:17

                      @dpitti said in FM radio: testing instructions and feedback:

                      @mardy I have the Redmi Note 9 Pro since yesterday. Since I have to go back from Android 11 to Android 10 anyway, I will download this global version V12.0.3.0.QJZMIXM. Everything else that has to do with the radio I will do at a later date. I tried to get the Redmi Note 7 Pro but no chance.

                      The Redmi Note 9 Pro works as well, but you need to get a couple of binaries into your vendor partition. I created a script to do it, but it's for advanced users only πŸ™‚

                      https://gitlab.com/mardy/xiaomi-miatoll/-/tree/fm-radio/tools

                      ? 1 Reply Last reply 19 Feb 2022, 14:26 Reply Quote 0
                      • ? Offline
                        A Former User @mardy
                        last edited by 19 Feb 2022, 14:26

                        @mardy I'll get that somehow, still have to wait until the bootloader is up. If not, I know there will be radio sometime in the future. I still have my radio app, luckily it works somehow. But I'll try your script first. If I've already read everything, 2 files have to be copied.

                        1 Reply Last reply Reply Quote 1
                        • ? Offline
                          A Former User
                          last edited by A Former User 19 Feb 2022, 14:45

                          Hey @mardy, I modified the vendor partition like on Redmi Note 9 Pro for my Poco X3 NFC, which I ported myself and noticed that the FM radio only works after setting vendor.bluetooth.soc to cherokee (It's empty on my device) manually. I could create an overlay for my port which sets that property, but I don't know if it's the best idea or is there something wrong with the FM service?

                          M 1 Reply Last reply 20 Feb 2022, 09:14 Reply Quote 0
                          • M Offline
                            mardy @Guest
                            last edited by 20 Feb 2022, 09:14

                            @ungeskriptet said in FM radio: testing instructions and feedback:

                            Hey @mardy, I modified the vendor partition like on Redmi Note 9 Pro for my Poco X3 NFC, which I ported myself and noticed that the FM radio only works after setting vendor.bluetooth.soc to cherokee (It's empty on my device) manually. I could create an overlay for my port which sets that property, but I don't know if it's the best idea or is there something wrong with the FM service?

                            Wow, good work!! The fm-radio service explicitly checks for that property to be set to cherokee, but that's just because I saw that the qualcomm FM radio app does the same. You could try to run a getprop on the device and see if there's some other property which can be used to identify the bluetooth/radio chipset, and then I could add it to the fm-radio-service. Or, indeed, setting that property in the vendor partition would be a solution.

                            ? 1 Reply Last reply 20 Feb 2022, 10:20 Reply Quote 0
                            • ? Offline
                              A Former User @mardy
                              last edited by 20 Feb 2022, 10:20

                              @mardy Found it. It's called vendor.qcom.bluetooth.soc on my device.

                              phablet@ubuntu-phablet:~$ getprop|grep cherokee
                              [vendor.qcom.bluetooth.soc]: [cherokee]
                              
                              M 2 Replies Last reply 20 Feb 2022, 21:14 Reply Quote 0
                              • M Offline
                                mardy @Guest
                                last edited by 20 Feb 2022, 21:14

                                @ungeskriptet said in FM radio: testing instructions and feedback:

                                @mardy Found it. It's called vendor.qcom.bluetooth.soc on my device.

                                phablet@ubuntu-phablet:~$ getprop|grep cherokee
                                [vendor.qcom.bluetooth.soc]: [cherokee]
                                

                                OK, I'll update the service to check that property too.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mardy @Guest
                                  last edited by 21 Feb 2022, 20:42

                                  Hi @ungeskriptet, could you please give a try to the fm-radio-service package at https://ci.ubports.com/blue/organizations/jenkins/UBportsCore%2FFM radio service/detail/MR-4/1/artifacts?

                                  Please write your feedback as a comment to https://gitlab.com/ubports/core/fm-radio-service/-/merge_requests/4 πŸ™‚

                                  1 Reply Last reply Reply Quote 0
                                  • flohackF Offline
                                    flohack
                                    last edited by flohack 21 Feb 2022, 22:31

                                    @mardy one can install all userspace tools by submitting ubports-qa install PR_fm-radio-service_3 actually πŸ™‚
                                    AND: if there is the message that service would be downgraded, answer No...
                                    then, manually mount / - o remount,rw and apt install fm-radio-tools only ^^
                                    the PPA has been added and can be used furtheron

                                    My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                    ? 1 Reply Last reply 1 Mar 2022, 09:24 Reply Quote 1
                                    • ? Offline
                                      A Former User @flohack
                                      last edited by A Former User 3 Jan 2022, 09:52 1 Mar 2022, 09:24

                                      Hello @Mardy, I wanted to ask one more question about your radio story. I have already downloaded this zipped radio file from you. Does it matter where you unzip it, or is there a specific folder or directory where it belongs? I have already translated everything else into German. The thing is already clear to me that I have to go into fastboot mode and flash the superimage. Then when the installer runs, don't tick all the boxes and let it run once, do you? I will try while the device is charged again. The problem my device is already fully set up. Oh, I found your FM app in the App Store.

                                      After consultation with Florian, I'd rather wait and see. But if you want you can also test radio apps for FM that I have created. But I won't continue there because I didn't have any success or I don't have the knowledge. I'll just put you all here in the forum. If not, I'll delete the apps again.

                                      1 Reply Last reply Reply Quote 0
                                      • flohackF Offline
                                        flohack @mardy
                                        last edited by 25 Mar 2022, 20:52

                                        @mardy Late to the party, but works like a charm on BQ E5. You might want to edit this article to mention that the BQ kernels are now patched already.

                                        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                        1 Reply Last reply Reply Quote 1
                                        • flohackF Offline
                                          flohack
                                          last edited by 30 Mar 2022, 08:52

                                          Works also on SHIFT 6mq. But: Can we ship fm-bridge with the service deb? I think that would make things much easier, I forgot about that and it took me now some time to fix it.

                                          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                          D 1 Reply Last reply 31 Aug 2022, 21:43 Reply Quote 0
                                          • D Offline
                                            DPITTI @flohack
                                            last edited by 31 Aug 2022, 21:43

                                            @mardy The FM app does not yet run smoothly on the Miatool Xiaomi Redmi Note 9 Pro after some tests. I have noticed the following errors. The Ukw band runs only up to 105100. Everything above does not work. Is the level for the Empfindlichleit too high or not set for Europe? Otherwise, switching mono and stereo from time to time would make sense.

                                            D 1 Reply Last reply 26 Sept 2022, 10:18 Reply Quote 0
                                            • First post
                                              Last post