[ltp] CD speed support in tp_smapi
Peter Frühberger
linux-thinkpad@linux-thinkpad.org
Wed, 07 Dec 2005 09:24:52 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Shem Multinymous schrieb:
> 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=slow, 1=medium, 2=fast). 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=1212&package_id=171579
>
> Shem
The cdrom speed seems to work on my R40, too
from dmesg: (loading and setting)
[43094038.430000] tp_smapi: tp_smapi 0.07 loading.
[43094038.430000] tp_smapi: initialized, smapi_port=0xb2.
[43094038.430000] tp_smapi: driver successfully loaded.
[43094056.710000] tp_smapi: smapi_request in: BX=8220 CX=0 DI=0 SI=0
[43094056.710000] tp_smapi: smapi_request out: AX=80 BX=920 CX=78 DX=1e
DI=4 SI=0 ret=0
[43094056.730000] tp_smapi: smapi_request in: BX=8221 CX=1e DI=4 SI=0
[43094056.730000] tp_smapi: smapi_request out: AX=80 BX=8221 CX=1e DX=b2
DI=4 SI=0 ret=0
[43094056.750000] tp_smapi: cdrom speed set to level 1
thx
Peter
- --
Key-ID: 0x1A995A9B
keyserver: pgp.mit.edu
==============================================================
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDlpxU2gfPYxqZWpsRA9LjAKCEsGEVSMkD+YXh61o6gUCZhgRtyACgwCbI
I34pcKwB8TKaB2KTNuCqeUg=
=xtGD
-----END PGP SIGNATURE-----