Repetier Server with Hyperpixel 4 touchscreen?

Has anyone had any luck using the Pimoroni Hyperpixel 4 with Repetier Server?  The Hyperpixel install script works just fine on a standard Raspbian install, but for some reason when I run it on the Repetier Server Raspberry Pi image, the display refuses to work, despite the install script completing without error.  There's something in the Repetier Server image that disagrees with the Hyperpixel, but I have no idea what.  Any ideas?

Comments

  • Good question. We also are based on Raspbian strech light to have less unused software. We have openbox as window manager and start x server with login at end of pi users .bashrc file.

    I know from other frame buffer displays that they need to set a different target frame for x server in a fturbo... file. Maybe that is just what you are missing, so it still uses the hdmi output.
  • Anyone get this to work?  I'm trying to get this excellent display to work with a Pi 4.

    Same as above.  Installer seems to run, but black display.
  • As far as I see it is a framebuffer display. So it will not show what is on hdmi output which is programmed target of x server (framebuffer 0 /dev/fb0). Check if you have also /dev/fb1 which is your display. You must configure x to show it or copy fb0 to fb1 buffer. See https://medium.com/@avik.das/writing-gui-applications-on-the-raspberry-pi-without-a-desktop-environment-8f8f840d9867 for example. Might help understanding the problem. But don't have the display so never tried for a solution.
  • I am actually looking at that page right as you replied.  I'm pretty lost, but it looks like there are no fb devices (only the Hyperpixel connected).  I got it running on Buster, so maybe I can look at the fbturbo file to see how it's set up.

  • You mean the is only on /dev/fb... device on your pi? fb0 is the hdmi output. Our images are already on the newer stretch - so did it load the hyperpixel modules there?
  • I thought Buster was newest?  The Repetier-Server Pi image seems to be Buster.

    With a new Repetier Pi image and the HyperPixel installed (no HDMI connected) there are no FB devices in /dev.  With HDMI plugged in, there is only FB0.

    This thing is giving me a headache.



  • After 3 days and 1 broken screen, I finally got the HyperPixel working on a Pi 4 with Repetier-Server. It turned out to be a simple fix.

    Note, I'm using a wired Ethernet connection.

    Flash Repetier-Server to an SD card.
    Add an empty ssh file under /boot to enable ssh
    Put it in the Pi and boot it up
    ssh in, change the pi password.
    Install the HyperPixel 4 drivers: 

    curl https://get.pimoroni.com/hyperpixel4 | bash

    Choose option 1, Pi 4 with rectangular screen
    Yes when asked are you sure
    Reboot

    hyperpixel-rotate left
    Ignore the error message.


    sudo nano /boot/config.txt
    Add [all] and display_lcd_rotate=3 so that the end of config.txt looks like this:
    [all]
    dtoverlay=hyperpixel4
    gpio=0-25=a2
    enable_dpi_lcd=1
    dpi_group=2
    dpi_mode=87
    dpi_output_format=0x7f216
    dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6
    display_rotate=3

    Reboot and Repetier-Server should come up on the HyperPixel.

    The sticking point turned out to be the [all].  The driver installer adds the other stuff (except the rotate) to the end of config.txt, but there is a [pi0] filter at the end of the stock Repetier config.sys that was ignoring the screen instructions.  Adding the [all] terminates the [pi0] filter and allows it to work.

    https://www.thingiverse.com/make:797369



  • You are right buster came after stretch. Thanks for the update. So the [all] missing prevented the overlay from being loaded.
  • That was it.  These are really nice screens.  And I learned a few things, too.
  • cosmith71 said:

    After 3 days and 1 broken screen, I finally got the HyperPixel working on a Pi 4 with Repetier-Server. It turned out to be a simple fix.

    Note, I'm using a wired Ethernet connection.

    Flash Repetier-Server to an SD card.
    Add an empty ssh file under /boot to enable ssh
    Put it in the Pi and boot it up
    ssh in, change the pi password.
    Install the HyperPixel 4 drivers: 

    curl https://get.pimoroni.com/hyperpixel4 | bash

    Choose option 1, Pi 4 with rectangular screen
    Yes when asked are you sure
    Reboot

    hyperpixel-rotate left
    Ignore the error message.


    sudo nano /boot/config.txt
    Add [all] and display_lcd_rotate=3 so that the end of config.txt looks like this:

    [all]
    dtoverlay=hyperpixel4
    gpio=0-25=a2
    enable_dpi_lcd=1
    dpi_group=2
    dpi_mode=87
    dpi_output_format=0x7f216
    dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6
    display_rotate=3

    Reboot and Repetier-Server should come up on the HyperPixel.

    The sticking point turned out to be the [all].  The driver installer adds the other stuff (except the rotate) to the end of config.txt, but there is a [pi0] filter at the end of the stock Repetier config.sys that was ignoring the screen instructions.  Adding the [all] terminates the [pi0] filter and allows it to work.

    https://www.thingiverse.com/make:797369



    Thanks I had trouble until i read your solution. Thanks
  • edited January 2021
    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. 

  • Hey guys, I spend some hours to figure out how to get the Hyperpixel 4 running with my Pi4.
    Want to share my results to help the next ones with trouble to get this thing running.
    So long story short I want to build this, but running repetier instead of Octoprint: https://www.prusaprinters.org/prints/69731-hyperpixel-4-touchscreen-lcd-raspberry-pi4-for-oct/files

    Just to repeat what cosmith71 already descripbed

    Install the HyperPixel 4 drivers: 

    curl https://get.pimoroni.com/hyperpixel4 | bash

    Choose option 2, Pi 4 with rectangular screen (changed with the latest update)
    Yes when asked are you sure
    Reboot

    hyperpixel-rotate left
    Ignore the error message.

    sudo nano /boot/config.txt
    Add [all] and display_lcd_rotate=3 so that the end of config.txt looks like this:
    As well you need to make some other tweaks as well.
    first kill dtoverlay=vc4-fkms-v3d with an # in the config.txt, this cause trouble. 
    then add also touchscreen-swapped-x-y, touchscreen-inverted-x, touchscreen-inverted-y based on your display orientation.
    In my case it will look like this:

    [pi4]
    # Enable DRM VC4 V3D driver on top of the dispmanx display stack
    #display_lcd_rotate=3
    #dtoverlay=vc4-fkms-v3d
    max_framebuffers=2
    
    [all]
    #dtoverlay=vc4-fkms-v3d
    start_x=gpu_mem=128
    
    dtoverlay=hyperpixel4,touchscreen-swapped-x-y,touchscreen-inverted-x
    #dtoverlay=hyperpixel4
    gpio=0-25=a2
    enable_dpi_lcd=1
    dpi_group=2
    dpi_mode=87
    dpi_output_format=0x7f216
    dpi_timings=480 0 10 16 59 800 0 15 113 15 0 0 0 60 0 32000000 6
    display_rotate=3
    #display_lcd_rotate=3
    

    Reboot and Repetier-Server should come up on the HyperPixel as well with all touchscreen function. 


    Hope that will help somebody else to not spend to much time to figure it out and thanks to cosmith71

  • Hi,

    I've just rebuilt the Repetier Server, not sure what happened  to make me rebuild it just couldn't communicate.

    I've installed the latest build of Repetier Server Bookworm version. I couldn't get anything out of the screen till I followed https://shop.pimoroni.com/products/hyperpixel-4?variant=12569485443155 instructions.

    Now worked but the screen is rotated right, I've tried all the usual fixes . Nothing works.

    Any ideas ?

    Plus BTW I'm now in demo mode instead of Pro any ideas how I get Pro back ? @Repetier
  • Did you als try our solution in repetier-setup (startable with global settings->terminal). As far as I understand it this rotates the screen in x server with disadvantage that during boot/text it might still be rotated.

    Most solutions are for older kernel before bookworm and the had been removed with the new graphic driver. Make sure to use our solution in order described on image download page.
  • edited December 6
    @Repetier i did go through the config tool but didn’t see anything on the HyperPixel display, possibly the screen saver had kicked in. I’ll have another look.

    How can I get my pro license back please. Thanks
  • Should detect pi so no extra license will be used, otherwise go to registration and hit deactivate first and activate on next install. If you loose some licenses due to defect sd cards write to our support with license code.
  • Repetier said:
    Should detect pi so no extra license will be used, otherwise go to registration and hit deactivate first and activate on next install. If you loose some licenses due to defect sd cards write to our support with license code.
    I managed to restore a backup from repetier monitor, rebooted the Pro appeared. Anyway the  repetier setup worked, I rotated the screen but when I applied to finish the screen went black. Only thing I could do was hard reboot which gave me the screen in portrait again ?

    maybe I’ve messed it up trying to fix in terminal, editing boot file etc ?
  • It changes x display configuration when you save so boot/config settings should have no effect.  But when rebooting undoes it I would say it did not save. Maybe run in ssh terminal the commands manually so you can see responses:

    export DISPLAY=:0
    sudo -AE arandr
  • Repetier said:
    It changes x display configuration when you save so boot/config settings should have no effect.  But when rebooting undoes it I would say it did not save. Maybe run in ssh terminal the commands manually so you can see responses:

    export DISPLAY=:0
    sudo -AE arandr
    I think the problem is the touch is not corresponding   with the screen, I tried the bullseye image I get the same problem, when I try to pick ok the dialog go's away then a few seconds later the screen swap. I tried 

    # Rotate screen 180°
    lcd_rotate=2
    
    made no difference
    
    
  • NickRno77 said:
    Repetier said:
    It changes x display configuration when you save so boot/config settings should have no effect.  But when rebooting undoes it I would say it did not save. Maybe run in ssh terminal the commands manually so you can see responses:

    export DISPLAY=:0
    sudo -AE arandr
    I think the problem is the touch is not corresponding   with the screen, I tried the bullseye image I get the same problem, when I try to pick ok the dialog go's away then a few seconds later the screen swap. I tried 

    # Rotate screen 180°
    lcd_rotate=2
    
    made no difference
    
    
    @Repetier

    Ok I think I've sorted it, I changed to bullseye image, used @genos instructions, orientation was correct, problem then was touch was out of sync with the buttons, I ran the repetier config tool, ran a screen calibration, that fixed the problem.

    Thanks
  • Repetier Server is compatible with the Hyperpixel 4 touchscreen; however, for the touchscreen to work properly, make sure the appropriate drivers are installed on your Raspberry Pi. For best results, you will also need to modify the Repetier Server's calibration and screen resolution. Verify compatibility with the model of your Pi.
  • Repetier Server is compatible with the Hyperpixel 4 touchscreen; however, for the touchscreen to work properly, make sure the appropriate drivers are installed on your Raspberry Pi. For best results, you will also need to modify the Repetier Server's calibration and screen resolution. Verify compatibility with the model of your Pi.
    There are a lot of contradictions here, original install on my pi 3 was a lot simpler, the repetier console helps a lot I must say. I followed Hyperpixel instructions, that didn’t work. 

    I haven’t touched the Pi unix os for years as was running smoothly so I had forgotten all I knew. 

Sign In or Register to comment.