HyperPixel 4 touchscreen installation issues
Copied and pasted form another thread I asked in, and decided for better visibility to start anew post.
__________________________________________________________________
Hey all, I see this thread is a bit old, but I am having issues with this exact install setup and am looking for help after all day banging my head on it.
RPi4, HyperPixel4, I can get it to install fine on a standard raspian installation, but I cannot for the life of me get it to even finish the hyperpixel script with the Repetier Server installed. It either returns a
__________________________________________________________________
Hey all, I see this thread is a bit old, but I am having issues with this exact install setup and am looking for help after all day banging my head on it.
RPi4, HyperPixel4, I can get it to install fine on a standard raspian installation, but I cannot for the life of me get it to even finish the hyperpixel script with the Repetier Server installed. It either returns a
main: line 116: /dev/tty: Permission denied
or an Unrecognized hardware error. Screen works great with everything else I've tried. Octoprint, Octodash.
Any thoughts?
Will also open a new thread for visibility, but thought I'd ply the knowledge amongst you folks as well.
Comments
On pi you can run
sudo -i
to be root for the rest of the session (until ctrl+D logs you out). So try running installation as root would be the first I'd try.
the command I'm running is
Broken
Try
sudo -i
curl https://get.pimoroni.com/hyperpixel4 | bash
To install as root. You can install addition packages if the display needs them.
You can of course also install server on a regular pi installation image. You just will miss all our preconfigured stuff like webcam autodetection, automounting, network setup, autostart of chromium, shutdown button in gui. But you can of course do that on your own. Most of it is documented on our website and manual and the regular server functions are there anyway.
got this error with your sugestion
maybe I'm too noob for this.....
- main: line 116: /dev/tty: Permission denied
When I run as root the command ( curl https://get.pimoroni.com/hyperpixel4 | bash) I got this message
- Running as root, please log in as a regular user with sudo rights!
should run it as root while curl is run as pi. With sudo -i you become root. Guess curl does not like being run as root.
and then I run the command and got (Running as root, please log in as a regular user with sudo rights!)
How can I solve this issue? I would not like to downgrade to Octopi.....
curl https://get.pimoroni.com/hyperpixel4 | sudo bash
main: line 116: /dev/tty: Permission denied
wget https://get.pimoroni.com/hyperpixel4
bash ./hyperpixel4
Zeile 116 ist ein read um die Tastatur abzufragen. Möglich das es wegen der pipe so nicht klappt.
especially "read -r -p "$1 [y/N] " response < /dev/tty" which is reading the terminal input stream.
I can run the command
read -r -p "$1 [y/N] " response < /dev/tty
manually in terminal. Can you do the same?
When I check permissions
I see you need to member of group tty
Checking if pi belongs to tty:
answer is yes. If you are running this as user pi you should get same permissions. If you always want to say yes you can also run
bash ./hyperpixel4 -y
so it never uses /dev/tty where you have permission problems.
pi@RepetierServer:~ $ read -r -p "$1 [y/N] " response < /dev/tty
-bash: /dev/tty: Permission denied
pi@RepetierServer:~ $read -r -p "$1 [y/N] " response < /dev/tty
-bash: /dev/tty: Permission denied
crw-rw---- 1 root tty 5, 0 Apr 27 23:10 /dev/tty
tty:x:5:repetierserver
bash ./hyperpixel4 -y
./hyperpixel4: line 642: /dev/tty: Permission denied
Invalid choice:
sudo adduser pi tty
log out and log in again. Now
groups
should list that pi is also in tty and script should work.
export DISPLAY=:0
then displays are found for commands depending on x server.