Hyperpixel on OSMC

Hi,
I try to test Kodi running on OSMC@Pi Zero W with Hyperpixel.
I’ve already tested it with Raspbian, it’s working fine, but OSMC seems to be a little faster on Zero, so I like it more.

Unfortunately, I was not able to made touch of the Hyperpixel to work.
Automated setup not working very well on OSMC, but I’ve installed (I hope) all required dependencies, especially RPi.GPIO (which is not installed automatically by setup on OSMC and must be build from source).

It seems that the hyperpixel-touch service fails on bus=smbus.SMBus(3)… (No such file or IO Error).
Now I am confused so, that don’t know if there must be dtparam=i2c_arm=on, dtparam=spi=on or off… both not working.

Can anybody help me a little?
Thanks!

Hyperpixel uses a software i2c bus, which may not be supported in OSMC.

This should already be handled by the HyperPixel overlay, but on its own it requires something like this in /boot/config.txt:

dtoverlay=i2c-gpio,i2c_gpio_sda=10,i2c_gpio_scl=11,i2c_gpio_delay_us=4

i cant seem to get this working
config.txt is as follows:

gpu_mem_1024=256
hdmi_ignore_cec_init=1
disable_overscan=1
start_x=1
disable_splash=1

# HyperPixel LCD Settings
dtoverlay=i2c-gpio,i2c_gpio_sda=10,i2c_gpio_scl=11,i2c_gpio_delay_us=4
overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=800
framebuffer_height=480
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2
dpi_mode=87
dpi_output_format=0x6f016
display_rotate=2
hdmi_timings=800 0 50 20 50 480 1 3 2 3 0 0 0 60 0 32000000 6

# Use a basic GPIO backlight driver with on/off support
dtoverlay=hyperpixel-gpio-backlight

You’ll be missing the hyperpixel-init binary, which you should grab from the GitHub repo and attempt to run.

You will also potentially be missing the dtoverlay hyperpixel-gpio-backlight which should be copied to /boot/overlays

ok thanks phil, ill try this!

ok done all this… it appears when using these config.txt edits the hyperpixel display is now blank :(

i also see an error flash past during bootup that a hyperpixel driver daemon has failed to start

im using the latest osmc build from here if you want to try it out… https://osmc.tv/download/

Is hyperpixel-init set to run at boot? The installer sets it up as a systemd service so it should show up if you:

sudo systemctl status hyperpixel-init

I am in the same boat and can not get the touch screen working with OSMC.

Not being that familiar with the inner workings of GitHubs, binarys and like. Can someone give me the simplified version of how to get it all working.

I might have to set up an OSMC install and have a poke- it will no doubt be a missing dependency or some quirk of OSMC that’s preventing the hyperpixel scripts from running.

If you run:

cat /var/log/hyperpixel-touch.log

Do you see anything?

Looking into it, it seems to be a dependency failure. python-rpi.gpio is not available in the OSMC apt repositories by default.

Since there’s no precompiled python wheel for Python 2.7, this must be fixed with the rather longwinded approach:

sudo apt install python-pip python-setuptools python-dev build-essential
sudo pip install rpi.gpio

UNFORTUNATELY this is not enough- in order to set up an i2c bus on the GPIO pins left free by HyperPixel (and the i2c bus is how the Pi talks to the touchscreen) the i2c_gpio module is required, and it isn’t present in OSMC at the moment as far as I can tell.

FWIW I’ve raised an issue on the OSMC GitHub for this: https://github.com/osmc/osmc/issues/446

Hi, I’m able to see video, but I’m a few hours in and I still can’t get the touch function of HyperPixel4 working on OSMC.

  • I was able to follow your most recent directions to get the build tools installed and the pip install was successful.
  • I am running an image of OSMC I downloaded today, dated 2018-08-05
  • lsmod shows that the i2c_gpio module is inserted, and FWIW it appears to be using i2c_algo_bit, and used by nothing
  • I do see a quick message pop up below the time in the upper right after the OSMC GUI loads; it scrolls across a couple of times and says something to the effect that it couldn’t initialize CEC adapter.
  • I do not see that any service ~ hyperpixel4?-touch is installed, though I do have hyperpixel4-init

Thanks for your assistance, and please let me know if you need any more details.

HyperPixel 4’s touch is provided by an upstream linux driver- gt911. If this isn’t available in OSMC you’d have to submit a issue asking for it to be added to their release, or - alternatively - manually compile it yourself (I’m not sure how you’d approach that on OSMC).