DeskPi-Team / deskpi

DeskPi Pro is the Ultimate Case Kit for Raspberry Pi 4 with Full Size HDMI/2.5 Hard Disk Support and Safe Power Button, It has QC 3.0 Power Supply inside and New ICE Tower Cooler inside.
GNU General Public License v3.0
140 stars 46 forks source link

Deskpi prov2 fan control not working #132

Closed D-A-H-8-5 closed 6 hours ago

D-A-H-8-5 commented 1 year ago

Like the title says the fan control on my new deskpi pro v2 is not working. install was succesful and after reboot this is what I get: ` deskpi.service - DeskPi Fan Control Service Loaded: loaded (/lib/systemd/system/deskpi.service; enabled; vendor preset: enabled) Active: failed (Result: signal) since Fri 2022-09-30 19:10:06 EDT; 1min 12s ago Process: 2369 ExecStart=/usr/bin/pwmFanControl64 & (code=killed, signal=TERM) Main PID: 2369 (code=killed, signal=TERM) CPU: 29ms

Sep 30 19:09:08 dah systemd[1]: Starting DeskPi Fan Control Service... Sep 30 19:10:06 dah systemd[1]: deskpi.service: Main process exited, code=killed, status=15/TERM Sep 30 19:10:06 dah systemd[1]: deskpi.service: Failed with result 'signal'. Sep 30 19:10:06 dah systemd[1]: Stopped DeskPi Fan Control Service. here is the detail on my system: neofetch .-/+oossssoo+/-. dah@dah :+ssssssssssssssssss+: ------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.1 LTS aarch64 .ossssssssssssssssssdMMMNysssso. Host: Raspberry Pi 4 Model B Rev 1.5 /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.15.0-1015-raspi +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 10 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1836 (dpkg), 5 (flatpak), 16 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 2560x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME 42.4 ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter +sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Yaru-dark [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3] +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal /ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: BCM2835 (4) @ 1.800GHz .ossssssssssssssssssdMMMNysssso. Memory: 1674MiB / 7806MiB -+sssssssssssssssssyyyssss+- :+ssssssssssssssssss+:
.-/+oossssoo+/-.
`

yoyojacky commented 1 year ago

Like the title says the fan control on my new deskpi pro v2 is not working. install was succesful and after reboot this is what I get: ` deskpi.service - DeskPi Fan Control Service Loaded: loaded (/lib/systemd/system/deskpi.service; enabled; vendor preset: enabled) Active: failed (Result: signal) since Fri 2022-09-30 19:10:06 EDT; 1min 12s ago Process: 2369 ExecStart=/usr/bin/pwmFanControl64 & (code=killed, signal=TERM) Main PID: 2369 (code=killed, signal=TERM) CPU: 29ms

Sep 30 19:09:08 dah systemd[1]: Starting DeskPi Fan Control Service... Sep 30 19:10:06 dah systemd[1]: deskpi.service: Main process exited, code=killed, status=15/TERM Sep 30 19:10:06 dah systemd[1]: deskpi.service: Failed with result 'signal'. Sep 30 19:10:06 dah systemd[1]: Stopped DeskPi Fan Control Service. here is the detail on my system:neofetch .-/+oossssoo+/-. dah@dah :+ssssssssssssssssss+: ------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.1 LTS aarch64 .ossssssssssssssssssdMMMNysssso. Host: Raspberry Pi 4 Model B Rev 1.5 /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.15.0-1015-raspi +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 10 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1836 (dpkg), 5 (flatpak), 16 (snap) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 2560x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME 42.4 ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter +sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Yaru-dark [GTK2/3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3] +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal /ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: BCM2835 (4) @ 1.800GHz .ossssssssssssssssssdMMMNysssso. Memory: 1674MiB / 7806MiB -+sssssssssssssssssyyyssss+- :+ssssssssssssssssss+: .-/+oossssoo+/-. `

Hi there, It seems like the binary file dose not work properly, i am going to rewrite the installation script, and i will send you the latest one ASAP. sorry for the trouble.

bebe1015 commented 1 year ago

Hi, I have had the same issue using ubuntu It was working with the raspian image. Is the fix available for everyone? thanks

yoyojacky commented 1 year ago

Hi, I have had the same issue using ubuntu It was working with the raspian image. Is the fix available for everyone? thanks

OK, working on it.

bebe1015 commented 1 year ago

Hi, I have had the same issue using ubuntu It was working with the raspian image. Is the fix available for everyone? thanks

OK, working on it.

Thank you very much.

jzazo commented 1 year ago

How is the work coming along?

noanight commented 1 year ago

i have the same issue using mate 64 bit using the installer script for ubuntu 64. a problem is, that the /dev/ttyUSB0 is not created, but why? is saw a /dev/ttyAMA0 device...

ddetton commented 1 year ago

I used to have the fan control working with an earlier version of raspios 64 bit but now the service will not start. I was trying to get pop-os fan control working which is not listed as a supported distro so I went back to raspios 64 and no go there either. Is fan control working anywhere with current distros?

noanight commented 1 year ago

@ddetton you may have a look at this issue 142...i got it running with Ubuntu mate 64 bit.

yoyojacky commented 1 year ago

what version of your raspberry pi 4B? V1.4 or V1.5 ? it seems like your raspberry pi 4B's USB-C port has some problem with it.

yoyojacky commented 1 year ago

fan spinning requires some conditions:

  1. Your OS can detect the serial port via USB-C port of Raspberry Pi, there may generate a serial port called "/dev/ttyUSB0"
  2. You need to send "PWMXXX“ to this serial port , XXX dedicates 000 to 100, it means the PWM dutycycle's value from 0 to 100, for example, if you send "PWM075" means let the fan spinning at 75% speed.
  3. It can be drive in C language or Python language, if you want to use python script, you may need to install pyserial library to drive the serial port.
yoyojacky commented 1 month ago

seems like the binary file dose not work properly, i am going to rewrite the installation script, and i will send you the latest one ASAP. sorry for the trouble.

I have just create a brench on feature/bookworm and it under testing .

yoyojacky commented 7 hours ago

How is the work coming along?

I have test it on UBUNTU 24.04 LTS but no luck, it seems like the dwc2 overlay is malfunction. I am trying other way to recognize the serial port on daugherboard of deskpi.