Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Cavanna javanna

  • Elastic
  • Amsterdam
View GitHub Profile
@javanna
javanna / acpi_yogaX1_fedora28
Created Jul 15, 2018
S3 deep sleep for Lenovo yoga X1 3rd Generation on Fedora 28
View acpi_yogaX1_fedora28
This is a step-by-step guide on how make sleep mode work with a Lenovo Yoga X1 3rd generation running Fedora 28 (UEFI based system).
Kernel version: 4.17.4-200.fc28.x86_64
Credits: most of this guide comes from `https://delta-xi.net/#056`. The patch I used is a little different though, taken from http://kernel.dk/acpi.patch
(found through https://bbs.archlinux.org/viewtopic.php?pid=1794150#p1794150), and some of the steps slightly differ as well as mine is a UEFI based system.
1. Reboot, enter BIOS/UEFI. Go to Config - Thunderbolt (TM) 3 - set Thunderbolt BIOS Assist Mode to Enabled. Set also Security - Secure Boot to Disabled.
2. Install iasl (Intel's compiler/decompiler for ACPI machine language) and cpio: `sudo yum install acpica-tools cpio`
@javanna
javanna / apple_keyboard_fedora
Last active Jul 30, 2018
Apple Keyboard on Fedora
View apple_keyboard_fedora
sudo su -
echo "options hid_apple swap_opt_cmd=1 fnmode=2" > /etc/modprobe.d/hid_apple.conf
@javanna
javanna / nested_mapping_issue
Created May 7, 2013
Wrong mapping using a nested object with same name as its type
View nested_mapping_issue
curl -XPOST localhost:9200/index/type/1 -d '
{
"type": {
"id" : "test id",
"title" : "test title"
},
"type2" : {
"id" : "test"
}
}
You can’t perform that action at this time.