LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-09-2007, 06:01 PM   #1
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Rep: Reputation: 31
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer


I do not know if such settings exist, but here is what I have:
NEC ND-3540A 16x DVD-+RW drive with 2MB cache
XMMS 1.2.10
2.6.18.5-i686 kernel
ALSA version 1.0.11 (reported by alsaconf)
...
The problem is that when I listen to mp3s from the above drive, everything is fine for like 5mins then suddenly music stops and I hear the drive spin up and then the music continues after like 3secs. This tells me that buffer of whatever(I don't know what buffer XMMS uses) runs out. Also I would like to increase the time before the drive spins down(I do want it to spin down eventually but not so soon).
This does not happen on windows with winamp. Any clues?
Basically what I am trying to achieve is continuous reading. Also when played from hard drive I don't get interrupts.
Any help appreciated.
 
Old 02-10-2007, 05:20 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
Is it just an xmms problem, or have you tried it with other media players as well? You might be interested in trying out audacious, which is an updated gtk2 fork of xmms. It might work better for you.
 
Old 02-11-2007, 12:23 AM   #3
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Uhh... I wish it was as simple as you say - heres the story:
I downloaded audacious(1.2.2)... compiled successfully. plugins compiled and installed(1.2.5) It seems like a project that has alot going for it. But it is LONG WAYS till being remotely usable. It is so buggy that I am not going to even bother filing the bugs - that would require me first looking over the current submissions and then write detailed description for each one... Sorry maybe another day.
The major flaws:
Crashes on manipulations with file manager, such as dragging in folders(Thunar) xmms does not.
Crashes when I press any button in playlist actions (+,-, list, etc)
audacious has no directory interpretation (ie. does not play files inside a directory if you just specify the derectory unlike xmms)
in every other respect it is much like XMMS but impossible to use.
I could not use it long enough to tell if I have problems since the playlist barely works.
I downloaded and compiled Amarok but unfortinately it does not function without KDE. I do not have KDE installed and I am not planning to.
Any other players you can think of? (I dont have wine installed yet and Winamp was a b1tch to get to work completely on wine... actually it never did, but I got pretty close)
Please, please, please keep posting ideas regarding this - I can clearly see the drive spin down like a minute after music starts playing. Perhaps there is a way to make XMMS to access and replenish the buffer earlier, before it runs out.
 
Old 02-12-2007, 01:02 AM   #4
r00tb33r
Member
 
Registered: Feb 2007
Distribution: Vector
Posts: 318

Original Poster
Rep: Reputation: 31
Never mind the media players - I have the same problem with VLC. It ran out of buffer and there was a pause in music while the drive was spinning up. This is totally a hardware configuration issue.
Any ideas?
 
Old 06-11-2009, 11:33 PM   #5
virtualx
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Rep: Reputation: 15
cd spin down issues - meetoo

I'm having very similar issues.

I tried to disable spin-down on both my drives

hdparm -S 0 /dev/sr1
hdparm -S 0 /dev/cdrom

Now the drive spins down to 1x but the problem persists (though the pauses between when music stops and restarts is much less)

I tried disabling read ahead caching

hdparm -A1 /dev/sr1

but apparently changing look-ahead is not supported.

I don't remember ever having this problem with debian so it could be and OpenSUSE thing, but I honestly don't remember the last time I tried to play a CD on this machine either.

Last edited by virtualx; 06-12-2009 at 12:03 AM.
 
Old 06-12-2009, 12:10 AM   #6
virtualx
LQ Newbie
 
Registered: Oct 2005
Posts: 22

Rep: Reputation: 15
Solved!

Set the CDROM speed to 1x

hdparm -E 1 /dev/sr1
(/dev/sr1 should be your cdrom device; most likely /dev/cdrom or /dev/cdrom0)

Setting this will last until the next reboot.

Last edited by virtualx; 06-12-2009 at 12:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase the serial transmit buffer size in the Kernel. pwlodarczyk Programming 13 01-21-2009 04:39 PM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM
Increase the command line buffer size Akiles Linux - General 3 04-19-2005 11:17 AM
how to increase serial receive email buffer size? HZC Programming 0 02-14-2005 10:32 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM


All times are GMT -5. The time now is 12:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration