Linux console, how to disable blinking cursor

bluscape
Attachment: Cursor.jpg (62.04 KB)
How can I disable the blinking cursor in the linux console during boot.
I'm booting a custom logo with a white background so the blinking cursor is
visible and I would like to get rid of it. How can I get rid of it
permanently?

See the attached photo of my screen with the blinking cursor.

fatbrain
pass the following parameter to the kernel
vt.global_cursor_default=0

bluscape
Thank you

But where will I put it such that the kernel can initialize it
automatically?

I'm using ptxdist and when I execute vt.global_cursor_default=0 in the
console I get: -sh: vt.global_cursor_default=0: not found

bluscape
Any help here guys please?

fatbrain
you will need to pass it when the bootloader invokes the kernel
so you have configure your bootloader to pass the variable to the kernel
for example using  uboot 

setenv bootargs console=ttySAC0,115200 init=/sbin/init noinitrd  
consoleblank=0  vt.global_cursor_default=0  mini2440=3tb root=/dev/nfs
ro,tcp nfsroot=${nfsserver}:/fs/fs_pengutronix
ip=192.168.1.11:192.168.1.4:192.168.1.1:255.255.255.0:::


--fatbrain

davef
In your case you will most likely just have to <edit /env/config> while in
(barebox) bootloader mode.

I say "most likely" as I am being really cautious here!

Good luck
Dave

Zogzog
or you can send '\033[?17;0;0c' to the console you want the cursor to stop
blinking.

ex:
echo -e '\033[?17;0;0c' > /dev/tty1

Zogzog.

bluscape
That did the trick!!

In barebox /env/config I've added it to the bootargs:

bootargs="console=ttySAC0,115200 mini2440=6tb vt.global_cursor_default=0"

Thanks guys!

Juergen Beisert
bluescape,

do you need the "framebuffer console" feature? You could also disable it,
and there will be no blinking cursor anymore. But you can still use such a
framebuffer for your graphical application.

Carlo Zinato
For me the option vt.global_cursor_default=0 didn't work, I successfully
used vt.cur_default=1

Sandeep Sondagar
Hello bluscape,

I am unable to get rid off blinking cursor at corner. Can you guide me?