[Kind of solution] Disable to turn off my computer

Hello!
I am using Archlinux with the Gnome desktop manager.
I also use an «auto login» when I start ( via bash_profile )
The problem is that I can only log out from Gnome but not halt my system or reboot it.
So, again thanks to my bash_profile, I use «sudo halt» which should ask me for my password and then turn off my computer ( knowing that I belongs to the power group and to sudoers )
Instead of this message I git a «You are not allowed to preserve the environment».
But I type «sudo halt» and then it works… so I don't understand 2 things : why Gnome don't propose me to turn off my machine and why can't I automatise my shutdown ?
Here is my bash_profile :
.$HOME/.bashrc
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
startx
sudo halt
fi
Thanks for helping me
Ok, I leave Gnome for Xfce… ^_^
Last edited by jiehong (2009-07-18 18:55:44)

Hello jiehong!
In last case: reinstall the core repo, like in livecd

Similar Messages

  • How can I disable or turn off Document Revisions (revisiond)?, How can I disable or turn off Document Revisions (revisiond)?

    Hi,
    Today I upgraded my MBP-15 from Snow Leopard to Lion. Is there any way to disable or turn off Document Revisions (revisiond). Thanks.

    1. Use apps that don't take advantage of the feature - that's most right now.
    2. Ignore it. It's entirely invisble to the user.
    Regards
    TD

  • Say I turn off my Computer or restart it & then I load up Firefox the pages I was previously at loads up. Is there any way to turn this off ?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    Say I turn off my Computer or restart it & then I load up Firefox the pages I was previously at loads up. This is very very very annoying & I see no options in the settings to turn this off. Is there any way to turn this off ? Even if I just press the X button to close Firefox then later in the day I open Firefox the previous pages always open & it is annoying. I apologize for the language but that is just how ''irritated'' & annoyed I am about this
    <blockquote>language cleaned up by a moderator - eh</blockquote>
    == This happened
    ==
    Every time Firefox opened
    == It started randomly
    ==
    == Troubleshooting information
    ==
    There was nothing in the Troubleshooting about this
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Default Plug-in
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 10.1 r53
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.50106.0
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    Hello David.
    Go into ''Tools > Options > General > Startup:When Firefox starts:'' and configure it as you want (probably to show your home page?). This is the very first option that appears in the options screen, but I understand that it may not be very easy to find. Firefox 4 will not include any redesign to the options screen (except possibly it appearing in a tab, rather than in a popup), but you may interested to know that there are plans to redesign the options screen for versions after Firefox 4, to make it easier to use. If you want to know more about the redesign, just ask.
    Anyway, if that doesn't help (it probably does, but just in case), it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • Should i be turning off my computer every night

    should i be turning off my computer every night

    Hi,
    This would be largely down to personal choice.  I would turn it off - why waste electricity on something you're not using
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Impossible to turn off the computer

    It is impossible for me to turn off the computer by clicking the normal sequence (apple symbol and turn off the computer). I need to press the on/off button for some seconds to be able to turn it off. I need your help, please.

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter "BOOT_TIME" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Note the timestamps of the BOOT_TIME log messages, which refer to the times when the system was started. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged before the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    For example, if the system was unresponsive or was failing to shut down for three minutes before you forced a restart, post the messages timestamped within three minutes before the boot time, not after. Please include the BOOT_TIME message at the end of the log extract—not at the beginning.
    If there are long runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A crash report has a name that begins with the name of the crashed process and ends in ".crash". A panic report has a name that begins with "Kernel" and ends in ".panic". A shutdown stall report has a name that ends in ".shutdownstall". Select the most recent of each, if any. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot. It's possible that none of these reports exists.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash or panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • How to safely turn off the computer while the motion servo is still enabled?

    When we use PCI-7344 and set it for serve closed control, I have found a very serious problem
    in using the control card in this mode.
    As the card is able to control motors only with the computer at power on status, but if we are very
    carelessly to shut down the computer and without the notice to turn off motor driver power first
    we would always get serious sudden moves of the motors, and might cause damages to the system. The same situation also applies to when control the motors under open/closed loop stepper mode.
    How should I do to prevent the above situation?
    (note: in my system, we have hook up relays and timers if we could set DIO bits before shut down
    the computer. But
    still, there are a certain occassions that the operator would still forget to set the DIO bits
    and turn off the computer directly)

    The Inhibit output pin of the motion controller (also called drive enable) is the best way to achieve this. It is basically a signal that most power drives take in as an active low input so that when the powergoes out of the computer, the line goes low and immediately kills the axis so that no servo ouptut command affects the motor.
    Best regards,
    Alex Games

  • There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now?

    There's a black and white striped glitch on the left side of my screen on my Macbook Air! Its happened before and has been an easy fix, usually just restart or turn off my computer but don't know what else to do. Is there anything I can try now? I wont be able to make it to the Apple store until tomorow and would prefer if there was something I could do that didnt cost money, my computers very new and I really need help.

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    I suggest that you try to repair the phone software using PC Companion..
    Before repairing your device you may want to backup your information first. Check out this topic for more information on how to.
    How to backup?
    If the issue should still remain I think that this needs to be examined and fixed at a repair center. For more information about how to submit your phone for repair and where, contact your local support team.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • I tried to eject a cd, didn't work so I turned off the computer and now it keeps getting stuck at the gray screen. How do I fix it?

    Here are a few more details. I put in a game cd for a windows computer, once I opened the folder on the desktop I noticed the install application was .exe so I tried to eject the cd but no matter what I tried on the computer it wouldn't come out. I will say though that I didn't try the manual cd eject cause I didn't have anything small to hit the button in the cd drive with. It was getting late so we decided to just turn off the computer and leave it for the next day. I can't remember if we turned the computer off with apple shut down or by holding down the power button but we walked away pretty quickly before it was fully shut down. The next day the computer won't turn on. When I walked into the room I was the computer stuck with a grey background with the apple logo showing and the circular thing under it frozen. Since no one was in the room I held down the power button and turned the computer off. We tried to start the computer again later but again it keeps getting stuck at the same spot. Now when we hold the power button down to turn it off I'm not sure if it's really turning off all the way. The screen goes dark but it sounds like the fan is still going. I tried disconnecting everything but the keyboard and mouse but when I started it up again it got stuck on the grey screen with just the apple logo. I'd really apprechiate help on this cause I live in Germany right now and support call centers work so much worse when you don't speak the language well... Thanks for any help you can give!

    Restart your computer while holding down left mouse key. That will eject the CD and your Mac will start as normal.
    Lupunus

  • HT204406 Although I have subscribed to ITunes Match my ipad setting only states under Settings Music, to subscribe to iTunes Match. But i have subscribed. i have played the downloaded songs from the icloud, too, and when i turn off my computer, the ipad m

    I subscribed to Music Match with iTunes and yet my ipad settings for Music only still has the option to subscribe, and therefore I cannot click on an option to Activagte iTunes Match, since it is not there. I have all the right number of songs from the icloud showing up in my ipad now, and I have played a few, but when I tried to turn off the computer, it showed a field stating that my ipad music would stop playing too, and it did. I thought this might have something to do with homesharing, but this I thought was something separate from iCloud.
    There is something wrong, but I don't understand what. It has just synced, but the problem persists.

    Home sharing is separate from iTunes Match.  Sounds like you were playing music using home sharing, which turned off when you turned off your computer.
    Open iTunes on your computer and go to the Store menu.  Confirm that there is a setting called Turn Off iTunes Match.  That will confirm that iTunes Match is enabled on your computer.  Then check to see what Apple ID you subscribed to iTunes Match with.  It will be the ID in Store>View Account (in parentheses).
    On your iPad, confirm that you are signed in with this same ID in Settings>iTunes & App Store (at the top).  If so, you should see an iTunes Match setting listed with an on/off slider.  Slide it on to enable iTunes Match on your iPad.

  • HOW DO I TURN OFF THE COMPUTER VOICE ON MY APPLE TV

    how do i turn off the computer voice on my apple tv?

    Settings > General > Accessibility turn off Voiceover.

  • How to invoke "Turn off the computer at the end"

    "Hey honey...wake up and get your spotty white *** out of bed and go turn off my computer"

    =============
    "Hey honey...wake up and get your spotty white *** out of bed and go turn off my computer"
    ============
    it must be....YES... IT IS !!!!  BEER THIRTY !!! YIPEE !
    ( no man would risk life and limb blurting this out without having a few beers under his belt ! )

  • IPhoto will not let me close, force quit, or turn off the computer because it says it is "importing photos" when it isn't. How do I fix it?

    iPhoto will not let me close, force quit, or turn off the computer because it says it is "importing photos" when it isn't. How do I fix it?

    Thank you- so simple, and it worked!

  • Turning off your computer when iPod touch is connected

    Whenever I sleep or turn off my computer while my iPod is asleep the iPod turns on. I don't know why but it just does.

    What is happening is no different than when you unplug your iPod from the computer - you wake it up.
    BTW, do not leave your iPod plugged into your computer when it is in sleep mode or turned off. You can drain the iPod's battery. The only exception might be if you left it plugged into a powered hub.

  • Every time i turn off my computer and back on i have to unistall and reinstall adobe flash player

    Everytime i turn off my computer and back on i have to unistall and reinstall adobe flash player11.8 . I have tryed everything i could find on the internet, nothing helps. please help.  I wish i could contact adobe directly but don't know how. Been trying to fix it for a week.

    Download and save the uninstaller Save it to your downloads folder -  DO NOT run it yet.
    Download the Adobe Flash Player installer directly by right clicking one (or both) of the following links and selecting "Save Target as"(IE) or "Save Link as"(other browsers).
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    Save the installer(s) to your downloads folder - DO NOT run it(them) yet.
    Reboot your system.
    BEFORE you run anything else, locate and run the uninstaller.
    When it finishes, run the  installer(s) to put Flash Player on your system again.
    If you use IE see also:Enabling Flash Player in Internet Explorer  and: ActiveX Filtering in Internet Explorer

  • My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers?

    My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers? Thanks a lot !!!!
    我的书签在电脑突然被断电之后全部丢失了,我该怎么办呢??谢谢啦!!~~~~

    This can also be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    * http://kb.mozillazine.org/Lost_bookmarks

Maybe you are looking for

  • I've changed my email and password for the apple id on my laptop, but the iphone still has old email address as apple id so i can't get on to itunes on the phoneto but anything - help!

    I've changed my apple id email and password on the laptop and now when i go to my son's iphone which uses the same account for itunes it's still showing the old email address and won't accept either the new or the old password - help! he wanted to bu

  • JClient status bar doesn't react to some panels?

    Hi, JClient 9.0.5.2/10.1.2beta The status bar doesn't react to all data bound panels in a same binding context? I have a main form with a tabbed panel. Each tab panel is composed of ADF bound panels. All those bound panels receive their Binding Conte

  • Intercompany STO Process

    Hi Experts I am in to Intercompany STO process with one step Goods issue procedure. When i tried to post PGI for the NLCC type D.O obtained the below error. Error Message Fld selectn for mvmt type 645 / acct 6005100 differs for Business Area (033) Pl

  • Document for PO Print Preview..

    Dear All, Now, i am on display purchase order ( ME23N ). After i have finished create SAP PO No., i want to display in print preview mode. My Question : anyone know t-code to maintain that document when i click print preview ? because i want to chang

  • Sort in a tableview

    Hello, my internal table has 10 records which are displayed in a Tableview. The user has the option to sort the information (asc/desc) according to the column which he wishes. Then he has to select a line to display the data of this record. It works