Fanless Aspire One on Intrepid?

Discussion in 'Linux' started by spaceholiday, Oct 30, 2008.

  1. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    I've read elsewhere that the acerfand works in both Hardy and Intrepid - I've downloaded the 8.10 update which operates under my eee-flavored desktop. Following the lovely instructions here, I've found no change at all - the aa1 still whines when I start up and keeps whining till shutdown. Keep in mind that I also commented out what already existed in etc/rc.local (as per recommendation), so it wasn't as though the script was failing due to something else failing first. Does that make sense?

    So I went back to remove everything I had created/entered and found that I could not delete or move the acerfand and acer_ec.pl files - that in fact if I searched for them in the terminal, they were listed as existing in /usr/local/bin, but if I tried to remove them, the terminal came back with "no such file or directory."

    First, why couldn't I remove the stuff I had put in?

    Second, having followed instructions closely (and double-checking where I was putting things, etc), what might have gone wrong in the initial phase?

    Thanks much!
     
    spaceholiday, Oct 30, 2008
    #1
  2. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    Anyone? This is really frustrating.

    After wiping my computer clean and reinstalling Intrepid, I find myself at the same place as before. When I clicked "download" on the files listed here, I got a web page with all the text on it. Following the instructions given there, I copied the text to a gedit file, named the files exactly as they were named on the download link, and saved them in /usr/local/bin. I go to the next step, to enter chmod a+x acerfand, and I get:
    Code:
    chmod: cannot access 'acerfand' : No such file or directory
    Well, since I just made the file I know it exists. So I type in 'acerfand' and get:
    Code:
    bash: /usr/local/bin/acerfand: Permission denied
    I have no idea what's going on. Again, I want to backtrack to remove everything I've done and try again, but if I try to delete the files from the terminal, I get:
    Code:
    cannot remove 'acerfand': No such file or directory
    So I go to the gnome gui and I find that the owner of these files is root, and that I can't move them to the trash that way.

    Can someone please tell me where I went wrong and how to proceed?
     
    spaceholiday, Nov 1, 2008
    #2
  3. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    Also, I just found out that if I try to get to the acerfand and acer_ec.pl files through sudo gedit, all I get are completely blank text files. Not new documents, but blank ones that are named acerfand and acer_ec.pl.

    :?:
     
    spaceholiday, Nov 1, 2008
    #3
  4. spaceholiday

    jeffyeh

    Joined:
    Sep 11, 2008
    Messages:
    41
    Likes Received:
    0
    Hmm. It worked for me. Here's how I did it:

    1) Go to the Ubuntu community page.
    2) Right click -> Save As on the link labeled "Direct download."
    3) Execute:
    Code:
    chmod a+x acerfand
     sudo cp acer_ec.pl acerfand /usr/local/bin/
    4) Then you can run "sudo acerfand" to start it up, and add it to rc.local as the guide directs to have it start at boot up.

    Edit: Hmm. I actually just checked, and "killall acerfand" responds telling me that no processes were killed, even right after i execute "sudo acerfand." Though, I haven't heard a peep from the fan, so all is well I suppose. Does anyone know how to check if acerfand is actually running?
     
    jeffyeh, Nov 1, 2008
    #4
  5. spaceholiday

    jeffyeh

    Joined:
    Sep 11, 2008
    Messages:
    41
    Likes Received:
    0
    Ah sorry. I'm a total idiot. So, the steps I took above are still valid; however, I think the problem you're experiencing is due to the fact that you're saving your acerfand and acer_ec.pl files in the wrong place. If you stick them in your home folder, you shouldn't run into permission issues. Alternately, I suppose you could use "sudo -su," then navigate to /usr/local/bin and then execute the chmod command.
     
    jeffyeh, Nov 1, 2008
    #5
  6. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    Thanks very much for your reply. I've saved to the home folder, and here is what I get:

    Code:
    lmnop@lmnop-aa1:~$ chmod a+x acerfand
    chmod: cannot access `acerfand': No such file or directory
    and:
    Code:
    lmnop@lmnop-aa1:~$  sudo cp acer_ec.pl acerfand /usr/local/bin/
    cp: cannot stat `acer_ec.pl': No such file or directory
    cp: cannot stat `acerfand': No such file or directory
    When I read "home folder," I navigate to the file system, click on home, and find the user folders inside. Am I to save to home, or to my user folder?

    Here's what I get when I try the alternate way, using sudo -su:
    Code:
    sudo: please use single character options
    usage: sudo -h | -K | -k | -L | -l | -V | -v
    usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
                {-i | -s | <command>}
    usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
    As is probably obvious by now, this is all brand new to me, but I'm trying! :)
     
    spaceholiday, Nov 1, 2008
    #6
  7. spaceholiday

    jeffyeh

    Joined:
    Sep 11, 2008
    Messages:
    41
    Likes Received:
    0
    So, when I said "home folder," I meant /home/<YOUR USER NAME HERE>/, so for me, it would be /home/jeff (or equivalent to clicking the folder titled "Home" on the "Places" menu. It actually doesn't matter where you save them before executing the chmod command, as long as your user has permissions in that folder. So you could save it anywhere, run chmod, then sudo cp it to the /usr/local/bin folder. For example:

    1) Save the acerfand and acer_ec.pl into a folder called fanscript in your /home/USERNAME folder.
    2)
    Code:
    cd /home/USERNAME/fanscript
    
    3) Now, if you use the command "ls," you should see those two files listed.
    4) Run
    Code:
    chmod a+x acerfand
    sudo cp acer_ec.pl acerfand /usr/local/bin/
    5) Now run "sudo acerfand" and it should start up.

    Finally, follow the steps for rc.local (make sure you make it executable with chmod a+x rc.local after navigating to the folder it's stored in) to make it run at boot.

    Sorry if I'm misunderstanding your question, but this *should* fix it.
     
    jeffyeh, Nov 1, 2008
    #7
  8. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    You are fantastically patient, and I appreciate it.
    I've done what you specified:

    Code:
    lmnop@lmnop-aa1:~$ cd /home/lmnop/fanscript
    lmnop@lmnop-aa1:~/fanscript$ ls
    acer_ec.pl  acerfand
    lmnop@lmnop-aa1:~/fanscript$     chmod a+x acerfand
    lmnop@lmnop-aa1:~/fanscript$     sudo cp acer_ec.pl acerfand /usr/local/bin/
    lmnop@lmnop-aa1:~/fanscript$ sudo acerfand
    sudo: acerfand: command not found
    lmnop@lmnop-aa1:~/fanscript$ cd
    lmnop@lmnop-aa1:~$ sudo acerfand
    sudo: acerfand: command not found
    lmnop@lmnop-aa1:/usr/local/bin$ sudo acerfand
    sudo: acerfand: command not found
    At least the files show up in /usr/local/bin:
    Code:
    lmnop@lmnop-aa1:/usr/local/bin$ ls
    acer_ec.pl  acerfand  asusosd
    /sigh. Since the next step is making sure the correct BIOS is installed, is it worth it to try that? The guide says to run a system log check after I have run the "sudo acerfand" command. But, since the command isn't recognized, is that irrelevant right now?
     
    spaceholiday, Nov 2, 2008
    #8
  9. spaceholiday

    N6546R

    Joined:
    Aug 27, 2008
    Messages:
    126
    Likes Received:
    0
    Do the file look like this in /usr/local/bin?

    Code:
    perryd@myrtille:~$ ls -l /usr/local/bin/ace*
    -rw-r--r-- 1 root root 8411 2008-10-03 09:50 /usr/local/bin/acer_ec.pl
    -rwxr-xr-x 1 root root 4243 2008-10-03 09:50 /usr/local/bin/acerfand
    perryd@myrtille:~$ 
    
    Perry
    www.kidpub.com
     
    N6546R, Nov 2, 2008
    #9
  10. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    It looks like this:
    Code:
    lmnop@lmnop-aa1:~$ ls -l /usr/local/bin/ace*
    -rw-r--r-- 1 root root 8410 2008-11-01 19:14 /usr/local/bin/acer_ec.pl
    -rw-r--r-- 1 root root 4244 2008-11-01 19:14 /usr/local/bin/acerfand
     
    spaceholiday, Nov 2, 2008
    #10
  11. spaceholiday

    jeffyeh

    Joined:
    Sep 11, 2008
    Messages:
    41
    Likes Received:
    0
    So, from what I can see, your acerfand file is not executable (note the lack of an "x" in that last command by Perry). At this point, however, I'm at a loss as to why your acerfand isn't executable, as you ran chmod a+x on it, so I'll let someone else take over. Perhaps I could learn a thing or two as well!
     
    jeffyeh, Nov 2, 2008
    #11
  12. spaceholiday

    spinnekopje

    Joined:
    Aug 13, 2008
    Messages:
    83
    Likes Received:
    0
    Open a terminal and run:
    Code:
    sudo chmod a+x /usr/local/bin/acerfand
    sudo acerfand
    ps -A | grep acer
    You should see something like:
    Code:
    spinnekop@spinnie-one:~$ sudo chmod a+x /usr/local/bin/acerfand 
    spinnekop@spinnie-one:~$ sudo acerfand
    spinnekop@spinnie-one:~$ ps -A | grep acer
    20609 pts/0    00:00:00 acerfand
    spinnekop@spinnie-one:~$ 
    Once added to rc.local you should get next result:
    Code:
    spinnekop@spinnie-one:~$ ps -A | grep acer
     8520 ?        00:00:15 acerfand
    spinnekop@spinnie-one:~$ 
     
    spinnekopje, Nov 2, 2008
    #12
  13. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    This looks like what you have, except for nothing appears after the "ps -A..." line.
    Code:
    lmnop@lmnop-aa1:~$ sudo chmod a+x /usr/local/bin/acerfand
    [sudo] password for lmnop: 
    lmnop@lmnop-aa1:~$ sudo acerfand
    lmnop@lmnop-aa1:~$ ps -A | grep acer
    lmnop@lmnop-aa1:~$
     
    spaceholiday, Nov 2, 2008
    #13
  14. spaceholiday

    HaTaX

    Joined:
    Oct 8, 2008
    Messages:
    29
    Likes Received:
    0
    BTW, just thought I'd throw this in here, you're looking for "sudo -s" not "sudo -su". It logs in a session with super user rights, you can also exit that session of super user rights by typing "exit" once.

    It just makes it so every command executed is done with root access, and not just the ones with "sudo" in front of them.
     
    HaTaX, Nov 4, 2008
    #14
  15. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    Thanks to those who've helped me thus far. I'm further than I was when I started! But I'm not there yet...
    Anyone have any other ideas I can try? I'd rather not give up as it's a) annoying and b) headache-inducing.
     
    spaceholiday, Nov 4, 2008
    #15
  16. spaceholiday

    N6546R

    Joined:
    Aug 27, 2008
    Messages:
    126
    Likes Received:
    0
    Also check to see that you have Perl installed ...

    Code:
    perl -v
    should return the version of Perl (ie v5.10.0)

    Perry
    www.kidpub.com
     
    N6546R, Nov 5, 2008
    #16
  17. spaceholiday

    jimyjazz

    Joined:
    Oct 29, 2008
    Messages:
    39
    Likes Received:
    0
    hi spaceholday, you can try to change the ownership of the file in the GUI; open a terminal and type sudo nautils, this would open nautilus as root. right click the file you want to change a go to properties, there you should find a way of making the file read&write for you. I use kde so I dont know the exact steps for nautilus. Good luck
     
    jimyjazz, Nov 6, 2008
    #17
  18. spaceholiday

    spaceholiday

    Joined:
    Sep 25, 2008
    Messages:
    45
    Likes Received:
    0
    Location:
    Madison, WI
    Perl is indeed installed.

    The acerfand file now has all permissions possible, but acerfand still doesn't run.

    I hope the new Kuki distro incorporates this fix automatically, because I'm getting fed up to the point of quitting.
     
    spaceholiday, Nov 6, 2008
    #18
  19. spaceholiday

    jeffyeh

    Joined:
    Sep 11, 2008
    Messages:
    41
    Likes Received:
    0
    That's so strange. The script worked perfectly for me, and I'm not experienced enough to tell you how to fix your problem. However, my suggestion is that while the script is specifically for the AAO, the problem with permissions doesn't directly involve it, and thus I would say head over to ubuntuforums.org and ask about this problem in one of their subforums (General Help probably fits this pretty well).

    I'm hoping for an end-user kuki release soon as well, no internal mic is killing me (along with my lack of time to attempt to fix it, as I know at least a couple people here have their mics working).
     
    jeffyeh, Nov 6, 2008
    #19
  20. spaceholiday

    N6546R

    Joined:
    Aug 27, 2008
    Messages:
    126
    Likes Received:
    0
    Kuki will likely use the same script.

    A couple of more things to look at... what version of acerfand are you running? Type 'less /usr/local/bin/acerfand', the version number is up at the top. Mine is 0.03.

    Also, what BIOS version are you running?

    Code:
    sudo dmidecode -s bios-version
    will return the version. Mine is v0.3109 (I've not reflashed the BIOS).

    Perry
    http://www.kidpub.com
     
    N6546R, Nov 6, 2008
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.