[PARPORT] Eject -t gives spurious error message


John Eastmond (jeastmond@tcp.co.uk)
Sat, 23 Oct 1999 16:49:22 +0100


Hi,

I've been using a HP7200e CD-ReWriter for a while now with no problems.

One thing I do notice is when I issue the command:

eject -t /dev/pcd0

to close the CD tray it works fine but I get the message:

eject: CD-ROM tray close command failed: Operation not permitted

I find that I still get the message even if I'm root.

The output from the pcd driver with verbose=2 is as follows.

When the driver module is first loaded I get:

pcd: pcd version 1.07, major 46, nice 0
pcd0: epat: port 0x3bc, mode 0, ccr ff, test=(255,255,510)
pcd0: epat: port 0x3bc, mode 1, ccr ff, test=(255,255,510)
pcd0: epat: port 0x3bc, mode 2, ccr ff, test=(255,255,510)
pcd0: 0x378 is parport0
pcd0: epat: port 0x378, mode 0, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 1, ccr 40, test=(256,224,448)
pcd0: epat: port 0x378, mode 2, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 3, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 4, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 5, ccr 0, test=(256,0,0)
pcd0: Sharing parport0 at 0x378
pcd0: epat 1.01, Shuttle EPAT chip c6 at 0x378, mode 5 (EPP-32), delay 1
pcd0: Reset (1) signature = 6f 6f 6f 6f 6f (incorrect)
pcd0: Reset (22) signature = 1 1 1 14 eb
pcd0: identify: Read 36 bytes
pcd0: Slave: CD-Writer+ 7200

When I issue eject /dev/pcd0 (giving no error message) I get:

VFS: Disk change detected on device pcd(46,0)
pcd0: unlock door completion: alt=0x51 stat=0x51 err=0x60 loop=0 phase=3
pcd0: Request sense: Read 16 bytes
pcd0: unlock door: Sense key: 6, ASC: 29, ASQ: 0

When I issue eject -t /dev/pcd0 (giving error message decribed above) I
get:

VFS: Disk change detected on device pcd(46,0)
pcd0: close tray completion: alt=0x51 stat=0x51 err=0x20 loop=94537
phase=3
pcd0: Request sense: Read 16 bytes
pcd0: close tray: Sense key: 2, ASC: 3a, ASQ: 0

Thanks for any replies,

John Eastmond

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Sat 23 Oct 1999 - 11:57:21 EDT