Comment 40 for bug 1644919

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Here's a simple way to directly capture the ACPI event, kudos to Alex Hung and Colin King!

== SystemTap AML op-codes ==

1. Clone the pmdebug git repository:

git clone https://github.com/alexhungce/pmdebug

2. Install SystemTap and the appropriate kernel .ddebs

sudo apt-get install systemtap

2.1) Create an /etc/apt/sources.list.d/ddebs.list by running the
following line at a terminal:

echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted
universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list

2.2) Import the debug symbol archive signing key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 428D7C01

2.3) Then run:

sudo apt-get update

2.4) Download and install the debug kernel, e.g.

sudo apt-get install linux-image-`uname -r`-dbgsym

3. Run the script

sudo stap -g pmdebug/systemtap/amltrace/amltrace.stp | tee output

4. Press non-functional hotkeys

5. Attach 'output'