Welcome to DOFBOT-Ultra repository
3. Manage OLED services
Manage OLED Services
In the factory image, the OLED service starts automatically at boot. Under normal circumstances, no management is needed. Just keep it set to auto-start.
Stop the Service
Stop the service:
xxxxxxxxxxsudo systemctl stop yahboom_oled.service
Permanently disable the service:
xxxxxxxxxxsudo systemctl disable yahboom_oled.service
Check the service status:
xxxxxxxxxxsudo systemctl status yahboom_oled.service
Start the Service
Start the service:
xxxxxxxxxxsudo systemctl start yahboom_oled.service
Restart the service:
xxxxxxxxxxsudo systemctl restart yahboom_oled.service
Enable the service to auto-start at boot:
xxxxxxxxxxsudo systemctl enable yahboom_oled.service
Raspberry Pi Version
Method 1: Temporary Start (Valid for current session only; does not auto-run after reboot)
xxxxxxxxxx# Run in the background and detach from the terminalnohup python3 /home/pi/dofbot_ultra/Yahboom_Oled/yahboom_oled.py >/dev/null 2>&1 &Method 2: Permanently Enable Auto-start on Boot
xxxxxxxxxxmv /home/pi/.config/autostart/oled.desktop.disabled /home/pi/.config/autostart/oled.desktopAfter renaming the file, it will run automatically upon booting into the desktop environment next time (use Method 1 to start it immediately for the current session).
Verify if Running
xxxxxxxxxxps aux | grep [y]ahboom_oled # If a python3 ...yahboom_oled.py process appears, it is runningThe OLED screen should also begin displaying system information.
Stopping
Method 1: Temporary Stop (Recommended for daily use)
xxxxxxxxxxbash /home/pi/dofbot_ultra/Yahboom_Oled/kill_oled.shThis script will: kill the yahboom_oled.py process → clear the screen (otherwise, the screen would remain stuck on the last displayed frame).
Example output:
xxxxxxxxxxNumber of processes=2yahboom_oled.py killed, PID: 1252---OLED CLEARED!---OLED cleared successfully
Method 2: Permanently Disable Auto-start on Boot
xxxxxxxxxxmv /home/pi/.config/autostart/oled.desktop /home/pi/.config/autostart/oled.desktop.disabledAfter renaming, it will not auto-start on the next boot (use Method 1 to stop any currently running process).
Verify if Stopped
xxxxxxxxxxps aux | grep [y]ahboom_oled # No output = StoppedThe screen should be completely black (blank).