Skip to content

Instantly share code, notes, and snippets.

@altercation
altercation / sp3-pwrbtn-dmesg-all
Last active August 29, 2015 14:06
surface pro 3 - power button not detected bug - ALL dmesg ouput
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.1-1-ARCH (nobody@var-lib-archbuild-testing-x86_64-tobias) (gcc version 4.9.1 (GCC) ) #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014
[ 0.000000] Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
[ 0.000000] BIOS-e820: [mem 0
@altercation
altercation / sp3pwrbtn-dmesg-acpi-plus-errors
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - dmesg output filtered for ACPI and errors
[ 0.000000] Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
[ 0.000000] BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
[ 0.000000] reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
[ 0.000000] reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
[ 0.000000] efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000AA3FD000 000024 (v02 OEMC )
[ 0.000000] ACPI: XSDT 0x00000000AA3FD0A0 0000BC (v01 OEMC O E M C 00000300 AM
@altercation
altercation / sp3pwrbtn-dsdt
Last active August 29, 2015 14:06
surface pro 3 - power button not detected bug - ACPI DSDT decompiled (no edits)
f/*
* Intel ACPI Component Architecture
* AML Disassembler version 20140724-64 [Aug 2 2014]
* Copyright (c) 2000 - 2014 Intel Corporation
*
* Disassembly of dsdt.dat, Wed Sep 3 01:32:31 2014
*
* Original Table Header:
* Signature "DSDT"
* Length 0x0000D003 (53251)
@altercation
altercation / sp3pwrbtn-journalctl-acpi
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - journal control for last boot, filtered for acpi outpu
Sep 03 16:09:49 palimpsest kernel: Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
Sep 03 16:09:49 palimpsest kernel: ACPI: Early table checksum verification disabled
Sep 03 16
@altercation
altercation / sp3pwrbtn-journalctl-all
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - journalctl b0 all output
Sep 03 16:09:49 palimpsest kernel: Command line: \vmlinuz-linux ro luks.allow-discards cryptdevice=UUID=0b1f8bac-0777-4039-9bb2-94bdfcdc9429:lvm cryptkey=UUID=E911-F787:vfat:/keyfile resume=/dev/storage/swap root=/dev/storage/system rootflags=subvol=root,rw,x-systemd.device-timeout=0,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache i915.modeset=1 kernel.sysrq=1 acpi_os_name= initrd=initramfs-linux.img
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: BIOS-e820: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa3f9000-0x00000000aa40ffff] ACPI data
Sep 03 16:09:49 palimpsest kernel: reserve setup_data: [mem 0x00000000aa410000-0x00000000abb59fff] ACPI NVS
Sep 03 16:09:49 palimpsest kernel: efi: ACPI 2.0=0xaa3fd000 ACPI=0xaa3fd000 SMBIOS=0xabd7ef98
Sep 03 16:09:49 palimpsest kernel: ACPI: Early table checksum verification disabled
Sep 03 16
@altercation
altercation / sp3pwrbtn-lsusb
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - lsusb output
Bus 002 Device 002: ID 0bda:0307 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 045e:07bf Microsoft Corp.
Bus 001 Device 003: ID 045e:07be Microsoft Corp.
Bus 001 Device 007: ID 1286:204b Marvell Semiconductor, Inc.
Bus 001 Device 006: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 005: ID 0853:0100 Topre Corporation HHKB Professional
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@altercation
altercation / sp3pwrbtn-usb-devices
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - usb-devices output plus stderror at end
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 9
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=03.16
S: Manufacturer=Linux 3.16.1-1-ARCH xhci_hcd
S: Product=xHCI Host Controller
S: SerialNumber=0000:00:14.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 3
@altercation
altercation / sp3pwrbtn-proc-acpi
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - /proc/acpi tree
/proc/acpi
├── button
│   └── lid
│   └── LID0
│   └── state
└── wakeup
3 directories, 2 files
@altercation
altercation / sp3pwrbtn-proc-acpi-wakeup
Last active August 29, 2015 14:06
surface pro 3 - power button not detected - /proc/acpi/wakeup dump
Device S-state Status Sysfs node
WIFI S4 *disabled pci:0000:01:00.0
LID0 S3 *enabled platform:PNP0C0D:00
EC0 S3 *disabled platform:PNP0C09:00
XHC S4 *enabled pci:0000:00:14.0
HDEF S4 *disabled pci:0000:00:1b.0
TPD4 S4 *disabled
TPD7 S0 *disabled
TPD8 S0 *disabled
PEG0 S4 *disabled
@altercation
altercation / sp3pwrbtn-xinput
Created September 4, 2014 00:31
surface pro 3 - power button not detected - xinput dump
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ NTRG0001:01 1B96:1B05 Pen id=8 [slave pointer (2)]
⎜ ↳ NTRG0001:01 1B96:1B05 id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Video Bus id=6 [slave keyboard (3)]
↳ Topre Corporation HHKB Professional id=7 [slave keyboard (3)]