LinuxQuestions.org
Help answer threads with 0 replies.
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 01-15-2023, 03:33 PM   #1
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Rep: Reputation: 15
Power button won't shut down


This has nothing to do with OS's, but thought some whiz kid out there may have a solution. My home build PC has decided all of a sudden to not shut down with a prolonged depression of the power button. So from settings a prolonged press results in a reboot. A frozen OS same deal. The only way to shut it down is from an OS or turning off the power switch on the back, or of course unplugging.
 
Old 01-15-2023, 03:51 PM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,292
Blog Entries: 21

Rep: Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503
Reset bios settings I guess and start over.

I turned off the power button on antiX chromebook install because of it location near the backspace button. I can still power it up with the button though because of bios.

Edit. Re reading your post. It might be a hot key turned something off or a setting was changed on keyboard. Is numlock on?

Last edited by rokytnji; 01-15-2023 at 03:54 PM.
 
Old 01-15-2023, 03:58 PM   #3
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rokytnji View Post
Reset bios settings I guess and start over.

I turned off the power button on antiX chromebook install because of it location near the backspace button. I can still power it up with the button though because of bios.

Edit. Re reading your post. It might be a hot key turned something off or a setting was changed on keyboard. Is numlock on?
Numlock is not on other than in OS's. I can't recall anything in bios regarding power button, but I guess I could try resetting to default.
 
Old 01-15-2023, 05:48 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,292
Blog Entries: 21

Rep: Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503Reputation: 3503
Quote:
Numlock is not on other than in OS's.
I just mentioned it because I used my os to turn off power button

is acpi-support installed?

Just tried

Code:
cat /sbin/shutdown
on my box. Has some info but is messy as all get out.

Last edited by rokytnji; 01-15-2023 at 05:52 PM.
 
Old 01-15-2023, 06:15 PM   #5
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rokytnji View Post
I just mentioned it because I used my os to turn off power button

is acpi-support installed? Yes

Just tried

Code:
cat /sbin/shutdown
on my box. Has some info but is messy as all get out.
OK I just went into BIOS and saved current profile; then reset to default. Didn't work and it's not the OS's I tried prolonged power button press before grub and it still did a brief shut down and restarted. So I think it's a hardware issue: Power button, power supply, MB? I'll just have to live with it.
 
Old 01-15-2023, 08:18 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
In my OS there is a power control panel that has a setting to determine how the OS treats the power button.
See the setting at the lower right of this image. I can choose from 'power off', 'suspend', or 'nothing' (ignore)
Yours may have a similar setting.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2023-01-15 20-16-06.png
Views:	42
Size:	67.1 KB
ID:	40250  

Last edited by computersavvy; 01-15-2023 at 08:20 PM.
 
Old 01-15-2023, 09:08 PM   #7
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Well depressing power button for a few seconds has always worked up until a few days ago. I hadn't changed anything. I've ruled out software by resetting BIOS and it still did the same: Looks like shutting down, but starts up again in a second.
 
Old 01-16-2023, 10:33 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Operating systems are able to shut it down?

Note that on systemd OSes, which is most modern distros, /sbin/shutdown is a mere symlink:
Code:
# ls -gG /sbin/shutdown
lrwxrwxrwx 1 18 Dec 13 06:40 /sbin/shutdown -> /usr/bin/systemctl
#
So, if you're trying to turn off a PC, running most modern distros, try the official way:
Code:
# systemctl poweroff
 
Old 01-16-2023, 11:04 PM   #9
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrmazda View Post
Operating systems are able to shut it down?

Note that on systemd OSes, which is most modern distros, /sbin/shutdown is a mere symlink:
Code:
# ls -gG /sbin/shutdown
lrwxrwxrwx 1 18 Dec 13 06:40 /sbin/shutdown -> /usr/bin/systemctl
#
So, if you're trying to turn off a PC, running most modern distros, try the official way:
Code:
# systemctl poweroff
Note that on systemd OSes, which is most modern distros, /sbin/shutdown is a mere symlink:
Code:
# ls -gG /sbin/shutdown
lrwxrwxrwx 1 18 Dec 13 06:40 /sbin/shutdown -> /usr/bin/systemctl
#
So, if you're trying to turn off a PC, running most modern distros, try the official way:
Code:
# systemctl poweroff
[/QUOTE]

I believe I did say before that letting the PC boot up and doing an OS shut down was one of my options. My original query was to shut down under different circumstances; like a frozen, non-responsive OS or from exiting BIOS and not wishing to boot to an OS. For holding the power button for a prolonged press does appear to shut down, but it starts up again immediately following said shut down. I am quite aware of the different ways of shutting down from the OS.
 
Old 01-16-2023, 11:11 PM   #10
linuxdaddy
Member
 
Registered: May 2022
Location: New Mexico, USA
Distribution: Slackware 15.0 & 64 bit-current, antiX
Posts: 118

Rep: Reputation: 30
hello AllanP,

check the wires going to the power switch from the mobo and see if they are good. I've had a few wires come
off the back of the switch itself. If you have access to parts, could try another power switch.
 
Old 01-16-2023, 11:12 PM   #11
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxdaddy View Post
hello AllanP,

check the wires going to the power switch from the mobo and see if they are good. I've had a few wires come
off the back of the switch itself. If you have access to parts, could try another power switch.
Good suggestion I'll check that tomorrow, thanks.
 
Old 01-16-2023, 11:38 PM   #12
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
Blog Entries: 1

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
With a normal power switch, if there was a problem with wires or switch, there would be no way to turn the PC on without removing the cover and jumping the motherboard terminals the switch connects to; or removing the CMOS battery. Some switches are only capable of momentary contact, but shouldn't be found on PC cases for power, but possibly for reset. Could you have swapped the wire connectors for power and reset on the motherboard?

A 3 year old PC has a UEFI BIOS. They're rather complex software and, like any software, subject to bugs. Check to see if a BIOS update is available. Whether or not one is, or want to upgrade yours, try a BIOS reset (CMOS clear).
 
Old 01-17-2023, 01:48 PM   #13
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrmazda View Post
With a normal power switch, if there was a problem with wires or switch, there would be no way to turn the PC on without removing the cover and jumping the motherboard terminals the switch connects to; or removing the CMOS battery. Some switches are only capable of momentary contact, but shouldn't be found on PC cases for power, but possibly for reset. Could you have swapped the wire connectors for power and reset on the motherboard?

A 3 year old PC has a UEFI BIOS. They're rather complex software and, like any software, subject to bugs. Check to see if a BIOS update is available. Whether or not one is, or want to upgrade yours, try a BIOS reset (CMOS clear).
BIOS version is the latest. I think I'm just gonna live with it; a hassle getting at the power button; checked connections and all snug. I haven't switched any wires; reset button works as it should; haven't done anything inside the box for ages. This just started a short time ago. The problem isn't a big deal, only that I like things to work as they should. I built this in May of 2018 and all else is 100%. Thanks for the inputs. It's not solved so can't mark it as such.
 
Old 01-17-2023, 01:50 PM   #14
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxdaddy View Post
hello AllanP,

check the wires going to the power switch from the mobo and see if they are good. I've had a few wires come
off the back of the switch itself. If you have access to parts, could try another power switch.
O.T. I did a trial run on your Antix; interesting, but had a bit of a time reclaiming my USB blank format.
 
Old 01-17-2023, 10:05 PM   #15
AllanP
Member
 
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mrmazda View Post
With a normal power switch, if there was a problem with wires or switch, there would be no way to turn the PC on without removing the cover and jumping the motherboard terminals the switch connects to; or removing the CMOS battery. Some switches are only capable of momentary contact, but shouldn't be found on PC cases for power, but possibly for reset. Could you have swapped the wire connectors for power and reset on the motherboard?

A 3 year old PC has a UEFI BIOS. They're rather complex software and, like any software, subject to bugs. Check to see if a BIOS update is available. Whether or not one is, or want to upgrade yours, try a BIOS reset (CMOS clear).
Just noticed the clear CMOS. I haven't done that, but I did reset the BIOS to a default profile.
If I clear CMOS will I lose the saved profiles I have for the BIOS?

Last edited by AllanP; 01-17-2023 at 10:07 PM.
 
  


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
Power button won't shut down AllanP Linux - Hardware 4 08-21-2022 05:44 PM
shut down problem - wont shut down.. UbrInKid Linux - Newbie 4 12-10-2009 06:20 AM
Xubuntu won't shut down - black screen after trying to shut down Snickar-Lasse Ubuntu 2 11-30-2009 04:33 PM
problem with gnome's shut down button (red button) alaios Ubuntu 1 09-10-2008 04:25 PM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM

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

All times are GMT -5. The time now is 09:26 AM.

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