X-C1 Software

From Geekworm Wiki
Jump to navigation Jump to search


[Update]

Support Umbrel now.

The script is not tested VMware ESXI ARM operating system. To make the 3pin PWM cooling fan running, please remove/pull out the yellow cable if you use X-C1 V1.0 version.

NOTE:

In general, two important libraries are needed to run this script:

1. pigpiod, refer to http://abyz.me.uk/rpi/pigpio/download.html

2. Python, try to run 'python --version' to check it.

For Raspbian / RetroPie / Twister OS v2.0.2

Test this script based on the following OS:

  • Tested '2022-04-04-raspios-buster-armhf.img" on Apr. 13, 2022;
  • Raspbian 2021-05-07-raspios-buster-armhf, 2021-10-30-raspios-bullseye-armhf.img, 2021-10-30-raspios-bullseye-armhf-lite.img
  • RetroPie 4.7.1
  • Twister OS v2.0.2.

install

cd ~
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install i2c-tools python3-smbus python3-rpi.gpio
sudo apt-get install -y git
sudo apt-get install -y pigpio python3-pigpio
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
sudo chmod +x *.sh
sudo bash install.sh
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

If reboot fails, please force shutdown or power off and restart

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall.sh

For ubuntu mate / ubuntun desktop / ubuntu server

Test this script based on the following OS:

  • ubuntu-mate-20.04.1-desktop
  • ubuntu server 21.04
  • ubuntu-21.04-preinstalled-desktop-arm64+raspi

install

cd ~
sudo apt-get update
sudo apt-get upgrade

sudo apt-get install -y unzip make gcc python git wiringpi python3-pigpio python-setuptools
sudo apt-get install -y python3-distutils

#install pigpio library, also refer to http://abyz.me.uk/rpi/pigpio/download.html
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
sudo make
sudo make install

cd ~
git clone https://github.com/geekworm-com/x-c1
cd x-c1
sudo chmod +x *.sh
sudo bash install-ubuntu.sh

echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch 1-2 seconds to reboot
  • press button switch 3 seconds to safe shutdown,
  • press 7-8 seconds to force shutdown.

uninstall

sudo ./uninstall-ubuntu.sh

For myNode OS and Umbrel

About myNode, please refer to http://www.mynodebtc.com/

About Umbrel, please refer to https://getumbrel.com/

Install

Login to mynode teminal via Putty or Xsheel tool, the default user name is `admin`, default password is `bolt`, then run the following command:

Login to mynode teminal via Putty or Xsheel tool, the default user name is `umbrel`, default password is `moneyprintergobrrr`, then run the following command:

FAQ

Q: What are the credentials to SSH into my Umbrel?

A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address of your Umbrel>). The password is the same as your Umbrel's password. If you haven't set a password yet, the default password is: moneyprintergobrrr.

 sudo apt-get update
 sudo apt-get install pigpio python-pigpio python-smbus wiringpi -y
 git clone https://github.com/geekworm-com/x-c1
 cd x-c1
 chmod +x *.sh
 sudo bash install-mynode.sh
 echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc

 sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch 1-2 seconds to reboot
  • press button switch 3 seconds to safe shutdown,
  • press 7-8 seconds to force shutdown.

uninstall

./uninstall-mynode.sh

For DietPi

About DietPi, please refer to URL

Test 'DietPi_RPi-ARMv6-Bullseye.image' on May 5th, 2022.

Install

Test it base DietPi_RPi-ARMv8-Buster.img

login via teminal window, the default user name is `root`, password is `dietpi`, then run the following command:

 sudo apt-get update
 sudo apt-get install git pigpiod python3-pigpio python3-smbus python3-rpi.gpio -y
 git clone https://github.com/geekworm-com/x-c1
 cd x-c1
 chmod +x *.sh

 sudo bash install-dietPi.sh

 echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
 sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall-dietPi.sh

For Manjaro

About Manjaro, please refer to https://manjaro.org/

Test this script based on Manjaro-ARM-kde-plasma-rpi4-21.07.img

install

cd ~
sudo pacman -Syyu
sudo pacman -S unzip make gcc python python-setuptools git

#install pigpio library, also refer to http://abyz.me.uk/rpi/pigpio/download.html
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
sudo make
sudo make install
sudo cp /usr/local/lib/libpigpio* /usr/lib/

#install wiringpi
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
./build

cd ~
git clone https://github.com/geekworm-com/x-c1
cd x-c1
sudo chmod +x *.sh
sudo bash install-manjaro.sh

#create a alias xoff
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall-ubuntu.sh

For LibreELEC

With LibreELEC it is not possible to change the system for security and stability reasons so even 'apt-get' would not be able to do this, so we cannot install some third-party libraries like pigpiod, Therefore, safe shutdown and dynamic adjustment of fan speed cannot be supported on liberelec.

Please pull out the yellow wire of the fan to make the fan run immediately

return to NASPi

For Volumio

Test this script based on the following OS:

  • Volumio-3.175-2021-12-13-pi.img

install

cd ~
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git pigpio 
sudo apt-get install -y python-pigpio python3-pigpio
sudo apt-get install -y python-smbus python3-smbus
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
sudo chmod +x *.sh
sudo bash volumio.sh
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall.sh

Note

Enable SSH:
http://volumio.local/dev/
Name: volumio
Password: volumio

we use the default password to run the volumio.sh, please replace default password 'volumio' with your new password in volumio.sh file .(Line 72)

FAQ

Q1: Can't connect to pigpio at localhost(8888)

Can't connect to pigpio at localhost(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
  File "/home/volumio/x-c1/fan.py", line 8, in <module>
    pwm.set_mode(servo, pigpio.OUTPUT)
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1376, in set_mode
    return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1025, in _pigpio_command
    sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'

A: If you find an error similar to the above, it is because pigpiod library is not started, we need to run pigpiod first,

sudo pigpiod
python 'your directory'/x-c1/fan.py &

If 'sudo' command request a password, you can use the following command:

echo 'your password' | sudo -S pigpiod
python 'your directory'/x-c1/fan.py &

You can put these two lines in the /etc/rc.local file so that it will run automatically after booting.

Volumio-rc-local.jpg

Q2:How to get the current fan speed value? As I remember old x735 software where with such read_fan_speed.py script example, but not found such in X-C1.

A: The X-C1's PWM fan is a 3Pin FAN, and does not support reading speed. The Fan of X735 is a 4Pin PWM fan.


Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #55

5 days ago
Score 0++
Do you support Batocera? I only enough enough about Linux to be dangerous...

Lisa

5 days ago
Score 0++
There are many open source systems for linux. Sorry,we have not tested all of them.

Anonymous user #54

11 days ago
Score 0++
How to get the current fan speed value? As I remember old x735 software where with such read_fan_speed.py script example, but not found such in X-C1

Lisa

11 days ago
Score 0++
Hi,The X-C1's PWM fan does not support reading speed. It only has three wires (3 pins), and the X735 fan has 4 wires.

Anonymous user #53

21 days ago
Score 0++

Can't install the script on retropie running raspbian OS.

Getting error:

File "/home/pi/x-c1/fan.py", line 2, in <module> import pigpio

ImportError: No module named pigpio

Anonymous user #52

28 days ago
Score 0++
Hi! One more request for HomeAssistant Support. This is the perfect case for an HA deployment.

Lisa

26 days ago
Score 0++

Hi,

Sorry, it doesn't support Home Assitant yet.

Anonymous user #51

2 months ago
Score 0++
Hi, is it possible on Home Assistant?

Lisa

2 months ago
Score 0++

Hi,

Sorry, it doesn't support Home Assitant yet.

Anonymous user #50

2 months ago
Score 0++
Hello

Anonymous user #49

2 months ago
Score 0++
any fan speed control script for moode audio?

Anonymous user #48

4 months ago
Score 0++
Hello. Is it possible to have auto power on in v1.3 using the reserved SW?. Thanks

Lisa

4 months ago
Score 0++

Hello,

SW is only an external switch interface and cannot realize the auto power on function.

Anonymous user #47

4 months ago
Score 0++

Hello, Installed the script on a Raspberry Pi 4 with newest version of raspbian on it. xoff is not working. After the 4 seconds, nothing happens.

Fan speed is controlled so the script somehow works, but xoff not..

Lisa

4 months ago
Score 0++
Could you you provide more details? For example, the installed script, is there any error message?

Anonymous user #46

4 months ago
Score 0++

Hello, after creating a new image I was able to install the required programs. The pin for FanFS is bridged. The script Pigpio is present and also the script x-C1. No matter what I change in the fan.pi file, the fan does not turn off.

My OS ist Citadel-Node (similar Umbrel), Hardware P4

Lisa

4 months ago
Score 0++

Hi,

Is there any error message? Or you can try to reinstall the system to test it.

Anonymous user #44

4 months ago
Score 0++
Hello, I wanted to use this case with Citadel Node. Apart from the x-c1-softsd file, no other file is created when the script for My-Node is executed. The fan runs but is not regulated. ;-/

Lisa

4 months ago
Score 0++

Hi,

What version is your X-C1?

X-C1 v2.0 added Fan FS jumper, please check if the Fan FS jumper cap is shorted.

Anonymous user #45

4 months ago
Score 0++
The data for the fan is not installed with the script. The former file that was installed was used for the shutdown.

Anonymous user #46

4 months ago
Score 0++
Hello, after creating a new image I was able to install the required programs. The pin for FanFS is bridged. The script Pigpio is present and also the script x-C1. No matter what I change in the fan.pi file, the fan does not turn off.

Anonymous user #43

5 months ago
Score 0++

For anyone installing the script on Raspian who found that after installation the fan runs at 100% and is very noisy here is my solution.

cd x-c1/ cp fan.py fan.py.original vi fan.py

Change the following line...

pwm = pigpio.pi()

To...

pwm = pigpio.pi('::1', 8888)

Save changes and reboot your Raspberry Pi.

Hope this helps someone!

Anonymous user #42

6 months ago
Score 0++
Is it possible to install pwm fan and power button control under OMV6 on a Pi4B?

Lisa

6 months ago
Score 0++

Hi,

Yes,you can try to install it.

Anonymous user #41

6 months ago
Score 0++

Hello, I´m running dualboot raspberry OS and LineageOS 18.1 Android TV. Is it possible to run x-c1 on android 11 somehow?

thanks

Lisa

6 months ago
Score 0++

Hi,

It depends on whether your raspberry pi supports android 11;

X-C1 is just an adapter board

Lisa

7 months ago
Score 0++

Hi,Andi

5 seconds after the MCU detects the low level, it cuts off the power; this time is sufficient.

if you want to change it, you can try this: add ‘/bin/sleep/ 2’ in place of 1 or 2 in the picture NASPI-X-C1-shutdown.png . But we haven't tested it this way.

Anonymous user #40

7 months ago
Score 0++

Hi Lisa

Thanks for getting back to me. I try the sleep command but it does not work for me as it only extends the time before the shutdown starts but not the shutdown time itself. I will try to work my way thrue systemd, define the script as a service and find the right order to shutdown. If i will find the right systemd order, i will post it here.

Anonymous user #40

7 months ago
Score 0++

Hi

after run x-c1-softsd.sh my NASPI start to shutdown and powers off after 4 seconds. That seems to be not long enogh for my raspberry os to properly shut down and reach the power off target. My NASPI powers off while systemd is still busy to stop all the processes. Is there a way to extend the time between start the shutdown and power off or even better: check if systemd power off target is reached before power off ? thx best regards

Andi

Anonymous user #39

7 months ago
Score 0++
after 4 months the fan start to make noise and doesn't have the same performance anymore. Please can someone tell me what model it is, or something compatible? some link where I can buy it, i tried another fan but is working always at max power

Lisa

7 months ago
Score 0++
Hello,It's a 4010 PWM Fan-3Pin for NASPi. you can buy it from here[[1]]

Anonymous user #38

8 months ago
Score 0++

How can the fan be stopped without pulling out wires? The fan control script does nothing on debian 11.2 aarch64

I'd like to start/stop fan on demand.

Lisa

8 months ago
Score 0++

Hi,

You can modify the fan's script to stop it.

Anonymous user #37

9 months ago
Score 0++

I'm using latest version of Raspberry Pi Bullseye Release date: January 28th 2022 Kernel version: 5.10 Debian version: 11 (bullseye) When I get to this line in the above install process: sudo apt-get install -y python-smbus python3-smbus It fails to install python-smbus. I changed the command to sudo apt-get install -y python3-smbus And continued the install without it.

When the install was complete the fan seems to run OK and xoff and the power work.

Anonymous user #36

9 months ago
Score 0++
Hi, is there a version for "Debian GNU/Linux 11 (bullseye)"?

Lisa

9 months ago
Score 0++

Hi,

For bullseye :

please refer toX-C1 Software#For Raspbian / RetroPie / Twister OS v2.0.2

Anonymous user #35

10 months ago
Score 0++
Hello, the script for Dietpi doesn't seem to work. I installed the latest Dietpi on my Raspberry Pi 4 4Gb and I couldn't get the fan to run. The script aborts during installation. What can I do?

Lisa

9 months ago
Score 0++

Hello,

Could you please tell us more details? What is the error message when installing the script?

Anonymous user #34

10 months ago
Score 0++

I tried doing this with Raspberry Pi OS and it didn't work. I did use the one at the top that says Raspbian. I forgot it isn't called Raspbian any more so maybe that was why? I cut and pasted the instructions to avoid errors. Being a bit of a noob, I might have got the bit that sends you to github wrong. I just copy and pasted the line as above. Don't know if I was meant to go to github and do something? Anyway, followed it through. Did reboot as stated. It seemed to reboot but I lost display. I could see that it was connected to internet the first couple of times. Then after that, it would start to load up. (I could see that bit) then it got to a point and i lost display. It didn't show up as connected to internet either and i cpu light stopped flashing. Left it ages a couple of times.

Gave up, had to start again from fresh, reinstalled Raspberry Pi OS.

Anonymous user #33

11 months ago
Score 0++

Your ubuntu install script just hard overwrites rc.local without checking if there's anything there alread and doesn't back it up

this is really poor practice you're not the only folks who might want to use rc.local on ubuntu... please consider more "defensive programming"

Anonymous user #32

11 months ago
Score 0++
Hi. Any update on Home Assistant support?

Lisa

10 months ago
Score 0++
Hi,Sorry, it is not supported yet

Anonymous user #31

11 months ago
Score 0++

OS: 2021-10-30-raspbian-bullseye-armhf lite version

Your script doesn't work. After using the xoff command the system turns off, but using the button the fan starts at maximum and the red led does not turn off. Also I point out that it is impossible to install python-smbus as it reports me that the package is missing. The script has been tested on at least 5 raspberry with your case but none seem to work. I would also like an implementation of a custom path for the installation of the script, as it seems to me that your product was not given to me but was purchased.

Lisa

11 months ago
Score 0++
Hello,If the system is turned off, the indicator light should not light up. But based on what you said, we cannot tell what the problem is.Could you please provide some installation and test pictures,

Anonymous user #30

12 months ago
Score 0++
Hello.I am using raspbian lite arm64 on RPI 4 8Gb, the fan is working, but when I turn off by switch (3s) it looks like is turnung off but the red light on RPI4 and the blue light on the switch stays on, is compatible with ARM64 OS?

Lisa

12 months ago
Score 0++
Hi,If it is turned off, the LED indicator should be off. Could you please send some pictures by email ?[support@geekworm.com],and please let us know your Order NO. Thanks

Anonymous user #28

12 months ago
Score 0++
Hi. Amy update on a possible Home Assistant support?

Anonymous user #29

12 months ago
Score 0++

Hi, @user#28: Did you try the Unbuntu scripts proposed here in this Wiki on your Home Assistant PI? Was this not working?

I just bought this board also. I am setting up this board fright now, and was looking at this WiKi to now implement the Temperature monitoring on this XC-1 board to have the fan monitor the temperature.

I think this board is perfekt for any Smarthome solution based on Raspberry PI ...

Anonymous user #27

12 months ago
Score 0++

Hello,

I am trying to use the on the new Raspberry Pi 4 with Pop Os as my system. Pop Os is based on Ubuntu but I can't get the install script to work I get error line 121. Could you tell me how to fix this. Thanks for any help on this.

Lisa

12 months ago
Score 0++

Hello,please send us 【Pop Os】link and let us try to test.

Because there are too many operating systems for the Raspberry Pi, we cannot provide installation scripts for all systems, so we strongly recommend buying the NASPi Lite version if you are using a third-party system.

Anonymous user #25

12 months ago
Score 0++

Could you update the script for 2021-10-30-raspios-bullseye-armhf? The actual script isn't working with that OS.

I'm getting this error with "sudo apt-get install -y pigpio python-pigpio python-smbus python3-pigpio wiringpi git" command:

"Package python-smbus is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-smbus' has no installation candidate E: Unable to locate package wiringpi"

I'm using the lite version.

Lisa

12 months ago
Score 0++
Hi,Are you using the NASPi Lite case fo Raspberry Pi4? NASPi Lite does not need to install script, it uses X-C2 adapter board, not X-C1. please refer NASPi Lite

Anonymous user #26

12 months ago
Score 0++

No, the lite version of the raspberry OS.

I have the standard NASPi 2.5.

Lisa

12 months ago
Score 0++
Hi,Please ignore the above the warning...We tested again and there was no problem with the installation, please try to install it again.

Anonymous user #17

12 months ago
Score 0++
With Bullseye, one might also want to install (with apt) the package python-is-python3 that creates a symlink from "python" to "python3" - some scripts seem to refer to python only causing "command not found" problems.

Anonymous user #24

13 months ago
Score 0++

For future generations looking for software night mode indication: power button's LED is powered by 1.83 mA at 2.57 V, so you need a 400 ohm resistor to drive it directly from the 3.3V raspberry pin.

Pin, marked in FAQ (linked below) is GND, the one to be cut off (and point to connect from gpio) is right above it.

Anonymous user #24

13 months ago
Score 0++
Is there any chance to dim power button's LED in code? Please don't suggest using duct tape :)

Lisa

13 months ago
Score 0++
Hi,Sorry, the brightness of the LED indicator does not support adjustment

Anonymous user #24

13 months ago
Score 0++

Hi, and thank you for your answer.

Then could it be disabled programatically?

Anonymous user #24

13 months ago
Score 0++
..or, if it's impossible to turn off led, is is possible to disable entire button?

Lisa

13 months ago
Score 0++
LED is controlled by MCU. We cannot disable the LED programmatically. But you can refer to the method here NASPi#FAQ

Anonymous user #24

13 months ago
Score 0++
OK, then could you please tell me operating current and voltage of this LED? If it can be safely cut off, then it can be controlled by another GPIO pin after that.

Anonymous user #23

13 months ago
Score 0++
+1 for Home-Assistant integration. This would be really great!

Anonymous user #8

13 months ago
Score 0++

dont work for dietpi anymore... apt-get install git pigpio python python-pigpio python-smbus wiringpi -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'python-is-python2' instead of 'python' Package python-smbus is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or

is only available from another source

Anonymous user #21

13 months ago
Score 0++
The fan is very noisy, and seems to run full-speed all the time - is this expected behaviour, or can the speed be controlled?

Lisa

13 months ago
Score 0++
Hello,It is a PWM fan, you can adjust the speed of the fan.

Anonymous user #22

13 months ago
Score 0++
Another vote for HassOS support of xoff and Fan control please in Hass iuntegration

Anonymous user #21

13 months ago
Score 0++
I've just installed, and after a number of false starts, now have it running with the fan on. However, xoff doesn't do anything.

Anonymous user #21

13 months ago
Score 0++
Same here

Lisa

13 months ago
Score 0++
Hi,could you please check if the script is installed correctly and what operating system you are using. Please tell us more information, install pictures and videos.thanks

Anonymous user #20

13 months ago
Score 0++

Hello Another vote for HomeAssistant integration, please!

Thanks for a great, well-made product.

Lisa

13 months ago
Score 0++
Hi,Thanks for your feedback. Because there are too many operating systems, we designed NASPi Lite,and we recommend using the NASPi lite version if it is not an official system, functions and operations are simpler.

Anonymous user #17

13 months ago
Score 0++

Is it possible to have the X-C1 start up on it's own after a power failure?

Mine works without issues otherwise (PWM etc OK), but does not power on automatically (without user manually pressing the power button) after power is restored from the wall (USB-C).

Lisa

13 months ago
Score 0++
sorry the X-C1 not have 'AUTO ON' function

Anonymous user #16

14 months ago
Score 0++
Can you consider to add Home Assistant OS support for both fan and safe reboot scripts?

Lisa

14 months ago
Score 0++
Hi,We will consider it, but the mirror was not downloaded. yet.

Lisa

13 months ago
Score 0++
you can remove the yellow wire of the fan, do not use the PWM function and use the fan directly without installing a script.

Anonymous user #18

13 months ago
Score 0++

I'm using Home Assistant configuration for Fan, based on cpu_temp but I'm not able to set fan rpm. I think there is no possibility for safe shutdown instead. I will wait any update for HomeAssistant OS.

Thanks

Anonymous user #15

14 months ago
Score 0++

Sorry, I can't install X-C1 software on Raspberry Pi4 with Raspberry Pi OS (32 bit). This whole guide refers to other software, how should I go about using the power button features and running the fan for pleasure?

Thanks.

Lisa

14 months ago
Score 0++
Hi,could you please tell us the specific problem? You can refer to the operation guide of Raspbian

Anonymous user #14

14 months ago
Score 0++

X-C1 kit is a raspberry pi 4 case, but scipt using wiringpi gpio. WiringPi was deprecated by its maintainer over a year ago. The 2.52 release doesn't fully work on Pi-4. IIRC there were several important functions that had breakage and the maintainer had already deprecated the project.

So the X-C1 script will never work properly on the PI-4.

Abby

13 months ago
Score 0++

Hi, Wiringpi gpio is in the script, but actually we didn't use it. To avoid misunderstanding, next we will remove the content related to wiringpi gpio.

We have sold a lot of NASPi, and the every scripts on the X-C1 page have been tested by us, so it did work on pi 4.

Regards,

Anonymous user #14

14 months ago
Score 0++

Moode 7.3 fresh installation, X-C1 scipt installed, button working but fan always spin, no PWM control. Xoff command working but shutdown from moode console does not shuttdown the case.

OSMC fresh installation, script installation problem, wiringpi can't install, button working but no fan control. Please help.

Anonymous user #13

15 months ago
Score 0++
this is not making sense. I install the script and for some reason, it reboots randomly with the power button flashing. And the fan will not start. It works fine until I install the script, then it craps itself every time. Can I get a fix or I will be returning this device?

Anonymous user #13

15 months ago
Score 0++
Im running a rpi 4 4gig model with rasberry pi OS (Raspbian)

Lisa

15 months ago
Score 0++
Hi,could you please send some pictures by email ?[support@geekworm.com],and please let us know your Order NO. Thanks

Anonymous user #13

15 months ago
Score 0++
what do you need pictures of? the issue? or that I actually have what I am claiming to have?

Anonymous user #13

15 months ago
Score 0++
email sent

Lisa

15 months ago
Score 0++
OK,We replied to your email.

Anonymous user #11

15 months ago
Score 0++

I have the script installed on a Raspbian Lite headless server. I added the crontab job as detailed below, but the fan doesn't come on when the machine is booted. I tried to test the script by running it directly with:

python /home/pi/x-c1/fan.py

however I get the error:

Did you start the pigpiod daemon?

I am only able to get the python script running if I manually kill the pigpiod daemon and restart it.

How can I fix this? Its annoying to have to remember to kill the daemon, restart it, and then manually start the script each time I reboot my server.

Harry

15 months ago
Score 0++

Hi, Please run pigpiod service; sudo systemctl enable pigpiod or

sudo pigpiod

Anonymous user #11

15 months ago
Score 0++

This did not help. The output of sudo systemctl shows pigpiod service enabled and running on boot, but the fan doesn't run.

The only way to get the fan running is to kill the pigpiod process, restart it with sudo pigpiod and then manually run the fan script.

Anonymous user #19

13 months ago
Score 0++

Regarding "Can't connect to pigpiod", if you have to kill and restart pigpiod then it seems to be due to the address binding.

Following this suggestion to setup newer Pi4 to not use ipv6: Github joan2937/pigpio/issues/195#issuecomment-449774632

Edit /lib/systemd/system/pigpiod.service

[Service]

ExecStart=/usr/bin/pigpiod -l -n 127.0.0.1

Anonymous user #9

16 months ago
Score 0++

Hi, Sorry if this problem I am having is completely on me but I am very new to all of this. I am trying to setup a home Plex server and I bought this case and a 240 GB SSD to Plex Media Server and I plan to use a 12 TB external hard drive. I assembled the case and transferred the OS, I am using Ubuntu 21.04, to the SSD. I am attempting to get the fan to work and I can't seem to have any success with the commands in terminal. Here is where I seem to be having trouble:

          • @****:~/pigpio-master$ make

make: Nothing to be done for 'all'.

          • @****:~/pigpio-master$ sudo make install

install -m 0755 -d /opt/pigpio/cgi install -m 0755 -d /usr/local/include install -m 0644 pigpio.h /usr/local/include install -m 0644 pigpiod_if.h /usr/local/include install -m 0644 pigpiod_if2.h /usr/local/include install -m 0755 -d /usr/local/lib install -m 0755 libpigpio.so.1 /usr/local/lib install -m 0755 libpigpiod_if.so.1 /usr/local/lib install -m 0755 libpigpiod_if2.so.1 /usr/local/lib cd /usr/local/lib && ln -fs libpigpio.so.1 libpigpio.so cd /usr/local/lib && ln -fs libpigpiod_if.so.1 libpigpiod_if.so cd /usr/local/lib && ln -fs libpigpiod_if2.so.1 libpigpiod_if2.so install -m 0755 -d /usr/local/bin install -m 0755 pig2vcd /usr/local/bin install -m 0755 pigpiod /usr/local/bin install -m 0755 pigs /usr/local/bin if which python2; then python2 setup.py install ; fi /usr/bin/python2 running install running build running build_py running install_lib running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/pigpio-1.78.egg-info Writing /usr/local/lib/python2.7/dist-packages/pigpio-1.78.egg-info if which python3; then python3 setup.py install ; fi /usr/bin/python3 Traceback (most recent call last): File "/home/pajc810/pigpio-master/setup.py", line 3, in <module> from distutils.core import setup ModuleNotFoundError: No module named 'distutils.core' make: *** [Makefile:107: install] Error 1

Like I said earlier if this is on me and it just won't work with this OS then I am sorry for wasting your time I just don't know what I need to do to get this fixed. Thanks.

Anonymous user #10

16 months ago
Score 0++

hi, I tested it on ubutun mate 20.04 version, and it's ok, and we update the shell script on 24th. July.

or you can email to us: info@geekworm.com

Harry

Harry

16 months ago
Score 0++
You don'e install 'make', 'gcc' tools. please check the above steps.

Anonymous user #6

16 months ago
Score 1++

Issue on Ubuntu 64 Bit

~/pigpio-master$ sudo apt install -y python-pigpio python3-pigpio python-setuptools Reading package lists... Done Building dependency tree... Done Reading state information... Done

E: Unable to locate package python-pigpio

Anonymous user #7

16 months ago
Score 0++
please email to me harry@geekworm.com

Harry

16 months ago
Score 0++
Please ignore this message

Anonymous user #4

16 months ago
Score 0++

Doesn't seem to want to work with 64-bit Rasp

Can't connect to pigpio at soft(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment variables PIGPIO_ADDR/PIGPIO_PORT? E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the pigpio.pi() function? E.g. pigpio.pi('soft', 8888) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Traceback (most recent call last): File "/home/pi/x-c1/fan.py", line 8, in <module> pwm.set_mode(servo, pigpio.OUTPUT) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1376, in set_mode return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode)) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1025, in _pigpio_command sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))

AttributeError: 'NoneType' object has no attribute 'send'

Lisa

16 months ago
Score 0++
Hello, Could you please send some test pictures to us for reference by email? and you will get help faster. Please mark your order number.Thanks! support@geekworm.com

Harry

16 months ago
Score 0++
Hi, sudo apt-get upgrade is important.

Anonymous user #8

16 months ago
Score 0++
Hi, same problem. Scipt doesn't work. Best wishes.

Lisa

16 months ago
Score 0++
@Anonymous user #8:Hello,After our test, it is no problem and can work very well. Could you please email us your operation process and let our engineers take a look?【support@geekworm.com】(Please tell us the operating system you are used and order number).THANKS~

Anonymous user #12

15 months ago
Score 0++
Hi, same problem. Scipt doesn't work. Best wishes.

Anonymous user #3

16 months ago
Score 0++
Will there be a Manjaro ARM version of the script?

Lisa

16 months ago
Score 0++
Hello, There is no corresponding script yet, we need to test it on Manjaro ARM.If there is a test result, we will publish it on the wiki immediately

Anonymous user #5

16 months ago
Score 0++
Please update and include compatibilty to operate cooling fan for Manjaro ARM

Harry

16 months ago
Score 0++
Hi, Manjaro is supported now.

Anonymous user #2

17 months ago
Score 0++

Hi,

I'm using this case for my PI4 with Home Assistant OS 6.1, can you help with integrating this software in it?

Abby

17 months ago
Score 0++

Hi, Pls kindly provide the software url, I will try to give feedback to our engineers.

Regards,

Abby / Geekworm

Anonymous user #1

17 months ago
Score 0++

For Raspberry Pi-4 please add the fan control to the OS start-up not the user start-up, otherwise when used for a headless server the fan never comes on. Thanks for an awesome product.

Also the text foe Test Safe Shutdown for Raspian section is not formatted correctly.

Harry

16 months ago
Score 0++
Thanks for your feedback. the fan control script can be added to crontab job to solve this question, please refer to How to add crontab job