LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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).

Notices


Reply
  Search this Thread
Old 01-10-2009, 04:13 AM   #1
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Rep: Reputation: 25
acer aspire one noisy fan fix


My acer aspire one has a very noisy fan. To solve this problem I took the following steps found on the internet:
  • download the acerfand daemon script
  • download the acer_ec.pl script
  • Copy both files to /usr/local/bin
  • make acerfand executable and change owner/group to root
  • open /etc/rc.local as root (or use sudo) and add /usr/local/bin/acerfand at the end of the file
Then I tried to to start the deamon by doing
Code:
/usr/local/bin/acerfand
but I got the message that dmidecode and acer_ec.pl are not found. This is because /usr/sbin and /usr/local/bin are not in root's path, so I fixed that by adding them to the PATH= line in /root/.bash_profile.

My question is: how do I verify that this works after rebooting? Is rc.local executed by root? And is the root/.bash_profile loaded before rc.local is executed? Where would the error messages (if any) go to?
 
Old 01-10-2009, 09:42 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I would think the error message would be found from the dmesg command output. If you use the full path to scripts then you should be set. Is there any errors if you run them manually?

What is the weblink to the fan noise fix you found. I was thinking of getting a few someday for dmz wired and wireless firewall, internet servers, and network storage using USB harddrive so just want to be ready and understand what is going on.

Brian

Last edited by Brian1; 01-10-2009 at 09:44 AM.
 
Old 01-11-2009, 04:47 AM   #3
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Original Poster
Rep: Reputation: 25
Here's the link: http://n00.be/archives/758/

There are similar links on the ubuntu NBR forums: https://help.ubuntu.com/community/As...#Fan%20Control

dmesg doesn't show any errors and there's no /var/log/syslog. My guess is that rc.local is run as user with sudo and since /usr/sbin and /usr/local/bin are in the user's path they don't need to be in root's path?

The noisy fan is my only problem with this machine: by default it's running full speed all the time with a high whining noise. With acerfand I enjoy the silence now. Unfortunately, the lm_sensors do not work by default: http://macles.blogspot.com/2008/08/r...-of-intel.html.

But, overall, I'm quite amazed at the quality one gets for such a low price.

Last edited by cmk77; 01-11-2009 at 05:18 AM. Reason: misread macles
 
Old 01-11-2009, 08:18 AM   #4
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Thats odd, I can barely hear my fan running on my Aspire One, and I've never installed anything to regulate it..

Glad its working out for you..

IGF
 
Old 01-11-2009, 08:56 AM   #5
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Original Poster
Rep: Reputation: 25
Well, at first I thought mine was defective, but some googling and searching on http://www.aspireoneuser.com/forum/ revealed that it's a common problem. (533 hits for "fan noise" on the official forum!) I first did the live updates but that didn't solve the problem.
 
Old 01-11-2009, 10:39 AM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure how rc.local is run. It is run as root but not sure what level of root it is. I always use full paths to commands in scripts. Saves debugging time.

Brian
 
Old 01-18-2009, 06:44 AM   #7
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Original Poster
Rep: Reputation: 25
I agree that it's better to use full paths, but in this case that means editing the acerfand and acer_ec.pl scripts. I don't want to do that because they are quite complex. To debug I added the following in rc.local:
Code:
echo $PATH > /home/user/myMessage.txt
This revealed that the path still did *not* include /usr/sbin and /usr/local/bin, even though I set that in /root/.bash_profile. So now I have modified /etc/rc.local as follows:
Code:
export PATH=/usr/sbin:/usr/local/bin:$PATH
/usr/local/bin/acerfand
That solves the problem once and forall
 
  


Reply



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
Configuring Acer Orbicam on an acer aspire 7720 with fedora 8 ags123 Linux - Laptop and Netbook 3 02-11-2008 08:21 AM
noisy server fan jayeola Linux - Hardware 1 01-01-2008 01:26 PM
fan making loudly noisy shogun1234 Linux - Hardware 7 11-20-2007 05:35 PM
mobile AMD Athlon 4 noisy fan in Slack 10.2 outrosdiasvirao Linux - Laptop and Netbook 3 08-07-2006 12:39 PM
APM or APCI on ACER Aspire 2012WLMi (Aspire 2010 Family) FTP_Palace Linux - Laptop and Netbook 4 07-15-2004 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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

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