Mercurial > mplayer.hg
comparison DOCS/xml/en/cd-dvd.xml @ 15879:aa466b84b1d3
Slightly restructured, mention more tools, small fixes, cosmetics.
author | diego |
---|---|
date | Fri, 01 Jul 2005 09:33:27 +0000 |
parents | 7c96fa55ac93 |
children | dda0f4feca39 |
comparison
equal
deleted
inserted
replaced
15878:564a1b5a6c06 | 15879:aa466b84b1d3 |
---|---|
3 <chapter id="cd-dvd"> | 3 <chapter id="cd-dvd"> |
4 <title>CD/DVD usage</title> | 4 <title>CD/DVD usage</title> |
5 | 5 |
6 <sect1 id="drives"> | 6 <sect1 id="drives"> |
7 <title>CD/DVD drives</title> | 7 <title>CD/DVD drives</title> |
8 <para> | |
9 Linux documentation excerpt: | |
10 </para> | |
11 | 8 |
12 <para> | 9 <para> |
13 Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives | 10 Modern CD-ROM drives can attain very high head speeds, yet some CD-ROM drives |
14 are capable of running at reduced speeds. There are several reasons that might | 11 are capable of running at reduced speeds. There are several reasons that might |
15 make you consider changing the speed of a CD-ROM drive: | 12 make you consider changing the speed of a CD-ROM drive: |
25 <listitem><para> | 22 <listitem><para> |
26 Many CD-ROM drives are annoyingly loud, a lower speed may reduce the noise. | 23 Many CD-ROM drives are annoyingly loud, a lower speed may reduce the noise. |
27 </para></listitem> | 24 </para></listitem> |
28 </itemizedlist> | 25 </itemizedlist> |
29 | 26 |
30 <para> | 27 <sect2 id="drives_linux"> |
31 You can reduce the speed of IDE CD-ROM drives with <command>hdparm</command> or a | 28 <title>Linux</title> |
32 program called <command>setcd</command>. It works like this: | 29 |
30 <para> | |
31 You can reduce the speed of IDE CD-ROM drives with <command>hdparm</command>, | |
32 <command>setcd</command> or <command>cdctl</command>. It works like this: | |
33 <screen>hdparm -E <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen> | 33 <screen>hdparm -E <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen> |
34 <screen>setcd -x <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen> | 34 <screen>setcd -x <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen> |
35 <screen>cdctl -bS <replaceable>[speed]</replaceable></screen> | |
36 </para> | |
37 | |
38 <para> | |
39 If you are using SCSI emulation, you might have to apply the settings to the | |
40 real IDE device, not the emulated SCSI device. | |
35 </para> | 41 </para> |
36 | 42 |
37 <para> | 43 <para> |
38 If you have root privileges the following command may also help: | 44 If you have root privileges the following command may also help: |
39 <screen>echo file_readahead:2000000 > /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen> | 45 <screen>echo file_readahead:2000000 > /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen> |
42 <para> | 48 <para> |
43 This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. | 49 This sets prefetched file reading to 2MB, which helps with scratched CD-ROMs. |
44 If you set it to too high, the drive will continuously spin up and down, and | 50 If you set it to too high, the drive will continuously spin up and down, and |
45 will dramatically decrease the performance. | 51 will dramatically decrease the performance. |
46 It is recommended that you also tune your CD-ROM drive with <command>hdparm</command>: | 52 It is recommended that you also tune your CD-ROM drive with <command>hdparm</command>: |
47 <screen>hdparm -d1 -a8 -u1 <replaceable>cdrom device</replaceable></screen> | 53 <screen>hdparm -d1 -a8 -u1 <replaceable>[cdrom device]</replaceable></screen> |
48 </para> | 54 </para> |
49 | 55 |
50 <para> | 56 <para> |
51 This enables DMA access, read-ahead, and IRQ unmasking (read the <command>hdparm</command> | 57 This enables DMA access, read-ahead, and IRQ unmasking (read the <command>hdparm</command> |
52 man page for a detailed explanation). | 58 man page for a detailed explanation). |
61 SCSI drives do not have a uniform way of setting these parameters (Do you know one? | 67 SCSI drives do not have a uniform way of setting these parameters (Do you know one? |
62 Tell us!) There is a tool that works for | 68 Tell us!) There is a tool that works for |
63 <ulink url="http://das.ist.org/~georg/">Plextor SCSI drives</ulink>. | 69 <ulink url="http://das.ist.org/~georg/">Plextor SCSI drives</ulink>. |
64 </para> | 70 </para> |
65 | 71 |
66 <para>FreeBSD:</para> | 72 </sect2> |
67 <para>Speed: <command>cdcontrol [-f <replaceable>device</replaceable>] speed <replaceable>speed</replaceable></command></para> | 73 |
68 <para>DMA: <command>sysctl hw.ata.atapi_dma=1</command></para> | 74 |
75 <sect2 id="drives_freebsd"> | |
76 <title>FreeBSD</title> | |
77 | |
78 <para>speed: | |
79 <screen> | |
80 cdcontrol [-f <replaceable>device</replaceable>] speed <replaceable>[speed]</replaceable> | |
81 </screen> | |
82 </para> | |
83 | |
84 <para>DMA: | |
85 <screen> | |
86 sysctl hw.ata.atapi_dma=1 | |
87 </screen> | |
88 </para> | |
89 | |
90 </sect2> | |
91 | |
69 </sect1> | 92 </sect1> |
93 | |
94 | |
70 | 95 |
71 <sect1 id="dvd"> | 96 <sect1 id="dvd"> |
72 <title>DVD playback</title> | 97 <title>DVD playback</title> |
73 <para> | 98 <para> |
74 For the complete list of available options, please read the man page. | 99 For the complete list of available options, please read the man page. |
242 <ulink url="http://linvdr.org/projects/regionset/">regionset tool</ulink> | 267 <ulink url="http://linvdr.org/projects/regionset/">regionset tool</ulink> |
243 to set the region code of your DVD drive (under Linux). | 268 to set the region code of your DVD drive (under Linux). |
244 <emphasis role="bold">Warning</emphasis>: You can only set the region 5 times. | 269 <emphasis role="bold">Warning</emphasis>: You can only set the region 5 times. |
245 </para> | 270 </para> |
246 </sect1> | 271 </sect1> |
272 | |
273 | |
247 | 274 |
248 <sect1 id="vcd"> | 275 <sect1 id="vcd"> |
249 <title>VCD playback</title> | 276 <title>VCD playback</title> |
250 <para> | 277 <para> |
251 For the complete list of available options, please read the man page. The Syntax for a | 278 For the complete list of available options, please read the man page. The Syntax for a |