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

    Copying notifications and ringtones to the PinePhone

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 578 Views 2 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.
    • halucigeniaH Offline
      halucigenia
      last edited by

      Well I got my PhinePhone the other day and one of the first things I wanted to do was copy some files to it so I decided to copy my custom notifications and ringtones to it just like I did with my first Ubuntu Touch device all those years ago.

      No MTP? OK, I thought, and after searching for what to do I set up ssh to the PinePhone.

      Then connected to the PinePhone
      ssh phablet@[IPAddress]
      Made a location to put the files

      mkdir /home/phablet/Downloads/Ringtones
      

      Then used scp from my linux computer to the temproary location as scp did not have permissions to write to the pertinent locations directly.

      scp "/home/[user]/Documents/PinePhone/ringtones/[filename].ogg" phablet@[IPAddress]:/home/phablet/Downloads/Ringtones/[filename].ogg
      
      scp "/home/[user]/Documents/PinePhone/ringtones/[filename].ogg" phablet@[IPAddress]:/home/phablet/Downloads/Ringtones/[filename].ogg
      

      Back on the Pinephone via ssh
      Made the device rewritable

      sudo mount -o remount,rw /
      

      Copied the files to the relevant locations

      sudo cp /home/phablet/Downloads/Ringtones/[filename].ogg /usr/share/sounds/ubuntu/notifications/[filename].ogg
      
      sudo cp /home/phablet/Downloads/Ringtones/[filename].ogg /usr/share/sounds/ubuntu/ringtones/[filename].ogg
      

      Not working? - check file permissions

      chmod 644 /usr/share/sounds/ubuntu/notifications/[filename].ogg
      
      chmod 644 /usr/share/sounds/ubuntu/ringtones/[filename].ogg
      

      I now have my favourite sounds for my notifications and ringtone.
      Next thing is to copy some music and videos and test them out.

      I am sure that there must be a better way, if there is just let me know...

      Nexus4, Meizu MX4, Meizu Pro5, PinePhone UBPorts edition, PineTab, Pixel 3a XL

      1 Reply Last reply Reply Quote 0
      • K Offline
        kugiigi
        last edited by

        You can set a custom ringtone in the settings app without copying them to the system directory. However, custom notification tone is not yet officially supported but you can do it in UT Tweak Tool which basically does the same thing as you did 🙂

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post