LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2005, 06:30 AM   #1
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Rep: Reputation: 15
Question CD-ROM speed


Hi,

I'm trying to limit the CD-ROM speed with following command:

eject -x 12 /dev/cdrom

but with no success. No errors are returned but my CD-ROM is still making a lot of noise while watching movies.

I have LG Combo DVD x12, CD-RW x52/x24/x52


I know from man page of eject that not all the CD-ROMs work with this command but how can I be sure that mine is one of those. and if so, Is there any other method I can use to reduce CD-ROM speed?

Andrzej
 
Old 01-14-2005, 06:52 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
pre.s: I forgot what is the number for data_rate.

Hi!

The speed of cdrom rotating will not constant. Max 12 speed which means the data_ratex12 would be constant or max out at that. But RPM (rotation per minute) of your CD is not.

To achieve a constant data_ratex12, your CD will spin faster when the data is nearer the whole and slower when the data is far from the center.

And, data_ratex12 doesn't mean the CD RPM wouldn't reach RPM for 24speed or more.. cause, if the cd quality is not good, or the cd-rom is not good. It may take several more spins to get the correct data. It is a built in thing.

Last edited by carboncopy; 01-14-2005 at 07:01 AM.
 
Old 01-17-2005, 06:39 AM   #3
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
carboncopy,

I knew what you have written.
What I want to achieve is to limit speed/ RMP (what ever it is called) and as a consequence reduce the noise produced by my COMBO. This is specially annoying when I want to watch DVD Video. The required transfer is not so big and I don't want to use all the "potential" of my COMBO.
 
Old 01-17-2005, 06:41 AM   #4
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
is DMA enabled for your drive?? If you use xine to watch dvds run "xine-check" (as normal user, not root) and see what it tells you.
 
Old 01-25-2005, 01:18 AM   #5
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
Apparently DMA is disabled.

This is the output of xine-check:

basia@andres-slack:~$ xine-check
Please be patient, this script may take a while to run...
[ good ] you're using Linux, doing specific tests
[ good ] looks like you have a /proc filesystem mounted.
[ good ] You seem to have a reasonable kernel version (2.6.9)
[ good ] intel compatible processor, checking MTRR support
[ good ] you have MTRR support and there are some ranges set.
[ good ] found the player at /usr/bin/xine
[ good ] /usr/bin/xine is in your PATH
[ good ] found /usr/bin/xine-config in your PATH
[ good ] plugin directory /usr/lib/xine/plugins/1.0.0 exists.
[ good ] found unknown plugin: xineplug_flac.so
[ good ] found input plugins
[ good ] found demux plugins
[ good ] found decoder plugins
[ good ] found video_out plugins
[ good ] found audio_out plugins
[ good ] skin directory /usr/share/xine/skins exists.
[ good ] found logo in /usr/share/xine/skins
[ good ] I even found some skins.
[ good ] /dev/cdrom points to /dev/hda
[ good ] /dev/dvd points to /dev/hda
[ hint ] DMA is disabled for your DVD interface.
This will probably result in a serious performance hit when
playing DVDs. You can issue the command
hdparm -d1 /dev/hda
as root to enable DMA. It would be wise to add this command to
some script that is executed executed at boot time.
Note that you probably have to set the DMA mode for your drive as well.
Most DVD-ROMs work fine with multiword DMA mode 2. You can use
hdparm -d1 -X34 /dev/hda
(as root again) to set this mode. Maybe UDMA2 will give you even better
performance, but it only works well with some controllers. You'll
probably need UDMA capable IDE cables for this mode. If you want
to try: make backups of your important data and type (as root again)
sync
hdparm -d1 -X66 /dev/hda
If your System still works fine after this, you probably want to keep
these settings (add them to some boot script).
If your system hangs or behaves very strangely after a few minutes, you
should reboot immediately and never use this setting again on this
machine. Good luck ;-)
press <enter> to continue...

[ good ] found xvinfo: X-Video Extension version 2.2
[ good ] your Xv extension supports YV12 overlays (improves MPEG performance)
[ good ] your Xv extension supports YUY2 overlays
[ good ] Xv ports: YUY2 YV12 UYVY I420 YUY2 YV12 UYVY I420 YUY2 YV12 UYVY I420
 
Old 01-25-2005, 04:42 AM   #6
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
your dvd/cdrw drive is /dev/hda

is that right?? On most machines it'd be hdc.

Anyways, if it is right, do as xine-check adviced and see if it helps.
 
Old 01-25-2005, 11:44 AM   #7
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
yes dvd/cdrw drive is /dev/hda (/dev/hdc is one of my harddrives)


running what xine-check has adviced gives the following output:

root@~\464#hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)




so apparently I cannot enable DMA
 
Old 01-25-2005, 12:16 PM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi,

maybe try " #hdparm -E 12 /dev/hda "

egag
 
Old 01-25-2005, 04:22 PM   #9
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
this is the output:

root@/data\465#hdparm -E 12 /dev/hda

/dev/hda:
setting cdrom speed to 12


but no change in noise. Just like if the command didn't work.
 
Old 01-26-2005, 06:44 AM   #10
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well....did you also try a low speed like " #hdparm -E 2 /dev/hda " ?

edit: i tried " E 1 " and it seems to work here....

egag

Last edited by egag; 01-26-2005 at 07:56 AM.
 
Old 01-28-2005, 05:48 AM   #11
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
egag,

I've tied
hdparm -E 2 /dev/hda
hdparm -E 1 /dev/hda

and even

hdparm -E 0 /dev/hda .

No errors were returned but steel I can hear no difference in noise (maybe there is, but I'm not sensitive enough ).
More over I would expect movie display to "choke" below some cdrom speed, but I can see no negative effect on movie quality.

Maybe this has something to do with the kernel I use 2.6.9

Andrzej
 
Old 01-28-2005, 06:16 AM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Why not just copy your movie in hd then watch it, you will save a little of your cdrom life
time too...
 
Old 01-31-2005, 10:06 AM   #13
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
Why not just copy your movie in hd then watch it, you will save a little of your cdrom life
time too...
but there is small problem I don't really have extra 5 Gb to store a movie and converting it to divix last at least as long as the movie itself.

So I cannot tell to my girlfriend:"Lets watch a movie, tell me which one do do you want, and it will be ready in 1,5 hour."

 
Old 07-22-2005, 12:36 PM   #14
superandrzej
Member
 
Registered: Nov 2003
Posts: 63

Original Poster
Rep: Reputation: 15
I noticed that although UDMA doesn't work under kernel 2.6.X it works just fine under 2.4.X. I do believe that I've enabled all DMA related options in the kernel.
Does anyone know what I might be missing?

under kernel 2.4.29:

root@~\441#cat /proc/ide/hda/settings
name value min max mode
---- ----- --- --- ----
breada_readahead 4 0 127 rw
current_speed 66 0 70 rw
dsc_overlap 0 0 1 rw
file_readahead 0 0 2097151 rw
init_speed 12 0 70 rw
io_32bit 1 0 3 rw
keepsettings 0 0 1 rw
max_kb_per_request 64 1 127 rw
nice1 1 0 1 rw
number 0 0 3 rw
pio_mode write-only 0 255 w
slow 0 0 1 rw
unmaskirq 1 0 1 rw
using_dma 1 0 1 rw


under kernel 2.6.11.7

root@~\447#cat /proc/ide/hda/settings
name value min max mode
---- ----- --- --- ----
current_speed 0 0 70 rw
dsc_overlap 0 0 1 rw
init_speed 0 0 70 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
nice1 1 0 1 rw
number 0 0 3 rw
pio_mode write-only 0 255 w
unmaskirq 0 0 1 rw
using_dma 0 0 1 rw

But coming back to the clue: I still I was not able to change CD-ROM speed under 2.4.X.

Does anyone has any idea what else can I try?
 
  


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
Need more ideas to speed up cd-rom hubcapboy Linux - Hardware 3 10-16-2005 08:19 PM
DVD Rom - Showing: Speed 48X qs_tahmeed Linux - Hardware 3 08-25-2005 02:53 PM
cdrecord - trying to use high speed medium on low speed writer captain-cat Linux - Hardware 2 07-12-2004 06:27 PM
CD-ROM speed too low tmoorman Linux - Hardware 3 10-16-2003 03:39 PM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration