Open mgeilich opened 7 years ago
Same issue with the official 7" raspberry touchscreen display : the screen works perfectly under raspbian but I can't use it with Pi-jukebox. Going to take a look at the source code (but I'm not a python user)...
I think I found my issue with Pi-jukebox by trying some other front ends and creating test music libraries on the Pi’s SD card. I discovered 2 problems. First, WiFi is simply not fast enough to transfer data from a SAMBA mounted filesystem to keep music playing. When Pi-jukebox gets behind in playing it just freezes. The other is that the Pi itself isn’t fast enough to keep up with user input in Pi-jukebox. It catches some input, drops other input, and freezes up.
I don’t see how this project could possibly work with a Pi, Pi-jukebox, and a SAMBA-mounted filesystem over WiFi. But it would be nice if it did!
On Feb 10, 2017, at 1:24 PM, Sined66 notifications@github.com<mailto:notifications@github.com> wrote:
Same issue with the official 7" raspberry touchscreen display : the screen works perfectly under raspbian but I can't use it with Pi-jukebox. Going to take a look at the source code (but I'm not a python user)...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mark-me/Pi-Jukebox/issues/8#issuecomment-279024567, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGhZqmV5pMxH7U4zrfx6fAb_sVYYVucks5rbKt2gaJpZM4LwrN8.
I'm just trying to get this working with sample music on the sd card, nor wifi neither lan connection to music. Found in the settings.py that a "call" was made to a /dev/input/touchscreen which does not exists on my pi, maybe this is a clue. Still seeking...
Installed tslib as mentioned here : http://www.impulseadventure.com/elec/rpi-install-tslib.html Successfully tested with i2cdetect but still no /dev/input/touchscreen. Got a /dev/input/event2 which is the touchscreen (tested by a cat and pointing finger on the display) but cannot find a way for "settings.py" to use this event2 device (after having changed in the code, of course...)
I have a /dev/input/touchscreen which is a link to /dev/input/event1.
Lucky you are ! Not such file for me and don't know how to have it created.
I can tell you how to do that, though I can't tell you why installing tslib didn't set it up automatically for you. Perhaps you didn't use 'sudo' on the install and part of it failed with permission problems? You might want to try installing again. But, if you just want to solve the immediate problem:
sudo ln -s /dev/input/event2 /dev/input/touchscreen
From: Sined66 notifications@github.com Sent: Saturday, February 11, 2017 1:37:46 PM To: mark-me/Pi-Jukebox Cc: Michael Geilich; Author Subject: Re: [mark-me/Pi-Jukebox] PI-Jukebox not responding to Adafruit Capacitive TFT display (#8)
Lucky you are ! Not such file for me and don't know how to have it created.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mark-me/Pi-Jukebox/issues/8#issuecomment-279166326, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGhZvl7UFIjiro7Txwdy4Uo9MUZdedWks5rbf_6gaJpZM4LwrN8.
Already tested without success... Tried to test tslib (which is correctly installed) :
pi@raspberrypi:/usr/local/lib $ ts_test
/dev/touchscreen/ucb1x00: No such file or directory
pi@raspberrypi:/usr/local/lib $ ts_print
ts_open: No such file or directory
pi@raspberrypi:/usr/local/lib $ ts_calibrate
ts_open: No such file or directory
Really lost, I am...
I get the same results as you to those commands yet my touchscreen works fine. Just not with pi-jukebox. Although sometimes sporadic input is received so I think configuration is OK, just not performance.
Sent from my iPhone
On Feb 12, 2017, at 4:17 PM, Sined66 notifications@github.com<mailto:notifications@github.com> wrote:
Already tested without success... Tried to test tslib (which is correctly installed) :
pi@raspberrypi:/usr/local/lib $ ts_test /dev/touchscreen/ucb1x00: No such file or directory pi@raspberrypi:/usr/local/lib $ ts_print ts_open: No such file or directory pi@raspberrypi:/usr/local/lib $ ts_calibrate ts_open: No such file or directory
Really lost, I am...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mark-me/Pi-Jukebox/issues/8#issuecomment-279249848, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGhZnmT73D3vB2c4RTJ2bbVKrW6jkv0ks5rb3bqgaJpZM4LwrN8.
Put the mouse pointer 'on' in the code : it works (but crashing just a few lines further...).
Still debugging code in order to progress :-(
From my experience I am guessing that the code is functionally correct, but operates too slowly on the Pi to keep up with touch events. Perhaps if the python was compiled down to bytecode it might be more efficient? Try python -O -m py_compile ./*.py
From: Sined66 notifications@github.com Sent: Thursday, February 23, 2017 9:13:46 AM To: mark-me/Pi-Jukebox Cc: Michael Geilich; Author Subject: Re: [mark-me/Pi-Jukebox] PI-Jukebox not responding to Adafruit Capacitive TFT display (#8)
Still debugging code in order to progress :-(
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mark-me/Pi-Jukebox/issues/8#issuecomment-282001588, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFGhZsJALRabtCdAL-sS9rxaC6Koy-4Fks5rfZQagaJpZM4LwrN8.
Don't know, but when activating the mouse pointer, I can move it and select things from the touchscreen...
I'm having the same problem. I got all the ts_test tools working properly, but it still doesn't seem to work. I suspect something in the TS interface for capacitive touchscreens, possibly a configuration issue.
This resolved the issue: https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/pitft-pygame-tips. It's a downgrade from 1.2.15-10+rpi1 to 1.2.15-5 for sdl
When I run pi-jukebox - sudo python pi-jukebox.py - I can see the currently playing song (if mpd is playing one) in the jukebox on my TFT display, but the controls don't respond to my finger and I can't get to any of the secondary screens. The screen responds to touch otherwise, for example for scrolling a terminal window. Any ideas?