maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Porting rockbox to n900 (https://talk.maemo.org/showthread.php?t=66896)

petur 2011-01-19 17:35

Re: Porting rockbox to n900
 
nope, but the codecs are coded pretty performant.

wmarone 2011-01-19 17:37

Re: Porting rockbox to n900
 
Quote:

Originally Posted by zimon (Post 923922)
Is rockbox using DSP-accelerated decodecs when playing music, like N900's own Mediaplayer is?

N900's own media player is not using DSP-accelerated codecs for music. IIRC, it was found to not provide any significant speedup or reduction in power consumption (mp3/aac are trivial to decode these days.) You spend more CPU power on pulseaudio and mafw-dbus-wrapper.

zimon 2011-01-19 18:48

Re: Porting rockbox to n900
 
Doesn't the mediaplayer use libgstreamer, which then use DSP-accelerated codecs for AAC and MP3 (atleast for AAC)?

thomasjfox 2011-01-19 21:10

Re: Porting rockbox to n900
 
As far as I understood it, the mp3 codec of the original media player doesn't use the DSP, accessing the DSP for it would be too much overhead.

The mediaplayer uses assembler optimized codecs. The same does rockbox.

Fresh Prince of Nowhere 2011-01-20 06:07

Re: Porting rockbox to n900
 
How would I install some of the themes posted?

Xenolith0 2011-01-20 07:50

Re: Porting rockbox to n900
 
Thomas Jarosch

In a very manly way, I feel I need to tell you. I LOVE YOU!

Randomly browsing the dev repo today I found rockbox. I've been wishing and praying someone would port it since I got my n900 late last spring. Finally the n900 has a decent audio player that doesn't suck. I may finally be able to stop dragging my old iAudio X5L around with me everywhere.

Thank you!Thank you!Thank you!Thank you!Thank you!

jerryfreak 2011-01-20 10:21

Re: Porting rockbox to n900
 
is it just me, or does skip tracks not work? when i press the '<< >>' buttons, the 'folder/Q/C' icons pop up. i can hold the '<< >>' buttons on teh touchscreen and seek, but it doesnt skip tracks. likewise, the arrow keys on the keyboard can seek but not skip

ziggadebo 2011-01-20 12:49

Re: Porting rockbox to n900
 
They work fine for me, either using keyboard or screen.

zimon 2011-01-20 17:24

Re: Porting rockbox to n900
 
1 Attachment(s)
Quote:

Originally Posted by petur (Post 923825)
You can increase fontsize, try downloading a manual at rockbox.org for more info

From where to get bigger fonts?
I know it is configured in /home/user/.config/rockbox.org/config.cfg
like "font: /opt/rockbox/share/rockbox/fonts/35-Nimbus.fnt",
but all the fonts which come with rockbox package are way too small or something else is wrong.

Code:

~ $ dpkg -L rockbox|grep fnt
/opt/rockbox/share/rockbox/fonts/14-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/13-Fixed-Bold.fnt
/opt/rockbox/share/rockbox/fonts/13-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/24-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/20-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/14-Rockbox-Mix.fnt
/opt/rockbox/share/rockbox/fonts/10-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/28-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/27-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/35-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/07-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/18-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/08-Nedore.fnt
/opt/rockbox/share/rockbox/fonts/08-Schumacher-Clean.fnt
/opt/rockbox/share/rockbox/fonts/14-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/19-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/13-Fixed-SemiCond-Bold.fnt
/opt/rockbox/share/rockbox/fonts/13-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/08-Namil.fnt
/opt/rockbox/share/rockbox/fonts/35-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/20-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/12-Fixed-SemiCond.fnt
/opt/rockbox/share/rockbox/fonts/10-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/10-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/12-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/12-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/10-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/12-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/16-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/10-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/09-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/14-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/10-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/15-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/32-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/14-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/11-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/16-GNU-Unifont.fnt
/opt/rockbox/share/rockbox/fonts/08-Rockfont.fnt
/opt/rockbox/share/rockbox/fonts/21-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/20-Artwiz-Snap.fnt
/opt/rockbox/share/rockbox/fonts/08-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/08-Atadore.fnt
/opt/rockbox/share/rockbox/fonts/16-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/15-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/12-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/35-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/08-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/13-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/06-Tiny.fnt
/opt/rockbox/share/rockbox/fonts/05-Tiny.fnt
/opt/rockbox/share/rockbox/fonts/09-Nedore.fnt
/opt/rockbox/share/rockbox/fonts/10-Artwiz-Snap.fnt
/opt/rockbox/share/rockbox/fonts/18-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/16-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/29-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/13-Fixed-SemiCond.fnt
/opt/rockbox/share/rockbox/fonts/28-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/09-Fixed.fnt
/opt/rockbox/share/rockbox/fonts/32-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/11-Sazanami-Mincho.fnt
/opt/rockbox/share/rockbox/fonts/22-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/24-Terminus.fnt
/opt/rockbox/share/rockbox/fonts/14-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/12-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/11-Nimbus.fnt
/opt/rockbox/share/rockbox/fonts/18-Fixed-Bold.fnt
/opt/rockbox/share/rockbox/fonts/12-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/08-Rockbox-Propfont.fnt
/opt/rockbox/share/rockbox/fonts/27-Adobe-Helvetica-Bold.fnt
/opt/rockbox/share/rockbox/fonts/17-ProFont.fnt
/opt/rockbox/share/rockbox/fonts/18-Adobe-Helvetica.fnt
/opt/rockbox/share/rockbox/fonts/16-Jackash.fnt
/opt/rockbox/share/rockbox/fonts/16-Terminus-Bold.fnt
/opt/rockbox/share/rockbox/fonts/21-Adobe-Helvetica.fnt



The screenshot attached had:
"font: /opt/rockbox/share/rockbox/fonts/27-Adobe-Helvetica.fnt"

thomasjfox 2011-01-20 19:34

Re: Porting rockbox to n900
 
Quote:

Originally Posted by zimon (Post 924769)
From where to get bigger fonts?
I know it is configured in /home/user/.config/rockbox.org/config.cfg
like "font: /opt/rockbox/share/rockbox/fonts/35-Nimbus.fnt",
but all the fonts which come with rockbox package are way too small or something else is wrong.

I use the "35-Adobe-Helvetica" font and the main menu fills up a bit more than half of the n900 screen.

You might want to try a bigger font from here:
http://rasher.dk/rockbox/fonts/

Check especially the ones in the "100dpi" directory.

zimon 2011-01-20 23:51

Re: Porting rockbox to n900
 
Quote:

Originally Posted by thomasjfox (Post 924871)
I use the "35-Adobe-Helvetica" font and the main menu fills up a bit more than half of the n900 screen.

You might want to try a bigger font from here:
http://rasher.dk/rockbox/fonts/

Check especially the ones in the "100dpi" directory.

Do not know why, but for me that font fills just 1/6 of the N900 screen in main menu and is even worse than with the default font when nothing is in config.cfg configured as "font:"

Dany-69 2011-01-21 00:05

Re: Porting rockbox to n900
 
Guys i'm the only one that feels the need of a good GUI ? xD

Bingley Joe 2011-01-21 05:33

Re: Porting rockbox to n900
 
Would be great if this port listened for commands from bluetooth so that it worked with my car's BT Audio function.

But this is still an awesome port without that -- great work :)

RobbieThe1st 2011-01-21 06:37

Re: Porting rockbox to n900
 
@Dany-69:
The WPS and theme design is well documented; get to work if you want something different!

Fonts wise, would it be possible to just call to maemo's font-rendering library(libfreetype6)? We'd then be able to use all of the n900's TTF fonts, as well as any custom ones that were added.
In addition, we would have aa - fonts at 12px look nice without AA, but at 35px+... It almost -needs- AA.

thomasjfox 2011-01-21 08:23

Re: Porting rockbox to n900
 
Quote:

Originally Posted by Bingley Joe (Post 925173)
Would be great if this port listened for commands from bluetooth so that it worked with my car's BT Audio function.

I never used the bluetooth stuff before. I guess you can use it to rew/ff a track or change the volume? What else does it allow you to do?

/me wonders how those commands end up on the n900. Maybe on dbus?

Cheers,
Thomas

andyph666 2011-01-22 20:27

Re: Porting rockbox to n900
 
yea if you connect bluetooth with my nokia bh503 headphone, i can change tracks, volume etc in the default media player.

Dany-69 2011-01-23 02:01

Re: Porting rockbox to n900
 
Robbie except for a bit of bash (expecially string manipulation..), i'm a biiig noob coder xD ... or better say i'm not a coder :D

By the way ... what is WPS ? What is AA ? Some links if you can :P
If i can, i'll give my contribution gladly :)

RobbieThe1st 2011-01-23 03:00

Re: Porting rockbox to n900
 
WPS = While Playing Screen.
Here are some examples(for iPod 5G): http://www.rockbox.org/wiki/WpsIpod5g
Instructions on customizing one are here: http://www.rockbox.org/wiki/CustomWPS
Basically, find the current .wps file, rename/copy it, and start messing around with it.


AA is Anti-Aliasing. Used in computer graphics mainly, it is done by rendering the scene at several times the final size, then scaling it down to size. This removes jagged object edges. It can also be done manually by makinh edge pixels semi-transparent: http://www.lunaloca.com/tutorials/antialiasing/
In fonts, it makes the edges look smooth, but can also make them look somewhat blurred, especially at small size(and low-DPI screens). Here's an artical describing it: http://en.wikipedia.org/wiki/Font_rasterization.

For a practical example, look at the smoothness of the N900's fonts compared to the ones in Rockbox. You may need to enlarge it before you can tell the difference in some cases.

Dany-69 2011-01-24 02:39

Re: Porting rockbox to n900
 
Mmm... guys how to say rickbox to play all the songs of a directory, but including the subdirectories? :/
Or alternatively ... how to choice the directory scanned by the database?

ziggadebo 2011-01-24 14:56

Re: Porting rockbox to n900
 
you can add the directories you don't want the databse to use, it's something to do with a Nowatch line in a file.

However I can't remember what file or location, which isn't a lot of help to anyone.

thomasjfox 2011-01-24 20:14

Re: Porting rockbox to n900
 
Quote:

Originally Posted by Dany-69 (Post 927087)
Mmm... guys how to say rickbox to play all the songs of a directory, but including the subdirectories?

Use the "files" dialog to navigate to the folder and press the right arrow a bit longer. This brings up the context menu, there select "Playlist" and follow the menu to your liking.

thomasjfox 2011-01-24 20:23

Re: Porting rockbox to n900
 
Quote:

Originally Posted by ziggadebo (Post 927407)
you can add the directories you don't want the databse to use, it's something to do with a Nowatch line in a file.

However I can't remember what file or location, which isn't a lot of help to anyone.

Just create an empty file "database.ignore" in the folder you want to be ignored ;)

thomasjfox 2011-01-24 21:20

Re: Porting rockbox to n900
 
Hi,

There's now a wiki page for rockbox:
http://wiki.maemo.org/Rockbox

Hopefully this will help to combine all the infos from this thread :)

Cheers,
Thomas

Dany-69 2011-01-24 22:14

Re: Porting rockbox to n900
 
Thomas... but it seems that the program scans the whole system... root included... :/
So i think that there are really too much directories in which put the file..
A reverse procedure could be the best solution.. :/ (A file that indicate the program if the directory has to be seen, not to be ignored..)
Or maybe, for not leaving files around the directories of the whole n900, could be great adding the "watched" directories in a simple text file, with a patch to a directory for every string.
No way to do something?

If this was bash i could help you :/

Castillo91 2011-01-25 01:03

Re: Porting rockbox to n900
 
@Dany-69

I had the same issue so I did as thomas said. I created a datbase.ignore file in root (just open notepad and save an empty file with that name) and a database.unignore file on my music folder. Hope that helps

porselinaheart 2011-01-25 01:20

Re: Porting rockbox to n900
 
hmm, anyone know how to increase the icon size in the menu? mine are tiny, even after the increase in font size.

TackyTiger 2011-01-25 07:36

Re: Porting rockbox to n900
 
Quote:

Originally Posted by thomasjfox (Post 925220)
I never used the bluetooth stuff before. I guess you can use it to rew/ff a track or change the volume? What else does it allow you to do?

/me wonders how those commands end up on the n900. Maybe on dbus?

Cheers,
Thomas

Yes, it's dbus.

I've got a couple of devices, I can do dbus-monitor dumps if you like. There's skip forward/ back, pause and stop, afaik volume controls the local device.

There's some dumps here in the meantime;

https://bugs.maemo.org/show_bug.cgi?id=8283

ziggadebo 2011-01-25 13:27

Re: Porting rockbox to n900
 
Quote:

Originally Posted by Castillo91 (Post 927817)
@Dany-69

I had the same issue so I did as thomas said. I created a datbase.ignore file in root (just open notepad and save an empty file with that name) and a database.unignore file on my music folder. Hope that helps

Thanks this works great, does it impact on any other application? i.e is the database.ignore file a generic one used by other apps for example the stock media player or is this specific to Rockbox?

thomasjfox 2011-01-26 08:34

Re: Porting rockbox to n900
 
Quote:

Originally Posted by ziggadebo (Post 928132)
Thanks this works great, does it impact on any other application? i.e is the database.ignore file a generic one used by other apps for example the stock media player or is this specific to Rockbox?

This is rockbox specific and should not affect the stock media player.

btw: I'll test the new bluetooth headset support today, let's see how that works out...

md_kks 2011-01-26 10:34

Re: Porting rockbox to n900
 
Bookmarking doesn´t work. can i fix it manually or do i have to wait for the next update. Bookmarking is one of the most important features of rockbox for me.

thank you very much guys:D

TackyTiger 2011-01-26 11:42

Re: Porting rockbox to n900
 
2 Attachment(s)
Quote:

Originally Posted by thomasjfox (Post 928784)
This is rockbox specific and should not affect the stock media player.

btw: I'll test the new bluetooth headset support today, let's see how that works out...

Not sure if they're useful, but I've uploaded them anyway in case.

These are the dbus-monitor --session & dbus-monitor --system output when connecting a motorola bluetooth device and doing the following;

- enable bluetooth
- switch device on
- hold ff
- press ff (skip track)
- hold rew
- press rew (skip track)
- press pause
- press stop (go into fm mode on device)
- switch device off
- disable bluetooth

There's a fair amount of junk in there, but wasn't sure if I cleaned it up I'd accidentally get rid of something useful.

thomasjfox 2011-01-26 12:55

Re: Porting rockbox to n900
 
Quote:

Originally Posted by TackyTiger (Post 928943)
- enable bluetooth
- switch device on
- hold ff
- press ff (skip track)
- hold rew
- press rew (skip track)
- press pause
- press stop (go into fm mode on device)
- switch device off
- disable bluetooth

There's a fair amount of junk in there, but wasn't sure if I cleaned it up I'd accidentally get rid of something useful.

Thanks for the traces. I found the "fast-forward" and "rewind" buttons I didn't map yet. Your headset doesn't seem to send a "stop-cd" condition on stop, it just closes down.

I'll prepare a test build the next days once I've made sure it basically works (with a Windows 7 notebook, my car doesn't have wheel controls...).

thomasjfox 2011-01-26 22:25

Re: Porting rockbox to n900
 
Quote:

Originally Posted by md_kks (Post 928885)
Bookmarking doesn´t work. can i fix it manually or do i have to wait for the next update. Bookmarking is one of the most important features of rockbox for me.

thank you very much guys:D

Thanks, I added this to the known issues list in the wiki.

I already guess the source of the issue (internal rockbox shutdown sequeunce). Fixing this might take a while but will also fix the last.fm scrobbler file and playcount records at the same time.

petur 2011-01-27 08:28

Re: Porting rockbox to n900
 
Thanks for the hard work, bluetooth support is working PERFECTLY with my plantronics backbeat headset now :D

thomasjfox 2011-01-27 08:48

Re: Porting rockbox to n900
 
Quote:

Originally Posted by petur (Post 929696)
Thanks for the hard work, bluetooth support is working PERFECTLY with my plantronics backbeat headset now :D

Thanks. On that note, a new rockbox build is in extras-devel ;)

Changes:
* Bluetooth headset support
* Ignore preinstalled sounds in /usr/share/sounds

A coworker will bring his n800 during the lunch break, so I can test the BT headset support with it, too. Hopefully it will just work out of the box...

fpp 2011-01-27 10:14

Re: Porting rockbox to n900
 
Hey, this is getting really interesting !
Is it possible to use a BT device only as a remote (ie for its buttons), and still use the output jack for a wired headphone ?...

Dany-69 2011-01-27 16:32

Re: Porting rockbox to n900
 
Gorgeous work with the dbus and bluetooth devices ^ ^
Bh505 work great :D
But only one problem... there is a conflict between che default media player and rockbox when pressing play/pause button .... :/
Even the default player detect the dbus segnal and the device get crazy .... before start the music fron the default player.. and one second later the defualt media player stops and rockbox starts ..

No way to solve this ? to give a priorty ?
Tnx ^ ^

jstokes 2011-01-27 16:37

Re: Porting rockbox to n900
 
Dany-69, IIRC it's the default media player widget that allows for headset buttons to work outside of the media player proper. If it happens to be on your desktop, you could try removing it... nicolai's widget, as a replacement, is nice too

Dany-69 2011-01-27 16:38

Re: Porting rockbox to n900
 
o.o where's this widget ? xD

Devel? Name? :)

funkmunk 2011-01-27 16:51

Re: Porting rockbox to n900
 
Installed it from the Devel repos and it seems to work really nice.

I do like the Now Playing screen.Really finger friendly however the other screen might need some more work on the GUI part.

Also i did notice the the CPU consumption spiked whenever Rockbox was open...


All times are GMT. The time now is 16:24.

vBulletin® Version 3.8.8