Skip to content

Instantly share code, notes, and snippets.

View bogaotory's full-sized avatar

Bo Gao bogaotory

  • University of Oxford
  • Oxford, UK
View GitHub Profile
@bogaotory
bogaotory / turbo_palette.gp
Created May 27, 2020 01:50
Anton Mikhailov's Turbo colormap in Gnuplot format
## Formatted Anton Mikhailov's Turbo rainbow colormap for use in gnuplot
## Details on the colormap:
## https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html
## To use this palette:
## load 'turbo_palette.gp'
set palette defined(\
0.00000 0.18995 0.07176 0.23217,\
0.00392 0.19483 0.08339 0.26149,\
@bogaotory
bogaotory / X1C6_S3_DSDT.patch
Created August 14, 2018 14:34
ACPI DSDT patch to add S3 state to Lenovo ThinkPad X1C6 (https://delta-xi.net/#056)
--- dsdt.dsl.orig 2018-05-29 19:08:56.321347717 +0200
+++ dsdt.dsl 2018-05-29 19:10:53.737896784 +0200
@@ -18,9 +18,8 @@
* Compiler ID "INTL"
* Compiler Version 0x20160527 (538314023)
*/
-DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000000)
+DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000001)
{
- External (_GPE.TBNF, MethodObj) // 0 Arguments
@bogaotory
bogaotory / install_bionic_on_x1c6.md
Last active May 15, 2024 03:25
Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Generation

Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Gen/2018

X1C6 Type: 20KG*

Bionic works out of the box on the new 2018 X1 Carbon. The X1C6 is a beautiful laptop, and Bionic is the best Ubuntu yet. Users of all levels of experties/experiences are recommended to try this combination. The purpose of this documentation is to improve the user's experience.

BIOS/UEFI Changes

Following changes are required by the DSDT patch:

  1. Turn off Secure Boot