How to simulate ACPI events in virtual machine?

I’m intending to work on a Python script that will poll ACPI events, specifically – the lid close event. Of course, flipping lid on and off on my laptop isn’t the best approach, and essentially impossible on desktop setups. At the same time, I do have to use Virtual Box since my host system has different desktop than what I intend to target ( Ubuntu 18.04 with GNOME ). Hence the question – how do I trigger ACPI events in Virtual Box guest OS ?

I can not install any linux with kernel 4. It freezes even in the installer. “ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl]”

Trying to install linux desktop with kernel 4, it freezes. The desktop (or sometimes even the installer) responds every 3 seconds, I mean, I can move the mouse for 3 seconds and it freezes, I use it for 3 seconds and it freezes for another 3 seconds. When I do alt+ctrl+F6, on the terminal I see these lines running and not stoping to showing command lines. My notebook is a Acer aspire 3620-32 bits and 2Gb of Ram. Ubuntu 14.04 with kernel version 3.19 runs perfectly, but any ubuntu 14 or 16.04 with kernel 4 and on, do not. So what´s the problem?

This is what terminal shows:

user@pc:~$   [ 3241.500016] ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl] (20150619/evregion-297) [3241.500041] ACPI Error: Method parse/execution failed [\_SE_.AMWO.WMCA] Node f44894e0), AE_TIME (20150619/psparse-536) [ 3245.500018] ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl] (20150619/evregion-297) [3245.500038] ACPI Error: Method parse/execution failed [\_SE_.AMWO.WMCA] Node f44894e0), AE_TIME (20150619/psparse-536) 

… and the lines go on.

enter image description here

ACPI BIOS Error (bug): Could noy resolve [^^^RP09.PEGP], AE_NOT_FOUND (20180531/psparse-330)

ACPI BIOS Error (bug): Could noy resolve [^^^RP09.PEGP], AE_NOT_FOUND (20180531/psparse-330) ACPI Error: Method parse/execution failed _SB.PC10.LPCB.EC._QD1, AE_NOT_FOUND (20180531/psparse-516)

Everytime I try to boot my laptop, these two lines error appear three times and won’t let my laptop boot.

The last thing I was doing was trying to install atk.

LAPTOP: MSI Prestige PS42 Modern 8MO-i5 OS: Ubuntu 18.04

Checking acpi key bindings and remapping keyboard keypress events to acpi events

I got two systems with Ubuntu 18.04.1 installed. The two have similar hardware and software configurations but one of them suspends to SBTN press event whereas the other does nothing. I checked gsettings and both have similar org.gnome.settings-daemon.plugins.power configurations. I want to know the complete key bindings associated with SBTN key event.

How and where can I check for these?

Also, how can I remap a keyboard keypress event(say keycode 127 which is pause/break button) to SBTN button/PWBN button?

How can I map system suspend action to keyboard pause/break button?

PS: I’m using acpi_listen for listening to PWBN and SBTN key events and I’m able to see the key presses. For checking for keyboard events I’m using xinput test. Also, I need to get the system back live using the same keypress after suspend action.

Fan problem on ThinkPad T440s. Works ACPI?

I have still problem with fan on my ThinkPad T440s. I spent lot of time with googling and trying diferent configurations but my problem is still persit…

My thinkfan service probably service works:

sudo service thinkfan status   ● thinkfan.service - simple and lightweight fan control program    Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled; vendor preset: enabled)    Active: active (running) since Wed 2019-01-16 17:17:01 CET; 1 day 14h ago  Main PID: 31374 (thinkfan)     Tasks: 1 (limit: 4915)    CGroup: /system.slice/thinkfan.service            └─31374 /usr/sbin/thinkfan  jan 16 17:17:01 T440s systemd[1]: Starting simple and lightweight fan control program... jan 16 17:17:01 T440s thinkfan[31373]: thinkfan 0.9.1 starting... jan 16 17:17:01 T440s thinkfan[31373]: Daemon PID: 31374 jan 16 17:17:01 T440s systemd[1]: Started simple and lightweight fan control program. 

But after few minutes after restart OS is my fan so loud and run with full speed:

cat /proc/acpi/ibm/fan  status:     disabled speed:      65535 level:      0 commands:   level <level> (<level> is 0-7, auto, disengaged, full-speed) commands:   enable, disable commands:   watchdog <timeout> (<timeout> is 0 (off), 1-120 (seconds)) 

Speed of my fan everytime 65535 (without any changes).

Temperatures on my Thinkpad are fine:

sensors  thinkpad-isa-0000 Adapter: ISA adapter fan1:        65535 RPM  acpitz-virtual-0 Adapter: Virtual device temp1:        +35.0°C  (crit = +200.0°C)  coretemp-isa-0000 Adapter: ISA adapter Package id 0:  +35.0°C  (high = +100.0°C, crit = +100.0°C) Core 0:        +30.0°C  (high = +100.0°C, crit = +100.0°C) Core 1:        +33.0°C  (high = +100.0°C, crit = +100.0°C) 

But when i try command: dstat –cpufreq –fan –thermal i see “curious” error:

Module dstat_thermal failed to load. (Needs kernel ACPI or IBM-ACPI support)

dstat --cpufreq --fan --thermal      Module dstat_thermal failed to load. (Needs kernel ACPI or IBM-ACPI support)  -----frequency----- fan- cpu0 cpu1 cpu2 cpu3|spee    0    0    0    0|  65   42   42   42   42|  65   42   42   42   42|  65   42   42   42   42|  65   42   42   42   42|  65   42   42   42   42|  65 

In files: /etc/modprobe.d/thinkfan.conf and /etc/modprobe.d/thinkpad_acpi.conf (i don’t know which file i have to use, because in tutorials and topics on internet are used both files).

options thinkpad_acpi experimental=1 fan_control=1 

Bios was updated to latest version 2.50.

Please, have you any ideas what i can do? Or is a HW fan problem? I am still linux HW beginner and i don’t knowledge to solve it :/

Thanks for any ideas.

help – firmware bug acpi region + pkcs#7 signature after 18.04 update

Just did a system update for an 18.04 install.

attempting to reboot gives firmware bug ACPI region does not cover.. and this follows with the PKCS#7 signature not signed.

Had a look similar errors. None seemed to provide the solution for this particular error.

It says things about waiting and time out. Some problems regarding waiting at any rate.

Cheers!