running linux cnc with no display - some questions

More
4 years 6 months ago #239072 by gmr
For the next person who finds this post, in 2.8.2 (at least), you can write

DISPLAY=dummy

In the [DISPLAY] section of the ini file.

Please Log in to join the conversation.

More
4 years 6 months ago #239586 by andypugh
DISPLAY = halui

Also works.

Please Log in to join the conversation.

More
3 years 6 months ago #269137 by iforce2d
fwiw I'm trying this with 2.8.4 and if I set "DISPLAY = halui" I get this error:
Code:
    HAL: ERROR: duplicate component name 'halui'     HALUI: ERROR: hal_init() failed     emc/usr_intf/halui.cc 2299: hal_init error     Shutting down and cleaning up LinuxCNC...
To avoid the error it seems I need to comment out this line further down:
Code:
    HALUI = halui

Alternatively, the "DISPLAY = dummy" suggested above works as a one-line change.

Please Log in to join the conversation.

More
3 years 3 months ago #274762 by iforce2d
I have been doing some experimenting in this area recently so I thought I would share a bit. My goal is to have a completely headless installation that I can operate with just physical buttons, encoder for jogging etc. I will be running the same job over and over so the file only needs to be specified very infrequently. Initially I will have to SSH in to start it and set the file of course.

To start LinuxCNC running with no display and then be able to close out the terminal leaving it running, set the [DISPLAY]DISPLAY value to 'dummy'  in your .ini file. Then you can make a copy of the startup script file /usr/bin/linuxcnc (I copied it to /usr/bin/linuxcnc-headless) and comment out a couple of lines right near the end. Commenting these out will skip the step where it would normally wait for user input to continue, and then also skip the shutdown procedure:

ffs.... what is wrong with this forum??!?!?!?!?!! EVERY time I post here (especially to edit an existing post) the format gets all messed up or something disappears!!! It has been like this for years. This time I had a whole explanation written out and now most of it is gone, and right now I cannot be bothered writing it all again sorry. I will just put the video link and the github link, it might explain the overall idea well enough, let me know if anything is not clear and maybe I can answer after I calm down.
github.com/iforce2d/linuxcnc-gcode-server

Please Log in to join the conversation.

More
3 years 3 months ago #274763 by tommylight
Make a new post and add the video again.
Thank you.

Please Log in to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum