Jump to content


Photo

solo4k sdl


  • Please log in to reply
100 replies to this topic

Re: solo4k sdl #21 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 4 August 2019 - 18:57

:D


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: solo4k sdl #22 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 7 August 2019 - 10:43

Hello,

 

Just to let you know that i upgraded my solo4k with OpenPli 7.1 and as a result upgraded my development to 7.1 too.

 

The SDL2 2.0.5 provided by OpenPli 7.1 tree does not work as well, so, only SDL2 2.0.10 seems to work, i have attached the latest version of the .bb recipe on which i have added directfb runtime dependency in order to check and request directfb.

 

Beste regards,

 

 

Marc

 

 

Attached Files


Edited by serdeliuk, 7 August 2019 - 10:45.

init 2 && init 3


Re: solo4k sdl #23 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 7 August 2019 - 14:21

SDL2 2.0.5 is part of the OE version we ship with OpenPLi 7.1. 

 

2.0.10 has only been updated in OE 6 days ago (https://github.com/o...raphics/libsdl2), but the recipe is different.

 

I'd rather port this one, then use a custom recipe, which will always become a pain when we need to upgrade OpenPLi to a newer OE version...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: solo4k sdl #24 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 7 August 2019 - 15:16

SDL2 2.0.5 is part of the OE version we ship with OpenPLi 7.1. 

 

2.0.10 has only been updated in OE 6 days ago (https://github.com/o...raphics/libsdl2), but the recipe is different.

 

I'd rather port this one, then use a custom recipe, which will always become a pain when we need to upgrade OpenPLi to a newer OE version...

 

 

Great, thanks, i can confirm that this .bb recipe build fine and works perfectly under OpenPli 7.1


init 2 && init 3


Re: solo4k sdl #25 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 7 August 2019 - 15:55

Ok. Here you go: https://github.com/O...2a8fa9d3d0b826a


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: solo4k sdl #26 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 7 August 2019 - 16:08

 

Yeeeee, starting with which OpenPli version will be included in automatic nightly build and anyone who wants can install it?


init 2 && init 3


Re: solo4k sdl #27 WanWizard

  • PLi® Core member
  • 68,303 posts

+1,718
Excellent

Posted 7 August 2019 - 16:12

With the next release version.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: solo4k sdl #28 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 7 August 2019 - 16:20

Thanks WanWizard, meanwhile, for those who wants this sooner i am attaching the IPK file, was builded on OpenPli 7.1 for Vu Solo4K.

Attached Files


Edited by serdeliuk, 7 August 2019 - 16:21.

init 2 && init 3


Re: solo4k sdl #29 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 11:52

Hello,

 

I am unable to get any events from remote control into SDL2, only keyboard events if i have a usb keyboard installed, it seems that i am missing some vu/dreambox patches to use remote control as keyboard.

Do you know which ones? Or if even exists?

 

Many thanks,

 

 

Marc


init 2 && init 3


Re: solo4k sdl #30 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 18 August 2019 - 12:59

While e2 is running? E2 prevents other applications from reading the event devices (EVIOCGRAB). Don’t ask me why ;)
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: solo4k sdl #31 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 13:03

While e2 is running? E2 prevents other applications from reading the event devices (EVIOCGRAB). Don’t ask me why ;)

 

 

Indeed, i just discovered that if i shutdown enigma2 i am able to get events from /dev/input/event0, now i wonder if there is any way from a plugin to disconnect enigma2 or release event0 for other subprocess.


init 2 && init 3


Re: solo4k sdl #32 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 18 August 2019 - 13:44

Afaik it is possible. In the past it was used for teletext. Don’t look at current code. To be able to change keys and change volume while teletext is running I changed the code several years ago. Now e2 forwards the key events to the teletext.
Before teletext handled the key presses by itself.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: solo4k sdl #33 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 18 August 2019 - 13:48

See here
https://github.com/O...ea56d75e376fec4
The lock releases the device and other application can access it.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: solo4k sdl #34 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 13:50

Uuuuuuu, nice, now let see if i understand the code :))))


init 2 && init 3


Re: solo4k sdl #35 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 14:21

I found this, not sure is it is the right thing to do but it works, now i have all events in my plugin

 

from enigma import eRCInput

 

eRCInput.getInstance().lock()

 

....

 

eRCInput.getInstance().unlock()


Edited by serdeliuk, 18 August 2019 - 14:22.

init 2 && init 3


Re: solo4k sdl #36 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 14:25

Thanks again @betacentauri !!!!


init 2 && init 3


Re: solo4k sdl #37 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 18 August 2019 - 15:32

I have a strage issue, while i am able to read almost all keys there are some keys that does not generate any event and it seems that i am missing something but don't know what.

 

For example, exit, red, green, yellow, blue and few others keys does not generate any event, while all others does, alike num keys, help, menu, up, left, down, right. 

 

What is going on??? :)


init 2 && init 3


Re: solo4k sdl #38 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 18 August 2019 - 16:28

I have only one idea. There are sometimes 2 event devices. Maybe you have to read both.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: solo4k sdl #39 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 21 August 2019 - 20:41

Unfortunately my Vu Solo4K has only one event device "event0" also /dev/input contain "mice" and "mouse0" so no luck

 

root@vusolo4k:/$ ls -1 /dev/input/

event0

mice

mouse0

 
My test program read only following keys, the non listed ones as exit does not generate any events.
 
root@vusolo4k:/etc/opkg$ sdltest-keys 

SDL event tester: start 

SDL event tester: please press any keys

Physical Menu key acting as Menu key 

Physical 1 key acting as 1 key 

Physical 2 key acting as 2 key 

Physical 3 key acting as 3 key 

Physical 4 key acting as 4 key 

Physical 5 key acting as 5 key 

Physical 6 key acting as 6 key 

Physical 7 key acting as 7 key 

Physical 8 key acting as 8 key 

Physical 9 key acting as 9 key 

Physical 0 key acting as 0 key 

Physical Mute key acting as Mute key 

Physical Power key acting as Power key 

Physical VolumeUp key acting as VolumeUp key 

Physical VolumeDown key acting as VolumeDown key 

Physical Help key acting as Help key 

Physical AudioRewind key acting as AudioRewind key 

Physical AudioPlay key acting as AudioPlay key 

Physical AudioFastForward key acting as AudioFastForward key 

Physical Stop key acting as Stop key 


Edited by serdeliuk, 21 August 2019 - 20:42.

init 2 && init 3


Re: solo4k sdl #40 serdeliuk

  • Senior Member
  • 315 posts

+18
Neutral

Posted 21 August 2019 - 20:45

Now i saw that if i stop the enigma2 and  cat /dev/input/event0 there are events for all keys, so it is something with my readings from my app i suppose.


init 2 && init 3



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users