LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-28-2017, 11:40 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
The behaviour of my on-off switch has changed


It used to behave in a perfectly standard way. I switched on at the mains, then pressed the button on the front of the case. There was a specific noise (presumably the power unit fan starting up) and then the bios key list came up on the screen, followed by the bootloader. When I invoked shutdown, the machine switched off and stayed off.

Now I switch on at the mains and, a moment later, I hear it starting up with the usual noise, but without the switch being touched. Nothing happens for a moment (no lights or anything); then I hear the startup noise a second time, lights go on and off, and it boots normally. After shutdown, I have to switch off quickly at the mains, otherwise it switches on again for a cold reboot.

I can live with this but I'd like to know the reason for the changed behaviour.
 
Old 03-28-2017, 12:07 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
At the moment I can only think of two possibilities.

Either some component in the power on circuit has failed or the BIOS may have an automatic power on feature when main power on is detected that is now enabled. The later might be due to the CMOS battery needing replacement although I would of expected the hardware clock to be reset which usually triggers a BIOS fault.
 
Old 03-28-2017, 01:00 PM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Clock runs normally.
 
Old 03-28-2017, 01:06 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,698

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
About the only thing you can easily check other than BIOS settings is the power on switch with an ohmmeter to verify it is not normally closed all the time.
 
Old 03-28-2017, 01:16 PM   #5
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Surprizingly, a lot of interesting ideas from search of:
linux pc reboots after shutdown when power applied

Did you just do like: remove laptop-mode-tools pkg?
Try removing ethernet cable (wake on LAN).

I always highly like all posts by hazel!

Last edited by !!!; 03-28-2017 at 01:29 PM.
 
1 members found this post helpful.
Old 03-28-2017, 02:09 PM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by !!! View Post
Surprizingly, a lot of interesting ideas from search of:
linux pc reboots after shutdown when power applied
Useful search string! Better than the one I used before posting.
Quote:
Did you just do like: remove laptop-mode-tools pkg?
Try removing ethernet cable (wake on LAN).
This computer isn't a laptop. It's an old HP desktop and I doubt if its bios has any fancy options like wake-on-lan. In fact I bet it can't hibernate at all.

Fortunately it depends on mains power, so it stays off when I switch it off at the wall. I only discovered that it would reboot by itself yesterday when I deliberately left it live to see what would happen. In a laptop, this kind of behaviour would be a nightmare, as you can't switch it off at the mains. On a desktop, it's not a big problem, as long as it doesn't mean that the machine is beginning to fail.
Quote:
I always highly like all posts by hazel!
Thanks for the flattery!
 
Old 03-28-2017, 02:42 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
When you say "mains" do you mean that you use a power strip where all power to the system can be removed?

Try this. Power down system. Remove AC plug. Press power button a few times. Then replace ac power plug. Does it act normally?
 
Old 03-28-2017, 09:01 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
I got a dollar to a doughnut that the switch itself is broke, or, in two dollar phraseology, suffered a mechanical failure while in the on position.

Last edited by frankbell; 03-28-2017 at 09:07 PM.
 
1 members found this post helpful.
Old 03-29-2017, 01:07 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by jefro View Post
When you say "mains" do you mean that you use a power strip where all power to the system can be removed?

Try this. Power down system. Remove AC plug. Press power button a few times. Then replace ac power plug. Does it act normally?
Tried that. It still started the same way: startup sounds, then silent, then startup sounds and normal boot. I guess Frankbell is right and the switch has failed. That's OK with me as long as it doesn't mean that the machine is beginning to break down.

PS Actually the new regime has its advantages. My dog is very jealous of my computer and often tries to nip me when I switch it on. To avoid the hassle, I have got into the habit of switching on when he isn't in the room. Now I don't have to switch on any more!

Last edited by hazel; 03-29-2017 at 01:19 AM.
 
Old 03-29-2017, 09:58 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
Another computer gone to the dogs!

(Sorry. Couldn't resist.)

I have a cat. What she does is ignore. Unless you look like a kibble.

Joking aside, I have observed that computers have become so reliable that, when there are problems, users tend not to think that they might be hardware related.

When I was in tech support (I worked for a manufacturer of card access control software and hardware for several years), I learned that the first thing to do, if hardware might be an issue, is to check the hardware, if only to rule it out, because no amount of mucking about with software will fix a bad cable.

Last edited by frankbell; 03-29-2017 at 10:03 PM.
 
Old 08-06-2017, 07:06 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Sound to me like the setting for what to do when power is cut (can't recall exactly what it's called) has changed. Basically you get something like "memory" which means if the computer was off it stays off and vice-versa, off and on.
I have a similar problem sometimes when using a laptop and the cat starts to get jealous and launches herself at my hands with all claws and teeth.
 
Old 08-06-2017, 07:20 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
BIOS says "After power loss: Off". I take it that means that once you've switched off at the mains, it stays off until you press the button to switch it on again. I didn't mention this, but recently it's gone back to this normal behaviour most of the time.

Last edited by hazel; 08-06-2017 at 07:26 AM.
 
Old 08-06-2017, 07:29 AM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by hazel View Post
BIOS says "After power loss: Off". I take it that means that once you've switched off at the mains, it stays off until you press the button to switch it on again. I didn't mention this, but recently it's gone back to this behaviour most of the time.
Yes, that's right and the setting I would expect you want. Perhaps either a BIOS or BIOS battery issue meant it changed (going by your other thread) since it is now doing as it ought?
I also wonder whether jefro's thought process was correct but the procedure didn't work properly, for some reason. In other words some residual charge in a capacitor or such was causing the issue and just had to be reset. If it weren't for your other thread I would think it the most likely cause.
 
Old 08-06-2017, 08:21 AM   #14
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
I'd start at the source 1st. My place is 3 phase power with 240 volt with a high leg.

125v on all household circuits. 180 volts on one leg < means 1 hot wire > that only goes to 3 phase equipment like central air conditioner electric motors and compressors.

What I am getting at. I'd take my fluke multimeter and read exact voltage on what you call the mains. Check for a voltage drop. Because old places have the screw terminals loosen up over time where the wire goes onto the plug. Part of a preventive maintenance thing I did as a electrician at a hospital was to pull the plugs out of the wall and check the tightness of screws for this very problem.

Because you did not want some one dying from a faulty mains/outlet.

If you have any electrician friends with a multimeter and a screw driver.
This is a easy check and procedure. Do not attempt this on your own. You can get killed if not turning off the right breaker or the neutral wire has some sort of hot voltage feedback. I used special tools like this before taking apart a outlet.

http://www.homedepot.com/p/Klein-Too...1SEN/100661787
 
Old 08-06-2017, 04:52 PM   #15
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Hi hazel,
I'm with frankbell:
Quote:
I got a dollar to a doughnut that the switch itself is broke
The power switch on the front of a PC is generally an instantaneous push to make switch. Provided the mains is providing power to the PSU (and any switch on the PSU is on) there is actually a part which is live and supplying power to the front panel switch so that the system can recognise when it has been pressed. It then powers up the main supply and the system boots.
I used to have an old Mac LC475 which had a similar system but rather than the psu supplying the startup voltage, there was a battery inside. Common fault: Bad battery, no "Bong, no boot!"

I'd be inclined to remove the switch and check it, you're possibly getting some sort of intermittent action as it fails. I had a system where the switch stuck in so it was continuously trying to power the computer up. Severe smell of nasty burning plastic and motherboard before I found it. (I'd left the system on while I went out. Not a good idea in this instance.)

Check it out and replace it if necessary - Be safe!

Play Bonny!

 
  


Reply



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
[SOLVED] Weird awk behaviour with NOT regexp switch sarenace Programming 7 05-18-2012 12:54 AM
Strange Behaviour With a KVM switch davcefai Linux - Hardware 1 08-10-2010 06:59 AM
KDE menu behaviour and appearance changed widda Linux - Desktop 3 12-06-2009 12:12 PM
Behaviour of a2ps changed in OpenSuSE 10.2 statguy SUSE / openSUSE 1 03-13-2007 08:23 AM
shutdown(2) after fork(2) behaviour changed or undefined? MScheffer Linux - Networking 3 07-15-2005 09:11 AM

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

All times are GMT -5. The time now is 06:57 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