linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: How to change DVD-ROM speed?
@ 2001-06-27 19:38 Jesse Pollard
  2001-06-27 19:48 ` Jeffrey W. Baker
  2001-06-27 20:09 ` Jens Axboe
  0 siblings, 2 replies; 8+ messages in thread
From: Jesse Pollard @ 2001-06-27 19:38 UTC (permalink / raw)
  To: axboe, Jeffrey W. Baker; +Cc: linux-kernel

> 
> On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> > > On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> > > > I am trying to change the spin rate of my IDE DVD-ROM drive.  My system is
> > > > an Apple PowerBook G4, and I am using kernel 2.4.  I want the drive to
> > > > spin at 1X when I watch movies.  Currently, it spins at its highest speed,
> > > > which is very loud and a large power load.
> > > >
> > > > /proc/sys/dev/cdrom/info indicates that the speed of the drive can be
> > > > changed.  I use hdparm -E 1 /dev/dvd to attempt to set the speed, and it
> > > > reports success.  However, the drive continues to spin at its highest
> > > > speed.
> > >
> > > Linux still uses the old-style SET_SPEED command, which is probably not
> > > supported correctly by your newer drive. Just checking, I see latest Mt
> > > Fuji only lists it for CD-RW. For DVD, we're supposed to do
> > > SET_STREAMING to specify such requirements.
> > >
> > > Feel free to implement it :-)
> > 
> > I will be happy to :)  Should I hang conditional code off the existing
> > ioctl (CDROM_SELECT_SPEED, ide_cdrom_select_speed) or use a new one?
> 
> Excellent. I'd say use the same ioctl if you can, but default to using
> SET_STREAMING for DVD drives.

As long as it still works for the combo drives - CD/CD-RW/DVD
Sony VIAO high end laptops, Toshiba has one, maybe others by now.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 19:38 How to change DVD-ROM speed? Jesse Pollard
@ 2001-06-27 19:48 ` Jeffrey W. Baker
  2001-06-27 20:09 ` Jens Axboe
  1 sibling, 0 replies; 8+ messages in thread
From: Jeffrey W. Baker @ 2001-06-27 19:48 UTC (permalink / raw)
  To: Jesse Pollard; +Cc: linux-kernel



On Wed, 27 Jun 2001, Jesse Pollard wrote:

> As long as it still works for the combo drives - CD/CD-RW/DVD
> Sony VIAO high end laptops, Toshiba has one, maybe others by now.

OK when I send the patch I'll assume you will test it :)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 19:38 How to change DVD-ROM speed? Jesse Pollard
  2001-06-27 19:48 ` Jeffrey W. Baker
@ 2001-06-27 20:09 ` Jens Axboe
  1 sibling, 0 replies; 8+ messages in thread
From: Jens Axboe @ 2001-06-27 20:09 UTC (permalink / raw)
  To: Jesse Pollard; +Cc: Jeffrey W. Baker, linux-kernel

On Wed, Jun 27 2001, Jesse Pollard wrote:
> > Excellent. I'd say use the same ioctl if you can, but default to using
> > SET_STREAMING for DVD drives.
> 
> As long as it still works for the combo drives - CD/CD-RW/DVD
> Sony VIAO high end laptops, Toshiba has one, maybe others by now.

As long as it has the DVD features, SET_STREAMING must be supported. So
provided that the combos adhere to that part of the spec (ha), it will
work.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 18:05     ` Jens Axboe
@ 2001-06-28  6:42       ` Jeffrey W. Baker
  0 siblings, 0 replies; 8+ messages in thread
From: Jeffrey W. Baker @ 2001-06-28  6:42 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

On Wed, 27 Jun 2001, Jens Axboe wrote:

> On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> >
> > I will be happy to :)  Should I hang conditional code off the existing
> > ioctl (CDROM_SELECT_SPEED, ide_cdrom_select_speed) or use a new one?
>
> Excellent. I'd say use the same ioctl if you can, but default to using
> SET_STREAMING for DVD drives.

Hrmm, ah, hrmm.  Perhaps I need a little help with this one :)

Just for testing, I modified cdrom_select_speed in ide-cd.c to use SET
STREAMING.  Working from the Fuji spec, I created a 28-byte buffer, set
the starting lba to 0, the ending lba to 0xffffffff, the read speed to
0x000000ff, and the read time to 0x000000ff, expecting a resulting speed
of 1KB/ms or 1000KB/s[1].  I assign the buffer to pc.buffer and send it on
its way to cdrom_queue_packet_command().

The result is:

CDROM_SELECT_SPEED failed: Input/output error
hdc: status timeout: status 0x80 { Busy }
hdc: DMA disabled
hdc: ATAPI reset complete

Am I barking up the wrong tree?   Do I need to use a different function,
or a generic command instead of a packet command?

Regards,
Jeffrey

[1] Interesting that there appears to be enough room in the spec for a
drive transferring 2^32 * 1000 KB/s.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 17:59   ` Jeffrey W. Baker
@ 2001-06-27 18:05     ` Jens Axboe
  2001-06-28  6:42       ` Jeffrey W. Baker
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2001-06-27 18:05 UTC (permalink / raw)
  To: Jeffrey W. Baker; +Cc: linux-kernel

On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> > On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> > > I am trying to change the spin rate of my IDE DVD-ROM drive.  My system is
> > > an Apple PowerBook G4, and I am using kernel 2.4.  I want the drive to
> > > spin at 1X when I watch movies.  Currently, it spins at its highest speed,
> > > which is very loud and a large power load.
> > >
> > > /proc/sys/dev/cdrom/info indicates that the speed of the drive can be
> > > changed.  I use hdparm -E 1 /dev/dvd to attempt to set the speed, and it
> > > reports success.  However, the drive continues to spin at its highest
> > > speed.
> >
> > Linux still uses the old-style SET_SPEED command, which is probably not
> > supported correctly by your newer drive. Just checking, I see latest Mt
> > Fuji only lists it for CD-RW. For DVD, we're supposed to do
> > SET_STREAMING to specify such requirements.
> >
> > Feel free to implement it :-)
> 
> I will be happy to :)  Should I hang conditional code off the existing
> ioctl (CDROM_SELECT_SPEED, ide_cdrom_select_speed) or use a new one?

Excellent. I'd say use the same ioctl if you can, but default to using
SET_STREAMING for DVD drives.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 17:41 ` Jens Axboe
@ 2001-06-27 17:59   ` Jeffrey W. Baker
  2001-06-27 18:05     ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Jeffrey W. Baker @ 2001-06-27 17:59 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel



On Wed, 27 Jun 2001, Jens Axboe wrote:

> On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> > I am trying to change the spin rate of my IDE DVD-ROM drive.  My system is
> > an Apple PowerBook G4, and I am using kernel 2.4.  I want the drive to
> > spin at 1X when I watch movies.  Currently, it spins at its highest speed,
> > which is very loud and a large power load.
> >
> > /proc/sys/dev/cdrom/info indicates that the speed of the drive can be
> > changed.  I use hdparm -E 1 /dev/dvd to attempt to set the speed, and it
> > reports success.  However, the drive continues to spin at its highest
> > speed.
>
> Linux still uses the old-style SET_SPEED command, which is probably not
> supported correctly by your newer drive. Just checking, I see latest Mt
> Fuji only lists it for CD-RW. For DVD, we're supposed to do
> SET_STREAMING to specify such requirements.
>
> Feel free to implement it :-)

I will be happy to :)  Should I hang conditional code off the existing
ioctl (CDROM_SELECT_SPEED, ide_cdrom_select_speed) or use a new one?

Best,
Jeffrey


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to change DVD-ROM speed?
  2001-06-27 17:22 Jeffrey W. Baker
@ 2001-06-27 17:41 ` Jens Axboe
  2001-06-27 17:59   ` Jeffrey W. Baker
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2001-06-27 17:41 UTC (permalink / raw)
  To: Jeffrey W. Baker; +Cc: linux-kernel

On Wed, Jun 27 2001, Jeffrey W. Baker wrote:
> I am trying to change the spin rate of my IDE DVD-ROM drive.  My system is
> an Apple PowerBook G4, and I am using kernel 2.4.  I want the drive to
> spin at 1X when I watch movies.  Currently, it spins at its highest speed,
> which is very loud and a large power load.
> 
> /proc/sys/dev/cdrom/info indicates that the speed of the drive can be
> changed.  I use hdparm -E 1 /dev/dvd to attempt to set the speed, and it
> reports success.  However, the drive continues to spin at its highest
> speed.

Linux still uses the old-style SET_SPEED command, which is probably not
supported correctly by your newer drive. Just checking, I see latest Mt
Fuji only lists it for CD-RW. For DVD, we're supposed to do
SET_STREAMING to specify such requirements.

Feel free to implement it :-)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

* How to change DVD-ROM speed?
@ 2001-06-27 17:22 Jeffrey W. Baker
  2001-06-27 17:41 ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Jeffrey W. Baker @ 2001-06-27 17:22 UTC (permalink / raw)
  To: linux-kernel

I am trying to change the spin rate of my IDE DVD-ROM drive.  My system is
an Apple PowerBook G4, and I am using kernel 2.4.  I want the drive to
spin at 1X when I watch movies.  Currently, it spins at its highest speed,
which is very loud and a large power load.

/proc/sys/dev/cdrom/info indicates that the speed of the drive can be
changed.  I use hdparm -E 1 /dev/dvd to attempt to set the speed, and it
reports success.  However, the drive continues to spin at its highest
speed.

Is this ioctl supposed to work on DVD drives?  PPC?  In MacOS, the DVD
spins quietly when watching movies.

Regards,
Jeffrey


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-06-28  6:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-27 19:38 How to change DVD-ROM speed? Jesse Pollard
2001-06-27 19:48 ` Jeffrey W. Baker
2001-06-27 20:09 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2001-06-27 17:22 Jeffrey W. Baker
2001-06-27 17:41 ` Jens Axboe
2001-06-27 17:59   ` Jeffrey W. Baker
2001-06-27 18:05     ` Jens Axboe
2001-06-28  6:42       ` Jeffrey W. Baker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).