Support for: 7″ Touchscreen Monitor for Raspberry Pi

Suggestions/requests/ideas for RuneAudio core features and functions

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby flipphos » 09 Apr 2016, 10:13

Hi Frank,

Yes, actually, that was I did the very first time after read your post.

I am just doing it again right now. My /root/.xinitrc file looks exactly like yours, but after reboot and waited for at least 5 minutes, I only saw a console with login prompt, as shown below:
IMG_2520_small.jpg
IMG_2520_small.jpg (72.32 KiB) Viewed 2055 times


I guess xinput_calibrator probably met the same problem ('can not connect to X server') as I ran it in the console.

flipphos
flipphos
 
Posts: 18
Joined: 06 Apr 2016, 08:09

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby hondagx35 » 09 Apr 2016, 10:27

Hi flipphos,

i tried this again with the latest version "RuneAudio_rpi2_rp3_0.4-beta_20160321_2GB.img" and it works like it should.

From your picture i believe that "local browser" is not enabled from the settings page.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby flipphos » 09 Apr 2016, 11:07

Hi Frank,

1. I am afraid that's not the case. As you can see in my previous posts above, the "local browser" is always on. To prove, I just commented out "xinput_calibrator &" and uncommneted "midori", and reboot. About 2 minutes after the login console appears, the local browser pops up, exactly as the photo I attached above "the picture with Sarah Connor", as always. Did this mean the "local browser" is enabled already?

2. I can see in the menu "Credits" the version info is "release version: 0.4 (build: beta-20160313)", which I made from the "RuneAudio_rpi2_rp3_0.4-beta_20160321_2GB.img" . I hope we are on the same version.

3. I also tried again with
Code: Select all
xinput_calibrator &
#midori  -p -e Fullscreen http://localhost

After reboot, I confirm from my MAC Safari that "Local browser" is ON.

flipphos
flipphos
 
Posts: 18
Joined: 06 Apr 2016, 08:09

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby hondagx35 » 09 Apr 2016, 11:16

Hi flipphos,

About 2 minutes after the login console appears

Not really related with your actual problem, but it should take seconds not minutes.
Are you using wifi? If not please try:
Code: Select all
systemctl disable netctl-auto@wlan0


I am afraid that's not the case.

OK, so please try this one:

Code: Select all
#!/bin/bash
export XDG_CACHE_HOME="/tmp/.cache" &
export DISPLAY=":0" &

# start the touchscreen calibration utility
# needed for some screens (Pollin 7" tft)
# for this to work you have to disable loading midori
xinput_calibrator &

# turn off display power management
xset -dpms &

# turn off screensaver
xset s off &

# install multimedia keyboard shortcuts
xbindkeys &

while true; do
  # start midori in privat mode with fullscreen display
#  midori -p -e Fullscreen http://localhost &
 
  # start the window manager without titlebar and mouse
  matchbox-window-manager -use_titlebar no -use_cursor no
  sleep 2s;
done


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby ingohz » 09 Apr 2016, 11:44

Frank, are you sure xinput_calibrator was installed in the latest images?

If you are already logged in via ssh I would leave .xinitrc as it is, install xinput_calibrator and start it from the shell:

Code: Select all
pacman -S xinput_calibrator
DISPLAY=:0 xinput_calibrator


Ingo
  • HiFi 1: Alix/voyage-mpd, MusicalFidelity M1 DAC (RP2/HifiBerry Digi+), Accuphase DP-67, Accuphase E-212, Infinity Kappa 8.2i
  • HiFi 2: RP2/7" Touchscreen/IQaudIO Pi-DAC+, Philips Fidelio X1
ingohz
 
Posts: 45
Joined: 22 Feb 2016, 12:11

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby flipphos » 09 Apr 2016, 15:13

Hi Frank,

Your idea worked. I saw the calibration interface and I did the calibration. After clicking the center of four designated crosses (precisely with tip of tooth picker), the screen went blank. I entered SSH, revert the /root/.xinitrc file to normal, ran "sync" then "reboot". I hope this is the right procedure to perform. Or did I miss something?

However, I didn't feel the touch screen was correctly calibrated when I started to touch around to verify after the reboot. At least one axis is upside down. As shown in the photo below, when I touch the right up area marked with orange color, the screen responses in the down right area marked red. This looks odd, as the response is distorted, and not only reversed. Besides, I could never hit the "play" button in the middle-top.
IMG_2522_small_touch control.jpg
One axis upside down
IMG_2522_small_touch control.jpg (214.16 KiB) Viewed 2024 times


Frank, could you point me out where the calibration data is stored, so I can make a backup when the time is right.

Another cosmetic issue is that when the local browser starts, the bar with 7 icons (shuffle and volume controls, etc.) is in overlap with the bottom menu bar, bearing "Library", "Playback" and "Queue". Please compare the photo below with the one above to see what I mean.
IMG_2521_small.jpg
Last bar is in overlap with the bottom buttons.
IMG_2521_small.jpg (85.34 KiB) Viewed 2024 times

I had to scroll down to reach the bar with the 7 icons.

flipphos
flipphos
 
Posts: 18
Joined: 06 Apr 2016, 08:09

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby flipphos » 09 Apr 2016, 15:36

Just for fun, I caught the "play" button, finally.
When I touch the orange spot, that means 'play'.

IMG_2522_small_play_button.jpg
Play button found.
IMG_2522_small_play_button.jpg (214.34 KiB) Viewed 2019 times
flipphos
 
Posts: 18
Joined: 06 Apr 2016, 08:09

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby hondagx35 » 09 Apr 2016, 17:30

Hi flipphos,

your display resolution is definitively not 800x480.
If it would be the screen would fit, your overscan settings are a workaround but not a solution.
I made several setups with different screens (all 800x480) and each time the screen fits nicely.

At the end of the calibration you should get something like this:
Code: Select all
Calibrating EVDEV driver for "FT5406 memory based driver" id=7
        current calibration values (from XInput): min_x=13, max_x=811 and min_y=-10, max_y=487
INFO: width=800, height=480

Doing dynamic recalibration:
        Setting calibration data: -22, 793, -4, 483
        --> Making the calibration permanent <--
  copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "FT5406 memory based driver"
        Option  "Calibration"   "-22 793 -4 483"
        Option  "SwapAxes"      "0"
EndSection


If you get only a black screen, when try:
Code: Select all
DISPLAY=:0 xinput_calibrator

on the console.

But i first would solve the display issue.
As i asked you already, brand and type of your display?

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby flipphos » 10 Apr 2016, 09:15

Hi Frank,

I agree with you that my screen could be of problem on resolution, given the distortion between touching and responding. The distortion might be introduced by my workaround, which twists the screen ratio to some factor we never know. Therefore I am thinking to pick an official Rpi touch screen once.

I got this screen as a second hand one because of cheap price (25$), I was told the resolution was 800x480. I didn't find any brand or name on it, only some stickers as shown below:
IMG_2524_small.jpg
stickers on the back.
IMG_2524_small.jpg (117.86 KiB) Viewed 1968 times


At least I can confirm to other users that the xinput-calibrator works. :p

Cheers,
flipphos
flipphos
 
Posts: 18
Joined: 06 Apr 2016, 08:09

Re: Support for: 7″ Touchscreen Monitor for Raspberry Pi

Postby wridley » 21 Apr 2016, 18:16

I downloaded and install the latest image -RuneAudio_rpi_0.3-beta_20141029_2GB and things were working fine. I then went and upgraded the kernal and firmware by running the command pacman -Sy --force raspberrypi-firmware-bootloader linux-raspberrypi

Upon reboot I have no audio output interface. How do I get it back. I was just using the analog output on the raspberry pi itself. I am using a RaspberryPi 2

Thanks
wridley
 
Posts: 5
Joined: 21 Jan 2016, 00:42

support RuneAudio Donate with PayPal

PreviousNext

Return to Feature request

Who is online

Users browsing this forum: No registered users and 2 guests