Notifications
Clear all

RP4, Hyperpixel4 and Octopi  

  RSS
beddoe07
(@beddoe07)
New Member
RP4, Hyperpixel4 and Octopi

Just to give some background I just purchased a RP4 as an upgrade to my RP3 which was having a low voltage error even plugged into a 5v 3amp adapter with new USB cable. Since the upgrade I used etsy to flash Octopi to an SD card. Then I setup Octoprint just like before and that all works fine. When it came to installing the hyperpixel 4 display I followed the following guide (link). However I cannot rotate the display it is always in portrait. When I type in 'hyperpixel4-rotate left' if come up with the following error 

Traceback (most recent call last):
File "", line 15, in
File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 43, in init
version_output = self._output("--version")
File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 64, in _output
raise Exception("XRandR returned error code %d: %s"%(status,err))
Exception: XRandR returned error code 1: No protocol specified
Can't open display :0.0

Setting matrix: 0 -1 1 1 0 0
Saving touch settings to /etc/udev/rules.d/98-hyperpixel4-calibration.rules

After a bit of research this may be because rotate requires X desktop however I dont really understand this. Has anyone else got the same setup running or knows of a fix. Thanks

Posted : 24/05/2020 12:32 pm
towlerg
(@towlerg)
Noble Member
RE: RP4, Hyperpixel4 and Octopi

It would appear that all 5V 3A PSU's are not created equally and that error is a common problem reported on OctoPrint board, specifically with RPi 4. The official Raspberry Pi4 PSU is spec'ed as 5.1V 3A. Obiouly it's your choice to stick with your existing PSU but untill you resolve this error you will have only blood, sweat and tears.

Another potential power related problem is that the USB 5V rail can inadvertently supply power to the printers mainboard. A common mod is to cover the 5V pin on the USB socket to prevent this. 

This post was modified 1 year ago by towlerg
Posted : 24/05/2020 3:18 pm
beddoe07
(@beddoe07)
New Member
Topic starter answered:
RE: RP4, Hyperpixel4 and Octopi

@towlerg

Hi Sorry, I think you focused on the wrong thing the Pi4 I am using has no issues with power or low voltage it is working great. I just need help with the problem of trying to get the hyperpixel4 screen into landscape?

Posted : 24/05/2020 4:29 pm
towlerg
(@towlerg)
Noble Member
RE: RP4, Hyperpixel4 and Octopi

@beddoe07

"having a low voltage error"?

Posted : 24/05/2020 7:21 pm
beddoe07
(@beddoe07)
New Member
Topic starter answered:
RE: RP4, Hyperpixel4 and Octopi

@towlerg

 I just purchased a RP4 as an upgrade to my RP3 which was having a low voltage error

The problem is the to do with the RP4 as explained in the entire rest of the post. The line above was just to say I upgraded to a RP4

Posted : 24/05/2020 8:51 pm
arimanc
(@arimanc)
New Member
RE: RP4, Hyperpixel4 and Octopi

@bedde07

take a look at this video. This should work. 

Posted : 10/06/2020 3:56 am
kirby
(@kirby)
Trusted Member
RE: RP4, Hyperpixel4 and Octopi

Since this is an Octoprint specific question, you probably get more help on the Octoprint forums.

Posted : 13/06/2020 2:53 am
Jiheffe
(@jiheffe)
Eminent Member
RE: RP4, Hyperpixel4 and Octopi

Hi,

Sorry, I will not be able to help you... Exactly the same problem here. No way to rotate the display following Pimoroni instructions. The touch interface has rotated but not the screen, meaning when I touch the screen, the cursor goes to right position if the screen had rotated... Pimoronis support is abysmal... Looking at their forum "support" and on their github, I guess they launched this screen way to quickly without much testing, generating a lot of frustration...

Going to follow on up their forum and github...

Posted : 28/06/2020 11:13 am
Burner
(@burner)
New Member
RE: RP4, Hyperpixel4 and Octopi

I had the same problem with my screen and I did the below:

  1. Edit the /boot/config.txt (either on a host or from the console/ssh session)
  2. Add :rotate,touchscreen-swapped-x-y to the end of the first hyperpixel overlay line
  3. Add a line display_lcd_rotate=3 at the end of the file
  4. Comment out all dtoverlay=vc4-fkms-v3d lines in the file
  5. reboot

This gives me the correct orientation of the screen with power on bottom and usb cables to the right side but the touchscreen is swapped left to right side of landscape mode.

Posted : 29/06/2021 4:25 pm
Share: