Closed TardisJacker closed 4 months ago
Are you using 64bits? I had some back and forths with 22.04, have you tried to install with these changes?
I'm using mate 64 bit and have the same issue. Installed with install-ubuntu-64.sh and added the compilation of fanStop.c. There is no /dev/ttyUSB0 device listed with ls /dev/tty*
Why is /dev/ttyUSB0 not created? There is a /dev/ttyAMA0 device...
no idea... sorry
I seem to have figured it out, due to the complications in my installation; for whatever reason /etc/deskpi.conf
wasn't created when I installed or attempted re-installs with the script. I was able to use the deskpi-config
with the option to set my own curve which created the file that fixed my issue. I will attempt a clean re-image of my PI with the mentioned fix commenting out ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"
In /usr/lib/udev/rules.d/85-brltty.rules
and report back here if that's what it takes to install on 22.10
@jzazo I'll look at using the linked patches as well, thanks for the tip! @noanight I was able to fix it by commenting out the mentioned line in my brltty rules, if you grep for ttyUSB on dmesg output after a fresh boot you'll see that brltty is disconnecting the fan control on /dev/ttyUSB0 due to that rule.
@tardisjacker thx, ttyUSB0 is now available.
but calling: sudo pwmControlFan returns "Segmentation fault" too...
please check your OS platform, if you are using 64bit arch, please use pwmfancontrol64 it is a 64bit binary file, pwmfancontrol is 32bit
sudo /usr/bin/pwmFanControl
try to cope pwmFanControl64 to /usr/bin/ location and then execute :
sudo /usr/bin/pwmFanControl64
@yoyojacky i'm using mate 64bit
pwmFanControl modified install-ubuntu-64.sh to:
sudo cp -rf $installationfolder/drivers/c/pwmFanControl64 /usr/bin/pwmFanControl
running sudo /usr/bin/pwmFanControl No Segmentation Fault Error anymore.
But why does the install script compile pwmControlFan.c gcc -o $installationfolder/drivers/c/pwmFanControl $installationfolder/drivers/c/pwmControlFan.c by compiling it, it should be 64Bit binary, so why an extra pwmFanControl64?
What is with fanStop? Is it a 64 Bit executable?
Testing the cooler with deskpi-config running deskpi-config with 100% -> after rebooting the fan works now
I've got a deskpi pro with the Ubuntu latest 22.10 image installed booting via the USB SSD adapter that came as a part of the kit. I've pulled and installed the latest version and have issues with Segmentation Fault errors without any further information. It seems that these tools are not yet ready for 22.10.
/boot/firmware/configs.txt
and that ttyUSB0 wasn't found. a test case for where the configs are may be appropriatewhile It appears that the patches found in https://github.com/DeskPi-Team/deskpi/issues/118#issue-1272238182 will likely help with issues related to the device naming especially when using any other USB serial devices; the issue on a system with only the deskpi seems related to a match found via brltty, with a fix found here: https://github.com/juliagoda/CH341SER/issues/18#issuecomment-1413273419
Now that we've sorted the issues with /dev/ttyUSB0 via the brltty fix, running the command to start the service returns a segfault
Info provided by:
journalctl -xeu deskpi.service
and from
systemctl status deskpi.service
I'll start looking into how the build is being done and if there are other issues in here that may have fixes via patches or changes to the systemd service portions but at this point the only hint I've got is a Segmentation Fault with return code 11 if anyone has any insight there