LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-16-2012, 09:06 AM   #1
bteeuwen170
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: Disabled
Question Computer wont shutdown


Hi guys,

I have a problem with my 4 jears old Packerd Bell computer. It's a dual-boot with Windows XP, Ubuntu 11.04 and Pinguy. When i boot into Ubuntu or Pinguy and then shutdown the computer the system simply reboots. Ive tried to enter poweroff or shutdown -f or halt shutdown -h but the system only reboot. But if i use Windows XP and then shutdown the computer the system normally shutdown. This is a very annoying problem! Can anyone please help me???

Sorry for my bad english... I live in the Netherlands

Last edited by bteeuwen170; 04-16-2012 at 09:11 AM.
 
Old 04-16-2012, 01:04 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,392
Blog Entries: 7

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
How about
Code:
#shutdown -h now
http://unixhelp.ed.ac.uk/CGI/man-cgi?shutdown+8
 
Old 04-16-2012, 08:42 PM   #3
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 81

Rep: Reputation: 23
Wink

Quote:
Originally Posted by bteeuwen170 View Post
Hi guys,

I have a problem with my 4 jears old Packerd Bell computer. It's a dual-boot with Windows XP, Ubuntu 11.04 and Pinguy. When i boot into Ubuntu or Pinguy and then shutdown the computer the system simply reboots. Ive tried to enter poweroff or shutdown -f or halt shutdown -h but the system only reboot. But if i use Windows XP and then shutdown the computer the system normally shutdown. This is a very annoying problem! Can anyone please help me???

Sorry for my bad english... I live in the Netherlands
shutdown -h should have done it, although I assume you are using a time specification as the man page seems to require it (normally using now for desktops). There is an option shutdown -P to force poweroff. Still I wonder if there is some BIOS setting causing this behaviour.

Ken
 
Old 04-17-2012, 02:40 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Rep: Reputation: Disabled
Shutdown -P is for *BSD systems AFAIK. On many Linux installs shutdown is only for root. You have to enable it in the system settings (sorry, I use KDE, I don't know where to switch it on in your systems).
 
Old 04-17-2012, 07:22 AM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
In most linux distro only root can shutdown the system .
The command is
sudo shutdown -h now
It will ask for root password.
 
Old 04-17-2012, 07:25 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639

Rep: Reputation: Disabled
Quote:
Originally Posted by ronlau9 View Post
...
sudo shutdown -h now
It will ask for root password.
The OP has Ubuntu as his system. As I understand it, Ubuntu sudo asks for the user's password?!?
 
Old 04-17-2012, 03:58 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Might try to log off from the gui and then use the welcome screen to do shutdown. (if you have it)
 
Old 04-17-2012, 07:18 PM   #8
Kenarkies
Member
 
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 81

Rep: Reputation: 23
Quote:
Originally Posted by JZL240I-U View Post
The OP has Ubuntu as his system. As I understand it, Ubuntu sudo asks for the user's password?!?
Just a clarification.
Code:
sudo shutdown -P now
works fine on Ubuntu. Also sudo does ask for the current user's password but if you are doing lots of sudo's, and aren't overly worried about security, you can avoid that by adding in the /etc/sudoers file (using visudo)
Code:
username ALL=NOPASSWD: ALL
where "username" is your normal username (if desired replace the second ALL with specific applications, eg /sbin/shutdown).

In any case this is not the best way to shutdown if you are using a desktop. It should work naturally from the GUI.

Ken
 
Old 04-18-2012, 07:36 AM   #9
bteeuwen170
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
sudo shutdown -P now works! Thank you very much!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Shutdown Windows XP Computers with a Linux Server BeauSanders LinuxAnswers Discussion 1 03-11-2014 09:03 AM
Shutdown multiple computers via ssh, try different passwords genderbender Programming 10 10-01-2010 02:59 PM
How to Shutdown Windows XP Computers with a Linux Server BeauSanders Linux - General 1 06-09-2009 07:55 PM
PID wont shutdown ashlyjay Linux - Newbie 6 03-15-2007 01:05 PM
Shell Script to shutdown network computers? Brnzwngs Linux - Networking 6 09-11-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration