Linux - Laptop and NetbookHaving 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
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
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.
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:
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.