throttled icon indicating copy to clipboard operation
throttled copied to clipboard

system crash, X1 carbon 6th, Pop OS 20_04

Open Kobtul opened this issue 4 years ago • 11 comments

With these changes on my x1 Carbo 6th gen:

[UNDERVOLT.BATTERY] CORE: -50 GPU: -35 CACHE: -50 UNCORE: -35 ANALOGIO: 0

my pc crashes when I attempt to run lenovo_fix.py as root vith correct virtual enviroment with python 3.8. When I tried to install this script, the service fails because of: ImportError: cannot import name 'DBusGMainLoop' from 'dbus.mainloop

The problem with this crash is, that it persists after reboot and my system crashes again after the boot. It fixes itself after cca 10 minutes. I really do not understand what is going on. I am afraid to run this script again because of that.

Kobtul avatar Apr 22 '20 09:04 Kobtul

The issue is just that your CPU does not work with those undervolt values, you need to raise them.

erpalma avatar Apr 26 '20 10:04 erpalma

Well why it persisted after reboot? The script was not running as a service.

On Sun, Apr 26, 2020, 12:09 PM Francesco Palmarini [email protected] wrote:

The issue is just that your CPU does not work with those undervolt values, you need to raise them.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erpalma/throttled/issues/191#issuecomment-619522641, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42DJR7CTPNH2ZX34RI3ROQB6HANCNFSM4MOAHAQQ .

Kobtul avatar Apr 26 '20 10:04 Kobtul

In theory UEFI should revert those MSR to default on system reset, but who knows.. If you power cycle the system you should be fine.

It fixes itself after cca 10 minutes

What do you mean? 10 minutes idle? Off?

erpalma avatar Apr 26 '20 10:04 erpalma

10 minutes of constant boot and crash

On Sun, Apr 26, 2020, 12:25 PM Francesco Palmarini [email protected] wrote:

In theory UEFI should revert those MSR to default, but who knows.. If you power cycle the system you should be fine.

It fixes itself after cca 10 minutes

What do you mean? 10 minutes idle? Off?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erpalma/throttled/issues/191#issuecomment-619524768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42BNRBEMO7YAQEQ2RTTROQD2NANCNFSM4MOAHAQQ .

Kobtul avatar Apr 26 '20 10:04 Kobtul

So, you start throttled with those undervolt values, it crashes, you turn off the notebook, after turning it back on it still crashes for about 10 minutes?

erpalma avatar Apr 26 '20 10:04 erpalma

Yes, that is why I am afraid to run this script again. I am on UEFI boot.

On Sun, Apr 26, 2020, 12:41 PM Francesco Palmarini [email protected] wrote:

So, you start throttled with those undervolt values, it crashes, you turn off the notebook, after turning it back on it still crashes for about 10 minutes?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erpalma/throttled/issues/191#issuecomment-619527026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42HFZBIGZHE7APS3MX3ROQFV3ANCNFSM4MOAHAQQ .

Kobtul avatar Apr 26 '20 10:04 Kobtul

Ok if you power cycled your notebook then for sure UEFI is restoring power planes to default. MSR are volatile, are you 100% sure that throttled is not started automatically at boot by systemd?

erpalma avatar Apr 26 '20 11:04 erpalma

Well I created manually the python environment and ran this script. When I tried to install it as a service I got the described error. Also it crashed always so quickly that it was impossible for me to switch to the terminal. If I understand correctly, if it was running at boot it would not fixed itself right? The whole behavior does not make any sense to me.

On Sun, Apr 26, 2020, 1:32 PM Francesco Palmarini [email protected] wrote:

Ok if you power cycled your notebook then for sure UEFI is restoring power planes to default. MSR are volatile, are you 100% sure that throttled is not started automatically at boot by systemd?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erpalma/throttled/issues/191#issuecomment-619534465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42ETYMZJDDXSC4SY65LROQLUBANCNFSM4MOAHAQQ .

Kobtul avatar Apr 26 '20 11:04 Kobtul

You should have a tiny button in the back to reset the EC. Press it with something thin and hold it for 5 seconds, that should reset everything back to "normal".

nariox avatar Apr 30 '20 00:04 nariox

That button is also resetting UEFI to defaults! Still, if you have troubles with undervolt just set all values to zero ;)

erpalma avatar Apr 30 '20 16:04 erpalma

Ok, after half a year I gave it another go. The problem with the install script was python 3.8, so I installed python 3.6 and changed /usr/bin/python3 -m venv venv to /usr/bin/python3.6 -m venv venv in install.sh

I started again from 0 undervolt, now I am at -80 on CPU and -10 on GPU. Everything is fine. I probably got too scared when my laptop rebooted multiple times.

EDIT: I had this error with python 3.8: ImportError: cannot import name 'DBusGMainLoop' from 'dbus.mainloop.glib' (/opt/lenovo_fix/venv/lib/python3.8/site-packages/dbus/mainloop/glib.py

Kobtul avatar Feb 22 '21 18:02 Kobtul