Skip to content

LCD-show overwrites ~/.bash_profile and breaks SSH sessions #429

Description

@valterfc

Environment

  • Raspberry Pi 3B+
  • Raspberry Pi OS / Debian 13
  • GPIO 5" LCD
  • LCD-show latest version

Problem

The LCD-show installation copies its own ~/.bash_profile into the user's home:

sudo cp -rf ./etc/.bash_profile /home/$username/

The shipped file contains:

export FRAMEBUFFER=/dev/fb1
startx 2> /tmp/log_output.txt

As a result, every SSH login executes startx.

Symptoms:

  • SSH prompt appears on the LCD.
  • SSH session appears to hang.
  • Pressing Ctrl+C restores the SSH shell.
  • A second X session is attempted.

Expected behavior

LCD-show should not overwrite ~/.bash_profile, and should not automatically execute startx.

Modern systems already start the graphical session using systemd services (for example KlipperScreen.service).

The only required setting appears to be:

export FRAMEBUFFER=/dev/fb1

Replacing ~/.bash_profile with the default Debian version (or simply commenting out startx) fixes the problem completely.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions