Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Copying notifications and ringtones to the PinePhone

    Support
    2
    2
    190
    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.
    • halucigenia
      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

      1 Reply Last reply Reply Quote 0
      • K
        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
        • First post
          Last post