Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

cooling fan in linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    cooling fan in linux

    Hi guys,

    Can someone tell me how to run the cooling fan in linux?

    Thank you.

    #2
    I use two simple scripts for this.

    Turn the fan on by enabling GPIO107.
    Code:
    #!/bin/bash
    echo 107 > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio107/direction
    echo 1 > /sys/class/gpio/gpio107/value
    Reverse the process to turn the fan off.
    Code:
    #!/bin/bash
    echo 0 > /sys/class/gpio/gpio107/value
    echo in > /sys/class/gpio/gpio107/direction
    echo 107 > /sys/class/gpio/unexport

    Comment


      #3
      Thanks for the reply. I have tried this before but it didn't work. The system responded the device is busy or unavailable... so I just tried another no like 108, it executed successfully. Why is 107 unsuccessful?

      I'm using Geekbox_Lubuntu_V160309. How about you? Can you send me your linux version so I might flash it using TWRP.

      Comment


        #4
        I'm using the same update rom but with an archlinux rootfs flashed over it. Not sure why 107 would not work for you, the device tree should be the same for both. Perhaps Lubuntu is locking 107 for its own use?

        Comment


          #5
          You need to be root to access the gpio pins, sudo does not work. You need to "su" or login as root.

          Comment

          Working...
          X