2.17 Multi-Session DVD Shutdown

Please post any bugs you have found
Post Reply
Message
Author
3133
Posts: 43
Joined: Wed 04 May 2005, 22:33
Location: Scotland

2.17 Multi-Session DVD Shutdown

#1 Post by 3133 »

At shutdown or reboot, the user is given the option of leaving the disk in the tray or removing it. If it is removed and the tray closed, an error message appears........"..........tray open.........insert media and/or close tray and press ENTER".

The tray is definitely not open. I don't want to reboot with the disk in the tray, so I press ENTER. Nothing happens. To get the system to shut down cleanly I have to put the disk back into the tray, press ENTER, wait until the shutdown process starts again then get the disk out before shutdown is complete.
Puppy User since Ver 0.4

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#2 Post by BarryK »

Okay, it the rc.shutdown script is thinking the tray is open when it isn't, which is either a logical error in the code or the method of detection is faulty.

I have just been looking at a little program called 'cddetect', which has the advantage that it returns very quickly with its information. It will report if the tray is open. I'll attach it, could you try it to see that it detects the tray open, and if closed whether a dvd inserted, and if inserted does it return useful info (like identify that its a data dvd).

You use it like this:
# gunzip cddetect.gz
# chmod 777 cddetect
# ./cddetect -d/dev/hdc
...in this example, hdc is the dvd drive.
Attachments
cddetect.gz
(6.01 KiB) Downloaded 479 times

3133
Posts: 43
Joined: Wed 04 May 2005, 22:33
Location: Scotland

#3 Post by 3133 »

When tray is open:-

#./cddetect -d/dev/hdc
tray open!

When tray is closed, but empty:-

#./cddetect -d/dev/hdc
no disc!

When tray is closed, but holds DVD:-

#./cddetect -d/dev/hdc
start track: 1, end track 2
cdromreadraw: Input/output error
cdromreadraw: Input/output error
1: adr:1, ctrl:4, format:2, 00:02:00 ( 150), datamode:3 [data]
2: adr:1, ctrl:4, format:2, 27:40:50 ( 124950), datamode:3 [data]leadout: adr:1 ctrl:4, format:2, 27:46:00 ( 124950). datamode:3 [data]
cdtype: data mode 1

Hope this helps.
Puppy User since Ver 0.4

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

3133, that's good. It's interesting that it is reporting 2 tracks on the dvd. How many sessions are saved? Could you save another session, then report if cddetect shows the extra track? -- although I'm not quite sure if sessions are getting savedf as tracks in the case of dvds.

Also, what kind of dvd is it? dvd-r, dvd+r, dvd-rw, dvd+rw?

3133
Posts: 43
Joined: Wed 04 May 2005, 22:33
Location: Scotland

#5 Post by 3133 »

Barry,

The first test was done with 5 sessions already saved. The following is the output with 6 sessions saved.

#./cddetect -d/dev/hdc
start track: 1, end track 2
cdromreadraw: Input/output error
cdromreadraw: Input/output error
1: adr:1, ctrl:4, format:2, 00:02:00 ( 150), datamode:3 [data]
2: adr:1, ctrl:4, format:2, 29:08:10 ( 131110), datamode:3 [data]leadout: adr:1 ctrl:4, format:2, 29:18:44 ( 131894). datamode:3 [data]
cdtype: data mode 1

No change in the number of tracks reported. Doesn't seem to me that there is a correlation between tracks and sessions.

The media is DVD-R 16X. Have tried DVD-RW 4X with no success.
Puppy User since Ver 0.4

3133
Posts: 43
Joined: Wed 04 May 2005, 22:33
Location: Scotland

#6 Post by 3133 »

Barry,

It occurred to me that using cddetect starting with a fresh system would remove a possible source of confusion. Accordingly, I burned a fresh DVD, booted from it and immediately ran cddetect.

#./cddetect -d/dev/hdc
start track: 1, end track 1
cdromreadraw: Input/output error
1: adr:1, ctrl:4, format:2, 00:02:00 ( 150), datamode:3 [data]leadout: adr:1 ctrl:4, format:2, 10:37:55 ( 47830). datamode:3 [data]
cdtype: data mode 1

Saved the session, rebooted and ran cddetect again.

#./cddetect -d/dev/hdc
start track: 1, end track 2
cdromreadraw: Input/output error
cdromreadraw: Input/output error
1: adr:1, ctrl:4, format:2, 00:02:00 ( 150), datamode:3 [data]
2: adr:1, ctrl:4, format:2, 20:54:52 ( 94102), datamode:3 [data]leadout: adr:1 ctrl:4, format:2, 21:28::46 ( 96646). datamode:3 [data]
cdtype: data mode 1

Saved the session, rebooted and ran cddetect again.

#./cddetect -d/dev/hdc
start track: 1, end track 2
cdromreadraw: Input/output error
cdromreadraw: Input/output error
1: adr:1, ctrl:4, format:2, 00:02:00 ( 150), datamode:3 [data]
2: adr:1, ctrl:4, format:2, 22:50:56 ( 102806), datamode:3 [data]leadout: adr:1 ctrl:4, format:2, 22:55:65 ( 103190). datamode:3 [data]
cdtype: data mode 1

End track remains at 2 regardless of number of sessions saved. Only the numbers before and within the parentheses change.

This is all meaningless to me but I hope you find it useful.
Puppy User since Ver 0.4

3133
Posts: 43
Joined: Wed 04 May 2005, 22:33
Location: Scotland

#7 Post by 3133 »

Barry,

After my previous post I moved to reboot. At the ".......you may remove the CD/DVD if you wish......." prompt I chose to remove. This time, with the fresh install, there was no problem. Shutdown went faultlessly.

I booted this install again. When I shutdown, I chose not to save the session and was faced with the problem which moved me to post this bug in the first place.

If I have this right, there is no problem if one saves the session, but a problem if one does not save the session.
Puppy User since Ver 0.4

Post Reply