Skip to content

Instantly share code, notes, and snippets.

View tom-ricci's full-sized avatar
💭
It’s KHTML, like Gecko

Thomas Ricci tom-ricci

💭
It’s KHTML, like Gecko
View GitHub Profile
@Filip62
Filip62 / Fix_MCLK_Clock_Stuck_Arch_Linux_Guide.md
Created September 7, 2023 08:57 — forked from Rend0e/Fix_MCLK_Clock_Stuck_Arch_Linux_Guide.md
Fix AMD GPU high idle power MCLK (vram / memory clock) stuck at 96 MHz / 1000 MHz for high refresh rates on Arch Linux Wayland & Xorg

Fix AMD GPU high idle power MCLK (vram / memory clock) stuck at 96 MHz / 1000 MHz for high refresh rates on Arch Linux Wayland & Xorg

On certain resolutions & refresh rates or multi-monitor setups, you might have noticed that your GPU MCLK (vram / memory clock) is stuck at the highest clock frequency (1000 MHz) [1] [2] causing higher GPU idle power draw. On Linux kernel 6.4.x, AMDGPU MCLK (vram/memory) clocks at the lowest, causing major FPS drops while gaming [1] [2]. This is likely due to a monitor not using Coordinated Video Timings (CVT) with a low V-Blank value for the affected resolutions & refresh rates. The higher clocking behavior is due to:

[Well, the reason the clocks get forced to max in some cases is to avoid the flickering you are seeing. There is a certain latency r

@n-belokopytov
n-belokopytov / copyDeps.gradle
Last active September 18, 2024 13:31
Gradle script that generates a task to copy all build variant's dependencies to a certain directory for use with Nexus IQ Server. It copies exploded AARs too, renaming the classes.jar file into "<aar_dependency_name>.jar".
apply plugin: 'com.android.application'
android.applicationVariants.all { variant ->
task "copyDependencies${variant.name.capitalize()}"() {
outputs.upToDateWhen { false }
doLast {
println "Executing copyDependencies${variant.name.capitalize()}"
variant.getCompileClasspath().each { fileDependency ->
def sourcePath = fileDependency.absolutePath
def destinationPath = project.projectDir.path + "/build/dependencies/${variant.name}/"
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 31, 2026 14:39
set -e, -u, -o, -x pipefail explanation
@hal0gen
hal0gen / _mobile-ready-web-app.html
Last active April 6, 2026 10:22 — forked from tfausak/ios-8-web-app.html
iOS + Android settings for web applications
<!doctype html>
<!-- Adapted from https://gist.github.com/tfausak/2222823 -->
<html>
<head>
<title>Mobile-ready web app</title>
<!-- CONFIGURATION -->