Lenovo C260 won't shutdown with LM 18.2

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Mon Nov 27, 2017 6:56 am

Seems I am very lucky to be able to run Linux on this machine.

Looked into my BIOS and the AHCI mode for the hard drive is already set. That’s maybe why I was able to install Linux at all.

Installed the latest kernel; will report results.
–Cigydd

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Mon Nov 27, 2017 7:52 am

Even the newest kernel available (4.13.0-17) freezes on shutdown.

Comical is that even the Linux based Lenovo Diagnostic CD that I burned (using your link) does so :-D

So my mom will probably need to get used to the forced shutdown. Maybe in the future a kernel will appear that solves our problem.

Edit: I probably also have the latest BIOS available. I did BIOS upgrades when there was Windows on that machine whenever an upgrade was possible and the latest version is from 2015. That was two years before upgrading the OS to Linux Mint :)
–Cigydd

User avatar
administrollaattori
Level 12
Level 12
Posts: 4412
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby administrollaattori » Mon Nov 27, 2017 11:35 am

viewtopic.php?f=236&t=256598&p=1391457&hilit=acpi%3Dreboot#p1391457

Penn, I finally "fixed" it and now the laptop reboots and shutsdown normally.
I added this ADDITIONAL line to GRUB:
GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi"

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Mon Nov 27, 2017 12:39 pm

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi"


OK, actually tried that. I think that duplicating the GRUB_CMDLINE_LINUX_DEFAULT directive overwrites the previous setting that says GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and so sets the booting mode to console. Not a big problem but I think the parameter should be added to the existing ones like so:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=acpi"


Nevertheless, that setting doesn’t help. The last line my kernel emitted is:

Code: Select all

[ OK ] Reached target Shutdown.

And after writing that line it hangs.
–Cigydd

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Mon Nov 27, 2017 1:05 pm

did you run update-grub command after doing that?

Also, administrollaatori might be onto something there if you make a small change in that line from acpi to ahci.

GRUB_CMDLINE_LINUX_DEFAULT="reboot=ahci"
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Mon Nov 27, 2017 4:28 pm

Yes, I did sudo update-grub. Now I tried with

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="reboot=ahci"
but still no joy.
–Cigydd

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Tue Nov 28, 2017 1:40 pm

see this thread.

viewtopic.php?f=46&t=255631&start=20

UPDATE; above link mistake, it's this instead.

viewtopic.php?f=46&t=257784
Last edited by Spearmint2 on Tue Nov 28, 2017 8:02 pm, edited 1 time in total.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Tue Nov 28, 2017 3:11 pm

Do I understand it good that you are pointing at me saying that I’m very lucky to have installed Linux at all?
Yes, I can confirm that. So it isn’t true I have no joy from it. I should have said “no success in the case of forced reboot”.
Or did you mean another thread, Spearmint2?
–Cigydd

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Tue Nov 28, 2017 4:28 pm

I thought his "fix" might help your problem too.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Tue Nov 28, 2017 6:17 pm

Oh, you were linking to this exact thread that we are writing in. Are you sure it’s what you wanted to do? I am confused a bit :?
–Cigydd

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Tue Nov 28, 2017 7:58 pm

my mistake. crap. now I don't remember the thread. Oh well. If I find it again, I'll post it.

this was it. It was solved with a BIOS flash and he links to it.

viewtopic.php?f=46&t=257784
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Thu Nov 30, 2017 6:43 pm

Thank you for the inspiration. It’s quite another problem on another machine but yes, I could also be facing a BIOS bug. Will give it a try but for now I start to be busy with moving to another place so maybe later.
–Cigydd

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Sat Dec 02, 2017 2:57 pm

Just one notice to the topic of flashing the BIOS.

The last BIOS flasher for the C260 is available in the EXE form only so I’ll need the Windows Assessment and Deployment Kit burned on a DVD or on a flash drive to run it on. It’s impossible to run a BIOS flasher in Wine.
–Cigydd

User avatar
administrollaattori
Level 12
Level 12
Posts: 4412
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby administrollaattori » Sat Dec 02, 2017 3:30 pm

Cigydd wrote:Just one notice to the topic of flashing the BIOS.

The last BIOS flasher for the C260 is available in the EXE form only so I’ll need the Windows Assessment and Deployment Kit burned on a DVD or on a flash drive to run it on. It’s impossible to run a BIOS flasher in Wine.

No. But if you have Windows 8 or 10 hard drive, you can use that via hard-drive dock. Windows 10 works via USB3-stick also.

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Sat Dec 02, 2017 6:01 pm

Cigydd wrote:Just one notice to the topic of flashing the BIOS.

The last BIOS flasher for the C260 is available in the EXE form only so I’ll need the Windows Assessment and Deployment Kit burned on a DVD or on a flash drive to run it on. It’s impossible to run a BIOS flasher in Wine.


No, it's probably an executable zip file. Open it with Archive Manager and extract the .bin file for the BIOS and any install script you need to run for the flash, but if your computer has inbuilt flash ability in the BIOS, use that instead. As always, back up the current BIOS flash first.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Sun Dec 03, 2017 7:49 am

OK, I don’t seem to have the direct flash feature in my BIOS. Decompressed the EXE file but the script is for Windows, isn’t it? It just runs a Windows executable twice with different parameters to actually flash the BIOS. How am I supposed to run it? Do you mean I should use Wine to do so?

The Flash.cmd script contains these lines:

Code: Select all

@echo off
H2OFFT-W.exe IXCT29A.rom /EC
H2OFFT-W.exe imageIX.rom /BIOS /unvs


Tried to run the script under Wine and it just returned immediately with no output. Have I actually flashed my BIOS?

I don’t have Windows on that computer any more. I do have Windows 10 on my IdeaPad310-15IKB laptop so I suppose it would be less work to burn the Windows Assessment and Deployment Kit (a lightweight Windows installation environment for free) than to demount the notebook and take the hard drive out of it to connect it to the C260.
–Cigydd

User avatar
Cigydd
Level 1
Level 1
Posts: 35
Joined: Tue Nov 04, 2014 5:01 am
Location: Plzeň, Czechia
Contact:

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Cigydd » Sun Dec 03, 2017 10:11 am

What I actually mean by Windows Assessment and Deployment Kit is the Windows PE (Preinstallation Environment). It’s a legal way how to get a basic Windows environment on a bootable flash drive, CD or DVD (https://en.wikipedia.org/wiki/Windows_Preinstallation_Environment). It’s just a way that I know, no offence.
–Cigydd

User avatar
Spearmint2
Level 14
Level 14
Posts: 5480
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Spearmint2 » Sun Dec 03, 2017 10:28 am

Whatever will run the exe then. It probably works from even an old windows 98 boot disk. There are small boot disk one can download for windows that will run the exe file.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

User avatar
Joe2Shoe
Level 3
Level 3
Posts: 112
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Joe2Shoe » Sun Dec 03, 2017 10:53 am

Currently running LM18.3 Cinnamon 64-bit.

# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noacpi"
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi"
# GRUB_CMDLINE_LINUX_DEFAULT="reboot=efi"
# GRUB_CMDLINE_LINUX_DEFAULT="reboot=pci"
# GRUB_CMDLINE_LINUX_DEFAULT="reboot=ahci"
GRUB_CMDLINE_LINUX=""
# GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"

Originally, the 1st line worked with LM18.2. Then it stopped working.
For awhile, the 3rd line worked. Then it stopped working, running LM18.2.
Then the 2nd line worked. Then it stopped working, after upgrading from LM18.2 to LM18.3.
Now, the 3rd line is working again.

Try all of them, one at a time, then update-grub.
Hope this helps.
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire

User avatar
Joe2Shoe
Level 3
Level 3
Posts: 112
Joined: Wed Oct 18, 2017 8:12 pm
Location: Ozone

Re: Lenovo C260 won't shutdown with LM 18.2

Postby Joe2Shoe » Sun Dec 03, 2017 1:53 pm

UPDATE:
Strange, if I adjust my CPU for maximum speed (GOVERNOR="performance"), and edit grub with the following:
GRUB_CMDLINE_LINUX_DEFAULT="reboot=acpi"
Save file.
sudo update-grub
Reboot.
Then restart again.
Then select Shutdown, my laptop will shutdown/restart normally afterwards every time.

But, if I adjust my CPU for ondemand speed (GOVERNOR="ondemand"), and edit grub with the same settings, my laptop will NOT shutdown/restart normally.

CPU Frequency Adjustments
To get your CPU to run at full speed:
1. Install cpufrequtils:
sudo aptitude install cpufrequtils

2. Edit cupfrequtils file:
sudo nano /etc/default/cpufrequtils
or
sudo gedit /etc/default/cpufrequtils
Add these lines:

# Uncomment the following command (performance) to enable maximum CPU speed.
# Comment the command (performance) to disable maximum CPU speed, and uncomment the command (ondemand), as needed.
# valid values: userspace conservative powersave ondemand performance schedutil
# get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# GOVERNOR="userspace"
# GOVERNOR="conservative"
# GOVERNOR="powersave"
# GOVERNOR="ondemand"
GOVERNOR="performance"
# GOVERNOR="schedutil"

3. Save.
4. Exit.
5. Disable ondemand:
sudo update-rc.d ondemand disable
6. Reboot.
7. In BIOS Setup, enable Intel SpeedStep Technology to increase CPU speed to maximum. (I did not do this step).
8. Reboot.
9. Then select Shutdown.
"Tolerance is the refuge of men without conviction."
"Common sense is not so common" - Voltaire


Return to “Installation & Boot”