View previous topic :: View next topic |
Author |
Message |
roothorick Tux's lil' helper
Joined: 30 May 2004 Posts: 83
|
Posted: Sat Jul 31, 2010 4:39 am Post subject: udev won't leave my DVD-RW alone! |
|
|
I really can't find a solution for this. If a disc, any disc, is in my DVD-RW, every time it starts to spin down, a change event goes out from the kernel, which promptly causes udev to decide to reidentify the disk in the drive, spinning it back up. Looking at the events in udevadm monitor, I really can't see a difference between an "I'm spinning down" event and a "tray closed" event; is this a kernel bug? How can I stop these events from firing every time the drive wants to take a nap?
-E- It's worse than I thought. Sometimes it gets into a state where events are constantly firing, and it's repeatedly running blkid on the disk, reading the same stuff over and over again... I actually have to stop udev outright to get the drive to open! What the hell is going on? _________________ Note: This user has been arrested under the DMCA for copyright infringement based on a complaint from The Inernational Cliche Company. He is also facing charges for violating US patents describing the encoding of text in digital form. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Sat Jul 31, 2010 11:30 am Post subject: |
|
|
roothorick,
Its hal, not udev.
Some broken by design optical drives to not send media change events, so hal polls optical devices every two seconds.
To my mind, that behavior is broken too. It can be configured somewhere but I don't know where. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
roothorick Tux's lil' helper
Joined: 30 May 2004 Posts: 83
|
Posted: Sun Aug 01, 2010 7:07 pm Post subject: |
|
|
NeddySeagoon wrote: | roothorick,
Its hal, not udev.
Some broken by design optical drives to not send media change events, so hal polls optical devices every two seconds.
To my mind, that behavior is broken too. It can be configured somewhere but I don't know where. |
I'm not using HAL.
Anyway, I figured it out. It's a Sony Optiarc AD-7240S, which has a nasty habit of raising ATAPI AN anytime it does anything at all, which Linux (erroneously) interprets as a media change event; cue udev reading the "new" disc. There was a thread on the kernel mailinglist about it, but I can't find it now. This is fixed (well, worked around; SATA removable drive media change detection is broken now) with a kernel patch introduced in 2.6.35-rc1; I just applied the patch manually to 2.6.34-gentoo-r1. _________________ Note: This user has been arrested under the DMCA for copyright infringement based on a complaint from The Inernational Cliche Company. He is also facing charges for violating US patents describing the encoding of text in digital form. |
|
Back to top |
|
|
shiznix Guru
Joined: 29 Jun 2003 Posts: 367 Location: Adelaide, Australia
|
Posted: Mon Aug 02, 2010 8:36 am Post subject: |
|
|
roothorick wrote: | Anyway, I figured it out. It's a Sony Optiarc AD-7240S, which has a nasty habit of raising ATAPI AN anytime it does anything at all, which Linux (erroneously) interprets as a media change event; cue udev reading the "new" disc. There was a thread on the kernel mailinglist about it, but I can't find it now. This is fixed (well, worked around; SATA removable drive media change detection is broken now) with a kernel patch introduced in 2.6.35-rc1; I just applied the patch manually to 2.6.34-gentoo-r1. |
Brilliant!
This patch fixed the same issue for me.
And the patch is now part of most recent Gentoo kernel patchset (K_GENPATCHES_VER="4") |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|