Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 04-27-2005, 03:25 PM   #1
Registered: Oct 2004
Location: Belgium / Antwerp
Distribution: Debian
Posts: 287

Rep: Reputation: 33
writing simple acpi program

How do I write a program that simply monitors the cpu temperature. I know that the temperature can be read in


Let's say it update's every 2 seconds.

And another question

How do I control the trigger for fan speed. I think my fan stops at 40C and starts again at 45C.

I know that the fan is able to run at 3 speeds (no action, normal, full)

Can anybody tell me where and how I can change the trigger for the fan, and the speeds.


Old 04-27-2005, 08:46 PM   #2
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
If you just want to monitor the temp in X, there are already programs to do that. GKrellM is very popular.

If you want to monitor it from the command line you could do it with a simple bash script.

while :
    i=`cat $FILE`
    echo -e -n "\033[7s"
    tput cup 0 69
    echo -n $i
    echo -e -n "\033[8u"
    sleep 2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help writing a simple program justintime32 Mandriva 8 03-04-2005 09:12 PM
Help writing a simple script Garibaldi3489 Linux - General 10 12-18-2004 07:22 PM
writing a simple file system in linux Deepthi_57 Linux - Newbie 1 05-03-2004 01:42 AM
Simple Question re: enabling ACPI in BIOS tigerflag Slackware - Installation 11 04-21-2004 07:40 AM
Writing a simple KDE application yapp Programming 1 12-10-2003 04:39 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration