dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

raspberry pi on/off

Thu Dec 19, 2013 9:22 am

when I do a shutdown (sudo shutdown -h), my raspberry reboots. I can't turn off my raspberry pi.
Any help?
thanks in advance.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23083
Joined: Sat Jul 30, 2011 7:41 pm

Re: raspberry pi on/off

Thu Dec 19, 2013 10:31 am

Odd, I thought shutdown worked fine on mine. Have you tried halt?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

Re: raspberry pi on/off

Thu Dec 19, 2013 10:56 am

Yes, very odd. I've tried also with halt and poweroff.
That worked fine before I made changes for configure a 7'' touchscreen on my Pi. What do you think?

User avatar
RaTTuS
Posts: 10381
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: raspberry pi on/off

Thu Dec 19, 2013 10:58 am

what gpio things have you got plugged in
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: raspberry pi on/off

Thu Dec 19, 2013 11:08 am

I had this also recently.


After I did
sudo apt-get update
sudo apt-get upgrade

It now works.

dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

Re: raspberry pi on/off

Thu Dec 19, 2013 11:22 am

I need to check that information because I haven't the Pi now with me.
I plugged in the pins to communicate with a thermal printer as I've read (I think are pins #6 and #8 I'm not sure now). But I'm sure: when I was the printer working fine, I could shutdown the Pi; the problem came later.

dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

Re: raspberry pi on/off

Thu Dec 19, 2013 11:25 am

I'll try shuckle suggestion

dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

Re: raspberry pi on/off

Thu Dec 19, 2013 11:28 am

shuckle, do you know which was the cause of the problem?

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: raspberry pi on/off

Thu Dec 19, 2013 12:17 pm

no, I have no idea about the reason.
I was very surprised to experience it as I have done several installations and only saw it with the new raspberry I bought last week.
I did not pay that much attention since it was cured by the upgrade. (I also did rpi-update, but I don't think it is needed.)

I guess it is some kind of mismatch between kernel and firmware. My versions now are:
Linux raspberry2 3.10.24+ #610 PREEMPT Thu Dec 12 13:12:09 GMT 2013 armv6l GNU/Linux

Dec 9 2013 21:24:40
Copyright (c) 2012 Broadcom
version c7215df85576f3e72f9c390db9bc2da642453b10 (clean) (release)

dboira
Posts: 9
Joined: Fri Jan 11, 2013 9:13 am

Re: raspberry pi on/off

Thu Dec 19, 2013 1:17 pm

so, I do an update and upgrade today.
I hope that fix my problem, I'll post here.

Thanks

User avatar
mrpi64
Posts: 931
Joined: Sat Feb 16, 2013 5:13 pm

Re: raspberry pi on/off

Fri Dec 20, 2013 8:34 am

Changing your settings using 'sudo raspi-config --> Advanced options --> Boot to desktop', and select boot straight to desktop. Now, when you go 'Start --> Logout', it should give you the option to shutdown. It should now shutdown more successfully.
I'm happy to help.
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=51794 - List of games that work on the Pi.

User avatar
Redrobes
Posts: 80
Joined: Mon Dec 26, 2011 9:19 pm
Location: S.W. UK
Contact: Website

Re: raspberry pi on/off

Sat Dec 21, 2013 12:15 pm

I'll just chip in and say when I built myself a new kernel and installed it, it has since rebooted after shutdown in a similar manner to that posted by OP. I have not tried to fix it and still don't know why its doing it either.

I use "sudo shutdown -h now". It runs through the power down scripts and then blacks out the monitor. Then about 1 sec later it powers up the monitor and begins the boot sequence again. I have been pulling the power cord in the blacked out period.

Return to “General discussion”