Skip to content

Instantly share code, notes, and snippets.

View flukejones's full-sized avatar

Luke Jones flukejones

View GitHub Profile
@flukejones
flukejones / gist:daa41b25bc74e916d63ac02692d62070
Created November 22, 2019 10:24
Asseto Corsa hardware report
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
CPU Family: 0x6
#/etc/udev/rules.d/99-nvidia-ac.rules
# Stop nvidia_powerd on battery
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="0",RUN+="/usr/bin/systemctl --no-block stop nvidia-powerd.service"
# Start nvidia_powerd on AC
SUBSYSTEM=="power_supply",ENV{POWER_SUPPLY_ONLINE}=="1",RUN+="/usr/bin/systemctl --no-block start nvidia-powerd.service"
@flukejones
flukejones / Profile Rust on Linux.md
Created July 29, 2023 00:31 — forked from KodrAus/Profile Rust on Linux.md
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.

@flukejones
flukejones / 0001-HID-amd_sfh-Add-support-for-tablet-mode-switch-senso.patch
Created February 12, 2025 02:55
0001-HID-amd_sfh-Add-support-for-tablet-mode-switch-senso.patch
This patch adds support for the tablet mode switch sensors on
convertible devices where that sensor is managed by AMD SFH, like the
Asus Flow X13 and the Lenovo ThinkPad L13 Yoga Gen2 (AMD).
Co-developed-by: Ivan Dovgal <[email protected]>
Signed-off-by: Ivan Dovgal <[email protected]>
Co-developed-by: Luke D. Jones <[email protected]>
Signed-off-by: Luke D. Jones <[email protected]>
Signed-off-by: Adrian Freund <[email protected]>
---