Thursday, February 15, 2007

Mengamankan CPU Dari Overheat

Kernel Linux menyediakan fasilitas yang membantu kita dari bahaya kerusakan CPU karena overheat. Fasilitas tersebut merupakan gabungan dari ACPI thermal, ACPI fan, dan CPU frequency scaling. Fungsi utama CPU frequency scaling (cpufreq) sebenarnya lebih ke penghematan batere untuk laptop, tapi juga dapat dimanfaatkan untuk mencegah CPU overheat pada situasi khusus.

Kita coba mulai dari source code drivers/acpi/thermal.c:

        num = sscanf(limit_string, "%d:%d:%d:%d:%d:%d:%d:%d:%d:%d:%d:%d:%d",
&critical, &hot, &passive,
&active[0], &active[1], &active[2], &active[3], &active[4],
&active[5], &active[6], &active[7], &active[8],
&active[9]);

Bila kita berikan perintah:
# echo "100:100:80:70:60:40" > /proc/acpi/thermal_zone/THRM/trip_points

lalu kita cek hasilnya:
$ cat /proc/acpi/thermal_zone/THRM/*
cooling mode: active
polling frequency: 10 seconds
state: ok
temperature: 40 C
critical (S5): 100 C
passive: 80 C: tc1=3 tc2=1 tsp=258 devices=0xc18a3540
active[0]: 70 C: devices=0xc18ad874
active[1]: 60 C: devices=0xc18ad810
active[2]: 40 C: devices=0xc18ad7c0

Apa artinya? Notebook saya memiliki 3 buah fan. Setting di atas akan menyebabkan fan #1 mulai hidup pada suhu 40°C, fan #2 pada 60°C, dan fan #3 pada 70°C. Ketika suhu mencapai 80° maka pengaturan suhu beralih ke mode pasif, dimana frekuensi prosesor mulai dimainkan/diturunkan. Pengaturan ini memanfaatkan cpufreq. Kalau penurunan frekuensi masih tidak memadai, dan prosesor masih terus memanas sampai ke suhu kritis, yaitu 100°C, maka kernel akan memaksakan proses shutdown untuk mencegah kerusakan CPU yang lebih parah.

Sayang pengendalian suhu dengan cara memaksakan fan #1-#3 otomatis hidup/mati ini tidak berjalan mulus setelah laptop di-resume dari hibernate.

Wednesday, January 31, 2007

Jadwal Balap F1 2007

  • Australia, 18 Maret
  • Malaysia, 8 April
  • Bahrain, 15 April
  • Spanyol, 13 Mei
  • Monako, 27 Mei
  • Kanada, 10 Juni
  • Amerika Serikat, 17 Juni
  • Prancis, 1 Juli
  • Inggris, 8 Juli
  • Jerman, 22 Juli
  • Hungaria, 5 Agustus
  • Turki, 26 Agustus
  • Itali, 9 September
  • Belgia, 16 September
  • Jepang, 30 September
  • Cina, 7 Oktober
  • Brasil, 21 Oktober
  • Indonesia, entah kapan

Tuesday, January 30, 2007

"Tidak Ada Driver Untuk Linux" Bakal Tinggal Kenangan

Greg KH menuliskan tawaran yang sangat menarik di milis Kernel Linux:


DateMon, 29 Jan 2007 17:29:04 -0800
FromGreg KH <>
SubjectFree Linux Driver Development!

Free Linux Driver Development!

Yes, that's right, the Linux kernel community is offering all companies
free Linux driver development. No longer do you have to suffer through
all of the different examples in the Linux Device Driver Kit, or pick
through the thousands of example drivers in the Linux kernel source
tree trying to determine which one is the closest to what you need to
do.

All that is needed is some kind of specification that describes how your
device works, or the email address of an engineer that is willing to
answer questions every once in a while. A few sample devices might be
good to have so that debugging doesn't have to be done by email, but if
necessary, that can be done.

In return, you will receive a complete and working Linux driver that is
added to the main Linux kernel source tree. The driver will be written
by some of the members of the Linux kernel developer community (over
1500 strong and growing). This driver will then be automatically
included in all Linux distributions, including the "enterprise" ones.
It will be automatically kept up to date and working through all Linux
kernel API changes. This driver will work with all[1] of the different
CPU types supported by Linux, the largest number of CPU types supported
by any operating system ever before in the history of computing.

As for support, the driver will be supported through email by the
original developers, when they can help out, and by the "enterprise"
Linux distributors as part of their service agreements with their
customers.

If your company is worried about NDA issues surrounding your device's
specifications, we have arranged a program with OSDL/TLF's Tech Board to
provide the legal framework where a company can interact with a member
of the kernel community in order to properly assure that all needed NDA
requirements are fulfilled.

Now your developers will have more time to work on drivers for all of
the other operating systems out there, and you can add "supported on
Linux" to your product's marketing material.

This offer is in affect for all different types of devices, from USB
toys to PCI video devices to high-speed networking cards. If you build
it, we can get Linux drivers working for it.

For any questions about this program, please feel free to respond to
this email, or contact me directly at greg@kroah.com. I will also be
available at FreedomHEC 2007 <http://freedomhec.pbwiki.com/> held
adjacent to WinHEC, if anyone wants to bring devices and work
face-to-face.

Tuesday, December 19, 2006

Tag all di mutt

biar gak lupa, dicatat disini

T.
atau
T~A

Thursday, December 14, 2006

Jalan-jalan Dua Minggu

30 Nov - 3 Des: Kuala Lumpur, ujian satpam internet, alhamdulillah lulus.


4 - 13 Des: Sumbawa. Makan ikan bakar; snorkling.


14 Des: balik Bandung. Capek.

Jangan Komen Di Blog Seleb





Jadi siapa aja yang dianggap seleb? Priyadi? Enda?