System restart instead shutting down

Fedora 43 installed here on Lenovo Thinkcentre M82.

My sytstem started exhibiting this behavior when I went into settings and set the power button to ‘Power Off’, from ‘Nothing’. Something is wrong with the coding of that option for my system, so that the system restarts instead of powering off. I’m speaking of this set of options:

My guess is there is an indexing issue going on between this gui and the linux behavior. When I set it to ‘Nothing’, initiating Power Off via the Fedora desktop, works fine. When set to ‘Power Off’, initiating a Fedora desktop power off via upper right corner, instead restarts the machine.

You posted in a Fedora 38 topic from 2023. You will get more attention if you start a new topic. Power switch handling requires cooperation between system firmware and the OS, so depends on your hardware and firmware.

Make sure you have current vendor updates. If that doesn’t fix the issue, post hardware details (install the inxi package and, in a terminal, run inxi -Fzxx. Post the output as pre-formatted web searchable text using the ‘</>` button from the top line of the text entry panel.

1 Like

Welcome to Fedora @rockstar-not

As @gnwiii proposed I made a new topic. Necro posting on such old topics is a bad Idea.

My apologies. I have been using Linux, and specifically Fedora, for only about a week. This is the first time I’ve ever heard of necro posting. One never knows the culture of a community. I googled and found a topic similar to the issue I have been experiencing, so I responded to it with my experience. I didn’t pay attention to how old the topic is. The risk to take is whether someone calls this out, or getting chastised with a “bro do you even google?” then links to an old thread where a topic has been beaten to death.

I take it that kind of behavior is not tolerated here.

2 Likes

Thanks - I’m such a newb I don’t even know how to “get vendor updates”. I’ve been using Linux and Fedora for perhaps a week, to give some life to a desktop computer MS says is unworthy of use for Win11. I have much to learn.

You are fine, they are just letting you know - we love information sorting!

Welcome to Fedora. We are happy and glad to assist you.

If you are using KDE Discover or Gnome Software Center, it should be automatic.

If not, or try it anyway, you can run

EDITED SEE BELOW

which is Firmware Update Manager.

If that yields no results, can you change the setting back?

There are also more complex ways to set what power buttons etc do from the command line. The function buttons are often buggy on Linux, as the vendors dont really participate as much as they should. Sometimes a kernel update will change their behaviour. However we should be able to get you back to your original settimg at least.

I believe you mean “fwupdmgr” instead of “fwupd”.

I porpose:

fwupdmgr get-devices

To get what you have and what the status of the software is.

fwupd

is the package name :wink:

Thank you, yes. Full instructions are at How to update device firmware using fwupd on RHEL system? - Red Hat Customer Portal

1 Like

Still a newborn in Linux, are the instructions for red hat linux, also valid for fedora 43 linux?

Yes, except change ‘yum’ to ‘dnf’.

Appears the service was already available. I ran the refresh command and get a noticeWARNING: UEFI capsule updates not available or enabled in firmware setup.

I assume this is something I need to enable in the BIOS, correct?

Are you booting with UEFI or legacy BIOS?
To find out run cat /sys/firmware/efi/efivars. If that returns a message that it is a directory then you are using UEFI boot. If not then you are using legacy boot.

No, you should not need to enable use of fwupdmgr within bios. However, updates are probably not possible with fwupdmgr when using legacy boot.

Thank you - I get a report that it’s a directory so UEFI boot must be enabled.

1 Like

There may be a bios update available for your system. If so then it probably would be wise to update the bios.

Be aware that updating the bios probably will require re-enrolling the signing key for the nvidia driver if you are using secure boot with nvidia drivers.

1 Like

As a note, while you can update your firmware, I do not think it will fix your power button problem, I am fairly sure that it is a Kernel issue.

You can also look up what the BIOS update actually fixes, probably somewhere on a Lenovo support page.

1 Like

As the machine is now 12-13 years old, from what I can discern, there does not appear to be a Lenovo supported means to update the bios via Linux - the support page for the model only lists Windows tools for BIOS updates. Should have flashed it before I swapped hard drives I suppose! I still have the WIN10 HDD I can swap in to try to accomplish that.

It looks like you are using a older hardware. I get the same error. I searched today this message and it said that devices before 2015 miss this option.

Lenovo participates in the Linux Firmware Update project. Did you try installing the fwupd package and (in a terminal) running fwupdmgr get-devices? Look for a section called " System Firmware" and check the version against the Lenovo Support site. If there is a newer version, try running sudo fwupdmgr get-updates.

Linux users have found ways to apply vendor updates without Windows. For older Lenovo systems see: https://www.cyberciti.biz/faq/update-lenovo-bios-from-linux-usb-stick-pen/.

1 Like