• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 393 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.
    • H Offline
      halucigenia
      last edited by 28 Jun 2020, 17:43

      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 28 Jun 2020, 18:02

        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
        1 out of 2
        • First post
          1/2
          Last post