[ltp] CD speed support in tp_smapi

Shem Multinymous linux-thinkpad@linux-thinkpad.org
Wed, 7 Dec 2005 04:22:47 +0200


Hi,

A new release of tp_smapi is available, adding
/sys/devices/platform/smapi/cdrom_speed to set/get the CD drive speed
level (0=3Dslow, 1=3Dmedium, 2=3Dfast). It seems that no other speed
settings work.

WARNING:
Writing to this file when the CD is being accessed will hang your computer.

I'd like to check if the CD is being accessed (e.g., halfway through
an ATAPI command) and refuse (or delay) the speed change request in
that case. Any idea how to do that?

http://sourceforge.net/project/showfiles.php?group_id=3D1212&package_id=3D1=
71579

  Shem