Bug 268103 - cdrom drive spins up each time a places panel is created if the cd/dvd is not mounted
Summary: cdrom drive spins up each time a places panel is created if the cd/dvd is not...
Status: RESOLVED DUPLICATE of bug 261552
Alias: None
Product: kfile
Classification: Applications
Component: kfileplacesview (show other bugs)
Version: 4.6.x
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 02:11 UTC by Frank Steinmetzger
Modified: 2013-02-22 17:12 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2011-03-10 02:11:50 UTC
Version:           unspecified (using KDE 4.6.1) 
OS:                Linux

When I have a CD/DVD inserted in my optical drive, then the drive spins up every time an instance of the places panel is created. Such occasions are mostly opening either a Dolphin window or -- more importantly -- an open/save file dialog. Not only does it wear down the drive, but also it delays the actual showing of the window until the drive has delivered the requested data.

Reproducible: Always

Steps to Reproduce:
- Have a CD/DVD inserted and _not_ mounted.
- Open a Dolphin window or any open/save file dialog.

Actual Results:  
The CD drive spins up every time one of the mentioned windows is opened and if the media is not mounted. If it is, then there is no spinup.

Expected Results:  
Spinup should not happen.

I might remember this wrong, but I’ve been running 4.6 for a while now, and this _might_ have started with the migration from hal to udisk.
Comment 1 Gregor Petrin 2011-03-22 00:00:10 UTC
I can understand that knowing the state of the inserted medium is important, but it is indeed very annoying that the system does this EVERY time, maybe the CD's state could be cached until it is ejected?

And some applications seem to wait for the spin to be complete for no valid reason - an example would be opening a hard disk media file in Kaffeine via the file manager, where Kaffeine first spins the CD drive and only plays the media after.
Comment 2 Johannes Loehnert 2011-12-04 19:23:54 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 alancio 2011-12-06 01:14:56 UTC
This is a duplicate of a bug that was filed 2 years ago and never solved:
https://bugs.kde.org/184449
Comment 4 Rasmus Steinke 2012-02-20 10:28:58 UTC
Its even worse... try to resize a dolphin window, while a DVD is in your drive. It will be sloppy. Now disable the Places Panel. Voila.. Resizing is smooth again.
Comment 5 Myriam Schweingruber 2012-09-07 14:59:14 UTC
(In reply to comment #4)
> Its even worse... try to resize a dolphin window, while a DVD is in your
> drive. It will be sloppy. Now disable the Places Panel. Voila.. Resizing is
> smooth again.

Which exact KDE version does that refer to?
Comment 6 Lukáš Tinkl 2012-09-26 10:36:01 UTC

*** This bug has been marked as a duplicate of bug 261552 ***
Comment 7 yanestra 2013-02-22 15:55:47 UTC
The file dialog and certain other mechanisms try to enumerate all present devices. With optical devices, they need to be spun up to find out their filesystem name and -type. That's a traditional and the developers do it for something they think is user convenience. Therefore it's not a bug and can no way be fixed: impossible. Windows does it like that.
Comment 8 Johannes Loehnert 2013-02-22 17:12:50 UTC
The bug was not about the drive spinning up in principle, it was about the driving spinning up EVERY TIME a window containg a places panel gets focus or is resized. It would be sensible to cache the gathered info until ejecting the disc.