FSO ringtones

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(ringtone and python compile clarification)
Line 3: Line 3:
 
The ringtone in milestone 2 is stored here:
 
The ringtone in milestone 2 is stored here:
  
/usr/share/sounds/Arkanoid_PSID.sid
+
/usr/share/sounds/Arkanoid_PSID.sid
  
 
Now to change it is a little bit of fun.
 
Now to change it is a little bit of fun.
Line 9: Line 9:
 
first in
 
first in
  
/usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.py
+
/usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.py
 +
 
 +
#this will be /var/lib/python-support/python2.5/framework/subsystems/oeventd/receiver.py if you are using FSO under Debian
  
 
Change the line that reads:
 
Change the line that reads:
Line 30: Line 32:
 
Then
 
Then
  
mv /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.pyo /home/root
+
mv /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.pyo /home/root  
 +
#receiver.pyo will be receiver.pyc in FSO under Debian
 +
cd /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/
 +
# or /var/lib/python-support/python2.5/framework/subsystems/oeventd as mentioned above
 +
python
 +
  >>> import py_compile
 +
  >>> py_compile.compile("receiver.py")
 +
  >>> quit()
  
then reboot the phone ( I'm sure there's a better way to regenerate receiver.pyo but I don't know it )
+
/etc/init.d/fso-frameworkd restart && /etc/init.d/zhone-session stop && sleep 2 && /etc/init.d/zhone-session start
 +
#I've only run the above restart commands in Debian so I'm not sure if they are the same in the default FSO image
 +
#the default zhone-session file doesn't have a working restart command, hence the stop->sleep 2->start
  
 
Now you can link /usr/share/sounds/ringtone to any mp3 and that will be your ringtone
 
Now you can link /usr/share/sounds/ringtone to any mp3 and that will be your ringtone
  
 
[[Category:Add-on data]]
 
[[Category:Add-on data]]

Revision as of 02:40, 17 August 2008

Key pages on:
FSO

(Other distributions)


The ringtone in milestone 2 is stored here:

/usr/share/sounds/Arkanoid_PSID.sid

Now to change it is a little bit of fun.

first in

/usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.py
  1. this will be /var/lib/python-support/python2.5/framework/subsystems/oeventd/receiver.py if you are using FSO under Debian

Change the line that reads:

decoder = gst.element_factory_make( "siddec", "decoder" )

to

decoder = gst.element_factory_make( "mad", "decoder" )


and change the line that reads:

filesrc.set_property( "location", "/usr/share/sounds/Arkanoid_PSID.sid" )

to

filesrc.set_property( "location", "/usr/share/sounds/ringtone" )

Then

mv /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.pyo /home/root 
  1. receiver.pyo will be receiver.pyc in FSO under Debian
cd /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/
  1. or /var/lib/python-support/python2.5/framework/subsystems/oeventd as mentioned above
python
 >>> import py_compile
 >>> py_compile.compile("receiver.py")
 >>> quit()
/etc/init.d/fso-frameworkd restart && /etc/init.d/zhone-session stop && sleep 2 && /etc/init.d/zhone-session start
  1. I've only run the above restart commands in Debian so I'm not sure if they are the same in the default FSO image
  2. the default zhone-session file doesn't have a working restart command, hence the stop->sleep 2->start

Now you can link /usr/share/sounds/ringtone to any mp3 and that will be your ringtone

Personal tools
Key pages on:
FSO

(Other distributions)


The ringtone in milestone 2 is stored here:

/usr/share/sounds/Arkanoid_PSID.sid

Now to change it is a little bit of fun.

first in

/usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.py

Change the line that reads:

decoder = gst.element_factory_make( "siddec", "decoder" )

to

decoder = gst.element_factory_make( "mad", "decoder" )


and change the line that reads:

filesrc.set_property( "location", "/usr/share/sounds/Arkanoid_PSID.sid" )

to

filesrc.set_property( "location", "/usr/share/sounds/ringtone" )

Then

mv /usr/lib/python2.5/site-packages/framework/subsystems/oeventd/receiver.pyo /home/root

then reboot the phone ( I'm sure there's a better way to regenerate receiver.pyo but I don't know it )

Now you can link /usr/share/sounds/ringtone to any mp3 and that will be your ringtone