Description of problem: login to gnome and see this processes: 3149 ? S 0:00 /usr/libexec/devkit-disks-daemon 3152 ? S 0:00 \_ devkit-disks-daemon: polling /dev/sr0 /dev/fd0 Version-Release number of selected component (if applicable): 003-3.fc11 How reproducible: always Steps to Reproduce: 1. login to gnome 2. hear the floppy drive go crazy 3. Actual results: floppy makes a lot a noise Expected results: floppy should get it's earned sleep Additional info:
devkit-disks --inhibit-polling /devices/fd0 is segfaulting since the last upgrade... See: $ devkit-disks --inhibit-polling /devices/fd0 Segmentation fault Shall I provide a dump file of the process?
My bad. Should be fixed in DeviceKit-disks-003-6.fc11
With the standard fedora kernel you need to modprobe the floppy kernel modul, to hear the floppy go crazy. # modprobe floppy In my self compiled kernel I have nearly no modules; everthing is linked in, so the floppy driver.
I guess we should just ignore pc floppy drives completely (everything works fine with USB floppy drives though). I'll look into this tomorrow, I only have a single machine left with such hardware and it's stuck in the office...
Created attachment 344409 [details] disable /dev/fd0 polling Simple hack to disable /dev/fd* polling. Works for me.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
# devkit-disks --inhibit-polling /dev/fd0 Inhibit polling failed: org.freedesktop.devicekit.disks.inhibit-polling no Fedora 11 on x86_64.
For clarity: over here the daemon is constantly accessing dev/fd0 for no reason at all. Also disabling this behaviour is not documented? Please SAVE my floppydrive and fix this software.
Inhibiting polling with: devkit-disks --inhibit-polling /dev/fd0 & works for me. But how do I make this permanent without putting it into startup scripts? I havent't found any configuration file for this.
Doesn't work for me: # devkit-disks --inhibit-polling /dev/fd0 & [1] 3811 [root@P5K-EWIFI ~]# Inhibit polling failed: org.freedesktop.devicekit.disks.inhibit-polling no De-installed to save my floppy drive and am keeping a F11 kernel around.
Created attachment 347963 [details] This is the floppy entry
Strange entry in gnome-panel after executing "devkit-disks --inhibit-polling /dev/fd0". See attached screen shot.
gvfs-1.2.3-5.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gvfs-1.2.3-5.fc11
gvfs-1.2.3-5.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gvfs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-6678
Reopening this bug. It turned out that the patch I put in here is not sufficient to fix the floppy polling problem. I've asked David to get the remaining parts out as updates as well.
gvfs-1.2.3-7.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/gvfs-1.2.3-7.fc11
After updating, no real change: (...) Too big adjustment 32 Too big adjustment 32 Too big adjustment 32 hda-intel: IRQ timing workaround is activated for card #1. Suggest a bigger bdl_pos_adj. end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 end_request: I/O error, dev fd0, sector 0 # rpm -qa |grep gvfs gvfs-gphoto2-1.2.3-7.fc11.x86_64 gvfs-smb-1.2.3-7.fc11.x86_64 gvfs-fuse-1.2.3-7.fc11.x86_64 gvfs-obexftp-1.2.3-7.fc11.x86_64 gvfs-archive-1.2.3-7.fc11.x86_64 gvfs-1.2.3-7.fc11.x86_64
gvfs-1.2.3-7.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
Please see comment #17.
I also had this problem on Fedora 11 x86_64. I use the floppy drive, so disabling it is NOT an option. I know most of you don't have this type of hardware on your PC these days, but as a bit of an old-timer, here are a few facts to consider: 1. Floppy drive motors are not rated for continuous duty. This polling appears to be running the head positioning motor to try to read track zero as well as possibly the drive motor. Either action every two seconds will fail the drive over time as the the motors have some run time and spin down time. 2. Please review the interface chip. The Intel 82077 (or clone) FDC used pin 31 for DSKCHG and it show up as bit 7 of the Digital Input Register (DIR, PC-AT Mode) "DSKCHG monitors the pin of the same name and reflects the opposite value seen on the disk cable, regardless of the value of /Invert" The DSKCHG signal would be the preferred way of polling the disk. Poll for a disk change and only try to read after that. (change in the floppy module to get disk change?) The main thing is to not keep running the motor. Not sure what problems I'll cause, but under /usr/libexec, I mv'ed the devkit-disks-daemon to devkit-disks-daemon.do_not_run and then rebooted. It seems the HALD is still polling the other removable drives, so they pop-up as media is inserted. I tried to put the devkit-disks --inhibit-polling /dev/fd0 & into a startup script and that did not seem to work.
`rmmod floppy` is also a beautiful workaround but that prevents you from actually using the device...
BTW: could this eject issue https://bugzilla.redhat.com/show_bug.cgi?id=507908 be related? (polling is the root cause for closing the cd tray?)
*** Bug 496586 has been marked as a duplicate of this bug. ***
Issue now also appears for me on F11 after upgrading to kernel 2.6.29.6-209.rc1.fc11 but not for earlier versions.
I compile my own kernels. So what is the common factor? (2.6.30 here)
DeviceKit-disks-004-4.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/DeviceKit-disks-004-4.fc11
(In reply to comment #27) > DeviceKit-disks-004-4.fc11 has been submitted as an update for Fedora 11. > http://admin.fedoraproject.org/updates/DeviceKit-disks-004-4.fc11 Please let me know if this fixes the problem with floppy drive torturing. Thanks.
How can we test? Just install? So I did. My floppy's green light was still on since the recent reboot. I reinserted the floppy module. I still heard some grinding. I removed the floppy module. Quietness.
(In reply to comment #29) > How can we test? > Just install? > So I did. > > My floppy's green light was still on since the recent reboot. > I reinserted the floppy module. > I still heard some grinding. > I removed the floppy module. > Quietness. It's not clear to me whether you rebooted after installing the new DeviceKit-disks packages - please try doing that.
As I did not describe it, I did not reboot. I *will* schedule a reboot when convenient.
Rebooted. Quietness remained. :-)
DeviceKit-disks-004-4.fc11 does fix the issue.
Great, thanks for testing this.
How do I load the update to give it a try?
DeviceKit-disks-004-4.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update DeviceKit-disks'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7382
Yes. The new DeviceKit-disks-004-4.fc11 fixes the issue with the Fedora provided kernel. For my self-compiled mainline kernels (2.6.30.1 and 2.6.31-rc2) I still get this error. The difference is maybe that I compile the floppy driver not as a module (i.e. CONFIG_BLK_DEV_FD=y). Strange, hmm? But I guess from a distro maintainer's view you don't care and I would understand this position.
DeviceKit-disks-004-4.fc11 fixes drive bashing on my system but the floppy drive icon is missing from the Computer browser window so I cannot mount a floppy disk from the graphical interface. If I mount the floppy as root from a terminal window, the floppy disk icon appears on my desktop and in the Computer browser, and the disk is accessible. When I unmount the drive from the command line, both icons disappear. Attempting to unmount the floppy disk from the Computer browser window produces no action and no error message. Attempting to unmount through the desktop icon produces the "...is not in the fstab (and you are not root)" error window.
DeviceKit-disks-0040-.fc11 on x86_64 still demonstrates the symptoms on /dev/sr0 device (MacBook Pro hardware). Still needs some work.
Typo. That was supposed to be DeviceKit-disks-004-4.fc11 on x86_64.
DeviceKit-disks-004-4.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
Are the problems I reported in comment #38 related to DeviceKit-disks or should I be posting against another package?
I'm having this problem with Fedora 11 for i386 with a locally-compiled 2.6.30 kernel, using DeviceKit-disks-004-4.fc11.i586 and gvfs-1.2.3-9.fc11.i586. I can manually execute "devkit-disks --inhibit-polling /dev/fd0" to make the clicking stop, but I haven't been able to automate this; putting such a line in /etc/rc.d/rc.local has no effect. I consider this a serious problem because it's obtrusive and potentially damaging to hardware. Fedora 10 and earlier didn't exhibit this sort of behavior. Personally, I'd rather do without automounting altogether rather than have this maddening clicking going on at all times, or be forced to manually type a command to get rid of it!
Having the same problem: # ps auxwwf | egrep poll root 2892 0.0 0.0 46360 312 ? S Sep08 14:34 \_ devkit-disks-daemon: polling /dev/sr0 root 30136 0.0 0.0 19884 936 ? S Oct15 0:00 \_ hald-addon-storage: no polling on /dev/sr0 because it is explicitly disabled # rpm -q DeviceKit-disks DeviceKit-disks-004-4.fc11.x86_64 I can (and have) disabled polling for hal, but can't figure out how to do it for devicekit... Certainly doesn't seem to be fixed.
# devkit-disks --inhibit-polling /dev/sr0 Inhibit polling failed: org.freedesktop.devicekit.disks.inhibit-polling no Can't seem to figure out how to re-open the bug...