Page 7 of 11

Posted: Sat 04 Jul 2009, 16:45
by Sylvander
Finally got around to installing version 0.9 in BoxPup 4.1.3, and it seems to be working perfectly.
It auto-plays.
The 1st track plays, then onto the 2nd track etc. :D

Posted: Sat 11 Jul 2009, 13:42
by 01micko
Hello Sigmund :)

Ok, this may surprise many of you, but I can run pCD on a 80486dx 50MHz with 32MB of ram. Almost perfectly in Barry's 218 (full install, with 128MB swap) revamp of the Puppy 2 series.

When I say "almost", there is some stutter, but it is minimal... if it were playing in front of a bunch of partygoers, no one would notice. 8)

I tested 2 cds so far... that 'Misdirection' one (I'll mail that one to you if you want Sigmund... it's not quite heavy metal but is definitely hard rock, Australian flavoured, :twisted: ) which has text on the cd and it works fine... tested 'skip' and highlighting a track... slow... but! 486? :lol: . Now, here is another interesting part, I quit the "Misdirection, Cast No Shadows" cd and pressed 'eject'... fine..ok... loaded "Nirvana, Nevermind" and clicked 'read cd', without closing.... (thought... 'doomed to fail'...) and it worked perfectly! Up came the track list. Played automagically. With even less stutter!

Originally, I thought I'd be amazed to even see a track list. But now I am just happy! My 486 is not a useless pile of proverbial!

This pales in comparison to my tests on the 'Dino'... :lol:

Thanks!

Posted: Sat 11 Jul 2009, 15:21
by 01micko
For what it's worth I loaded a third CD, 'Judas Priest, RockaRola' ...(Gull remaster version)... on the old piece of junk and pCD continued on and played the disc, but the gui stopped after the third track. When it did stop (the gui) the CD played to the end with no stutter at all. However the gui did seem hung at track 3.

I dunno if this is any help, but it can't be too much harm :)

Posted: Sun 12 Jul 2009, 08:01
by zigbert
Mick
I think it's great that it (partly) worked on your dino. If the gui hangs on your main system too, I would continue the bug-search.....


Thanks for reporting
Sigmund

Posted: Sat 18 Jul 2009, 04:50
by 01micko
Sigmund

I've done some hacking of pCD to use for my pre-dino... the 486.

I cut the gui right down to just the buttons, no splash screens, and just a refresh button for when a new cd is inserted, does the same thing as "read cd".

There are no tracks listed or anything, it just plays the cd, this is just something I did for myself for really low spec gear... erm, puppy shouldn't even run on a 486 with 32meg of ram! It does seem to work better on the "ol' hunk of junk"... perhaps a lower gtk overhead. 8)

All your code in the 'func' file is largely unchanged... I'm just experimenting with what I can take out safely. :)

With your permission I would like to post it as a .pet, some people may find it useful.

I call it "pcdlite"

Mick

Posted: Sat 18 Jul 2009, 07:39
by zigbert
Mick
Of course you should share it. That is the way open source survives.


Sigmund

Posted: Sat 18 Jul 2009, 08:05
by 01micko
http://www.murga-linux.com/puppy/viewto ... 758#324758

That's it! It has been running fine for a few hours on the ol' bitch!

Cheers

Mick

Posted: Thu 23 Jul 2009, 19:02
by Kenny-M
What happens to:

while [ $NR != $TOTAL_NR ]; do

If the variables NR or TOTAL_NR do not exist? Wouldn't
the while fail?

Maybe the following would help:

while [ "${NR}" != "${TOTAL_NR}" ]; do

Posted: Fri 24 Jul 2009, 08:25
by zigbert
Kenny-M
You're right about that while-loop will fail if NR or TOTAL_NR doesn't exist.

Have you experienced any errors? I can't see the reason why these variables shouldn't contain any value.


Sigmund

Posted: Fri 24 Jul 2009, 17:49
by Kenny-M
Zigbert,

I thought I was replying to a question. However that question no longer appears to be in this thread? Hum?

Anyway it's an old school thing. A rule I learned many years ago under Unix. If the variable isn't defined the script gets confused and the field basically becomes a blank.

Another old trick was to force something to be there like:

if [ "X${var}" = "Xtestword" ] then

If var is blank or not defined X would still be there at the beginning. However the match string would also require X as in Xtestword.

Thanks.

Posted: Fri 24 Jul 2009, 18:56
by Kenny-M
01miko,

The install of pcdlite works OK.

When trying to run pcdlite the screen fills with messages about file
/root/.pcdlite/tmp/pcd-cddb missing.

After looking in the folder I copied pcdlite-cddb to pcd-cddb
then the program started however as the tracks were clicked
through there was no audio.

Also, why does pcdlite try and connect to the internet?? Is this
necessary?

Thanks

Posted: Thu 30 Jul 2009, 21:13
by 01micko
Hello Kenny-M

Hmmm,

Funny that pcd-cddb thing you mention, I must have missed it, however I have it working on my really old box as mentioned.

I was experimenting with what I could take out of pCD to get it to run on that old thing. The problem seemed to be gtk slowing things down so I only removed what was necessary to get it to run without stutter. The code is entirely based on pCD and I haven't really spent much time on getting it chopped down further. Of course, with no tracks displaying, there is no need for internet stuff. However I may make use of it. The tmp files generated are needed anyway and the code accessing the net is minimal.

Thanks for your interest and if you have any suggestions post in that thread. Much appreciated. I am far from great with bash! :lol:

Cheers :)

Posted: Mon 03 Aug 2009, 08:24
by zigbert
Version 1.0
See main post

changelog
- Language support
- Tooltips support
- Bugfix: startup with no valid disc inserted froze X in Puppy 4.3

Posted: Mon 03 Aug 2009, 08:47
by 01micko
Sigmund

A bug. ">>>>>pCD<<<<<<" (a marker?) is not getting echoed to ~/.pcd/tmp/pcd-playing. However the next line echo 100 >> $WORKDIR/pcd-playing is showing up. Consequently there is a problem showing the song which is playing. This seems very strange. I don't know if this is the problem but the progress bar displays incorrectly when you switch tracks, say you get sick of track 1 and play track 5. Is it the call in /usr/local/pcd ?

Everything else seems fine, nice tooltips 8)

Cheers

Posted: Mon 03 Aug 2009, 10:43
by Kenny-M
I have removed pcdlite because of the previouly reported bug and as I have received no feedback as to why it is trying to access the internet.

Is this necessary? Is this snoopware?

Thanks.

Posted: Mon 03 Aug 2009, 11:10
by 01micko
Kenny-M wrote: Is this snoopware?

Thanks.
:lol: Er, this isn't really the thread for pcdlite. If you downloaded it you will find it again :D . There is a new version, thanks to your post, take a look.

Ah what the hay, I'll make it easy for you...pcdlite thread

Cheers

Posted: Mon 03 Aug 2009, 19:00
by zigbert
01micko wrote:A bug. ">>>>>pCD<<<<<<" (a marker?) is not getting echoed to ~/.pcd/tmp/pcd-playing. However the next line echo 100 >> $WORKDIR/pcd-playing is showing up. Consequently there is a problem showing the song which is playing. This seems very strange. I don't know if this is the problem but the progress bar displays incorrectly when you switch tracks, say you get sick of track 1 and play track 5. Is it the call in /usr/local/pcd ?
Testing now, and Black Sabbaths songs show up in the progressbar here, can you be more specific???????????


Sigmund

Posted: Mon 03 Aug 2009, 20:33
by 01micko
It occurs when you highlight a track and play it. If you leave it alone it is ok.

Posted: Mon 03 Aug 2009, 22:29
by zigbert
Mick, what Puppy are you running?

Posted: Tue 04 Aug 2009, 06:29
by 01micko
ppa-422, on fastish box, athlon 2100+