Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Any way of shutting down restarts instead

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
ariel6
Posts: 9
Joined: 2013-01-27 18:25

Any way of shutting down restarts instead

#1 Post by ariel6 »

I have an odd problem with my fresh debian wheezy install.
Whenever I try to shut down, my laptop (HP ProBook 4540s) turns off all the lights and it looks as if it shut down, and after about a second it restarts!
I'm posting here because I tried in all the possible ways I know to fix that but failed, the guys at #debian suggested I upgrade to sid - but I really prefer to remain on wheezy.

Also my BIOS is updated and I have a Win7 partition which turns off the computer properly.

Any suggestions?

AnInkedSoul
Posts: 461
Joined: 2010-06-11 05:05

Re: Any way of shutting down restarts instead

#2 Post by AnInkedSoul »

What environment are you using?

Describe how you are shutting down the computer and what happens.

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#3 Post by ariel6 »

AnInkedSoul wrote:What environment are you using?

Describe how you are shutting down the computer and what happens.
I'm currently running with no environment (command line). I tried shutting it down via different commands -> sudo shutdown 0 (tried different parameters as well -P/-h etc.)
sudo poweroff
sudo halt
Clicking the shutdown (physical) button

Whenever I do one of those the result is the same- The computer shut downs (all lights turn off) and after a second it surprisingly restarts

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Any way of shutting down restarts instead

#4 Post by llivv »

Is the shutdown button you refer to above in Gnome, Kde, Xfce or Lxde?
(are there any other Desktop Environments with a shutdown button on the panel or in the menu?)

try shutting down the session manager (typically gdm3 or kdm),

Code: Select all

/etc/init.d/gdm3 stop  
if using kde exchanges kdm for gdm3 in the command

than run your shutdown command.from the commandline.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

bigal
Posts: 31
Joined: 2009-10-10 11:22

Re: Any way of shutting down restarts instead

#5 Post by bigal »

Personally I always log in as root (switch user) su -, then run shutdown now -h (for halt) or -r for reboot. You can change the 'now' switch for 1,2,3 etc minutes to give a timed shutdown.

To clarify.
$ su -
# shutdown now -h

or
# shutdown 2 -r

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#6 Post by ariel6 »

llivv wrote:Is the shutdown button you refer to above in Gnome, Kde, Xfce or Lxde?
(are there any other Desktop Environments with a shutdown button on the panel or in the menu?)

try shutting down the session manager (typically gdm3 or kdm),

Code: Select all

/etc/init.d/gdm3 stop  
if using kde exchanges kdm for gdm3 in the command

than run your shutdown command.from the commandline.
bigal wrote:Personally I always log in as root (switch user) su -, then run shutdown now -h (for halt) or -r for reboot. You can change the 'now' switch for 1,2,3 etc minutes to give a timed shutdown.

To clarify.
$ su -
# shutdown now -h

or
# shutdown 2 -r
Did you guys read my post?
I'm currently running with no environment (command line). I tried shutting it down via different commands ...
I tried what you suggested, and it didn't help :cry:

bigal
Posts: 31
Joined: 2009-10-10 11:22

Re: Any way of shutting down restarts instead

#7 Post by bigal »

Sorry, I do not understand.

You say
I'm currently running with no environment (command line). I tried shutting it down via different commands ...
If you do not have access to the command line, where are you entering the commands?

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Any way of shutting down restarts instead

#8 Post by golinux »

bigal wrote:Sorry, I do not understand.

You say
I'm currently running with no environment (command line). I tried shutting it down via different commands ...
If you do not have access to the command line, where are you entering the commands?
I think he means he doesn't have a DE only cli available.
May the FORK be with you!

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#9 Post by ariel6 »

golinux wrote:
bigal wrote:Sorry, I do not understand.

You say
I'm currently running with no environment (command line). I tried shutting it down via different commands ...
If you do not have access to the command line, where are you entering the commands?
I think he means he doesn't have a DE only cli available.
Absolutely
By the way, this might be helpful: I am able to shutdown properly from safe mode. I'm trying to disable different things now to find what causes this so if anyone has suggestions please do write them. Thanks

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Any way of shutting down restarts instead

#10 Post by llivv »

ariel6 wrote: I'm currently running with no environment (command line). I tried shutting it down via different commands -> sudo shutdown 0 (tried different parameters as well -P/-h etc.)
sudo poweroff
sudo halt
Clicking the shutdown (physical) button

Whenever I do one of those the result is the same- The computer shut downs (all lights turn off) and after a second it surprisingly restarts
"Clicking the shutdown (physical) button"
is where I lost ya.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#11 Post by ariel6 »

llivv wrote:
ariel6 wrote: I'm currently running with no environment (command line). I tried shutting it down via different commands -> sudo shutdown 0 (tried different parameters as well -P/-h etc.)
sudo poweroff
sudo halt
Clicking the shutdown (physical) button

Whenever I do one of those the result is the same- The computer shut downs (all lights turn off) and after a second it surprisingly restarts
"Clicking the shutdown (physical) button"
is where I lost ya.
I just meant I tried many ways of shutting down the computer, by running shutdown commands and by actually clicking the shutdown button from the computer, but it just seems to do the seem all the time

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Any way of shutting down restarts instead

#12 Post by llivv »

have you tried switching to runlevel 0 manually?

Code: Select all

# /sbin/telinit 0
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#13 Post by ariel6 »

llivv wrote:have you tried switching to runlevel 0 manually?

Code: Select all

# /sbin/telinit 0
Yes, same result unfortunately :(

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: Any way of shutting down restarts instead

#14 Post by llivv »

Like they recommended at #debian, there may already be a fix in unstable.
is this your machine
HP ProBook 4540s Notebook PC - Specifications

if your really not interested in adding unstable I found these links on the wiki

Debian on mobile - mailing list
http://lists.debian.org/debian-laptop/

Linux Laptop & Notebook Installation Guides: Hewlett-Packard - HP
http://www.tuxmobil.org/hp.html

Linux on HP Laptops
http://www.linux-on-laptops.com/hp.html

It looks to me like your model is fairly/extremely new.
Which is probably why #debian recommended unstable as the best alternative, until backports catches up..
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.

ariel6
Posts: 9
Joined: 2013-01-27 18:25

Re: Any way of shutting down restarts instead

#15 Post by ariel6 »

llivv wrote:Like they recommended at #debian, there may already be a fix in unstable.
is this your machine
HP ProBook 4540s Notebook PC - Specifications

if your really not interested in adding unstable I found these links on the wiki

Debian on mobile - mailing list
http://lists.debian.org/debian-laptop/

Linux Laptop & Notebook Installation Guides: Hewlett-Packard - HP
http://www.tuxmobil.org/hp.html

Linux on HP Laptops
http://www.linux-on-laptops.com/hp.html

It looks to me like your model is fairly/extremely new.
Which is probably why #debian recommended unstable as the best alternative, until backports catches up..
Yes I see, however it's odd that it does work on safe-mode, there must be module that can be disabled before shutdown to make it work, at least I want to believe so :)
Thanks for the answers and help, if nothing else works I will probably update the kernel to sid

Forgot to mention- what you find is my laptop. I've already been in the links you sent by the way but I really appreciate the help

User avatar
Absent Minded
Posts: 3464
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.
Been thanked: 3 times

Re: Any way of shutting down restarts instead

#16 Post by Absent Minded »

While I can't be certian, this sounds allot like the automatic power managment in the kernel isn't quite right for your machine. Might be one of the reasons it shuts down properly from a difrent boot option, not all the moduals are being loaded. You can disable the APM in the kernel and see if that works for the time being until an update is availible. You could also build the newer kernel from source to see if the problem has been fixed, no upgrade to Sid needed. There are several How-tos here to help you do that.
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012

Post Reply