Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev won't leave my DVD-RW alone!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
roothorick
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 83

PostPosted: Sat Jul 31, 2010 4:39 am    Post subject: udev won't leave my DVD-RW alone! Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54815
Location: 56N 3W

PostPosted: Sat Jul 31, 2010 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
roothorick
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2004
Posts: 83

PostPosted: Sun Aug 01, 2010 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
shiznix
Guru
Guru


Joined: 29 Jun 2003
Posts: 367
Location: Adelaide, Australia

PostPosted: Mon Aug 02, 2010 8:36 am    Post subject: Reply with quote

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") 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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