Clean startup

Post Reply
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Clean startup

Post by Twardowsky29 »

I have another question that neither I nor chatGPT knows the answer to: I it possible to make RPI do a clean startup? When I power it on I get cursor blink for a second and just a little bit of text before HUDIY loads and I tried removing it but without success. Let me know if there's any solution.
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Clean startup

Post by hudiy »

Any kind of console cursor should disappear after adding vt.global_cursor_default=0 to /boot/firmware/cmdline.txt. This parameter is added automatically during the Hudiy installation.

Another parameter that should hide all text printed during startup is quiet which is included in cmdline.txt by default.

Could you please paste the contents of /boot/firmware/cmdline.txt?
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Clean startup

Post by Twardowsky29 »

cmdline.txt:

Code: Select all

console=tty1 root=PARTUUID=6a14ba1a-02 rootfstype=ext4 fsck.repair=yes rootwait  silent quiet splash loglevel=0 logo.nologo cfg80211.ieee80211_regdom=PL plymouth.ignore-serial-consoles vt.global_cursor_default=0
I've been fighting that cursor for a long time now... :)
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Clean startup

Post by hudiy »

cmdline.txt looks good. These parameters should silence everything during Raspberry Pi OS boot. Could you take a photo of the exact cursor you mean?

Or do you perhaps mean diagnostic information printed by the firmware (before Linux starts)?

https://www.raspberrypi.com/documentati ... iagnostics

It can be disabled by editing eeprom config:

https://www.raspberrypi.com/documentati ... SABLE_HDMI

https://www.raspberrypi.com/documentati ... figuration
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Clean startup

Post by Twardowsky29 »

Sure, here's the pic:
20251120_201040.jpg
20251120_201040.jpg (2.04 MiB) Viewed 831 times
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Clean startup

Post by hudiy »

Ah, so you mean the mouse cursor. The mouse cursor is managed by labwc, which is the default window compositor on Raspberry Pi OS.

There isn't a perfect way to hide the cursor in labwc (no simple config option), but starting from version 0.8.4 labwc includes a HideCursor action that can be bound to a keyboard shortcut or a windowRule.

As a workaround you can assign HideCursor and WarpCursor to keyboard shortcut in $HOME/.config/labwc/rc.xml like (take the touch node from your current config):

Code: Select all

<?xml version="1.0"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
  <touch deviceName="WaveShare WS170120" mapToOutput="HDMI-A-1" mouseEmulation="no"/>

  <keyboard>
    <keybind key="A-W-h">
      <action name="HideCursor" />
      <action name="WarpCursor" x="-1" y="-1" />
    </keybind>
  </keyboard>
</openbox_config>
then using the wtype tool you can simulate defined key binding e. g. in /etc/xdg/labwc/autostart:

Code: Select all

sudo apt install wtype
sudo nano /etc/xdg/labwc/autostart

Code: Select all

/usr/bin/wtype -M alt -M logo h -m alt -m logo
/usr/bin/lwrespawn /usr/bin/pcmanfm-pi &
/usr/bin/lwrespawn /usr/bin/wf-panel-pi &
/usr/bin/kanshi &
/usr/bin/lxsession-xdg-autostart
More details about labwc configuration:
https://labwc.github.io/labwc-config.5.html
https://labwc.github.io/labwc-actions.5.html
Twardowsky29
Posts: 18
Joined: Fri Aug 08, 2025 2:46 pm

Re: Clean startup

Post by Twardowsky29 »

Okay, I managed to get it working, looks great now , thanks a lot.
Post Reply