[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-03 Thread Martin Pitt
It seems that this this actually an udev problem after all:

http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=f755fd5657b619fd27160ad202fc5d773d096e9c

So it seems that the last ioctl kernel patch referenced above just fixed
the return status enough to make the emitted change events actually
work, so that udev's rules would kick in.


** Changed in: udev (Ubuntu)
Sourcepackagename: linux = udev
   Target: intrepid-updates = None

** Summary changed:

- opening /dev/scdN causes tray to be closed
+ CD-ROM tray closes automatically after eject

** Changed in: udev (Ubuntu Intrepid)
 Assignee: (unassigned) = Martin Pitt (pitti)
   Status: Triaged = In Progress

-- 
CD-ROM tray closes automatically after eject
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-02 Thread Bug Watch Updater
** Changed in: udev (Fedora)
   Status: Unknown = Fix Released

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-02 Thread Livid
I should note, the fix is somewhat strange. It would be better to change
ENV{DEVTYPE}==disk, KERNEL!=sd*|sr*, ATTR{removable}==1, 
GOTO=persistent_storage_end
to
ENV{DEVTYPE}==disk, ATTR{removable}==1, GOTO=persistent_storage_end

This would be the same as adding
ENV{DEVTYPE}==disk, KERNEL==sd*|sr*, ATTR{removable}==1, 
GOTO=persistent_storage_end
but four comparison operations cheaper for your processor, meaning it is 
FASTER, MORE EFFICIENT, and LESS POWER CONSUMING.

Thanks for reading.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-02 Thread Everthon Valadão
Fix worked for me too!
Thanks to prower and razor :-)

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread gray
Hi - yes I have the same issue.

The device is described thus:

 *-cdrom
   description: DVD-RAM writer
   product: DVD RW DRU-840A
   vendor: SONY
   physical id: 1
   bus info: [EMAIL PROTECTED]:0.0.0
   logical name: /dev/cdrom
   logical name: /dev/cdrw
   logical name: /dev/dvd
   logical name: /dev/dvdrw
   logical name: /dev/scd0
   logical name: /dev/sr0
   version: SS01
   capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
   configuration: ansiversion=5 status=nodisc

I am running the Intrepid 8.10 final release from 30 oct with updates as of 
today 11.00 am South Africa time.
The hardware is fine under Windows XP

Thanks

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread [EMAIL PROTECTED]
i can confirm this issue exists, brasero is currently (for me at least)
impossible due to the speed at which the tray opens and closes itself

i made a one-line fix to /etc/udev/rules.d/60-persistent-storage.rules
that seemed to solve the problem without even rebooting the machine, it
was mentioned in another thread...look for the following in said file:

# skip unpartitioned removable media devices from drivers which do not send 
change events
ENV{DEVTYPE}==disk, KERNEL!=sd*|sr*, ATTR{removable}==1, 
GOTO=persistent_storage_end

just beneath the second line, add the following (make sure to back up
your original):

ENV{DEVTYPE}==disk, KERNEL==sd*|sr*, ATTR{removable}==1,
GOTO=persistent_storage_end

(the subtle difference is in the KERNEL portion)

i'll attach my version of the file in case anyone would like to try it
themselves as a temporary workaround:


** Attachment added: Modified to include untested patch for cd/dvd tray issue
   http://launchpadlibrarian.net/19177758/60-persistent-storage.rules

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
 i'll attach my version of the file in case anyone would like to try it
 themselves as a temporary workaround:

Any possible consequences we should know about?

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Jose Bernardo
This last fix by prower solved the bug for me.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
Here's a debdiff template I made for you, it's attached.
Edit it and reupload it, propose it as a patch :)


** Attachment added: udev_124-8ubuntu1.debdiff
   http://launchpadlibrarian.net/19183791/udev_124-8ubuntu1.debdiff

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread razor1394
I posted a very similar fix in my report about this problem the 25th but
nobody seemed to care.

So much for trying to help.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
prowrer said it was mentioned in another thread

I personally didn't check every duplicate as it was marked as a
duplicate.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
 I personally didn't check every duplicate as it was marked as a duplicate.

Rephrased: I personally didn't have time to check every duplicate and
what they said. If you believe you're the one who should get their
name, edit the template debdiff accordingly. As I said, it's a
template.

(Note: not that the patches are always used)

But wait until we get some more confirmations on this, you never know
what this could do for other drivers/media

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread shane19174
My only question is: are users expected to take care of this themselves,
or will this fix be distributed as an update anytime soon?

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
** Also affects: udev (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=453095
   Importance: Unknown
   Status: Unknown

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread razor1394
I don't want to take credit. The one who should is the Christian Krause
on the red hat bugzilla. I'm just stumped that no dev reacted and that
my report got marked dupe even though it was created a lot earlier than
this one.

https://bugzilla.redhat.com/show_bug.cgi?id=453095#c26

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
Thanks razor! I've updated the bug report, I'm sorry I haven't seen your report 
a bit earlier :(
Gentoo seems to have pushed this workaround as a fix for the bug

** Bug watch added: Gentoo Bugzilla #230886
   http://bugs.gentoo.org/show_bug.cgi?id=230886

** Also affects: gentoo via
   http://bugs.gentoo.org/show_bug.cgi?id=230886
   Importance: Unknown
   Status: Unknown

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Bug Watch Updater
** Changed in: gentoo
   Status: Unknown = Fix Released

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread [EMAIL PROTECTED]
i should add an update to this as well, i was not trying to take credit
for a patch or anything like that

as i mentioned i had seen the fix in the thread and just decided to
mention it in this thread as i hadn't seen the solution reported

it's also important to note that other than the fact that it solves the
problem in my case, i don't know what other potential consequences it
might have so apply it at your own risk...but again in my own personal
case, the only difference i've noticed is that my dvd tray doesn't try
to bite my fingers off any more :

i hope that it works for people, and i'm sure that once an appropriate
solution is found this will be fixed upstream, it might be as simple as
that one line change but i am no expert on udev

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Savvas Radević
The fix works here too, anyone else to confirm this?
Can a developer / packager / someone push it for intrepid-proposed if possible? 
:)

Fedora have also released this workaround for testing:
http://rpm.pbone.net/index.php3/stat/22/idpl/8874918/com/changelog.html

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread nagos
Fix works for me.
On redhat and ubuntuforum written same fix.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread [EMAIL PROTECTED]
i've done some testing on my own pc with different bits of storage
hardware to see if they were affected by the workaround, including a usb
stick, 250GB 2.0 hard drive and an external Pioneer DVD burner, as well
as the separate CD and DVD burners that are already internal to the
machine...i've yet to find any instances of things not being properly
mounted/unmounted or any related data loss if that is helpful to anyone
reading this thread.

i hope the issue is at least looked into soon as between that and the
e1000e bug that i've been bitten by (in the final release and mentioned
here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/127749) have
made intrepid a difficult upgrade

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-11-01 Thread Dave Hutchison
Fix works for me. Thanks for saving my fingers. I was starting to feel
like Ronnie Barker in 'Open all hours' with the till. Cheers razor.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-31 Thread thebigbluecan
Same here on the RC and on the Final.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-29 Thread Colin Watson
Release notes text added:

== CD eject problems ==

After ejecting a CD tray containing a disc, the tray will be immediately
retracted, making it difficult to remove the disc
([[https://launchpad.net/bugs/283316|bug 283316]]. This can be worked
around by pressing the eject button again before the disc is fully
mounted, after which it will stay open. We expect to fix this in a post-
release update.

** Changed in: ubuntu-release-notes
 Assignee: (unassigned) = Colin Watson (kamion)
   Status: New = Fix Released

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-28 Thread Ozan Çağlayan
This should be fixed with udev 126:

Summary of changes from v125 to v126
===

Kay Sievers (9):
   ...
   ...
   rules: run vol_id on opticals only if media is found

After upgrading to udev 126, we no longer reproduce this issue except
after writing a DVD-R with k3b.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-28 Thread Martin Pitt
Ozan Çağlayan [2008-10-28  7:02 -]:
 Kay Sievers (9):
rules: run vol_id on opticals only if media is found
 
 After upgrading to udev 126, we no longer reproduce this issue except
 after writing a DVD-R with k3b.

That's curious. I can *only* reproduce it if there was a media in the
CD drive, thus this change should not make any difference. Anyway,
I'll read through bug 280931 and check whether it has a viable
workaround.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-27 Thread Raymond
Even after a successful write with K3b the tray opens then closes.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-26 Thread warptoy
Same here on a pata system with last Intrepid Kernel 2.6.27-7.
The only way to get the try out is to press the eject button one moire time 
immediately after first eject...

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-26 Thread Ugnichenko Dmitriy
Confirm the same problem.

OS: Intrepid Ibex 8.10 64bit

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-24 Thread arvidgibas
I can confirm problem.

OS: Intrepid Ibex 8.10 64bit

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Matt Zimmerman
I can reproduce the behaviour in Martin's test case
(https://bugs.edge.launchpad.net/ubuntu/intrepid/+source/linux/+bug/283316/comments/11)
on one of the optical drives in my desktop, but not on the other.

I cannot reproduce any misbehavior using eject(1), only manually opening
the drive when the tray is open.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Matt Zimmerman
There is a fix identified in the upstream bug report.

This bug is currently targeted for 8.10, but would require a new kernel.
What is the plan?

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Matthias Urlichs
I can reproduce it 100% when ripping CDs (using my own script, which calls 
cdparanoia+eject).
At other times, it's intermittent and seems to depend on the machine's load, 
which doesn't really surprise me.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Martin Pitt
Matt, so far we just found out which commit introduced this. I'm not
terribly scared of entirely reverting it (the other bug it introduces is
less bad), but ATM I'm picking apart the commit and check which bit
causes the tray closing. With a little luck, I can come up with a patch
which keeps the return value correct and fixes this tray closing bug.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Pete Graner
I'm inclined to pass on this due to the lateness of the cycle. My
recommendation is open a release note task and document for the Gold
release and we could take it in on the first post Intrepid upload.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Matt Zimmerman
** Changed in: linux (Ubuntu Intrepid)
   Target: ubuntu-8.10 = intrepid-updates

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Martin Pitt
Unfortunately some simple bisecting of that patch doesn't lead to
anything which both fixes this bug and keeps correct return values. So
if we want to fix this in intrepid, I suggest to revert the entire patch
[1] and live with the status always being CDR_DISK_OK or CDR_TRAY_OPEN.
Hardy has the very same problem ([1] wasn't applied in hardy yet), and
it did not cause much harm so far.

[1] 
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=210ba1d1724f5c4ed87a2ab1a21ca861a915f734
Note that there is some fuzz, scsi_test_unit_ready() was replaced by 
sr_test_unit_ready()

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Pete Graner
** Also affects: ubuntu-release-notes
   Importance: Undecided
   Status: New

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread markor
If cd/dvd disk is inserted that is Not mounted (Dvd with un-mountable UDF..)
before unmount and ejection, then it does not even open cd/dvd doors
but re-insert it right away without even opening it.
If the eject button is pressed again briefly after first time, then it can be 
opened..
Tested on amd64

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Michael B. Trausch
I would agree with Martin Pitt's proposal that the patch which
introduced this behavior be reverted such that the drive does not
unexpectedly close any longer.  That is really the more important issue
here; it will be confusing for users.

It happens for me when I eject a CD manually (pressing the button on the
disc drive to open the tray), or when I click the eject button next to
the drive in Nautilus, or when I am finished burning a CD or DVD image
and the drive is ejected.  In all three situations the drive tray being
sucked back in is highly unexpected behavior.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-23 Thread Steven Rose
Martin's proposal is most definitely the most agreeable. It is very
unexpected behavior for the tray to snap shut almost right away.

I can also verify that on occasion the disc will unmount and then
remount without any movement of the tray whatsoever.

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-22 Thread Martin Pitt
It is really the open(), the ioctl() seems to be innocent. See my
updated report and test case in the upstream bug.

** Summary changed:

- CDROM_DRIVE_STATUS ioctl causes tray to be closed
+ opening /dev/scdN causes tray to be closed

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 283316] Re: opening /dev/scdN causes tray to be closed

2008-10-22 Thread Bug Watch Updater
** Changed in: linux
   Status: Confirmed = In Progress

-- 
opening /dev/scdN causes tray to be closed
https://bugs.launchpad.net/bugs/283316
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs