Ext. hard drive awakes when starting VLC since v1.0.0

macOS specific usage questions
Sunwalker
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Feb 2007 19:14

Ext. hard drive awakes when starting VLC since v1.0.0

Postby Sunwalker » 20 Jul 2009 23:19

Hi,

since version 1.0.0 of VLC, my external hard drive always awakes, when starting VLC. Is there a way to change that?

nikola23
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 03 Feb 2009 07:25
VLC version: 1.2 pre3
Operating System: Win7\Ubuntu 10.10

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby nikola23 » 21 Jul 2009 00:31

Do you have your external harddrive set as one of the directories in your media library?

Sunwalker
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Feb 2007 19:14

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby Sunwalker » 21 Jul 2009 00:39

No, but I deactivated the library entirely now. Perhaps that solves the problem. Thanks.

Sunwalker
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Feb 2007 19:14

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby Sunwalker » 21 Jul 2009 19:00

Even with deactivated media library my ext. hard drive spins up on VLC start every once in a while.

So, any other suggestions?

ajmas
Big Cone-huna
Big Cone-huna
Posts: 935
Joined: 04 Feb 2006 07:33
VLC version: 3.0.x
Operating System: MacOS X
Location: Montreal, Canada

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby ajmas » 22 Jul 2009 03:56

I have seen this happen in other Mac applications when access to the filesystem catalogue is made, such as through the open/save dialogue. I don't know what algorithm MacOS X uses for deciding when to wake a drive. I'll see if I can find an answer.
Providing logs, messages, configuration info (VLC, OS, Hardware) and a clear explanation of the issue always helps the problem solvers help you, even if they don't end up solving the issue. Just think what you would need if you were solving someone else's problem. Additional: Always looking for eager and capable MacOS X developers to join the VLC team - for more information see here.

nikola23
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 03 Feb 2009 07:25
VLC version: 1.2 pre3
Operating System: Win7\Ubuntu 10.10

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby nikola23 » 22 Jul 2009 03:59

What kind of harddrive is it? brand model etc.

Sunwalker
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Feb 2007 19:14

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby Sunwalker » 22 Jul 2009 09:07

It's a Western Digital My Book Essential 1TB connected via USB.

http://www.wdc.com/de/products/products.asp?driveid=353

ajmas
Big Cone-huna
Big Cone-huna
Posts: 935
Joined: 04 Feb 2006 07:33
VLC version: 3.0.x
Operating System: MacOS X
Location: Montreal, Canada

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby ajmas » 22 Jul 2009 14:51

Here is the answer I got (I asked on the darwin-dev mailing-list), when I asked what conditions cause a drive to spin up:
Basically, any I/O to the drive that is not in the cache will cause it to spin up. Unfortunately, much code (including in Apple's frameworks) likes to call statfs() on each and every filesystem any time an Open/Save dialog comes up, an application launches, etc. I can't remember for sure, but in my experience this often seems to spin drives up.

sudo fs_usage -w -f filesys
will show which filesystem calls are occurring and the elapsed time in the third to last column might allow your user to figure out which system call had to wait for the disk to spin up. It may then be possible to use dtrace to figure out the stack trace leading to the I/O and thus roughly where to assign blame / how to reproduce the problem.
I would have to see with the VLC developers if they are doing anything in particular.
Providing logs, messages, configuration info (VLC, OS, Hardware) and a clear explanation of the issue always helps the problem solvers help you, even if they don't end up solving the issue. Just think what you would need if you were solving someone else's problem. Additional: Always looking for eager and capable MacOS X developers to join the VLC team - for more information see here.

Ambrose
New Cone
New Cone
Posts: 3
Joined: 30 Jul 2009 07:55
Operating System: Mac OS
Location: Western New England, USA

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby Ambrose » 30 Jul 2009 21:37

Time Machine uses hard links -- which are otherwise rare in OS X -- for certain files it keeps in its backups. If you use Time Machine, and if the drive that keeps spinning up is the same one you are using as your external drive for it, that might be the problem. The persistent hard link I mentioned will in this case cause Time Machine will remember that once upon a time the storage disk contained another version of VLC. The system will spin up the drive to examine the copy of VLC it believes is still there, to determine whether it should be used as the default version of VLC instead of the one in your applications folder.

If I'm right about this, the only solution I know of is to remove the complete Time Machine restore file from the external drive and replace it from scratch. I suspect, although I do not know, that other backup apps may do this as well.

Sunwalker
Blank Cone
Blank Cone
Posts: 10
Joined: 02 Feb 2007 19:14

Re: Ext. hard drive awakes when starting VLC since v1.0.0

Postby Sunwalker » 30 Jul 2009 23:40

I do not use time machine and deactivated spotlight for the external partitions... So this shouldn't be the problem, I think.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests