Skip to content

Instantly share code, notes, and snippets.

View thatchrisblack's full-sized avatar

Chris Black thatchrisblack

View GitHub Profile
@thatchrisblack
thatchrisblack / skylake-tuning-linux.md
Created May 10, 2018 18:24 — forked from Brainiarc7/skylake-tuning-linux.md
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:

@thatchrisblack
thatchrisblack / 20-intel.conf
Created May 10, 2018 18:19
Stop screen tearing on Dell XPS 9360 with Intel HD 620
#Depending on your distro this goes in /usr/share/X11/xorg.conf.d/ or /etc//usr/share/X11/xorg.conf.d/
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
@thatchrisblack
thatchrisblack / 90-libinput.conf
Created May 10, 2018 18:18
libinput.conf fix for palm detection for Dell XPS 9360
# Depending on your distro this goes in /etc/X11/xorg.conf.d/ or /usr/share/X11/xorg.conf.d
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"
Option "PalmDetection" "True"
Option "TappingDragLock" "True"
EndSection
@thatchrisblack
thatchrisblack / win_linux_dual_boot_xps_15_9560.md
Created May 3, 2018 16:52 — forked from spenserlee/win_linux_dual_boot_xps_15_9560.md
Personal notes for dual booting Windows and Linux on XPS 15 9560

Installing Ubuntu GNOME 17.04 on XPS 15 9560

This document is to serve as a set of notes for myself and can be used as a guide for others looking to set up Ubuntu on their XPS 15. For me this was a dual-boot setup with Windows 10. On Linux I don't have a need for the discrete graphics card, so the main focus is to maximize battery life for development.

I had initially tried to dual boot with Fedora 25, but ran into a lot of issues trying to disable the discrete graphics card, resulting in poor battery life. Instead of starting over with Fedora again, I decided to try with Ubuntu, since there seemed to be a few more resources available.

My XPS Configuration is: i7, 16GB RAM, 512GB SSD, 4K Screen.

Setup

@thatchrisblack
thatchrisblack / tmux-cheatsheet.markdown
Created February 12, 2018 03:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
El Capitan and Sierra are pretty agressive with putting the wifi interface in power saving modes.
Running the following code in Terminal has made running [Synergy](http://symless.com) over wifi useable for me.
ping -i 0.1 -s 0 $SYNERGY_SERVER_ADDRESS > /dev/null