Shutting down from a console you're not using.

As described by many users of fglrx or r128 on old cards... when shutting down from inside X, there is a very good chance that the computer will freeze before it finishes shutting down.
Nothing I can do saves that and from others I hear the only way to complete the shutdown is to ssh into the machine and issue that command.
This led me to believe that if the shutdown command comes from an outside source it will finish whether or not the console running X has frozen.  I tried this script:
#!/bin/bash
rm /home/dummy
until [ 6 -eq 9 ]; do
if [ -e /home/dummy ]; then
poweroff
else
sleep 5
fi
done
And used touch /home/dummy to turn off the computer.  The script runs in console 2 so the poweroff command came from console 2 but i was running X in console 1.  Nevertheless I just experienced another lockup and the computer would not shut down.
Any idea why?  When someone ssh's into the machine and types "poweroff" the actual command that turns off this computer is coming from sshd correct?  And the reason it works is because sshd does not run in the same console as X, it starts up as a daemon before you even login to a console at all.  Does that mean if I somehow make the above script into a daemon and start it before logging in, touch /home/dummy will shutdown successfully all the time?
I need some way of shutting down (and using ssh all the time from another machine isnt practical) and I'm really confused as to why sshd can shutdown when console 1 is frozen but console 2 cannot shutdown when console 1 is frozen.  The only way to avoid the freeze would be to turn off 3D acceleration and from everything I've read this means starting X without 3D.  I'd love to know if there's a way to turn off 3D in the middle of an X session.
Does anyone have solutions?  Or am I stuck waiting until I have a server which automatically shuts down my laptop over ssh, when the laptop tells the server it wants to shut down?

Hopefully this will become a non-issue soon as kernel 2.6.23 makes the chance of freezing on shutdown seem like only 1%.

Similar Messages

  • Does windows and mac run continuously using parallel, or is there some way to stop xp from running if you are not using it?

    I would like to run a few windows programs but I dont want the mac side to suffer when i am not using the windows os.  Is there some way to shutdown the windows part when you are not using?

    If you are running MS Windows in Parallels or Fusion or any other virtualization  software  you can shut it down while the machine is operating and still run OS X. There is no trick, you shut down MS Windows just like you would with any other MS Windows machine. That is one of the main advantages of virtualizaiton software, the ability to run both environments simultaneously if you want. If you don't want to run Windows then simply don't start the virtualizaiton software or if it's already running quit it like you do any app on a Mac.

  • Unable to bootup after Yosemite install. have to keep shutting down from rear button. it does come on after a few times but then hangs at user login again. If you get in it is great. Seems faster than Mavericks but there is some sort of issue, bouts

    unable to bootup after Yosemite install. have to keep shutting down from rear button. it does come on after a few times but then hangs at user login again. If you get in it is great. Seems faster than Mavericks but there is some sort of issue, bootup /login.

    Knock on wood, this seems to have been my problem as well.  I stumbled on this thread after dealing with this ridiculously-long boot times for the past several weeks.
    I just reinstalled McAfee Antivirus and my Macbook Air booted up in less than 1 minute.  No more hanging on the boot-up progress bar.  No more hanging after I click on my user's avatar on the log-in screen.  Bootup would often take 5+ minutes and sometimes never complete.
    This has been SUPREMELY frustrating.
    THANK YOU SO MUCH FOR POSTING YOUR RESPONSE!!!

  • HT3775 can a .mov file be recovered if the record was accidentally shut down from loss of power? i was recording from the AJA Pro Ki when we lost power, the file is there but it wont play and comes up with the message, "The document "SC1ATK63.mov" could n

    Can a .mov file be recovered if the record was accidentally shut down from loss of power? i was recording from the AJA Pro Ki when we lost power, the file is there but it wont play and comes up with the message, "The document “SC1ATK63.mov” could not be opened. The movie is not in a format that QuickTime Player understands."

    Hi,
    Troubleshooting a start up script can be difficult. There are some third party programs that also keep logs of start up programs, however for Firefox this may be different.
    Is Firefox a startup program? [http://www.winxptutor.com/msinfo32.htm]
    Its also possible to check the Web developer tools for any scripts in a page: [https://developer.mozilla.org/en-US/docs/Tools/Debugger]
    In the control panel there is also Administrative tools to view event logs, but this may be something a local technician can walk you through.

  • My macbook pro doesn't restart or shut down from the apple menu. I run 10.7.5, any suggestions?

    My macbook pro doesn't restart or shut down from the apple menu. I run 10.7.5, any suggestions?

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

  • Since installing OSX 10 my iMac randomly shuts down and restarts.  I can not determine why this is happening.  Any ideas?

    Since installing OSX 10, my iMac randomly shuts down and restarts.  I can not determine why this is happening.  Any ideas?

    1. This is a comment on what you should and should not do to protect yourself from malicious software ("malware") that circulates on the Internet. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the victim's computer. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    If you find this comment too long or too technical, read only sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user, but internally Apple calls it "XProtect." The malware recognition database is automatically checked for updates once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
       3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    For the reasons given above, App Store products, and other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandboxing security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they're not absolute protection. The first and best line of defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the malware attacker. If you're smarter than he thinks you are, you'll win.
    That means, in practice, that you always stay within a safe harbor of computing practices. How do you know what is safe?
    Any website that prompts you to install a “codec,” “plug-in,” "player," "extractor," or “certificate” that comes from that same site, or an unknown one, is unsafe.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    Pirated copies or "cracks" of commercial software, no matter where they come from, are unsafe.
    Software of any kind downloaded from a BitTorrent or from a Usenet binary newsgroup is unsafe.
    Software that purports to help you do something that's illegal or that infringes copyright, such as saving streamed audio or video for reuse without permission, is unsafe. All YouTube "downloaders" are outside the safe harbor, though not all are necessarily harmful.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. If it comes from any other source, it's unsafe. For instance, if a web page warns you that Flash is out of date, do not follow an offered link to an update. Go to the Adobe website to download it, if you need it at all.
    Even signed applications, no matter what the source, should not be trusted if they do something unexpected, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    "FREE WI-FI !!!" networks in public places are unsafe unless you can verify that the network is not a trap (which you probably can't.) Even then, do not download any software or transmit any private information while connected to such a network, regardless of where it seems to come from or go to.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Follow the above guidelines, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. Any database of known threats is always going to be out of date. Most of the danger is from unknown threats. If you need to be able to detect Windows malware in your files, use one of the free anti-virus products in the Mac App Store — nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. Most of the real danger comes from highly targeted "zero-day" attacks that are not yet recognized.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    8. An anti-malware product from the App Store, such as "ClamXav," doesn't have these drawbacks. That doesn't mean it's entirely safe. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An anti-virus app is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    A Windows malware attachment in email is usually easy to recognize. The file name will often be targeted at people who aren't very bright; for example:
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥!!!!!!!H0TBABEZ4U!!!!!!!.AVI♥♥♥♥♥♥♥♥♥♥♥♥♥♥.exe
    Anti-virus software may be able to tell you which particular trojan it is, but do you care? In practice, there's seldom a reason to use the software unless an institutional policy requires it.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither should you assume that you will always be safe from exploitation, no matter what you do. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

  • I have been shut down from my previous email address as I left my company's email system, I am now on gmail and have changed my Apple Id and password successfully unfortunately I dont understand what I need to do to change my ICloud, IFace etc...ID?

    I have bene shut down from my previous Apple email ID as i left my company email' server. I have move to gmail and have successfully reset my Apple ID accordingly. My iCloud, IFace etc...unfortunately pop up with the previous email address and I dont remember the password, so I cant get in and change it to gmail! Anyone out there knows what to do, i would be very grateful, thanks. M

    First thing to try is just to sign out on all your devices. If you can do that you can just sign in with the new ID. However if you've set up 'Find My iPhone' you won't be able to.
    In that event go to http://iforgot.apple.com and sign in with your iCloud login. A new password will be sent to your associated email address. If this doesn't work you will have to contact Support. Go to https://getsupport.apple.com . Click' See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'. If you have any problems with that try this form: https://www.apple.com/emea/support/itunes/contact.html

  • Have file in Trash and can not empty trash . Showing 63 files and tried to shut down and restart and still will not empty

    Have file in Trash and can not empty trash . Showing 63 files and tried to shut down and restart and still will not empty.Anyone know what can be done?

    You are welcome. Glad I could help/
    Allan

  • My macbook shut down from itself

    hi
    after i upgrade to mountain lion my macbook pro shut down from itself when i'm searching or doing somethin (weird proplem)!
    idk what's the proplem is it because i opened more than 2 apps (which i think it's a silly proplem if it's in the mountain lion)
    or because i connected my iphone 5 wirelessly with my my macbook!
    apple needs to fix this proplem, it happens everyday to me!
    what do you suggest?

    Hi,
    Try a hard reset of your iPod:  Press/hold the *home* and *sleep/wake* buttons until the Apple logo appears. 
    Hope this helps! 

  • July 18,2011 AOL toolbar update install. I cannot open Firefox to uninstall the update or the toolbar because everytime I open Firefox it freezes and jams up. I have to shut down my computer as it will not even respond to force quit command

    July 18,2011 AOL toolbar update install. I cannot open Firefox to uninstall the update or the toolbar because everytime I open Firefox it freezes and jams up. I have to shut down my computer as it will not even respond to force quit command. I cannot read my mail (aol) or access my bookmarks all for work.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    You should be able to uninstall that AOL toolbar extension while running in the Firefox SafeMode.

  • HT204088 OS X Mavericks caused my mac to shut down. How do you resolve this issue?

    OS X Mavericks caused my mac to shut down. How do you resolve this issue?

    Some crappy software you have installed caused your Mac to shut down. Boot into safe mode and see if you have a kernel panic log  in Console, System Diagnostic Messages. If so, post it here.
    http://support.apple.com/kb/HT1564

  • 745 win 2000 problem no shut down from windows

    Hello every one;
    I have a 745 Mboard with ,256 MB DDR, Maxtor 60 Gig 7200, MSI GF4 MX 440 VGA, Sweex Lan card, AMD 2 Ghz CPU, Lite on CDRW and Samsung DVD.
    The pc boots normally when i restart and hold the power switch its shutting down. But when i try to shut down from Win2000 Pro it shuts down untill black screen the power button does not function and the fan and power light remain on. On the back of the casing is a switch when i switch off the pc is off, when i switch back on the pc boots again.
    Is there somone who had the same problems? And knows how to solve this one.

    In device manager double-click on computer and that brings up the description, if it says acpi computer then thats ok but if it says standard pc it won't shut down properly

  • Ipod touch shut down and now wont turn on, not even when plugged to the computer

    ipod touch shut down and now wont turn on, not even when plugged to the computer what can i do

    If you get an network timed out error, try disabling the security software on your computer.

  • HT1365 Hi I have Imac 5 processor and I guess installed Lion I am having difficulty with Wifi connection. Sometimes after shut down number of times still does not access wifi or if it does I can see wifi bar on iMac but can't open any webpage. Please help

    Hi everybody,
    I have Imac 5 processor and I guess installed Lion I am having difficulty with Wifi connection. Sometimes after shut down number of times still does not access wifi or if it does I can see wifi bar on iMac but can't open any webpage. Please help
    Thanks

    Hello:
    There was an OS X 10.7 update released a month or so ago that fixed this problem.  Run software update.
    Barry

  • Stop Firefox from telling you, you have not used it in a while and asking to reset it permanetly.

    I need to permanently, FOREVER, stop Firefox from telling me I have not used it in a while and prompting me to reset it. I have 100s of PCs that are frozen and as far as Firefox is concerned they ARE ALWAYS in need of being reset. This must go away. When Firefox starts on these PCs it MUST NEVER ask a question or prompt the user for anything EVER. All the decisions have already been made for the user and that MUST NOT CHANGE.

    Thanks for the reply. I have heard that about the file, but I need to know how to tell Firefox that I don't care about when it was last used etc. I can delete the file, but it will come back. So the real answer I need is how to tell Firefox "not to check" when it was last used in the first place, not what file contains that information.
    For now I will delete the file then, without starting Firefox I will freeze it and hope that will work. But Firefox needs a way that I can just tell it to not care.
    Thanks again for help,
    Ralph

Maybe you are looking for

  • Return to last position after record?

    I have a key command ("return") set to return to last position. The problem is, when I record a take, this function returns me to the beginning of the recorded clip instead of where I actually started from. If i don't record anything, this works fine

  • File edit view help missing in acrobat XI

    I am running Windows 7 Home Premium SP 1. Most of the time when I open a PDF file everything is fine. However, I have lately had several PDF's open and when I open another, the File, Edit, View, Help tabs are missing as is all the info above where th

  • Has anybody NOT returned their battery after the recall?

    My battery is eligible for the recall, and I've submitted the form online. Like it's been stated in other posts, Apple never asks for any credit card information. Despite the potential problems of continuing to use a bad battery, has anybody decided

  • Why doesn't my iTunes on Windows 7 have any synchronizing options for my new ipad.

    this is all I have got from my Itunes.  It does recognise that I have connect my ipad to the itunes, but it does not give me any synchronising options as it is supposed to have such as videos, musics. contracts and so on. Can some body helo me please

  • Workflow to pull down bwf audio?

    Hi. Film student in Austin here. I'll be cutting a 23.98HD project--originally shot on 16mm--but telecined to 23.98HD for eventual 23.98 HD output. The audio was recorded as 48k bwf files. So, the 24p film, having been transferred to 23.98HD, has bee