The DeskPi Pro is a hardware kit for converting a standard Raspberry Pi 4 from a naked SBC, with limited storage, into a mini PC complete with a power button, cooling, better ports and, via SATA then USB3, 2.5” or M.2 SSD storage.
dtoverlay=dwc2,dr_mode=host will not work well.if you are using 64bit OS, The script to control the fan is in the installation/drivers/c/ directory. The file suffix with 64 means 64bit, and the 32bit executable file has been removed, if you want to use 32bit, please download the repository and compile it by yourself.
Before you install this script, please make sure your Raspberry Pi can access internet and can access github website.
installation directoryFor example:
git clone https://github.com/DeskPi-Team/deskpi.git
cd ~/deskpi/installation/RaspberryPiOS/64bit/
sudo ./install-raspios-64bit.sh
sudo nano /etc/network/interface
make sure following parameters in file /etc/network/interface
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "YOUR WIFI SSID"
wpa-psk "YOUR WIFI PASSWORD"
and enable the internet access by typing this command in terminal:
volumio internet on
and then reboot your DeskPi.
sudo reboot
###Setting Fan Speed Manually
deskpi-config
Select 4 and press Enter, you would see the fan is spinning and the front USB port are now available.
NOTE: Once you execute this
deskpi-configcommand, the deskpi.service will be stopped at background.
you will need to execute
sudo systemctl restart deskpi.serviceto re-activate it.
If
deskpi.serviceis in a stopped state, it will not read the configuration in the/etc/deskpi.conffile to control the fan.
Therefore, if you want the fan to operate automatically according to your custom temperature settings, please ensure that the
deskpi.serviceis always running in the background, especially after executing the deskpi-config command, you need to manually restart thedeskpi.serviceby executingsudo systemctl restart deskpi.servicecommand in a terminal.
deskpi-config
You can follow the instructions to setup fan speed level by typing numbers as following example:
TEMP : Fan_SPEED_LEVEL
<40C : 0%
40~50C : 25%
50~65C : 50%
65~75C : 75%
>75C : 100%
** If you want to change it, just typing :
deskpi-config
Select 6 and then input 45 and enter, and then input 50 means setup the fan speed level to 50% when CPU temp is above 45 degree it has 4 level to setup.
NOTE: 50% Speed level means you have already send
PWM50to/dev/ttyUSB0port, and this port will available when you adddtoverlay=dwc2,dr_mode=hostto/boot/firmware/config.txtfile andrebootyour DeskPi.
After initial Raspberry Pi Configuration and once you have Internet Connectivity established, Install the DeskPi Pro Utilities from https://github.com/DeskPi-Team/deskpi.git
Open a Terminal / Console and run the following commands:
sudo apt update
sudo apt full-upgrade
sudo rpi-update
When complete, run:
sudo reboot
Upon reboot, open Terminal again:
sudo raspi-config
USB Boot, Return to Advanced Options,Latest Versionsudo reboot
After reboot, re-open Terminal again
sudo -E rpi-eeprom-config --edit
• do not change anything, it is unnecessary • press Ctrl-X to save, answer Y to overwrite file.
sudo reboot
Now you are ready to install Raspberry-OS onto your USB Boot Device.
You can use the Raspberry Imager from www.raspberrypi.org website.
Depending on device the new SD Card Copier can transfer the SD-Card image to the USB Device (ensure you select generate a new UUID).
Once your USB drive is imaged & ready to boot, shutdown your Deskpi-Pro, remove the SD-Card and power-up to boot from the USB Boot drive, once running & configured you can install your additional software and proceed as usual.
gpio-ir function by modify /boot/config.txt file.
uncomment this line if not exsit please add it.
dtoverlay=gpio-ir,gpio_pin=17
lirc package:
sudo apt-get install lirc
driver = default
device = /dev/lirc0
mode2 -d /dev/lirc1
