One of my primary uses for the openmoko is a music player, and I have spent some time trying to improve my listening experience with it. I wanted to make a web page or such on the subject but I am highly unmotivated to do so. In lieu of that, I am posting my findings here. Audio Quality ------------- IMO, good audio quality can be achieved with proper tweaking of the alsa mixer. Some of the settings do nothing while others make the openmoko sound like crap (e.g., bass boost). The state file [1] is what I am using. One can utilize this by over writing the like-named file in /usr/share/openmoko/scenerios . I even find the bass decent, but not ideal. This is a known, and much discussed, hardware issue. Audio Player ------------ When I started my quest, there was no music player that met my needs. The two that were close were pythm and mokoko. Mokoko has more potential, I believe. However, it has (had?) issues resuming from a suspend (crucial for me). That seems to imply an issue with gstreamer - which it utilizes for playback - and that is something I do not want to bother fixing. So, for the short term I turned to pythm and began hacking away at it. The following is a list of changes I made to the 0.5.1 version: 1) Improved responsiveness, especially with regard to starting the next song in a play list. 2) Lowered processing overhead during main update loop. 3) Tweaked the GUI. Most notably, the buttons are larger. 4) Read ID3 tag info at play list load time using python ID3 library. 5) Optionally (default true) disable suspend through enlightenment while song is playing. Change the no_suspend option in the [mplayer] section of /etc/pythm.conf. 6) Automatically pause playback when phone call received, resume on hang-up. Only if running on FSO-based framework (not qtopia phone-kit). 7) Hook directly into alsa for setting/getting the volume. 8) Tweaked nice levels for more consistent playback. Note that these changes apply only to the mplayer back-end and I have no idea ...
--000e0cd229d845e6fe046089cc72 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Results in SHR: All form controls greyed out and unusable except tabs at top. File browser is empty. Playlist is empty (because I can't add files). mplayer backend doesn't load. No way to play music that I can tell. :( -- Thanks, The Digital Pioneer --000e0cd229d845e6fe046089cc72 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Results in SHR: All form controls greyed out and unusable except tabs at top. File browser is empty. Playlist is empty (because I can&#39;t add files). mplayer backend doesn&#39;t load. No way to play music that I can tell. :(<br clear="all"> <br>-- <br>Thanks,<br><br>The Digital Pioneer<br> --000e0cd229d845e6fe046089cc72--
That is the mplayer back-end not loading. Check /tmp/pythm.log to see if there is anything useful in there. You can also try running python /usr/lib/python2.5/site-packages/pythm/mplayer/mplayerbackend.py and seeing if it explodes. I may have missed a dependency. On Thu, Jan 15, 2009 at 1:41 PM, The Digital Pioneer -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
You will need the python-pyalsaaudio package which may not be installed by default. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
just to let you know: bass can be boosted with a capacitator, but no official OM documentation on that one _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
So I have read and am hungrily anticipating more details. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--000e0cd32a0e9abb37046091f8e7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit OK, I installed python-pyalsaaudio and it seems the mplayer backend no longer crashes, but it complains that there's no locale or translation file. Also, my collection is OGG, which doesn't play. When I attempt to load a file, I see a line in the output saying "error executing:'ARTIST'". This makes it (still) impossible to play music. :( The line about the locales is: No Locale found, falling back! Error was:[Errno 2] No translation file found for domain: 'pythm' -- Thanks, The Digital Pioneer --000e0cd32a0e9abb37046091f8e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p>OK, I installed python-pyalsaaudio and it seems the mplayer backend no l= onger crashes, but it complains that there&#39;s no locale or translation f= ile. Also, my collection is OGG, which doesn&#39;t play. When I attempt to = load a file, I see a line in the output saying &quot;error executing:&#39;A= RTIST&#39;&quot;. This makes it (still) impossible to play music. :(<br cle= ar=3D"all"> </p><p></p><p>The line about the locales is:</p><p>No Locale found, falling= back! Error was:[Errno 2] No translation file found for domain: &#39;pythm= &#39;</p> <br>-- <br>Thanks,<br><br>The Digital Pioneer<br> --000e0cd32a0e9abb37046091f8e7--
The locale error is a red herring. I will try to devote some time this weekend to fixing the problem with ogg. I was short sighted when I added the ID3 tag reading and forgot to make it work with ogg too. If you are impatient, you can look in mplayerbackend.py and comment out the part that uses ID3 to read file details. It's in the function that loads files into a play list. On Thu, Jan 15, 2009 at 11:26 PM, The Digital Pioneer -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Thank you Dylan for improving pythm -- few days ago I've set up original version and was pleased to be able to listen to my mp3s from FR. Now I will give a try to your mods as soon as I get some spare time I guess it would be great if you expose your development a bit -- did you start off from SVN checkout of original pythm? may be it is worth creating a branch in pythm's SVN repository, or at least publish your development elsewhere? Or may be Matthias would not mind most of your changes, so they could get in the main line of pythm's development? few days ago (right after I've tried pythm) I've asked on pythm's forum about future developments [1]. Matthias Hans (original author) seems to be busy with other things, but Paul has expressed his desire to collaborate and mentioned that he did already some changes of his own. It would be great to unite the effort, but for that single point of entry for the source is preferred I guess. Keep on useful development! [1] http://projects.openmoko.org/forum/forum.php?thread_id=850&forum_id=669 -- .-. =------------------------------ /v\ ----------------------------= Keep in touch // \\ (yoh@|www.)onerussian.com Yaroslav Halchenko /( )\ ICQ#: 60653192 Linux User ^^-^^ [175555] _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--001636e0adeb9d40f104609d90ab Content-Type: text/plain; charset=ISO-8859-1 Just tried that, and now it all works fine except I can't seem to stop the music once it's playing. -- Thanks, The Digital Pioneer --001636e0adeb9d40f104609d90ab Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;">If you are impatient, you can look in mplay= erbackend.py and comment out the part that uses ID3 to read file details. I= t&#39;s in the function that loads files into a play list.<br> </blockquote><p></p><p>Just tried that, and now it all works fine except I = --001636e0adeb9d40f104609d90ab--
If the sound does not restart playing on resume, it's likely an issue with the ALSA output driver of gstreamer. MPlayer and Pulseaudio had problems with that in the past, but were fixed. If it's that, you just have to fix the error handling so that if ALSA returns -ESTRPIPE you call snd_pcm_resume(); (Maybe check for snd_pcm_state() == SND_PCM_STATE_SUSPENDED first) HTH, -- Tobias PGP: http://9ac7e0bc.uguu.de このメールは十割再利用されたビットで作られています。 _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
The bass is too low, but this can apparently be fixed by using Nice! I always wondered what it was waiting for. The current delay is Will this get more useable volume levels? The current slider only has a few positions: max: slightly too loud. max-1: slightly too low, although useful when talking to someone. max-2: can barely hear that there is any music playing. The only thing I miss then, is an easier way of selecting several songs in one go. currently, clicking one song deselects the previous one. It'd be perfect if I could click all the songs I want, and then click the add button once. I usually pick more than one song from each album. So multiple selection would be nice. Perhaps an "add all" button when you want the entire album too. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Unless I'm misinterpreting, what you want is already there. Just select the directory and add it. This assumes your music is sorted with each album in a subdirectory, which seems pretty common. -Steven _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Ah, so that is what the button with the square do. I use "+" when adding songs. But "+" on a directory merely opens it for viewing. The square does nothing for a single file. Thanks for the tip. Ability to select several (but not necessarily all) songs in one go would still be nice. I.e. mark all the interesting ones and then hit add. Showing which of the songs that already are on the playlist is useful too. Perhaps a different color for those. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
An ipk would be appreciated for an easy testing :) (and maybe upload it to opkg.org?) r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
The bigger buttons are nice! It paused whan a call came in too. :-) Can you get these improvements into the pythm image at opkg and/or SHR? Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Seems I spoke too soon. Everything got better except the pauses between songs - they got much worse. :-( It is faster to restart pythm to play the next song now. The delay is several minutes. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
I am working on a gstreamer version ATM which will allow me to work around the limitations of mplayer. If/when I get this done, I will work on making a package and/or seeing if I can integrate with the main pythm distribution. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Good to hear. The delays I saw disappeared after another restart of pythm. The only problem I see now, is that the play list no longer show. It is always empty, but the songs I selected play anyway. -- View this message in context: http://n2.nabble.com/-All--To-build-a-better-music-player-tp2164014p2208710.html Sent from the Openmoko Community mailing list archive at Nabble.com. _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
I am still in the process of making changes, but I have some packages if anyone wants to try it. This version has the option of using a gstreamer back-end (the default with the packaged config file) instead of mplayer. By using gstreamer, CPU and memory load have been reduced, and I was able to rig it such that track transitions occur without the delays that were present using mplayer. Furthermore, I added tag reading support for Ogg and Flac through mutagen. The program itself is [1]. The package does not require all the other dependencies since technically one does net need to use gstreamer. The dependencies for gstreamer are: [2], gst-plugin-playbin, gst-plugin-mad, python-pyalsaaudio, and possibly others that I missed. Please note, gstreamer has issues with suspend/resume. If the device suspends while the gstreamer back-end is in use pythm will need to be restarted before audio will play again. [1] http://atariland.net/~dreilly/openmoko/audio/pythm_0.5.1-dmr-20090129_armv4t.ipk [2] http://atariland.net/~dreilly/openmoko/audio/mutagen_svn-4350_armv4t.ipk In the mean time, I will keep hacking away at it. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
wonderful - thank you Dylan, pythm feels really nice now with gstreamer.
I wonder if are going to add seeking support to change position within
the song with gstreamer? it would be really great!
btw -- what version of ID3 python's library do you use? om's
repository seems to lack any package for it, so I've just installed the
copy from my debian box which is 1.2-6.2, but that one also pukes with
error executing:'TITLE'
on my mp3s (like someone else reported before I believe)
--
.-.
=------------------------------ /v\ ----------------------------=
Keep in touch // \\ (yoh@|www.)onerussian.com
Yaroslav Halchenko /( )\ ICQ#: 60653192
Linux User ^^-^^ [175555]
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
--000e0cd32d04599da50461ab8e93 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ahhhh, much better!! Gstreamer makes a difference. :) I just wish the volume slider were bigger, it's hard to get my fingernail on it just right... :( Also, is there a way to make the script not exit until pythm exits? It confuses the SHR loading screen when it exits immediately. Really appreciate the mods. Makes a huge difference. Bigger buttons are WONDERFUL, and unless I'm mistaken, the sound is clearer too. --000e0cd32d04599da50461ab8e93 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ahhhh, much better!! Gstreamer makes a difference. :) I just wish the volum= e slider were bigger, it&#39;s hard to get my fingernail on it just right..= . :( Also, is there a way to make the script not exit until pythm exits? It= confuses the SHR loading screen when it exits immediately.<br> <br>Really appreciate the mods. Makes a huge difference. Bigger buttons are= WONDERFUL, and unless I&#39;m mistaken, the sound is clearer too.<br> --000e0cd32d04599da50461ab8e93--
To answer a few questions: 1) The new gstreamer back-end uses mutagen to read tag data from mp3 and ogg and not ID3. You will want to use the package I made for mutagen since no other exists. I did not bother updating the mplayer back-end as consider that deprecated at this point. That one still uses the ID3.py library which I did not include. 2) I would have liked to use mpd, but I have never been able to find a package for it for arm. It is not feasible to stream from a server, since I listen to music in my car. 3) I will publish the packages to opkg.org later today if I remember. Finally, if anyone has any suggestions on how to make gstreamer suspend I will take them. I remember the suggestion of calling snd_pcm_resume(). Unfortunately, pyalsaaudio has no such method ATM, and I have no way of compiling it for arm after making my own changes. On Thu, Jan 29, 2009 at 11:11 PM, Yaroslav Halchenko -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Thank you Dylan once again
what about ability to seek within a song? is it doable for gstreamer?
--
.-.
=------------------------------ /v\ ----------------------------=
Keep in touch // \\ (yoh@|www.)onerussian.com
Yaroslav Halchenko /( )\ ICQ#: 60653192
Linux User ^^-^^ [175555]
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
Yes it is. The problem is the UI more than anything. Since the freerunner is kinda slow and has no accelerated graphics, there is input lag - especially when the CPU is pegged from the decoding. There was a seek in the original pythm and I removed it because of that reasons. I will play around with it. I do not know GTK very well, so if anyone has any suggestions (code) on how to draw better (i.e., bigger) sliders that would be helpful. Knowing such things would help me improve the volume control as well. On Fri, Jan 30, 2009 at 9:58 AM, Yaroslav Halchenko -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
On Thu, 29 Jan 2009 18:09:39 -0500, Dylan Reilly <dreilly@atariland.net> Any idea where I can find python-pyalsaaudio? not found on SHR, can't find a package anywhere. (except armv7a at angstrom) j -- Joel Newkirk http://jthinks.com (blog) http://newkirk.us/om (FR stuff) _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
http://openmoko.truebox.co.uk/repos/mazikeen/fso-testing/ipk/armv4t/python- pyalsaaudio_0.3-ml0_armv4t.ipk _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--001636c5a3bcd7eea80461b1f837 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Dylan, First of all, thanks a lot for sharing your work. Do you mind to add you new version to www.opkg.org, so that the links (and updates) are not lost in the mailing list ? --001636c5a3bcd7eea80461b1f837 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Dylan,<br><br>First of all, thanks a lot for sharing your work. <br>Do you mind to add you new version to <a href="http://www.opkg.org">www.opkg.org</a>, so that the links (and updates) are not lost in the mailing list ?<br> --001636c5a3bcd7eea80461b1f837--
On Fri, 30 Jan 2009 09:31:21 +0000, Al Johnson j -- Joel Newkirk http://jthinks.com (blog) http://newkirk.us/om (FR stuff) _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
It's not been updated in a while. I'm building FSO milestone 5 at the moment which includes the change to python 2.6, so when that's done I should be able to provide a new binary, probably sometime tomorrow. I guess I should request it be added to the task list for FSO and/or SHR. _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
This one should work with python 2.6 http://openmoko.truebox.co.uk/repos/mazikeen/fso-milestone5/python- pyalsaaudio_0.4-ml0_armv4t.ipk _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Before, mplayer took 40%-50% of cpu according to top. Now, pythm-bin uses 48%-49% instead. This when playing stereo .ogg The transitions are perfect though. Good for "The Wall", where background sound sometimes go on from one song to the next. Thank you for doing this - the player is getting really good now. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
For what it's worth, I put an updated version on opkg.org [1]. Since the last version, I: re-enabled seeking (UI for it still has some bugs), made the mplayer back-end use mutagen as well, and stopped the script that runs the program from exiting so enlightenment's start feedback does not disappear so rapidly. [1] http://www.opkg.org/package_1.html -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Hello, first of all, thanks for that great work!
The setup works for me, but i still have an issue; i think it is gstreamer
related, but i'm not sure.
Most mp3s work but with some i got no playback. This is also the case for
the same mp3s played with openmoko-mediaplayer2 (thats why i think it is a
gstreamer issue).
If i call pythm from terminal and play such an mp3, the following is
printed:
---------snip---------
root@benis-gta02v6:/media/card# pythm
root@benis-gta02v6:/media/card# No Locale found, falling back! Error
was:[Errno 2] No translation file found for domain: 'pythm'
new conf
using gstreamer backend
Could not load backend: mplayer: No module named ID3
** Message: don't know how to handle application/x-apetag
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/pythm/gstreamer/gstreamerbackend.py", line
290, in on_player_message
err, debug = message.parse_error()
NameError: global name 'message' is not defined
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/pythm/gstreamer/gstreamerbackend.py", line
290, in on_player_message
err, debug = message.parse_error()
NameError: global name 'message' is not defined
** Message: don't know how to handle application/x-apetag
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/pythm/gstreamer/gstreamerbackend.py", line
290, in on_player_message
err, debug = message.parse_error()
NameError: global name 'message' is not defined
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/pythm/gstreamer/gstreamerbackend.py", line
290, in on_player_message
err, debug = message.parse_error()
NameError: global name 'message' is not defined
---------snap---------
I hope, someone could say some things about that.
Thanks,
Beni
--
View this message in context: http://n2.nabble.com/-All--To-build-a-better-music-player-tp2164014p2307541.html
Sent from the Openmoko Community mailing list archive at ...I tried to install pythm from opkg.org with no success on om2008.12: root@om-gta02:~# opkg install mutagen http://www.opkg.org/packages/pythm_0.5.2-dmr_armv4t.ipk Downloading http://www.opkg.org/packages/pythm_0.5.2-dmr_armv4t.ipk Terminated root@om-gta02:~# opkg install http://www.opkg.org/packages/pythm_0.5.2-dmr_armv4t.ipk Downloading http://www.opkg.org/packages/pythm_0.5.2-dmr_armv4t.ipk Terminated root@om-gta02:~# opkg install pythm mutagen root@om-gta02:~# opkg install pythm mutagen ^[[CInstalling mutagen (svn-4350) to root... Downloading http://www.opkg.org/packages/mutagen_svn-4350_armv4t.ipk Configuring mutagen root@om-gta02:~# opkg install pythm An error ocurred, return value: 2. root@om-gta02:~# wget http://www.opkg.org/packages/pythm_0.5.2-dmr_armv4t.ipk Connecting to www.opkg.org (194.126.200.25:80) pythm_0.5.2-dmr_armv 100% |************************************************************************************************************************************************************************************| 1448 --:--:-- ETA root@om-gta02:~# opkg install pythm_0.5.2-dmr_armv4t.ipk Terminated root@om-gta02:~# Any ideas what might be wrong? I was able to install all the dependencies manually ok. r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Hello geeks, there is a new Linball (http://wiki.openmoko.org/wiki/Linball) version with few improvements: - better sound and music performance - proper opkg dependeces - flippers can be used at the same time (multitouch as Bastian and Brock suggested : http://lists.openmoko.org/pipermail/community/2009-January/040702.html and http://lists.openmoko.org/pipermail/community/2009-January/040703.html) - rotated screen How to install: opkg install http://linball.sf.net/linball-openmoko_0.2_armv4t.opk Enjoy :-) -- Rafael Ignacio Zurita Buenos Aires, Argentina _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Please don't use the Reply button to create a new thread. Good mail client get fucked with that. -- Vincent MEURISSE _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
just a quick trick for users of such a good client as mutt:
you have ability to break 'hi-jacked' thread into a separate one
by using shortcut '#' which corresponds to function 'break-thread' iirc
--
.-.
=------------------------------ /v\ ----------------------------=
Keep in touch // \\ (yoh@|www.)onerussian.com
Yaroslav Halchenko /( )\ ICQ#: 60653192
Linux User ^^-^^ [175555]
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
I know it's been a while since anyone last wrote, but I just thought I would try it on SHR-testing (20080303). When it starts up, it rotates the screen, flashes a couple of times then returns to the window. The bash script is doing it's job, but the exectuble is returning with a: Warning: Audio could not be setup for 22050 Hz 16-bit stereo Reason: There's no reason for running the application. Would you be able to debug this. I'd really like to check this out. I would try it myself, but I am using my phone for daily use now so I want to stay away from it right now. Thanks On Wed, Feb 11, 2009 at 6:52 PM, Yaroslav Halchenko _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Hello, some user reported a similar problem. You need to have the oss-alsa modules loaded. Try with: modprobe snd_pcm_oss modprobe snd_mixer_oss cd /usr/share/linball-openmoko export DISPLAY=:0 /usr/bin/linball Regards, Rafa _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
i had the same problem this fixed it i added those two lines to linball.sh On Tue, Mar 24, 2009 at 9:29 PM, Rafael Ignacio Zurita _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Perfect timing, installed on my FR to demo to peeps at the London meet tonight. Cheers _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--000e0cd14ed847975e0462aaa1e0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ahhhh, excellent! Much better performance, and dual-flipper support is wonderful. :) --000e0cd14ed847975e0462aaa1e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ahhhh, excellent! Much better performance, and dual-flipper support is wonderful. :)<br> --000e0cd14ed847975e0462aaa1e0--
1) Yaroslav Halchenko got me off my lazy butt and we are going to be actively collaborating on further pythm hacking. This is good because he is already correcting my horrible python :^) My git fork can be found at http://github.com/negi/pythm for all those interested. 2) I uploaded a new version to opkg.org. I double-checked this opkg and it is installing fine for me. Changes include: * Add ability to use RequestResource in newer FSO to stop device suspend during playback. This is now the default. The suspension of Enlightenment suspend is still supported by changing "suspend_iface" in the config file. * Fix python execution error when gstreamer fails to play a media file and the exception is being reported. * Internal code clean-up. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
The least I can do is to motivate people ;)
Let me now describe positive side-effects of exposing code in git on
github (instead of SVN on projects.om)
Now anyone of you can
* clone pythm fork (better off from Dylan's one, although I will
keep mine also in sync with his)
* do anything you like -- fixes, enhancements, whatever; and regularly
commit your changes into your local git clone of pythm (nobody will
see those yet since you would be committing into your local copy)
* if you decide that your changes worth exposing and contributing for
others to be used, instead of sending patches anywhere, just
- get yourself account on github (for our purposes free account is
sufficient)
- fork Dylan's or mine repository
- add your fresh fork as an additional remote in your local pythm
clone
- push your changes into your fork on github
Voilà -- now everyone can see your changes, cherry pick or merge them
into his own repository (like mine or Dylan's). That really allows to
facilitate community project ;-) and pythm is imho very well worth such
an effort.
--
.-.
=------------------------------ /v\ ----------------------------=
Keep in touch // \\ (yoh@|www.)onerussian.com
Yaroslav Halchenko /( )\ ICQ#: 60653192
Linux User ^^-^^ [175555]
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
This one worked with SHR of dec.16.
But not with SHR of jan.23. I get:
$ pythm
Traceback (most recent call last):
File "/usr/bin/pythm-bin", line 14, in <module>
main()
File "/usr/bin/pythm-bin", line 8, in main
from pythm import startPythm
File "/usr/lib/python2.6/site-packages/pythm/__init__.py", line 1, in
<module>
from pythm import *
File "/usr/lib/python2.6/site-packages/pythm/pythm.py", line 1, in
<module>
import gtkgui
File "/usr/lib/python2.6/site-packages/pythm/gtkgui/__init__.py",
line 1, in <module>
from pythmgtk import *
File "/usr/lib/python2.6/site-packages/pythm/gtkgui/pythmgtk.py",
line 6, in <module>
from pagelist import *
File "/usr/lib/python2.6/site-packages/pythm/gtkgui/pagelist.py",
line 5, in <module>
from pythm.functions import format_time
File "/usr/lib/python2.6/site-packages/pythm/functions.py", line 6,
in <module>
from mutagen.easyid3 import EasyID3
ImportError: No module named mutagen.easyid3
Installing mutagen like this doesn't help:
opkg install http://www.opkg.org/packages/mutagen_svn-4350_armv4t.ipk
The install goes well, but I still get the same error.
Helge Hafting
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community
Curse all these python 2.5 versus 2.6 issues! The mutagen package was actually built for 2.5 and not 2.6 (my fault). I have fixed this and uploaded a new version to opkg.org. Note that I changed the version number. I have also added a list of the dependencies and where one can acquire them to the main pythm page of opkg.org. Hopefully I remembered all of them. Unfortunately, the packages are all over the place and not consistent python 2.5 versus 2.6. Until a stable/accepted distribution arises, one will need to be mindful of such things and ready to copy files into the correct python lib directory. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
The mutagen problem is fixed indeed. When running pythm, I got this error instead: new conf using gstreamer backend /usr/lib/python2.6/site-packages/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters super(Connection, self).__init__(*args, **kwargs) Could not load backend: mplayer: libpython2.5.so.1.0: cannot open shared object file: No such file or directory Could not load backend: gstreamer: libpython2.5.so.1.0: cannot open shared object file: No such file or directory So I used the mad mans workaround: cd /usr/lib ln -s libpython2.6.so.1.0 libpython2.5.so.1.0 And then pythm works and plays songs. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
FYI, there is a new version of pythm available on opkg.org 2009-02-26 - Version 0.5.4-dmr: ------------------------------- * Fixed many issues with skip and previous. They should behave as expected now. * Removed dependence on pyalsaaudio. Volume changing is handled via the back-ends once again. * Reduced CPU overhead of gstreamer by using a custom pipeline instead of playbin. There is not to much more performance I can squeeze out of the program based on its architecture, I think. The python code itself does very little and hands off all the heavy lifting to gstreamer and gtk. (Speaking of GTK, it takes 5% CPU, as reported from top, to simply redraw the track time in the GUI). Gstreamer and alsa are not the most efficient ways to get sound to come out of a device, I believe. However, my goal is to build upon "sane" components thus leaving only doing the work that needs to be done. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
I installed that into a very recent SHR unstable - total failure. pythm comes up, but I see no files and no directories either. So I can't navigate to where my music is, and I can't try to play anything at all. Some kind of dependency problem, I guess? Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
2008.12 + Kustomizer + opkg.org repository root@om-gta02:~# opkg install pythm Installing pythm (0.5.4-dmr) to root... The required dependencies should be installed already so I guess there's something wrong with the details of the package r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
The package installs fine for me (also under SHR unstable). I have seen seg fault on package install from time to time with misc. packages. Try rebooting. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
I am not seeing this problem. Can you look through /etc/pythm.log and see if there is anything interesting in there, or send it to me? -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
root@om-gta02:/etc# opkg install pythm Installing pythm (0.5.4-dmr) to root... Segmentation fault root@om-gta02:/etc# cat pythm.log cat: can't open 'pythm.log': No such file or directory root@om-gta02:/etc# r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--001517511032074d8e0463ebf729 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Pythm always crashes my opkg too. I just end up downloading the package manually and installing it with "opkg install pkgfile" which works. --001517511032074d8e0463ebf729 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Pythm always crashes my opkg too. I just end up downloading the package manually and installing it with &quot;opkg install pkgfile&quot; which works.<br> --001517511032074d8e0463ebf729--
Sorry, meant /tmp/pythm.log. My brain is in another place sometimes. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Nope, nothing there, the file doesn't exist. r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
If that file does not exist after running the program then something really bizarre or horrible is happening. Suggestions: 1) Try using the mplayer backend just to see if it works. Edit /etc/pythm.conf and change the "backend" item. 2) Run "pythm-bin" from a command line and see if anything useful is reported. You can ignore messages about locales and deprecation. If all the buttons are greyed out and the file list is empty, that suggests that the backend is failing to load. In turn, that could possibly imply a missing python library. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
No I can't run the program because it's the INSTALLATION that segfaults.. see above: root@om-gta02:/etc# opkg install pythm Installing pythm (0.5.4-dmr) to root... Segmentation fault r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
$ pythm No Locale found, falling back! Error was:[Errno 2] No translation file found for domain: 'pythm' new conf using gstreamer backend /usr/lib/python2.6/site-packages/dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters super(Connection, self).__init__(*args, **kwargs) error executing:[Errno 2] No such file or directory: '/media/card/Music/Albums' (The last message is ok, I have my music in a different directory. Usually, navigating there is possible though. But now, the "up button" does nothing and the file list is empty. After quitting, this happens:) delete event occurred destroy signal occurred Exception in thread Thread-2 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py", line 496, in run <type 'exceptions.TypeError'>: 'NoneType' object is not callable Exception in thread Thread-3 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py", line 496, in run <type 'exceptions.TypeError'>: 'NoneType' object is not callable Exception in thread Thread-1 (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 522, in __bootstrap_inner File "/usr/lib/python2.6/site-packages/pythm/backend/backend.py", line 496, in run <type 'exceptions.TypeError'>: 'NoneType' object is not callable And here is /tmp/pythm.log : 2009-03-02 10:35:40,663 DEBUG Unable to set no suspend: org.freesmartphone.Usage.UserUnknown: User :1.30 did not request CPU before releasing it 2009-03-02 10:36:31,734 DEBUG Unable to set no suspend: org.freesmartphone.Usage.UserUnknown: User :1.30 did not request CPU before releasing ...
--000e0cd51a3a0541d2046423ada1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Yeah, Pythm gets mad when you try to use it with a bad directory for music in the conf file. I would say put the right dir in /etc/pythm.conf and you should be OK. **Note**: there are two music dirs in the conf file, one for the mplayer config and another for gstreamer. I always fix both, but changing whichever is part of your backend will probably suffice. --000e0cd51a3a0541d2046423ada1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yeah, Pythm gets mad when you try to use it with a bad directory for music = in the conf file. I would say put the right dir in /etc/pythm.conf and you = should be OK. **Note**: there are two music dirs in the conf file, one for = the mplayer config and another for gstreamer. I always fix both, but changi= ng whichever is part of your backend will probably suffice.<br> --000e0cd51a3a0541d2046423ada1--
* The "cannot set suspend messages" are OK. They are there in debug output for the sake of debugging. Pythm requests CPU resource from FSO to halt suspending during playback. Frameworkd is smart enough to only allow one lock per process. That message is FSO telling pythm that. * I fixed the "volume" problem in 0.5.5. Please upgrade to that version. * Thank you for the bug about the directory structure. I will look into handling that better. Eventually pythm will be able to remember things like directories on its own (without /etc/pythm.conf). I am planning to add some sort of session memory. * I agree that the files should be sorted by track number. Sorting by file name was step 1. The original pythm had no sorting. This is a known TODO. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
FYI, version 0.5.7. is now available on opkg.org. * Seeking works again (gstreamer). * Random play implemented (gstreamer). * Pulled in misc., minor GUI enhancements from Paul TT (developer from whom the this version was branched). * Moved settings around in config. file. All file browsing-related settings are now in one place. * Default music path is now home directory and fixed bug for inability to navigate if initial music path does not exist. * Added icon for .desktop file (borrowed from SHR). * Known issue: Seeking while the repeat function is enabled for MP3 files causes the next instance of the song to play incorrectly. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--=-g9GUnTLyU9s7G1uyVRdM Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Using the mutagen ipk from opkg.org results in failure, remotely and locally. Anyone have suggestions on a work-around? root@om-gta02 ~ $ opkg install mutagen_svn-4350-2_armv4t.ipk=20 Terminated root@om-gta02 ~ $ opkg install http://www.opkg.org/packages/mutagen_svn-4350-2_a rmv4t.ipk Downloading http://www.opkg.org/packages/mutagen_svn-4350-2_armv4t.ipk Terminated root@om-gta02 ~ $ --=-g9GUnTLyU9s7G1uyVRdM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmzO4UACgkQKZ2qDdu5ZP4ESQCghELM7Sb+xbGy+YojJMaxse7I O/0An2BfUw+v5U1Laj2riLSct2v62BlF =OUPm -----END PGP SIGNATURE----- --=-g9GUnTLyU9s7G1uyVRdM--
--000e0cd30af6d035850464932978 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Of course, opkg gives the obligatory segfault. Had to download package manually. :( --000e0cd30af6d035850464932978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Of course, opkg gives the obligatory segfault. Had to download package manually. :(<br> --000e0cd30af6d035850464932978--
On Sun, Mar 8, 2009 at 5:32 AM, The Digital Pioneer I'm sure we're all experienced the opkg.org problems.. Please have a look at this here: http://www.opkg.org/repo.html It tells how the repository is built. Try to find what's wrong there.. Being able to find it would allow everyone a nice smooth opkg.org repository experince.. Anyway, thanks for the new version! r -- | risto h. kurppa | risto at kurppa dot fi | http://risto.kurppa.fi _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Most such opkg.org failures can be solved with wget --no-cache URL on a pc. Then, copy the file to the phone and install. This did not work for mutagen_svn-4350-2, so install mutagen_svn-4350 instead, then mv /usr/lib/python2.5/site-packages/mutagen /usr/lib/python2.6/site-packages/ (Put the whole command on one line, with a space between the two parts. It got too long for email.) After this, pythm works for me. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Thanks, nice improvements! Is it possible to make the tabs on top as tall as the buttons at the bottom? They will be easier to press that way. I have the same wish for the nearly flat volume control - it is hard to grab with my big fingers. Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--nextPart123609352.tG2BcetPzC Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I only miss one little thing When you add an entire directory to playlist, tracks are alphabetically=20 ordered, but, if exists, they should be ordered by track # (from ID3 or ogg= =20 tags). I have a lot of disks without track number on track name, only identified b= y=20 track# on id3/ogg =2D-=20 David Garabana Barro jabber & google talk ID: david@garabana.com Clave p=C3=BAblica PGP/GPG: http://davide.garabana.com/pgp.html --nextPart123609352.tG2BcetPzC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmsisYACgkQGwNvsxVnoXrdBgCdHaN2PTTNN26SdfaGzJb+ujtE ZM0AoLls9kHkGPXK3VCshbPuRUh9m+vi =JAff -----END PGP SIGNATURE----- --nextPart123609352.tG2BcetPzC--
I have reflashed SHR testing. Now I can't install mutagen_svn-4350-2_armv4t.ipk opkg just ends in "Terminated" no matter how I try. :-( Oh well, I'll try copying stuff from python 2.5 :-/ If the distributions are very different, how about separate versions for python 2.5 and 2.6? Helge Hafting _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
I have the same problem. It seems opkg.org is truncating files, and almost every package you try to install downloaded from opkg.org fails with "Terminated". You can try, for example, to download: http://www.opkg.org/packages/pong_0.1_armv4t.ipk It only download 4096 bytes Try to download the same package from: http://scalde.free.fr/index.php?option=com_docman&task=doc_download&gid=4&... 11636 bytes! The last one installs OK, but the one from opkg.org fails with "Terminate" _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Can you run: ar x [package name] correctly? If not then the package is corrupt. The package I uploaded to opgk.org is fine. If it got corrupted somewhere in the stream I cannot be of too much help. You can do what I did to get mutagen in the first place: install it to your desktop and then copy the python files over to the openmoko. I am not going to build packages for multiple versions of python. -- Dylan Maxwell Reilly _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
--nextPart3720727.orDqhbxtqh Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is there any other place where to download latest pythm opk? opk.org's package is still corrupted, and I cannot find it elsewhere Thank you very much! =2D-=20 David Garabana Barro jabber & google talk ID: david@garabana.com Clave p=FAblica PGP/GPG: http://davide.garabana.com/pgp.html --nextPart3720727.orDqhbxtqh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAknBGh8ACgkQGwNvsxVnoXoMEQCfdFlQLw6vo6Fh2zO8wGhSqHs4 2x0AoM1sbx+N7+rpnQkTZkgw+rV3Aplw =pjAy -----END PGP SIGNATURE----- --nextPart3720727.orDqhbxtqh--
Just as a general question, and I apologize to the community if this has been discussed here previously. I wonder if anyone has tried to run VLC from http://www.videolan.org/ on the FR. It is open source, has been around and tested for many years, supports many audio & video formats, streaming source or producer , can be run from the command line and various UI's can be attached. Although perhaps not optimized to be finger friendly out of the box, I'm sure if anyone is inclined to put a nice UI on it with the FR tool set it shouldn't be that difficult. As I said, this has probably been discussed previously and there many excellent technical reasons why it is not a viable solution, but if so would like a summary of why not. cheers Denis _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
