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
143 stars 46 forks source link

Installation script not working on Manjaro ARM Minimal 21.06 64-bit OS #52

Closed ivanmarban closed 3 years ago

ivanmarban commented 3 years ago

Linux raspberrypi4 5.10.43-1-MANJARO-ARM #1 SMP PREEMPT Mon Jun 14 14:31:41 UTC 2021 aarch64 GNU/Linux

cd ~
git clone https://github.com/DeskPi-Team/deskpi.git
cd ~/deskpi/
chmod +x install-manjaro.sh
sudo ./install-manjaro.sh
./install-manjaro.sh: line 3: /lib/lsb/init-functions: No such file or directory
./install-manjaro.sh: line 12: log_action_msg: command not found
./install-manjaro.sh: line 25: log_action_msg: command not found
./install-manjaro.sh: line 26: cd: /home/root/deskpi/drivers/c/: No such file or directory
cp: cannot stat '/home/root/deskpi/drivers/c/pwmFanControl': No such file or directory
cp: cannot stat '/home/root/deskpi/drivers/c/fanStop': No such file or directory
chmod: cannot access '/usr/bin/pwmFanControl': No such file or directory
chmod: cannot access '/usr/bin/fanStop': No such file or directory
cp: cannot stat '/home/root/deskpi/deskpi-config': No such file or directory
chmod: cannot access '/usr/bin/deskpi-config': No such file or directory
cp: cannot stat '/home/root/deskpi/Deskpi-uninstall': No such file or directory
chmod: cannot access '/usr/bin/Deskpi-uninstall': No such file or directory
./install-manjaro.sh: line 60: log_action_msg: command not found
./install-manjaro.sh: line 67: log_action_msg: command not found
Created symlink /etc/systemd/system/multi-user.target.wants/deskpi.service → /usr/lib/systemd/system/deskpi.service.
Created symlink /etc/systemd/system/halt.target.wants/deskpi-safeshut.service → /usr/lib/systemd/system/deskpi-safeshut.service.
Created symlink /etc/systemd/system/shutdown.target.wants/deskpi-safeshut.service → /usr/lib/systemd/system/deskpi-safeshut.service.
Created symlink /etc/systemd/system/poweroff.target.wants/deskpi-safeshut.service → /usr/lib/systemd/system/deskpi-safeshut.service.
Job for deskpi.service failed because the control process exited with error code.
See "systemctl status deskpi.service" and "journalctl -xeu deskpi.service" for details.
./install-manjaro.sh: line 74: log_success_msg: command not found
./install-manjaro.sh: line 76: log_action_msg: command not found
deskpi.service - DeskPi PWM Control Fan Service
     Loaded: loaded (/usr/lib/systemd/system/deskpi.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2021-06-21 22:50:48 CEST; 6min ago
    Process: 404 ExecStart=sudo /usr/bin/pwmFanControl & (code=exited, status=1/FAILURE)
   Main PID: 404 (code=exited, status=1/FAILURE)
        CPU: 45ms

Jun 21 22:50:48 raspberrypi4 systemd[1]: Starting DeskPi PWM Control Fan Service...
Jun 21 22:50:48 raspberrypi4 sudo[404]: sudo: /usr/bin/pwmFanControl: command not found
Jun 21 22:50:48 raspberrypi4 systemd[1]: deskpi.service: Main process exited, code=exited, status=1/FAILURE
Jun 21 22:50:48 raspberrypi4 systemd[1]: deskpi.service: Failed with result 'exit-code'.
Jun 21 22:50:48 raspberrypi4 systemd[1]: Failed to start DeskPi PWM Control Fan Service.
ls -la /usr/bin/pwmFanControl
ls: cannot access '/usr/bin/pwmFanControl': No such file or directory

After replacing lsb functions by normal echos, changed https://github.com/DeskPi-Team/deskpi/blob/1e3da5540f9a0cdfc78d3b099b55e24936670c12/install-manjaro.sh#L9 by $SUDO_USER and adding manually dtoverlay option since the sed in the script is not working propertly I was able to get front usb working but not the service for controling the fan.

× deskpi.service - DeskPi PWM Control Fan Service
     Loaded: loaded (/usr/lib/systemd/system/deskpi.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Tue 2021-06-22 00:02:12 CEST; 1min 23s ago
    Process: 18800 ExecStart=sudo /usr/bin/pwmFanControl & (code=exited, status=1/FAILURE)
   Main PID: 18800 (code=exited, status=1/FAILURE)
        CPU: 28ms

Jun 22 00:02:12 raspberrypi4 systemd[1]: Starting DeskPi PWM Control Fan Service...
Jun 22 00:02:12 raspberrypi4 sudo[18800]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/pwmFanControl &
Jun 22 00:02:12 raspberrypi4 sudo[18800]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Jun 22 00:02:12 raspberrypi4 sudo[18800]: pam_unix(sudo:session): session closed for user root
Jun 22 00:02:12 raspberrypi4 sudo[18800]: sudo: unable to execute /usr/bin/pwmFanControl: No such file or directory
Jun 22 00:02:12 raspberrypi4 systemd[1]: deskpi.service: Main process exited, code=exited, status=1/FAILURE
Jun 22 00:02:12 raspberrypi4 systemd[1]: deskpi.service: Failed with result 'exit-code'.
Jun 22 00:02:12 raspberrypi4 systemd[1]: Failed to start DeskPi PWM Control Fan Service.
ls -la /usr/bin/pwmFanControl
-rwxr-xr-x 1 root root 8880 Jun 21 23:58 /usr/bin/pwmFanControl

sudo /usr/bin/pwmFanControl
sudo: unable to execute /usr/bin/pwmFanControl: No such file or directory

Running deskip-config has same problems with lsb functions:

[marbi@raspberrypi4 deskpi]$ deskpi-config
/usr/bin/deskpi-config: line 11: /lib/lsb/init-functions: No such file or directory
/usr/bin/deskpi-config: line 44: log_action_msg: command not found
/usr/bin/deskpi-config: line 45: log_action_msg: command not found
/usr/bin/deskpi-config: line 46: log_action_msg: command not found
/usr/bin/deskpi-config: line 47: log_action_msg: command not found
/usr/bin/deskpi-config: line 48: log_action_msg: command not found
/usr/bin/deskpi-config: line 49: log_action_msg: command not found
/usr/bin/deskpi-config: line 50: log_action_msg: command not found
/usr/bin/deskpi-config: line 51: log_action_msg: command not found
/usr/bin/deskpi-config: line 52: log_action_msg: command not found
/usr/bin/deskpi-config: line 53: log_action_msg: command not found
/usr/bin/deskpi-config: line 54: log_action_msg: command not found
/usr/bin/deskpi-config: line 55: log_action_msg: command not found
/usr/bin/deskpi-config: line 56: log_action_msg: command not found
Your choice:

I'm able to select from 1-4 and I could see how the fan speed level works, option 7 hangs since deskip.service is failing.

yoyojacky commented 3 years ago

bug fixed, please try to download the repository and try again.

Marach79 commented 3 years ago

Does´t work for Manjaro XFCE.

Marach79 commented 3 years ago

Does´t work for Manjaro XFCE.

My fault! It was the 64bit version.