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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-16-2012, 09:06 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 3
Rep: 
|
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.
|
|
|
04-16-2012, 01:04 PM
|
#2
|
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,392
|
|
|
|
04-16-2012, 08:42 PM
|
#3
|
Member
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 81
Rep:
|
Quote:
Originally Posted by bteeuwen170
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
|
|
|
04-17-2012, 02:40 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639
Rep: 
|
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).
|
|
|
04-17-2012, 07:22 AM
|
#5
|
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: 
|
In most linux distro only root can shutdown the system .
The command is
sudo shutdown -h now
It will ask for root password.
|
|
|
04-17-2012, 07:25 AM
|
#6
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,639
Rep: 
|
Quote:
Originally Posted by ronlau9
...
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?!?
|
|
|
04-17-2012, 03:58 PM
|
#7
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Might try to log off from the gui and then use the welcome screen to do shutdown. (if you have it)
|
|
|
04-17-2012, 07:18 PM
|
#8
|
Member
Registered: Nov 2007
Location: South Australia
Distribution: Ubuntu 11.10
Posts: 81
Rep:
|
Quote:
Originally Posted by JZL240I-U
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
|
|
|
04-18-2012, 07:36 AM
|
#9
|
LQ Newbie
Registered: Apr 2012
Posts: 3
Original Poster
Rep: 
|
sudo shutdown -P now works! Thank you very much!!!
|
|
|
All times are GMT -5. The time now is 09:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|