User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 11:18 am

in fruitbox.btn after ./fruitbox --config-buttons --device_name "Quanta Computer Inc. Optical Touch Screen" i have:

InputDevice = Quanta Computer Inc. Optical Touch Screen (thats the given name for my monitor via evtest)
ButtonLeft = Device 330 0
ButtonRight = Device 330 0
Button0 = Device 330 0
...
Jürgen
Hi Jürgen

Yes ...in your fruitbox.btn file you need to have ...

Code: Select all

TouchDevice = Quanta
ButtonLeft = Touch
ButtonRight = Touch
etc.

What skin are you using? I ask because the only touch skin at the moment (unless you have designed your own) is TouchOne. This only has touch areas defined for Left, Right, Skip, Random, Volume+ and Volume-. If you want other touch buttons you will need to add them to the skin - by changing the graphics and also defining their [touch areas].

Since I've not got access to a touch screen other than the Raspberry Pi version I haven't been able to test this. If the above doesn't work, then could you send me the output of evtest (when you have selected the touch device and pressed the screen) please?

Cheers,
Mike

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 11:30 am

fruitbox wrote:
Tue Feb 27, 2018 11:18 am
in fruitbox.btn after ./fruitbox --config-buttons --device_name "Quanta Computer Inc. Optical Touch Screen" i have:

InputDevice = Quanta Computer Inc. Optical Touch Screen (thats the given name for my monitor via evtest)
ButtonLeft = Device 330 0
ButtonRight = Device 330 0
Button0 = Device 330 0
...
Jürgen
Hi Jürgen

Yes ...in your fruitbox.btn file you need to have ...

Code: Select all

TouchDevice = Quanta
ButtonLeft = Touch
ButtonRight = Touch
etc.

What skin are you using? I ask because the only touch skin at the moment (unless you have designed your own) is TouchOne. This only has touch areas defined for Left, Right, Skip, Random, Volume+ and Volume-. If you want other touch buttons you will need to add them to the skin - by changing the graphics and also defining their [touch areas].

Since I've not got access to a touch screen other than the Raspberry Pi version I haven't been able to test this. If the above doesn't work, then could you send me the output of evtest (when you have selected the touch device and pressed the screen) please?

Cheers,
Mike
Hi Mike,

hhank you. I will test this after work today. For my experiments I have used "TouchOne", but for the big monitor I will try to create my own skin. If it does not work, I will provide you with the output from evtest.

Cheers,
Jürgen

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 5:17 pm

mamer999 wrote:
Tue Feb 27, 2018 11:30 am
fruitbox wrote:
Tue Feb 27, 2018 11:18 am
in fruitbox.btn after ./fruitbox --config-buttons --device_name "Quanta Computer Inc. Optical Touch Screen" i have:

InputDevice = Quanta Computer Inc. Optical Touch Screen (thats the given name for my monitor via evtest)
ButtonLeft = Device 330 0
ButtonRight = Device 330 0
Button0 = Device 330 0
...
Jürgen
Hi Jürgen

Yes ...in your fruitbox.btn file you need to have ...

Code: Select all

TouchDevice = Quanta
ButtonLeft = Touch
ButtonRight = Touch
etc.

What skin are you using? I ask because the only touch skin at the moment (unless you have designed your own) is TouchOne. This only has touch areas defined for Left, Right, Skip, Random, Volume+ and Volume-. If you want other touch buttons you will need to add them to the skin - by changing the graphics and also defining their [touch areas].

Since I've not got access to a touch screen other than the Raspberry Pi version I haven't been able to test this. If the above doesn't work, then could you send me the output of evtest (when you have selected the touch device and pressed the screen) please?

Cheers,
Mike
Hi Mike,

hhank you. I will test this after work today. For my experiments I have used "TouchOne", but for the big monitor I will try to create my own skin. If it does not work, I will provide you with the output from evtest.

Cheers,
Jürgen
Hi Mike,

Sorry, no success. fruitbox.btn:

Code: Select all

# fruitbox v1.8 button mapping file
# Missing buttons will assume their default values (see user guide)

TouchDevice      = Quanta

ButtonLeft       = Touch
ButtonRight      = Touch
ButtonSkip       = Touch
ButtonRandom     = Touch
ButtonVol-       = Touch
ButtonVol+       = Touch
fruitbox.txt = Error Output

Code: Select all

fruitbox v1.8 (Feb 25 2018, 12:34:37) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi
Detecting display...1600 x 900 (60Hz)
NOTE: 0 joystick(s) detected
Loading button mapping file 'fruitbox.btn'...
  TouchDevice = Quanta
  ButtonLeft = Touch
  ButtonRight = Touch
  ButtonSkip = Touch
  ButtonRandom = Touch
  ButtonVol- = Touch
  ButtonVol+ = Touch
Reading configuration 'skins/TouchOne/fruitbox.cfg'...

  [general]
  SkinName = TouchSong
  SkinDescription = Touch skin for Official Raspberry Pi 7" Touch Screen
  SkinSize = 800 480
  Database = ../fruitbox.db
  MusicPath = ../Music/
  SortSongsBy = Title
  SortSongsBy = Artist
WARNING: Couldn't find device 'FT5406'
  SelectKeys = 0909
ERROR: Couldn't install touchscreen device 'FT5406'
  AutoSelect = true
  SelectTimeout = 150
  SelectHoldTimeout = 150
  AutoPageTurnTime = 3000
  MaxPlaylistLength = 20
  LoopPlaylist = false
  PlaysPerCoin = 0
  SongsPerPage = 6
  PageSize = 360 308
  PairSongs = Dual
  ArtistDescription = Artist
  ArtistDescription = " / "
  ArtistDescription = PairedArtist
  PageMoveStyle = 20 0 false
  SongLoadTime = 0
  SongUnloadTime = 0
  ArtistText = 1 255 32 32 255 centre true true false 0 7 294
  SongText = 0 0 0 0 255 centre true true true 0 7 360

  [sounds]

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 24

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 22

  [font]
  File = skins/TouchOne/dotmatrx.ttf
  Height = 16

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 18

  [bitmap]
  File = skins/TouchOne/background.jpg
  Position = 0 0
  Size = 800 480

  [page]
  Position = 30 100
  Background = skins/TouchOne/strip3.jpg

  [page]
  Position = 410 100
  Background = skins/TouchOne/strip3.jpg

  [status]
  Position = 30 12
  Size = 352 84
  Text = 2 255 255 255 255 right false true false 0 0 350
  Contents = skins/TouchOne/now_playing.txt
  LineSpacing = 4
  TimerTickPeriod = 60

  [status]
  Position = 414 12
  Size = 352 84
  Text = 2 255 255 255 255 left false true false 0 0 350
  Contents = skins/TouchOne/coming_up.txt
  LineSpacing = 4

  [status]
  Position = 160 432
  Size = 234 53
  Text = 2 255 255 255 255 centre false false false 0 0 350
  Contents = skins/TouchOne/help.txt
  LineSpacing = 4
  TimerTickPeriod = 200

  [touch song]
  Bitmap = skins/TouchOne/touch_red.png

  [bitmap]
  File = skins/TouchOne/foreground.png
  Position = 0 0
  Size = 800 480

  [bitmap]
  File = skins/TouchOne/volume.png
  Position = 8 422
  Size = 12 51
  VertScale = Volume
  VertScaleMode = Clipped

  [status]
  Position = 423 421
  Size = 93 53
ERROR: Couldn't load bitmap 'skins/TouchOne/random_button.png'

evtest.txt Output from evtest when i touch top left, top right, bottom left, bottom right and center (Screen Size is 1600 x 900):

Code: Select all

Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x408 product 0x3000 version 0x110
Input device name: "Quanta Computer Inc. Optical Touch Screen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    701
      Min        0
      Max     1599
      Resolution       4
    Event code 1 (ABS_Y)
      Value    495
      Min        0
      Max      899
      Resolution       4
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        1
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max     1599
      Resolution       4
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max      899
      Resolution       4
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
Properties:
  Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 1519751044.211715, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 275
Event: time 1519751044.211715, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 11
Event: time 1519751044.211715, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 17
Event: time 1519751044.211715, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751044.211715, type 3 (EV_ABS), code 0 (ABS_X), value 11
Event: time 1519751044.211715, type 3 (EV_ABS), code 1 (ABS_Y), value 17
Event: time 1519751044.211715, -------------- SYN_REPORT ------------
Event: time 1519751044.379701, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 13
Event: time 1519751044.379701, type 3 (EV_ABS), code 0 (ABS_X), value 13
Event: time 1519751044.379701, -------------- SYN_REPORT ------------
Event: time 1519751044.387704, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 22
Event: time 1519751044.387704, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 18
Event: time 1519751044.387704, type 3 (EV_ABS), code 0 (ABS_X), value 22
Event: time 1519751044.387704, type 3 (EV_ABS), code 1 (ABS_Y), value 18
Event: time 1519751044.387704, -------------- SYN_REPORT ------------
Event: time 1519751044.395699, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 33
Event: time 1519751044.395699, type 3 (EV_ABS), code 0 (ABS_X), value 33
Event: time 1519751044.395699, -------------- SYN_REPORT ------------
Event: time 1519751044.403702, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 43
Event: time 1519751044.403702, type 3 (EV_ABS), code 0 (ABS_X), value 43
Event: time 1519751044.403702, -------------- SYN_REPORT ------------
Event: time 1519751044.531704, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 48
Event: time 1519751044.531704, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 17
Event: time 1519751044.531704, type 3 (EV_ABS), code 0 (ABS_X), value 48
Event: time 1519751044.531704, type 3 (EV_ABS), code 1 (ABS_Y), value 17
Event: time 1519751044.531704, -------------- SYN_REPORT ------------
Event: time 1519751044.539703, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 52
Event: time 1519751044.539703, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 18
Event: time 1519751044.539703, type 3 (EV_ABS), code 0 (ABS_X), value 52
Event: time 1519751044.539703, type 3 (EV_ABS), code 1 (ABS_Y), value 18
Event: time 1519751044.539703, -------------- SYN_REPORT ------------
Event: time 1519751044.579695, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751044.579695, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751044.579695, -------------- SYN_REPORT ------------
Event: time 1519751045.771708, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 276
Event: time 1519751045.771708, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1587
Event: time 1519751045.771708, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751045.771708, type 3 (EV_ABS), code 0 (ABS_X), value 1587
Event: time 1519751045.771708, -------------- SYN_REPORT ------------
Event: time 1519751045.867706, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1584
Event: time 1519751045.867706, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 17
Event: time 1519751045.867706, type 3 (EV_ABS), code 0 (ABS_X), value 1584
Event: time 1519751045.867706, type 3 (EV_ABS), code 1 (ABS_Y), value 17
Event: time 1519751045.867706, -------------- SYN_REPORT ------------
Event: time 1519751045.875718, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1575
Event: time 1519751045.875718, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 15
Event: time 1519751045.875718, type 3 (EV_ABS), code 0 (ABS_X), value 1575
Event: time 1519751045.875718, type 3 (EV_ABS), code 1 (ABS_Y), value 15
Event: time 1519751045.875718, -------------- SYN_REPORT ------------
Event: time 1519751045.899708, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1561
Event: time 1519751045.899708, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 13
Event: time 1519751045.899708, type 3 (EV_ABS), code 0 (ABS_X), value 1561
Event: time 1519751045.899708, type 3 (EV_ABS), code 1 (ABS_Y), value 13
Event: time 1519751045.899708, -------------- SYN_REPORT ------------
Event: time 1519751045.907707, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1546
Event: time 1519751045.907707, type 3 (EV_ABS), code 0 (ABS_X), value 1546
Event: time 1519751045.907707, -------------- SYN_REPORT ------------
Event: time 1519751045.915711, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1534
Event: time 1519751045.915711, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 15
Event: time 1519751045.915711, type 3 (EV_ABS), code 0 (ABS_X), value 1534
Event: time 1519751045.915711, type 3 (EV_ABS), code 1 (ABS_Y), value 15
Event: time 1519751045.915711, -------------- SYN_REPORT ------------
Event: time 1519751045.923711, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1527
Event: time 1519751045.923711, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 17
Event: time 1519751045.923711, type 3 (EV_ABS), code 0 (ABS_X), value 1527
Event: time 1519751045.923711, type 3 (EV_ABS), code 1 (ABS_Y), value 17
Event: time 1519751045.923711, -------------- SYN_REPORT ------------
Event: time 1519751045.931710, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1524
Event: time 1519751045.931710, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 18
Event: time 1519751045.931710, type 3 (EV_ABS), code 0 (ABS_X), value 1524
Event: time 1519751045.931710, type 3 (EV_ABS), code 1 (ABS_Y), value 18
Event: time 1519751045.931710, -------------- SYN_REPORT ------------
Event: time 1519751045.939706, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1523
Event: time 1519751045.939706, type 3 (EV_ABS), code 0 (ABS_X), value 1523
Event: time 1519751045.939706, -------------- SYN_REPORT ------------
Event: time 1519751046.011708, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1528
Event: time 1519751046.011708, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 19
Event: time 1519751046.011708, type 3 (EV_ABS), code 0 (ABS_X), value 1528
Event: time 1519751046.011708, type 3 (EV_ABS), code 1 (ABS_Y), value 19
Event: time 1519751046.011708, -------------- SYN_REPORT ------------
Event: time 1519751046.019711, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1547
Event: time 1519751046.019711, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 21
Event: time 1519751046.019711, type 3 (EV_ABS), code 0 (ABS_X), value 1547
Event: time 1519751046.019711, type 3 (EV_ABS), code 1 (ABS_Y), value 21
Event: time 1519751046.019711, -------------- SYN_REPORT ------------
Event: time 1519751046.027709, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1570
Event: time 1519751046.027709, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 22
Event: time 1519751046.027709, type 3 (EV_ABS), code 0 (ABS_X), value 1570
Event: time 1519751046.027709, type 3 (EV_ABS), code 1 (ABS_Y), value 22
Event: time 1519751046.027709, -------------- SYN_REPORT ------------
Event: time 1519751046.035705, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1582
Event: time 1519751046.035705, type 3 (EV_ABS), code 0 (ABS_X), value 1582
Event: time 1519751046.035705, -------------- SYN_REPORT ------------
Event: time 1519751046.043702, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751046.043702, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751046.043702, -------------- SYN_REPORT ------------
Event: time 1519751047.923720, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 277
Event: time 1519751047.923720, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 46
Event: time 1519751047.923720, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 877
Event: time 1519751047.923720, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751047.923720, type 3 (EV_ABS), code 0 (ABS_X), value 46
Event: time 1519751047.923720, type 3 (EV_ABS), code 1 (ABS_Y), value 877
Event: time 1519751047.923720, -------------- SYN_REPORT ------------
Event: time 1519751048.019714, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 45
Event: time 1519751048.019714, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 876
Event: time 1519751048.019714, type 3 (EV_ABS), code 0 (ABS_X), value 45
Event: time 1519751048.019714, type 3 (EV_ABS), code 1 (ABS_Y), value 876
Event: time 1519751048.019714, -------------- SYN_REPORT ------------
Event: time 1519751048.035712, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 44
Event: time 1519751048.035712, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 874
Event: time 1519751048.035712, type 3 (EV_ABS), code 0 (ABS_X), value 44
Event: time 1519751048.035712, type 3 (EV_ABS), code 1 (ABS_Y), value 874
Event: time 1519751048.035712, -------------- SYN_REPORT ------------
Event: time 1519751048.067702, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751048.067702, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751048.067702, -------------- SYN_REPORT ------------
Event: time 1519751048.395725, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 278
Event: time 1519751048.395725, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 24
Event: time 1519751048.395725, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 868
Event: time 1519751048.395725, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751048.395725, type 3 (EV_ABS), code 0 (ABS_X), value 24
Event: time 1519751048.395725, type 3 (EV_ABS), code 1 (ABS_Y), value 868
Event: time 1519751048.395725, -------------- SYN_REPORT ------------
Event: time 1519751048.475719, type 3 (EV_ABS), code 47 (ABS_MT_SLOT), value 1
Event: time 1519751048.475719, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 279
Event: time 1519751048.475719, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 90
Event: time 1519751048.475719, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 610
Event: time 1519751048.475719, -------------- SYN_REPORT ------------
Event: time 1519751048.491717, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 91
Event: time 1519751048.491717, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 605
Event: time 1519751048.491717, -------------- SYN_REPORT ------------
Event: time 1519751048.547710, type 3 (EV_ABS), code 47 (ABS_MT_SLOT), value 0
Event: time 1519751048.547710, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751048.547710, type 3 (EV_ABS), code 47 (ABS_MT_SLOT), value 1
Event: time 1519751048.547710, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751048.547710, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751048.547710, -------------- SYN_REPORT ------------
Event: time 1519751050.179730, type 3 (EV_ABS), code 47 (ABS_MT_SLOT), value 0
Event: time 1519751050.179730, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 280
Event: time 1519751050.179730, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 1575
Event: time 1519751050.179730, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 874
Event: time 1519751050.179730, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751050.179730, type 3 (EV_ABS), code 0 (ABS_X), value 1575
Event: time 1519751050.179730, type 3 (EV_ABS), code 1 (ABS_Y), value 874
Event: time 1519751050.179730, -------------- SYN_REPORT ------------
Event: time 1519751050.363710, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751050.363710, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751050.363710, -------------- SYN_REPORT ------------
Event: time 1519751051.443733, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 281
Event: time 1519751051.443733, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 782
Event: time 1519751051.443733, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 481
Event: time 1519751051.443733, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1519751051.443733, type 3 (EV_ABS), code 0 (ABS_X), value 782
Event: time 1519751051.443733, type 3 (EV_ABS), code 1 (ABS_Y), value 481
Event: time 1519751051.443733, -------------- SYN_REPORT ------------
Event: time 1519751051.531723, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 779
Event: time 1519751051.531723, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 478
Event: time 1519751051.531723, type 3 (EV_ABS), code 0 (ABS_X), value 779
Event: time 1519751051.531723, type 3 (EV_ABS), code 1 (ABS_Y), value 478
Event: time 1519751051.531723, -------------- SYN_REPORT ------------
Event: time 1519751051.539726, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 777
Event: time 1519751051.539726, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 475
Event: time 1519751051.539726, type 3 (EV_ABS), code 0 (ABS_X), value 777
Event: time 1519751051.539726, type 3 (EV_ABS), code 1 (ABS_Y), value 475
Event: time 1519751051.539726, -------------- SYN_REPORT ------------
Event: time 1519751051.555714, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1
Event: time 1519751051.555714, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1519751051.555714, -------------- SYN_REPORT ------------

Cheers,
Jürgen

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 6:34 pm

Hi Jürgen

Looks like frutibox is ignoring the Quanta touch device and trying to load the FT5406 device (Raspberry Pi Touchscreen), hence the error. I'll try and fix that.

Cheers,
Mike

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 7:59 pm

Hi Mike,

First off, thanks for being so responsive. It took me an extra week before I was actually able to get to loading fruitbox on my PI. Truly amazing. And I saw where you release 1.7 with the text file output I was looking for. I'm working on a skin that will match/replace the flip pages in my Seeburg wall box. My first go wasn't very successful, but I understand what I goofed on and I'll rework that. My question is, is there some way to tell fruitbox to not stretch the image and just drop it in the middle of whatever screen is connected to the PI? My target display will be 768x1024 (a 4:3 monitor flipped on its side) and frankly it's a tiny monitor. So using it to troubleshoot my graphics is problematic at best. I'd like to be able to use my big monitor to do the design and troubleshooting if possible.

Cheers,
Steve

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 9:09 pm

shhammer5634 wrote:
Tue Feb 27, 2018 7:59 pm
Hi Mike,

First off, thanks for being so responsive. It took me an extra week before I was actually able to get to loading fruitbox on my PI. Truly amazing. And I saw where you release 1.7 with the text file output I was looking for. I'm working on a skin that will match/replace the flip pages in my Seeburg wall box. My first go wasn't very successful, but I understand what I goofed on and I'll rework that. My question is, is there some way to tell fruitbox to not stretch the image and just drop it in the middle of whatever screen is connected to the PI? My target display will be 768x1024 (a 4:3 monitor flipped on its side) and frankly it's a tiny monitor. So using it to troubleshoot my graphics is problematic at best. I'd like to be able to use my big monitor to do the design and troubleshooting if possible.

Cheers,
Steve
Hi Steve,

Currently there's no way to modify the display. fruitbox has two sizes to cope with...the actual display size and the skin size. fruitbox will just scale the skin to fit the display exactly, as this was what I assumed everyone would want. However, I was obviously wrong! I think it'll be very simple to not do the scaling, so I can add that as a new command line option, in which case fruitbox won't scale, and you'll either get the skin centred in a larger display, or only see some of it in a smaller display (I think - until I try it I'm not 100% sure).

On a related note - I noticed that your display is rotated. (ie. horizontal size smaller than vertical size). Are you using the display rotate option in the /boot/config.txt for this? I read somewhere that in this mode, due to limitations of the GPU, some of the graphics processing is off-loaded from the GPU onto the CPU, which basically means the graphics performance plummets. I've seen this for real, and it means that the display gets really sluggish (on my Pi Zero, anyway). If you notice that too, then one way around it is to design your skin using the 'Angle' parameters in the skin config file, so that all objects (bitmaps, status, etc) are rotated by 90 degrees. I've not tried this myself, but this should allow you to design a rotated skin without resorting to the rotate option in the /boot/config.txt file.

Cheers,
Mike

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 9:33 pm

Mike,

Thanks for the quick reply. I was going to try using the rotate in the config.txt, but I haven't gotten that far yet. If that causes issues, I'll try the ANGLE option. Thanks for that tip. I'd certainly like to have the no-scale option, but I don't know how many others besides me would use it. In the interim, I'll either try rummaging through some of my old displays and see if I can find one that has the resolution I'm looking for or is at least close, or I can make the canvas for my image be the size of the display and just put my "screen" in the middle of the canvas and work that way. One way or another I'll get my issues resolved. Just thought I'd ask first.

Cheers,
Steve

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 9:39 pm

shhammer5634 wrote:
Tue Feb 27, 2018 9:33 pm
Mike,

Thanks for the quick reply. I was going to try using the rotate in the config.txt, but I haven't gotten that far yet. If that causes issues, I'll try the ANGLE option. Thanks for that tip. I'd certainly like to have the no-scale option, but I don't know how many others besides me would use it. In the interim, I'll either try rummaging through some of my old displays and see if I can find one that has the resolution I'm looking for or is at least close, or I can make the canvas for my image be the size of the display and just put my "screen" in the middle of the canvas and work that way. One way or another I'll get my issues resolved. Just thought I'd ask first.

Cheers,
Steve
Hi Steve,

While I was waiting for your reply I took a quick look at the source code; it was a simple change, and I've just added it now ;). It'll be in the next release...hopefully very soon as I'm looking into Jürgen's touchscreen problem now and I'd like to sort that out. It's always best to fix these issues asap so I don't lose track of them!

Cheers,
Mike

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Tue Feb 27, 2018 11:11 pm

Hi Mike,

hhank you. I will test this after work today. For my experiments I have used "TouchOne", but for the big monitor I will try to create my own skin. If it does not work, I will provide you with the output from evtest.

Cheers,
Jürgen
Hi Jürgen,

I have put a pre-release version of fruitbox on GitHub (fruitbox-pi-1.9-jurgen). Please can you try it out ? Hopefully this will fix your touch screen issue, but as I mentioned because I haven't got your type of touchscreen I cannot test it very well, so you are my tester for this one :)

There is a new command line option to make it easier to specify the touch screen device, so you can run fruitbox like this...

Code: Select all

sudo ./fruitbox --config-buttons --touch-device Quanta
Please let me know if it works, and if so I will release the new version properly :)

Thanks,
Mike

P.S. shhammer5634 (Steve) - this version also has a new option to bypass the skin scaling for you too ;)

Code: Select all

sudo ./fruitbox --cfg <skin> --no-scale

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 1:42 am

Hi Mike,

hhank you. I will test this after work today. For my experiments I have used "TouchOne", but for the big monitor I will try to create my own skin. If it does not work, I will provide you with the output from evtest.

Cheers,
Jürgen
Hi Jürgen,

I have put a pre-release version of fruitbox on GitHub (fruitbox-pi-1.9-jurgen). Please can you try it out ? Hopefully this will fix your touch screen issue, but as I mentioned because I haven't got your type of touchscreen I cannot test it very well, so you are my tester for this one :)

There is a new command line option to make it easier to specify the touch screen device, so you can run fruitbox like this...
Code: Select all

sudo ./fruitbox --config-buttons --touch-device Quanta
Please let me know if it works, and if so I will release the new version properly :)

Thanks,
Mike

P.S. shhammer5634 (Steve) - this version also has a new option to bypass the skin scaling for you too ;)
Code: Select all

sudo ./fruitbox --cfg <skin> --no-scale
Mike,

You're awesome sir!

Cheers,
Steve

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 6:25 am

fruitbox wrote:
Tue Feb 27, 2018 11:11 pm
Hi Mike,

hhank you. I will test this after work today. For my experiments I have used "TouchOne", but for the big monitor I will try to create my own skin. If it does not work, I will provide you with the output from evtest.

Cheers,
Jürgen
Hi Jürgen,

I have put a pre-release version of fruitbox on GitHub (fruitbox-pi-1.9-jurgen). Please can you try it out ? Hopefully this will fix your touch screen issue, but as I mentioned because I haven't got your type of touchscreen I cannot test it very well, so you are my tester for this one :)

There is a new command line option to make it easier to specify the touch screen device, so you can run fruitbox like this...

Code: Select all

sudo ./fruitbox --config-buttons --touch-device Quanta
Please let me know if it works, and if so I will release the new version properly :)

Thanks,
Mike
Hi Mike,
Unfortunately that does not work. After --config-buttons contains fruitbox.btn:

Code: Select all

# fruitbox v1.9 button mapping file
# Missing buttons will assume their default values (see user guide)

TouchDevice      = Quanta

ButtonVol+       = GPIO 150
ButtonVol-       = GPIO 65
ButtonRandom     = GPIO 391
ButtonSkip       = GPIO 1113
ButtonLeft       = GPIO 1384
ButtonRight      = GPIO 1498
Output from fruitbox:

Code: Select all

ruitbox v1.9 (Feb 27 2018, 22:36:07) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi
Detecting display...1600 x 900 (60Hz)
NOTE: 0 joystick(s) detected
Loading button mapping file 'fruitbox.btn'...
  TouchDevice = Quanta
  ButtonVol+ = GPIO 150
  ButtonVol- = GPIO 65
  ButtonRandom = GPIO 391
  ButtonSkip = GPIO 1113
  ButtonLeft = GPIO 1384
  ButtonRight = GPIO 1498
Reading configuration 'skins/TouchOne/fruitbox.cfg'...

  [general]
  SkinName = TouchSong
  SkinDescription = Touch skin for Official Raspberry Pi 7" Touch Screen
  SkinSize = 800 480
  Database = ../fruitbox.db
  MusicPath = ../Music/
  SortSongsBy = Title
  SortSongsBy = Artist
  SelectKeys = 0909
  AutoSelect = true
  SelectTimeout = 150
  SelectHoldTimeout = 150
  AutoPageTurnTime = 3000
  MaxPlaylistLength = 20
  LoopPlaylist = false
  PlaysPerCoin = 0
  SongsPerPage = 6
  PageSize = 360 308
  PairSongs = Dual
  ArtistDescription = Artist
  ArtistDescription = " / "
  ArtistDescription = PairedArtist
  PageMoveStyle = 20 0 false
  SongLoadTime = 0
  SongUnloadTime = 0
  ArtistText = 1 255 32 32 255 centre true true false 0 7 294
  SongText = 0 0 0 0 255 centre true true true 0 7 360

  [sounds]

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 24

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 22

  [font]
  File = skins/TouchOne/dotmatrx.ttf
  Height = 16

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 18

  [bitmap]
  File = skins/TouchOne/background.jpg
  Position = 0 0
  Size = 800 480

  [page]
  Position = 30 100
  Background = skins/TouchOne/strip3.jpg

  [page]
  Position = 410 100
  Background = skins/TouchOne/strip3.jpg

  [status]
  Position = 30 12
  Size = 352 84
  Text = 2 255 255 255 255 right false true false 0 0 350
  Contents = skins/TouchOne/now_playing.txt
  LineSpacing = 4
  TimerTickPeriod = 60

  [status]
  Position = 414 12
  Size = 352 84
  Text = 2 255 255 255 255 left false true false 0 0 350
  Contents = skins/TouchOne/coming_up.txt
  LineSpacing = 4

  [status]
  Position = 160 432
  Size = 234 53
  Text = 2 255 255 255 255 centre false false false 0 0 350
  Contents = skins/TouchOne/help.txt
  LineSpacing = 4
  TimerTickPeriod = 200

  [touch song]
  Bitmap = skins/TouchOne/touch_red.png

  [bitmap]
  File = skins/TouchOne/foreground.png
  Position = 0 0
  Size = 800 480

  [bitmap]
  File = skins/TouchOne/volume.png
  Position = 8 422
  Size = 12 51
  VertScale = Volume
  VertScaleMode = Clipped

  [status]
  Position = 423 421
  Size = 93 53
  Bitmap = skins/TouchOne/random_button.png
  Contents = skins/TouchOne/random_pressed.txt

  [status]
  Position = 546 421
  Size = 94 53
  Bitmap = skins/TouchOne/skip_button.png
  Contents = skins/TouchOne/skip_pressed.txt

  [status]
  Position = 663 421
  Size = 54 53
  Bitmap = skins/TouchOne/left_button.png
  Contents = skins/TouchOne/left_pressed.txt

  [status]
  Position = 37 421
  Size = 93 53
  Bitmap = skins/TouchOne/volume_button.png
  Contents = skins/TouchOne/volume_pressed.txt

  [status]
  Position = 717 421
  Size = 53 53
  Bitmap = skins/TouchOne/right_button.png
  Contents = skins/TouchOne/right_pressed.txt

  [touch areas]
  ButtonRandom = 423 421 94 53
  ButtonSkip = 546 421 94 53
  ButtonLeft = 663 421 48 53
  ButtonRight = 724 421 45 53
  ButtonVol- = 38 421 32 53
  ButtonVol+ = 98 421 32 53

Initialising audio ...
Loading database '../fruitbox.db'...965 songs found
Sorting songs by Title...
Sorting songs by Artist...
Building song pages...
Let's Rock!
If I change fruitbox.btn GPIO xxxx -> Touch:

Code: Select all

# fruitbox v1.9 button mapping file
# Missing buttons will assume their default values (see user guide)

TouchDevice      = Quanta

ButtonVol+       = Touch
ButtonVol-       = Touch
ButtonRandom     = Touch
ButtonSkip       = Touch
ButtonLeft       = Touch
ButtonRight      = Touch
Output from fruitbox:

Code: Select all

fruitbox v1.9 (Feb 27 2018, 22:36:07) by Mike Kingsley
A customisable MP3 Retro Jukebox for the Raspberry Pi
Detecting display...1600 x 900 (60Hz)
NOTE: 0 joystick(s) detected
Loading button mapping file 'fruitbox.btn'...
  TouchDevice = Quanta
  ButtonVol+ = Touch
  ButtonVol- = Touch
  ButtonRandom = Touch
  ButtonSkip = Touch
  ButtonLeft = Touch
  ButtonRight = Touch
NOTE: Opened device 'Quanta' (/dev/input/event1)
Reading configuration 'skins/TouchOne/fruitbox.cfg'...

  [general]
  SkinName = TouchSong
  SkinDescription = Touch skin for Official Raspberry Pi 7" Touch Screen
  SkinSize = 800 480
  Database = ../fruitbox.db
  MusicPath = ../Music/
  SortSongsBy = Title
  SortSongsBy = Artist
  SelectKeys = 0909
  AutoSelect = true
  SelectTimeout = 150
  SelectHoldTimeout = 150
  AutoPageTurnTime = 3000
  MaxPlaylistLength = 20
  LoopPlaylist = false
  PlaysPerCoin = 0
  SongsPerPage = 6
  PageSize = 360 308
  PairSongs = Dual
  ArtistDescription = Artist
  ArtistDescription = " / "
  ArtistDescription = PairedArtist
  PageMoveStyle = 20 0 false
  SongLoadTime = 0
  SongUnloadTime = 0
  ArtistText = 1 255 32 32 255 centre true true false 0 7 294
  SongText = 0 0 0 0 255 centre true true true 0 7 360

  [sounds]

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 24

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 22

  [font]
  File = skins/TouchOne/dotmatrx.ttf
  Height = 16

  [font]
  File = skins/TouchOne/bluecond.ttf
  Height = 18

  [bitmap]
  File = skins/TouchOne/background.jpg
  Position = 0 0
  Size = 800 480

  [page]
  Position = 30 100
  Background = skins/TouchOne/strip3.jpg

  [page]
  Position = 410 100
  Background = skins/TouchOne/strip3.jpg

  [status]
  Position = 30 12
  Size = 352 84
  Text = 2 255 255 255 255 right false true false 0 0 350
  Contents = skins/TouchOne/now_playing.txt
  LineSpacing = 4
  TimerTickPeriod = 60

  [status]
  Position = 414 12
  Size = 352 84
  Text = 2 255 255 255 255 left false true false 0 0 350
  Contents = skins/TouchOne/coming_up.txt
  LineSpacing = 4

  [status]
  Position = 160 432
  Size = 234 53
  Text = 2 255 255 255 255 centre false false false 0 0 350
  Contents = skins/TouchOne/help.txt
  LineSpacing = 4
  TimerTickPeriod = 200

  [touch song]
  Bitmap = skins/TouchOne/touch_red.png

  [bitmap]
  File = skins/TouchOne/foreground.png
  Position = 0 0
  Size = 800 480

  [bitmap]
  File = skins/TouchOne/volume.png
  Position = 8 422
  Size = 12 51
  VertScale = Volume
  VertScaleMode = Clipped

  [status]
  Position = 423 421
  Size = 93 53
  Bitmap = skins/TouchOne/random_button.png
  Contents = skins/TouchOne/random_pressed.txt

  [status]
  Position = 546 421
  Size = 94 53
  Bitmap = skins/TouchOne/skip_button.png
  Contents = skins/TouchOne/skip_pressed.txt

  [status]
  Position = 663 421
  Size = 54 53
  Bitmap = skins/TouchOne/left_button.png
  Contents = skins/TouchOne/left_pressed.txt

  [status]
  Position = 37 421
  Size = 93 53
  Bitmap = skins/TouchOne/volume_button.png
  Contents = skins/TouchOne/volume_pressed.txt

  [status]
  Position = 717 421
  Size = 53 53
  Bitmap = skins/TouchOne/right_button.png
  Contents = skins/TouchOne/right_pressed.txt

  [touch areas]
  ButtonRandom = 423 421 94 53
  ButtonSkip = 546 421 94 53
  ButtonLeft = 663 421 48 53
  ButtonRight = 724 421 45 53
  ButtonVol- = 38 421 32 53
  ButtonVol+ = 98 421 32 53

Initialising audio ...
Loading database '../fruitbox.db'...965 songs found
Sorting songs by Title...
Sorting songs by Artist...
Building song pages...
TOUCH AREA 196 789 64 99
TOUCH AREA 76 789 64 99
TOUCH AREA 846 789 188 99
TOUCH AREA 1092 789 188 99
TOUCH AREA 1326 789 96 99
TOUCH AREA 1448 789 90 99
Let's Rock!
But in both cases no reaction to touch :|

Cheers,

Jürgen

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 8:47 am

Hi Jürgen

Sorry about that. I've put another version on GitHub (fruitbox-pi-1.9-jergen2). When you get the chance could you try that one please?

Cheers,
Mike

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 9:09 am

fruitbox wrote:
Wed Feb 28, 2018 8:47 am
Hi Jürgen

Sorry about that. I've put another version on GitHub (fruitbox-pi-1.9-jergen2). When you get the chance could you try that one please?

Cheers,
Mike
Hi Mike,
you do not have to apologize because I have special requests.

I just hope that others will benefit from your engagement for my special requests. Otherwise I would have a bad conscience!

I thank you for the quick reaction, I can test this only this afternoon. I will then report in detail.

Cheers,
Jürgen

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 4:22 pm

fruitbox wrote:
Wed Feb 28, 2018 8:47 am
Hi Jürgen

Sorry about that. I've put another version on GitHub (fruitbox-pi-1.9-jergen2). When you get the chance could you try that one please?

Cheers,
Mike
Hello mike, congratulations, a big step! All buttons work as expected !!!

Only the choice of a song is still a problem. When I touch a title, sometimes nothing happens. Sometimes a title is chosen below, sometimes one from another column. I can not recognize a system there. Can this have something to do with the scaling to 1600 x 900, if I use "TouchOne"?

Cheers,

Jürgen

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 4:28 pm


Hello mike, congratulations, a big step! All buttons work as expected !!!

Only the choice of a song is still a problem. When I touch a title, sometimes nothing happens. Sometimes a title is chosen below, sometimes one from another column. I can not recognize a system there. Can this have something to do with the scaling to 1600 x 900, if I use "TouchOne"?

Cheers,

Jürgen
Hi Jürgen,

great that's a good step forward. Yes you are correct about the touch song areas...I need to scale them from the skin dimensions to the touch screen dimensions. I have done this for the [touch areas] but forgot to do that for the song areas. That's the problem with not having the equipment to test the code with! But thank-you for your feedback.. I'll get this corrected later this evening and send you another version to try ;)

Cheers,
Mike

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 4:49 pm

fruitbox wrote:
Wed Feb 28, 2018 4:28 pm

Hello mike, congratulations, a big step! All buttons work as expected !!!

Only the choice of a song is still a problem. When I touch a title, sometimes nothing happens. Sometimes a title is chosen below, sometimes one from another column. I can not recognize a system there. Can this have something to do with the scaling to 1600 x 900, if I use "TouchOne"?

Cheers,

Jürgen
Hi Jürgen,

great that's a good step forward. Yes you are correct about the touch song areas...I need to scale them from the skin dimensions to the touch screen dimensions. I have done this for the [touch areas] but forgot to do that for the song areas. That's the problem with not having the equipment to test the code with! But thank-you for your feedback.. I'll get this corrected later this evening and send you another version to try ;)

Cheers,
Mike
Hi Mike,

I like to test this, no problem. From Friday you have time to look after your family and other things! I am then on vacation for 14 days and annoy you afterwards :mrgreen:

Cheers,

Jürgen

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 7:48 pm

Hi Jürgen,

fruitbox-pi-1.9-jergen3 on GitHub is ready to rock ('n roll) when you are...

EDIT: Would you be able to also test it in unscaled mode as well please? (i.e. use --no-scale option) because this will test some different code sections.

Cheers,
Mike

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Wed Feb 28, 2018 8:58 pm

fruitbox wrote:
Wed Feb 28, 2018 7:48 pm
Hi Jürgen,

fruitbox-pi-1.9-jergen3 on GitHub is ready to rock ('n roll) when you are...

EDIT: Would you be able to also test it in unscaled mode as well please? (i.e. use --no-scale option) because this will test some different code sections.

Cheers,
Mike
Hi Mike,

will test it right now

Mike, you are a HERO!!! It rocks! All buttons work. The selection of titles works! And it also works with --no-scale!
I'll test it tomorrow on another touch screen with a different resolution :idea:

Many Thanks,

Jürgen

shhammer5634
Posts: 57
Joined: Mon Dec 04, 2017 10:45 am
Location: Iowa, USA

Re: fruitbox MP3 jukebox

Thu Mar 01, 2018 12:08 am

Hi Mike,

I wanted to add my thanks for the --no-scale switch. Worked like a dream. I'd have let you know sooner, but work got in the way. :lol: Really appreciate all your hard work.

Cheers,
Steve

RainbowJuke
Posts: 17
Joined: Fri Feb 16, 2018 9:32 am
Location: West Yorkshire UK

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 9:41 am

Hi Mike thanks for a great program and for the 1.9 upgrade to sort out my problems with Skip and Pause buttons. I have the 7inch touch screen working but trying to run an Acer touchscreen monitor. In devices name I have a ILITEK ILITEK Multi-Touch device, I have tried numerous permutations of the name but unable to make it work is there some download info that I need to install.
Best Regards Antony

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 11:10 am

RainbowJuke wrote:
Fri Mar 02, 2018 9:41 am
Hi Mike thanks for a great program and for the 1.9 upgrade to sort out my problems with Skip and Pause buttons. I have the 7inch touch screen working but trying to run an Acer touchscreen monitor. In devices name I have a ILITEK ILITEK Multi-Touch device, I have tried numerous permutations of the name but unable to make it work is there some download info that I need to install.
Best Regards Antony
Hi Antony

Can you run evtest and capture the output for me please? So run evtest, choose the touchscreen and send me the output of evtest when you touch the screen. I need to check a couple of things...what the name is and also what codes it produces.

Also I presume you are using fruitbox1.9.jergen3?

If you can also send me the output of fruitbox when it's starting up that may also give me some clues...

Cheers,
Mike

ajMatus
Posts: 6
Joined: Sun Dec 03, 2017 9:17 pm

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 3:15 pm

Hi,

Mike, which executable is it that we have to use now? I just got my 7" official touchscreen today spent like two hours wondering why it didn't work with the TouchOne screen skin, until finally started reading the comments and tried the jurgen 1.9 and boom it worked. Just posting in case someone else goes through the same as I... jeje :D

On another note, this is a bit off topic but since I had mentioned it earlier on the forum somwhere in reference to it being able to play music videos. It takes off a bit the old jukebox taste off it yes, but I've seen it done in some bars. You had mentioned that it playing videos would take off the possibility of selection. An idea, why not have it play the videos "if" one is selected, however as soon as the 'insert coin' option is triggered the video selection is pushed in the background while still playing, and the selection screen is pushed up front to the user, and until a selection is done then the video comes back up front at the point where it playing. Once a video is done playing of course the selection screen pops back up. Again it may be just rambling of me, but would be a cool thing to have.

Cheers,

User avatar
fruitbox
Posts: 305
Joined: Mon Feb 22, 2016 7:35 pm
Location: UK

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 3:24 pm

ajMatus wrote:
Fri Mar 02, 2018 3:15 pm
Hi,

Mike, which executable is it that we have to use now? I just got my 7" official touchscreen today spent like two hours wondering why it didn't work with the TouchOne screen skin, until finally started reading the comments and tried the jurgen 1.9 and boom it worked. Just posting in case someone else goes through the same as I... jeje :D

On another note, this is a bit off topic but since I had mentioned it earlier on the forum somwhere in reference to it being able to play music videos. It takes off a bit the old jukebox taste off it yes, but I've seen it done in some bars. You had mentioned that it playing videos would take off the possibility of selection. An idea, why not have it play the videos "if" one is selected, however as soon as the 'insert coin' option is triggered the video selection is pushed in the background while still playing, and the selection screen is pushed up front to the user, and until a selection is done then the video comes back up front at the point where it playing. Once a video is done playing of course the selection screen pops back up. Again it may be just rambling of me, but would be a cool thing to have.

Cheers,
Hi,

Yes sorry the releases have a got a little confusing now... The latest is 1.8, and there is an un-official release (1.9.jurgen3) as you have noticed. I will make that the next official release (I was waiting for Jurgen to do another touch screen size test, but I guess I'll just go for it...). When doing the changes for Jurgen, I noticed that the existing touch input was broken. After a little investigation it looks like it is broken in both 1.7 and 1.8, so that would explain what you are seeing...all good in 1.9 though. Again, sorry I should have either sorted it straight away or at least make people aware of it...

Regarding music videos, a while ago I attempted to add that but the performance of video playback was appauling, and limited to OGG files only (but you can easily generate these from other formats using ffmpg). However, since it's a topic that has been mentioned a few times, I may re-visit it and see what I can do. It may not be for a little while though, but I'll definitely give it some thought...

Cheers,
Mike

mamer999
Posts: 53
Joined: Fri Jan 26, 2018 7:56 am
Location: Germany

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 3:58 pm

fruitbox wrote:
Fri Mar 02, 2018 3:24 pm
ajMatus wrote:
Fri Mar 02, 2018 3:15 pm
Hi,

Mike, which executable is it that we have to use now? I just got my 7" official touchscreen today spent like two hours wondering why it didn't work with the TouchOne screen skin, until finally started reading the comments and tried the jurgen 1.9 and boom it worked. Just posting in case someone else goes through the same as I... jeje :D

On another note, this is a bit off topic but since I had mentioned it earlier on the forum somwhere in reference to it being able to play music videos. It takes off a bit the old jukebox taste off it yes, but I've seen it done in some bars. You had mentioned that it playing videos would take off the possibility of selection. An idea, why not have it play the videos "if" one is selected, however as soon as the 'insert coin' option is triggered the video selection is pushed in the background while still playing, and the selection screen is pushed up front to the user, and until a selection is done then the video comes back up front at the point where it playing. Once a video is done playing of course the selection screen pops back up. Again it may be just rambling of me, but would be a cool thing to have.

Cheers,
Hi,

Yes sorry the releases have a got a little confusing now... The latest is 1.8, and there is an un-official release (1.9.jurgen3) as you have noticed. I will make that the next official release (I was waiting for Jurgen to do another touch screen size test, but I guess I'll just go for it...). When doing the changes for Jurgen, I noticed that the existing touch input was broken. After a little investigation it looks like it is broken in both 1.7 and 1.8, so that would explain what you are seeing...all good in 1.9 though. Again, sorry I should have either sorted it straight away or at least make people aware of it...

Regarding music videos, a while ago I attempted to add that but the performance of video playback was appauling, and limited to OGG files only (but you can easily generate these from other formats using ffmpg). However, since it's a topic that has been mentioned a few times, I may re-visit it and see what I can do. It may not be for a little while though, but I'll definitely give it some thought...

Cheers,
Mike
Hi Mike,
I apologize that I have not reported earlier. Unfortunately, I have to postpone the test for the second touchscreen, because I need a HDMI2VGA adapter for it. As I already said, it's going on vacation for two weeks today. I will do the test afterwards.
Thanks again and see you later.

Cheers
.
Jürgen

User avatar
karrika
Posts: 1062
Joined: Mon Oct 19, 2015 6:21 am
Location: Finland

Re: fruitbox MP3 jukebox

Fri Mar 02, 2018 4:25 pm

fruitbox wrote:
Fri Mar 02, 2018 3:24 pm
Regarding music videos, a while ago I attempted to add that but the performance of video playback was appauling, and limited to OGG files only (but you can easily generate these from other formats using ffmpg). However, since it's a topic that has been mentioned a few times, I may re-visit it and see what I can do. It may not be for a little while though, but I'll definitely give it some thought...

Cheers,
Mike
I am currently running both videos and music using scripts outside fruitbox.

There is two different ways to do it on the Pi.

If you are using anything else than the official 7" touch screen you have to stop fruitbox for being able to display video from omxplayer.

But it is also possible to have fruitbox on the 7" touch screen and run omxplayer to play the video on HDMI or Analog video.

The most practical thing would be to play the video full screen.

This would be a nice extra feature. My current scripting exits fruitbox for the video and restarts it again. Not so elegant.

Return to “Graphics, sound and multimedia”