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.
|
 |
|
01-15-2023, 03:33 PM
|
#1
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Rep:
|
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.
|
|
|
01-15-2023, 03:51 PM
|
#2
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,292
|
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.
|
|
|
01-15-2023, 03:58 PM
|
#3
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by rokytnji
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.
|
|
|
01-15-2023, 05:48 PM
|
#4
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,292
|
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
on my box. Has some info but is messy as all get out.
Last edited by rokytnji; 01-15-2023 at 05:52 PM.
|
|
|
01-15-2023, 06:15 PM
|
#5
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by rokytnji
I just mentioned it because I used my os to turn off power button
is acpi-support installed? Yes
Just tried
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.
|
|
|
01-15-2023, 08:18 PM
|
#6
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
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.
Last edited by computersavvy; 01-15-2023 at 08:20 PM.
|
|
|
01-15-2023, 09:08 PM
|
#7
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
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.
|
|
|
01-16-2023, 10:33 PM
|
#8
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
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
|
|
|
01-16-2023, 11:04 PM
|
#9
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
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.
|
|
|
01-16-2023, 11:11 PM
|
#10
|
Member
Registered: May 2022
Location: New Mexico, USA
Distribution: Slackware 15.0 & 64 bit-current, antiX
Posts: 118
Rep:
|
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.
|
|
|
01-16-2023, 11:12 PM
|
#11
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by linuxdaddy
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.
|
|
|
01-16-2023, 11:38 PM
|
#12
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
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).
|
|
|
01-17-2023, 01:48 PM
|
#13
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
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.
|
|
|
01-17-2023, 01:50 PM
|
#14
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by linuxdaddy
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.
|
|
|
01-17-2023, 10:05 PM
|
#15
|
Member
Registered: Jun 2007
Location: Nanoose Bay, B.C. Canada
Distribution: Mint, Ubuntu, Fedora, Debian, Win10, Win 11
Posts: 108
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
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.
|
|
|
All times are GMT -5. The time now is 09:26 AM.
|
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
|
|