How to put computer to sleep or reset USB bus from Terminal?

I'm using Missing Sync to connect a Windows Mobile PocketPC to my Mac for synchronizing data. Occasionally, as soon as I plug in the USB cable, the whole system gets hung. My mouse and keyboard don't work, but I can get into the system via SSH from another machine. Once I'm in, is there anything I can do that's more graceful than using the button on the front of the Mac to shut it off? For example, can I get it to sleep (and then wake up) from terminal? Maybe that will reset things. Or maybe there's a way to re-init the USB bus from terminal. Any suggestions? I hate shutting it off via the button - what's the better way, once it gets hosed like that?
Mike

There may be other processes you can kill instead (or in addition), but without
seeing more about the state of the machine it's hard to tell.
what information would you want to see about the state of the machine? Is there something in the console log that I can post? I'd like to be ready with all of the possible KILLs when this happens again... In general, what processes do I kill to reset stuff without a hard reset? Logging me out of the account is fine; a graceful software reboot is ok too - I just hate the cold shutdown from the power button.
Thanks!
Mike

Similar Messages

  • How to put computer to sleep?

    hey guys well i have a question, until today i always put my computer to sleep by pressing the power button btu i just mentioned theres also an option in the menu in the os, which way is preffered to put ur mac to sleep? and to wake it up i always click the keyboard and move the mouse, thats ok ya?
    thx indeed

    I press "Command" "Option" "Eject" from the keyboard to put my mac to sleep.
    Press amy key or press or move the mouse to wake it up.

  • Energy saver does not put computer to sleep

    i have a new 15 inch macbook pro running 10.6.4. When the energy saver (i have checked all the proper buttons putting computer to sleep after 5 minutes of non use) puts the computer to "sleep" it actually does not sleep...it appears to sleep but the sleep light says illuminated (instead of pulsing) and then eventually the computer battery is drained and the computer needs a hard restart. All other sleep methods properly put it to sleep from choosing from the apple menu to shutting the lid...I assume there might be some program that is running in the background but when i look at console activity i see nothing noted...any thoughts as to how to solve this problem? thanks

    You might try a SMC reset:
    http://support.apple.com/kb/HT1411?viewlocale=en_US
    Good luck!

  • How to put q10 to sleep with power/lock button

    Hello! Love some help on this seemingly simple problem....
    I am new to BlackBerry from iphone and am very happy except I have to wait for the 30 second time out before I put into my pocket... because I can't figure out how to put it to sleep or at least activate the lock screen instantly.
    On or off the settings/lockscreen option doesn't seem to do anything. I have not a password lock activated and prefer not too if possible.
    I am on the latest os fyi.
    Can anyone help??
    Thanks ewan

    I'll be happy to help you with this.
    You can put your Q10 to sleep simply by pressing (and not holding) the power button up top. A quick press will put it to sleep.
    I hope that helps you.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • HT201150 The allow power button to put computer to sleep is missing in the preferences on my MB Air?

    The allow power button to put computer to sleep is missing in the preferences on my MB Air?
    I have the funtion but no way to turn it off?

    "Allow power button to put the computer...: Apple Support Communities
    uptalk - definition of uptalk by the Free Online Dictionary, Thesaurus and Encyclopedia.

  • Why does Mail go back online when I've set it to offline and put computer to sleep (Power Nap NOT enabled)

    Why does Mail go back online when I've set it to offline and put computer to sleep (Power Nap NOT enabled)

    for me this issue is only new powerbook w retina display on 10.8. do not have issue on Lion, imac, ibook or old powerbook 17.

  • How often to put computer to sleep?

    Dumb question maybe but is it good or not to put the computer in sleep mode when away? I tend to do that all the time, assuming it's always good to stop those hard drives from unnecessarily running, etc. Then again maybe starting them up and stopping them this frequently is worse? I'd say I put the computer into sleep mode five or six times a day then during the night.
    Thanks.
    John

    Hard drives are usually rated for at least 25,000 start/stop cycles, so sleeping 5 or 6 times a day should not be a problem.

  • Shutting Lid Puts Computer to Sleep?

    Hi, first things first...I've the proud owner of a brand new MacBook...I love it! It's my third mac...so I'm really excited. Anyways, I generally stay signed on iChat 24/7 and also like to be downloading things while I'm away...However, when I shut my lid...it puts the computer to sleep. Is there any way to set it up so that when I shut the lid, the computer will still stay on so it can continue to be doing things? Thanks

    Hi, first things first...I've the proud owner of a
    brand new MacBook...I love it! It's my third mac...so
    I'm really excited. Anyways, I generally stay signed
    on iChat 24/7 and also like to be downloading things
    while I'm away...However, when I shut my lid...it
    puts the computer to sleep. Is there any way to set
    it up so that when I shut the lid, the computer will
    still stay on so it can continue to be doing things?
    Thanks
    If you can't find a way to leave the computer on with the lid closed but want to increase the screen's life, you could always leave the lid open and set the brightness to 0 (effectively turning the screen off).

  • Put computer to sleep and now it wont wake up

    Last night i set up my new desktop and i program it to need a password every time i need to login. so when i put my computer to sleep last night and when i got up this morning it wont wake up. I turned it off and restarted it but when i turned it back on my monitor said that it has no signal, my mouse and keypad isn't working. What can i do to make everything work again

    Look at the back of the monitor and check video connections. You should only have 1 video cable connected. You just have to choose from VGA, DVI or HDMI.

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • Shuffle puts computer to sleep?

    I purchased the shuffle for my husband for Christmas. It initially worked, but now, when I put it on the dock, the computer basically goes to sleep and won't wake up. The monitor goes to sleep and the only way to get the computer to work is to unplug it and turn it back on.
    Anyone else have or hear of this problem? Any ideas for how to fix?
    (Note: we tried a different dock with the same results. Also, this problem does not occur when I plug in my Nano.)
    Thanks!

    This also happens to me but only occasionally and my monitor stays on. I also have to unplug it in order to successfully restart it.
    I haven't been able to determine exactly how to make it happen but it always occurs when I'm plugging my shuffle in to the dock. When it does happen, the power light on the front of my PC goes off and although the monitor stays on, the cursor is locked. I went as far as replacing the PC's power supply but that did not help.
    It'd be great to find a solution for this, especially since we just got a second shuffle for my wife.

  • Encore cs5 putting computer in sleep mode

    hey all
    new to the forum and need a little help please
    i recently updated my creative suite cs3 to the new masters cs5
    i'm more a photographer and don't do a lot of video.
    I recently have decided to teach myself wih alot of help from tutorials to use premiere pro and encore.
    i have managed to make a project with premiere that i'm happy with and i simply wanted to export to dvd
    so i send it to encore put the project in the timeline and set the end action to chapter one.
    next i choose build and check the settings i want.
    now after about 3-5 minutes of encore doing it's thing the computer simply goes to sleep and no way to wake it up.
    i have set all my power options on hard disc, monitor, cpu etc. to never go to sleep and it still happens
    i even let it run while doing other things on the computer and it still goes to sleep.
    my machine
    windows 7 x64
    intel i7
    nvidia 9800gtx+
    12gb ram
    WD raptor hard drive
    i'd like to think that my computer specs are reasonable and shouldn't be causing the problem.
    i'll also mention that the CS5 suite was installed on a clean windows installation.
    would really apretiate any help as this is driving me crazy. I did a google search but didnt find any answers with my problem.
    Found a lot of discussions about encore not launching and crashing but i dont have that issue...just the darned thing going to sleep
    thanks in advance

    Though written more for NLE work, than authoring, there are strong similarities between the two operations, this ARTICLE might offer some tips on getting one's machine ready for the intense work required from either editing or authoring.
    Now, and with that said, John T's comment on heat buildup is the most common cause of such issues. One little utility that might be of help is SpeedFan, linked in this ARTICLE (along with some other great utilities). I would also look into addressing any/all cooling issues. Things like dust buildup, lack of proper fans, lack of proper air-flow, etc., can be major contributors and MUST be addressed. Within logical levels, one can never have their computer run too cool.
    Other possible causes can be bad RAM (there are RAM testing utilities in that linked article), or a PSU that is too weak, improperly hooked up, or going bad, or a MoBo going bad.
    Good luck,
    Hunt
    PS - along with those tutorials, I have one recommendation: Jeff Bellune's great book, The Focal Easy Guide to Adobe EncoreDVD 2.0, Focal Press. He covers about 95% of all that you will need to know with Encore. The only omissions will be BD and ADL (Adobe Dynamic Link), as they were added later. Still, that book will become your prime reference. Amazon has it, and should be available in OZ, though I do not know that for a fact.

  • How to put computer docs on iPad

    How do I create documents on an iPad?

    Via an app. If you want to store or create documents on the iPad then you first need an app on the iPad that supports that document type - unlike a 'normal' computer the iPad doesn't have a file system, and everything on it has to be associated with an app. How you then get your documents from your computer to the iPad will depend upon what the app supports e.g. the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc

  • Disconnects when I put computer on sleep

    I just bought a new MacBook Pro and I'm using iChat to run AIM. It works fine and everything, but just when I go away from my computer and my laptop goes to sleep, when I come back iChat will not be logged in and I have to reconnect again. I really want to have myself signed in the whole time even when I leave, is there anyway I can fix this problem?! Thanks =]

    I really want to have myself signed in the whole time even when I leave, is there anyway I can fix this problem?!
    Not if the whole machine goes to sleep as opposed to only the display; open the Energy Saver pane of System Preferences to view and change the settings.
    (33777)

  • How do I reset print system from terminal

    I was having trouble seeing my desktop's shared printer from my laptop, so I ran the following in the terminal:
    cupsctl BrowseProtocols='"cups dnssd"'
    Now any app that so much as thinks about printing crashes, including the system preferences. I am totally hosed here. How can I undo this? I can't get to any printer dialog to "reset the print system"

    AFAIK, there is no Terminal command to reset the printing system. This question was asked a while ago for Leopard and this was the answer then - don't know if this has changed for SL. The CUPS man pages would suggest it hasn't...
    But there is now the ability to reset the cups daemon configuration file via the CUPS web page. Using your browser, open the CUPS Admin page
    http://127.0.0.1:631/admin
    Here you will see the button 'Edit Configuration File'. Click this and you will see the cupsd.conf entries. Looking through this file shows that network shared printers are browsed using "BrowseLocalProtocols CUPS dnssd", the same as you tried to enter with the other command which could be only for 10.5?
    Anyway, here you will also see the button 'Use Default Configuration File'. Click this and then click Save Changes. This will prompt for your admin username and password. Enter these and OK. Hopefully this gets you back the ability to access Print & Fax and to print again.
    Pahu
    Message was edited by: PAHU

Maybe you are looking for

  • How to change my Macbook Pro's mane on the network ?

    Hi all, I trust your all well ! Could you please help me ? I want to change my Macbook Pro's mane on the network, I mean when I check all the computers using the network, I always find mine named with its IP or "MACBOOKPRO-1FQC" and I would like to c

  • How can you set up your subdomain pages in a subdirectory to show without the subdirectory name but the subdomain instead

    I am trying to understand how I can set up a series of pages for each of several subdomains such that when you view that web page it shows on the subdomain without the subdirectory name. Essentially I suppose I am wanting to point the subdomain at a

  • Totals not working correctly

    I am trying to create a calculation by evaluating a set of records and including only those that meet the criteria in the total. The calculation seems to work correctly on the individual records, but the total does not... it seems to be doubling the

  • Not able to make changes to workbook after transporting

    Hi all, I have transported query and the associated workbook from Dev to QA when i open the query using query designer in Dev, it is not allowing me to make changes. Now I need to make changes to workbook in Dev (ex. display long text instead of shor

  • Extending existing assets to another depreciation area

    hi We have some assets that have been created in depreciation area 01 already and have been in existence since last five years. Now the requirement is to show these values also in another depreciation area 22 wef 1st Jan 2011. For example here is a s