Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinuxCNC 2.9.2 Pi 5 Debian Bookworm hdmi_force_hotplug not working #2969

Open
dqrw opened this issue Apr 28, 2024 · 7 comments
Open

LinuxCNC 2.9.2 Pi 5 Debian Bookworm hdmi_force_hotplug not working #2969

dqrw opened this issue Apr 28, 2024 · 7 comments

Comments

@dqrw
Copy link

dqrw commented Apr 28, 2024

Here are the steps I follow to reproduce the issue:

This looks to be a Bookworm issue but not sure how to submit that issue since this OS is specific to LinuxCNC.

Setup to run Pi 5 LinuxCNC in headless configuration.

  1. Set hdmi_force_hotplug=1 in boot/config.txt
  2. Install x11vnc and setup to startup with systemctl
  3. Setup to auto login in.
  4. Setup for wireless connectivity.
  5. Disable login timeout (never logout)
  6. Power down and remove all cables.
  7. Plug in power.
  8. Make sure you can ping from client.
  9. VNC into server with TigerVNC or equivalent.

This is what I expected to happen:

I would expect to connect and be prompted for a password and to enter proper password. Then to be connected and see full display.

This is what happened instead:

The client could connect and was not prompted for the password. The configuration works with a HDMI connection but is supposed to work without a display connected.

The setup also works properly without a HDMI monitor using the current Raspberry Pi OS.

Information about my hardware and software:

LinuxCNC 2.9.2 Pi 5 Debian Bookworm

Raspberry Pi 5 8 GB RAM. 256 GB NVme SSD.

Booted from both SSD and Micro SD card when testing.

@andypugh
Copy link
Collaborator

Does this not happen with the stock Pi OS?

@dqrw
Copy link
Author

dqrw commented Sep 28, 2024 via email

@dqrw
Copy link
Author

dqrw commented Sep 28, 2024 via email

@andypugh
Copy link
Collaborator

andypugh commented Sep 30, 2024

This sounds like there is something in the pi-specific kernel. It is likely to be a lot of work (it takes several hours to build a custom kernel on the Pi) to add a specific patch to the kernel that we put on the SD-card image (at the moment we just pull down the stock kernel image from Debian).
Do any of the patches here look to be the ones that add this capability?
https://github.com/search?q=repo%3Araspberrypi%2Flinux+hdmi_force_hotplug&type=commits

Is this purely a VNC issue? I don't use VNC for remote Pi operation, I use ssh (ssh -Y pi@raspberrypi4 or similar command) to get a local X display, though this is not working as well as it used to now Wayland in in the game)

At this point I see two issues:

  1. How would we fix this?
  2. Is it worth it?

@dqrw
Copy link
Author

dqrw commented Oct 1, 2024 via email

@andypugh
Copy link
Collaborator

andypugh commented Oct 3, 2024

Have you tried ssh instead? This doesn't need even a virtual monitor on the Pi. You basically launch the application from the remote machine, it runs on the Pi, and sends the graphical data back to your remote machine. I use it all the time.

You need ssh set up on the Pi (but that's very useful anyway, as a way to do remote command-line things)

The ssh -Y [email protected] (or whatever) will give you a remote terminal prompt (executing on the Pi).
And "linuxcnc" will start LinuxCNC, with all graphical windows appearing on your remote machine.

You can also try ssh -X instead (different security system)

And it is possible that you might need to install xwayland on one or both machines.

@dqrw
Copy link
Author

dqrw commented Oct 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants