Hi Alan :) * Alan Stern <[EMAIL PROTECTED]> dixit: > On Wed, 5 Jul 2006, DervishD wrote: > > If udev is enabled in the machine, the device seems to be > > detected four times: the first two it is found to be write protected, > > the last two it is NOT write protected. Under Ubuntu, hald gets the > > information from the first time it is detected, finds that the device > > is write protected and mounts it as read-only. That's annoying > > because I have to remount it by hand. > > > While I don't know what's going on with hald or udev, the log itself is > pretty clear. > > The device tells the computer that it has removable media, like a CDROM > drive or a card reader. (Why an MP3 player would do this is beyond me.)
I think I have the answer for that: I think there is another model of the same brand with support for a external SD card. Probably they share firmware... > During the first two polls it reports that the media is write-protected. > But then after you go to mount it, it reports that the media has been > changed (like putting in a new CD or a new memory card) and the new media > is _not_ write protected. Of course all this "media change" stuff is pure > fiction, but that's what the device says and the kernel believes it. In a 2.4 kernel, all I have to do (I discovered it after this message) is to umount and remount again as an ordinary user. The second time the device is detected properly as write-enabled :) > Don't ask me why it does this. Maybe it needs some time to "warm > up" and during that time it doesn't want to accept WRITE commands. > If that's true, then all you need to do is delay mounting it for > some five or six seconds. Or maybe it doesn't change its mind > until after getting a bunch of READ commands. Who knows? I think that the cause may be a crappy firmware that is expecting for a SD card to be inserted and settled. Of course, since this device doesn't have support for SD card, that never happens. Probably other OSes are just polling the device waiting for a "media change", who knows. The device itself doesn't need any time to settle or warm up, I've tested that. I think that the real cause is crappy firmware. This INOVIX mp3 players aren't bad at all, but they're cheap and probably the firmware is as cheap :( They're firmware upgradeable, but upgrades may be even cheaper ;) Thanks A LOT for your interest and work. You finally solved my problem, because knowing that all I have to do is "repoll" the device, a symple "mount /media/mp3; umount /media/mp3; mount /media/mp3" does the job for my 2.4 kernel! Thank you very much :) I'll post a message in lkml about the issue, just in case someone had a similar problem. If you ever come to Spain, I promise I'll buy you all the beer you can drink (or whatever you want to drink instead of beer, of course XDD). Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to... RAmen! Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel