Skip to content

Instantly share code, notes, and snippets.

🍕
pizza

Luca Lukypie

🍕
pizza
Block or report user

Report or block Lukypie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Lukypie
Lukypie / fanny.rb
Last active Feb 16, 2016 — forked from chrp/fanny.rb
Auto adjust fan speed of graphics card with ATI catalyst driver on Ubuntu.
View fanny.rb
#!/usr/bin/env ruby
# encoding: utf-8
# first part, get temperature
temp_str = `aticonfig --adapter=0 --od-gettemperature`
temp = temp_str.scan(/Sensor 0: Temperature - (\d+\.\d+) C/)[0][0].to_i
# determine fan speed
thresholds = [ 40, 60, 70, 80, 85 ]
speeds = [ 30, 45, 50, 65, 70 ]
You can’t perform that action at this time.