Quote:
Originally Posted by bcaslis
I have a MacBook Pro Core 2 Duo and a Pearl. What is pcscd? What is conservative mode?
|
basically you change /private/etc/mach_init.d/securityd.plist
from:
<string>/usr/sbin/securityd</string>
to:
<string>/usr/sbin/securityd -s conservative</string>
Notes: -- please read this before you do this hack.
These files are owned by the root, so if you are comfortable with the terminal and it's text editors, know that you'll need to sudo to modify them. If you have no idea what that last sentence meant, you should probably use TextWrangler from BareBones software. You can find it on macupdate.com. You'll need to enter an administrator password to save your changes.
You should absolutely backup securityd.plist before you attempt any modifications. again, owned by root, affects system processes. bad things could happen.
Now what it does.... Basically pcscd is a component of the OS that is called whenever a smartcard (compact flash, etc) reader is attached. AFAICT, it's job is to try loading several different smartcard drivers until it finds the one that works and then goes away. It's how the OS is able to natively support digital cameras and flash card readers, etc without installing drivers for your specific device.
Well in default mode it is also called whenever an "unknown USB device" is attached, on the chance that it is a smart card reader the OS doesn't know about.
For whatever reason, the blackberry's internal memory seems to be detected as an unknown usb device, pcscd will on occasion (sometimes just on the connection of the phone, sometimes on the sync, sometimes when trying to upload files, sometimes not at all) try to talk to it and not give up... the process will remain, utilizing all your free processor strength and not allow your computer to shut down without hard booting the machine.
And if you didn't know, everytime you hard boot your system you risk damaging the volume formatting of your drive, and making your OS non-bootable or corrupting files.
Conservative mode just tells pcscd to only launch for known smart card devices, thus it doesn't try to talk to the phone. Which is great.... pocketmac generally talks to the phone no problem, it quits out and your machine restarts without risking killing it.
The problem is that digital cameras and other valid smart card readers that the OS doesn't know about (eg. "unknown usb devices") won't call pcscd either, so some of your devices might not work.
As i said, these are system files and shouldn't be modified lightly. my instructions are intentionally vague, because if they don't give you a clear picture of what needs to be done you probably shouldn't be doing it (im sorry if that comes across as rude). ultimately i'd like to wrap it up in a shell script to do and undo the change, but my regular expressions are rusty anymore so i haven't figured out how to do the find & replace string from the command line.