Skip to content

Instantly share code, notes, and snippets.

Peter Y. Chuang peterychuang

Block or report user

Report or block peterychuang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5683094d41db6848ab30693de14026ee
[ 199.974591] ------------[ cut here ]------------
[ 199.974593] BTRFS: Transaction aborted (error -95)
[ 199.974647] WARNING: CPU: 0 PID: 324 at fs/btrfs/inode.c:3042 btrfs_finish_ordered_io+0x7ab/0x850 [btrfs]
[ 199.974648] Modules linked in: tun fuse cmac rfcomm bnep snd_hda_codec_hdmi ip6t_REJECT snd_hda_codec_generic nf_reject_ipv6 nf_log_ipv6 xt_hl nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_rt ipt_REJECT nf_reject_ipv4 nf_log_ipv4 nf_log_common xt_LOG xt_limit xt_tcpudp nls_iso8859_1 nls_cp437 vfat fat nf_conntrack_ipv4 nf_defrag_ipv4 xt_addrtype xt_conntrack snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi brcmfmac snd_soc_core ip6table_filter ip6_tables brcmutil nf_conntrack_netbios_ns snd_compress nf_conntrack_broadcast nf_nat_ftp ac97_bus cfg80211 snd_pcm_dmaengine nf_nat nf_conntrack_ftp nf_conntrack libcrc32c crc32c_generic thunderbolt iptable_filter iTCO_wdt mmc_core iTCO_vendor_support crypto_user msr intel_rapl x86_pkg_temp_thermal intel_powerclamp corete
peterychuang / 0002-Reduce-edge-exclusion-zone-for-Apple-touchpads.patc
Created Oct 18, 2017
View 0002-Reduce-edge-exclusion-zone-for-Apple-touchpads.patc
From ff46248d082b7851ef74db385d115dd7d07bbb0b Mon Sep 17 00:00:00 2001
From: "Peter Y. Chuang" <>
Date: Mon, 14 Aug 2017 08:53:42 +0200
Subject: [PATCH libinput 2/2] Reduce edge exclusion zone for Apple touchpads
src/evdev-mt-touchpad.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
View dsdt_gpe_ec.txt
Device (EC)
Name (_HID, EisaId ("PNP0C09") /* Embedded Controller Device */) // _HID: Hardware ID
Name (_UID, Zero) // _UID: Unique ID
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
IO (Decode16,
0x0062, // Range Minimum
0x0062, // Range Maximum
0x00, // Alignment
View dsdt_blth.txt
Scope (URT0)
Device (BLTH)
Name (_HID, EisaId ("BCM2E7C")) // _HID: Hardware ID
Name (_CID, "apple-uart-blth") // _CID: Compatible ID
Name (_UID, One) // _UID: Unique ID
Name (_ADR, Zero) // _ADR: Address
Method (_STA, 0, NotSerialized) // _STA: Status
peterychuang / 0001-udev-Add-Apple-SPI-Keyboard-and-Touchpad.patch
Created Aug 4, 2017
Enable touch-size-based palm rejection and disable touchpad while typing for Apple SPI Keyboard and Touchpad under libinput
View 0001-udev-Add-Apple-SPI-Keyboard-and-Touchpad.patch
From a3febd1a49f259049d0d9650e297590b56d71ae4 Mon Sep 17 00:00:00 2001
From: "Peter Y. Chuang" <>
Date: Fri, 4 Aug 2017 00:24:36 +0200
Subject: [PATCH libinput] udev: Add Apple SPI Keyboard and Touchpad
This enables touch-size-based palm rejection and disable-while-typing
touchpad feature for the SPI keyboards and touchpads inside the 12-inch
MacBooks and 2016 or later MacBook Pros.
udev/90-libinput-model-quirks.hwdb | 8 ++++++++
peterychuang / dmesg.txt
Created Jul 26, 2017
View dmesg.txt
[ 0.000000] microcode: microcode updated early to revision 0x62, date = 2017-04-27
[ 0.000000] random: get_random_bytes called from start_kernel+0x42/0x457 with crng_init=0
[ 0.000000] Linux version 4.13.0-rc2-g520eccdfe187 (chuangyu@desktop) (gcc version 7.1.1 20170630 (GCC)) #1 SMP PREEMPT Wed Jul 26 10:07:35 CEST 2017
[ 0.000000] Command line: initrd=\intel-ucode.img initrd=\initramfs-linux-git.img rd.luks.uuid=469a7520-db5c-41d2-830c-83821cc410ba resume=UUID=6231a177-fbc2-44b3-820c-04a388185fe0 root=UUID=d2834704-fc9a-4373-ac02-dc5e63db47a1 elevator=none i915.disable_power_well=0 i915.enable_guc_loading=1 i915.enable_guc_submission=1 i915.semaphores=1 applespi.fnmode=2 applespi.iso_layout=1 ro quiet
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supp
You can’t perform that action at this time.