RE: fix tslib integration - emka1981 - 2015-07-03
@ultraman:
man, how can i say it ? I really love you. Seriosly i was now trying so many distributions, so many things uimapper (for example) osmc etc. ..... I spent weeks in front of the raspberry, compiling kodi on my own, the with packages etc. AND NOW ?? IT's DONE *yihaaa*
You made my day, i am so happy i can't describe Really
cheers, greets from the little country austria
Martin
RE: fix tslib integration - ultraman - 2015-07-03
So does it work? Then I'm very happy also. Spend some time developing this solution.
(It is really hot hear and I come from lunch outside so my brain is melted and doesn't function anymore ).
And btw: We are neighbours.
RE: fix tslib integration - dcallebaut - 2015-07-03
I myself haven't had te time yet to try but reading emka1981's reaction out is clearly something to give a try very soon.
Although I seem to be the only one in the "raspi + kodi" world having it attached to a 17" egalax touch [WHITE SMILING FACE][WHITE SMILING FACE].
As soon as i get some time free her in (also) hot Belgium I will try and let you know as well.
RE: fix tslib integration - emka1981 - 2015-07-03
i have a 8'' Pollin Touch device (egalax).....
by the way. Since i have the right calibration, my plugin "navigation" is not working anymore. For my better understanding: Kodi plugins have an addon.xml and an addon.py. Is it right, that the addon.xml is the "gui" and the addon.py is the programm code.
What i want ?
I want a car - pc, and have the image from (http://christian-brauweiler.de/howto/carpc-rpi-und-7-zoll-touchscreen-update-2015) and (http://www.engineering-diy.blogspot.ro/2015/01/raspberrypi-carpc-tutorial.html) the problem there was, that the usb audio device was not working, because kode was build without alsa. So i installed the new kodi. Then the Touchscreen was not working right. Then i came along that thread with the programm and ... the touch was working perfect, but now the navigation software (navit) is in the plugin not working. Behind (it is a programm which runs in the background, kodi is "only" lying in the front) the programm navit is working perfect, also with the touch. I hope you understand
My question:
Do you know the util xtotool ? I think, as long as i can read the code the problem is the mouse interaction with xtotool.
@ultraman
because you also wrote a plugin for kodi, please have a look at the programm code. thank you.
Code: import calendar
import sys
import os
import xbmc
import xbmcgui
import xbmcaddon
import threading
import time
addonW = 1280
addonH = 720
SWAP_AXES_THRESHOLD = 10
ACTION_PREVIOUS_MENU = 10
ACTION_SELECT_ITEM = 7
ACTION_BACKSPACE = 92
ACTION_MOUSE_START = 100
ACTION_MOUSE_LEFT_CLICK = 100
ACTION_MOUSE_RIGHT_CLICK = 101
ACTION_MOUSE_MIDDLE_CLICK = 102
ACTION_MOUSE_DOUBLE_CLICK = 103
ACTION_MOUSE_WHEEL_UP = 104
ACTION_MOUSE_WHEEL_DOWN = 105
ACTION_MOUSE_DRAG = 106
ACTION_MOUSE_MOVE = 107
ACTION_MOUSE_END = 109
TEXT_ALIGN_LEFT = 0
TEXT_ALIGN_RIGHT = 1
TEXT_ALIGN_CENTER_X = 2
TEXT_ALIGN_CENTER_Y = 4
TEXT_ALIGN_RIGHT_CENTER_Y = 5
TEXT_ALIGN_LEFT_CENTER_X_CENTER_Y = 6
###################################################################################################
###################################################################################################
# Global accessed controls
###################################################################################################
###################################################################################################
tempLabel = xbmcgui.ControlLabel(
addonW/2 - 400, 5,
800, 40,
'T',
textColor='0xffffffff',
font='WeatherTemp',
alignment=TEXT_ALIGN_LEFT_CENTER_X_CENTER_Y)
###################################################################################################
###################################################################################################
# Click Event Handler Thread
###################################################################################################
###################################################################################################
class clickHandlerClass(threading.Thread):
def run(self):
self.shutdown = False
while not self.shutdown:
state = xbmcgui.getMouseAction()
rawAction = xbmcgui.getMouseRawAction()
pos = xbmcgui.getMousePosition()
#tempLabel.setLabel(str(state) + " " + str(rawAction))
pos_string ="x:%i y:%i" % (pos/10000, pos%10000)
x_string = "x"
if rawAction == 5:
x_string = "xdotool mousemove %i %i mousedown 1&" % (pos/10000, pos%10000)
if rawAction == 6:
x_string = "xdotool mousemove %i %i mouseup 1&" % (pos/10000, pos%10000)
os.system(x_string)
#self.mouse_pos.setLabel(pos_string)
# Don't kill the CPU
time.sleep(2)
class navigation(xbmcgui.WindowDialog):
def __init__(self):
os.system("DISPLAY=:0 xdotool mousemove 32 32 click 1&")
os.system("DISPLAY=:0 xdotool mousemove 2000 2000&")
# Store original window ID
self.prevWindowId = xbmcgui.getCurrentWindowId()
# Go to x11 skin page
xbmc.executebuiltin("XBMC.ActivateWindow(1114)")
self.retval=0
# Background
self.w = addonW#self.getWidth()
self.h = addonH#self.getHeight()
self.mediaPath=os.path.join(addon.getAddonInfo('path'),'resources','media') + '/'
# Click button
self.button_click=xbmcgui.ControlButton(0, 0, self.w, self.h,
"",
self.mediaPath + 'transparent.png',
self.mediaPath + 'transparent.png',
0,
0)
self.addControl(self.button_click)
self.setFocus(self.button_click)
# Back button
self.button_back=xbmcgui.ControlButton(self.w - 90, self.h - 130, 80, 80,
"",
'floor_buttonFO.png',
'floor_button.png',
0,
0)
self.addControl(self.button_back)
self.backImage = xbmcgui.ControlImage(self.w - 90, self.h - 130, 80, 80,
'icon_back_w.png')
self.addControl(self.backImage)
'''
self.button_navit2=xbmcgui.ControlButton(self.w - 180, self.h - 130, 80, 80,
"",
'floor_buttonFO.png',
'floor_button.png',
0,
0)
self.addControl(self.button_navit2)'''
# Mouse Position label
'''
self.mouse_pos = xbmcgui.ControlLabel(
self.w/2 - 20, self.h/2,
500, 40,
"",
textColor='0xffffffff',
font='font30',
alignment=TEXT_ALIGN_RIGHT)
self.addControl(self.mouse_pos)'''
# Add temp label on stage
#self.addControl(tempLabel)
# Invisible button used to control focus
self.buttonfocus = xbmcgui.ControlButton(500, 0, 1, 1, "")
self.addControl(self.buttonfocus)
self.setFocus(self.buttonfocus)
# Start click events thread
#self.clickHandlerThread = clickHandlerClass()
#self.clickHandlerThread.start()
def onControl(self, controlID):
if controlID == self.button_click:
pos = xbmcgui.getMousePosition()
#x_string = "xdotool mousemove %i %i mousedown 1&" % (pos/10000, pos%10000)
#x_string = "xdotool mousemove %i %i mouseup 1&" % (pos/10000, pos%10000)
pos_string ="x:%i y:%i" % (pos/10000, pos%10000)
x_string = "DISPLAY=:0 xdotool mousemove %i %i click 1&" % (pos/10000, pos%10000)
#self.mouse_pos.setLabel(pos_string)
os.system(x_string)
self.setFocus(self.buttonfocus)
os.system("DISPLAY=:0 xdotool mousemove 2000 2000&")
if controlID == self.button_back:
self.removeControl(self.button_back)
#self.removeControl(self.button_navit1)
self.removeControl(self.backImage)
os.system("DISPLAY=:0 xdotool mousemove 200 200 click 1&")
os.system("DISPLAY=:0 xdotool mousemove 2000 2000&")
strWndFnc = "XBMC.ActivateWindow(%i)" % self.prevWindowId
xbmc.executebuiltin(strWndFnc)
self.setFocus(self.buttonfocus)
# stop the temp thread
#self.clickHandlerThread.shutdown = True
#self.clickHandlerThread.join()
self.close()
addon = xbmcaddon.Addon(id='plugin.program.navigation')
dialog = navigation()
dialog.doModal()
del dialog
del addon
greets Martin
RE: fix tslib integration - ultraman - 2015-07-04
I commited small change in ts_uinput_touch: if tapped for more than 300 ms and less than a second BTN_RIGHT event is send. With this it is possible to open context menus. I think something like this is done in uimapper also.
This is becoming nice piece of sw...
RE: fix tslib integration - ultraman - 2015-07-04
addon.xml file only describes the add-on, providing credits, version information and dependencies.
addon.py is creating gui.
This plugin you listed works ONLY with appropriate Kodi patches because of functions like this
Code: state = xbmcgui.getMouseAction()
rawAction = xbmcgui.getMouseRawAction()
pos = xbmcgui.getMousePosition()
This functions doesn't exist in Kodi itself. I asked on irc if we can get current mouse position in python in some other way but no one responded. So don't know for the alternative.
I'm not sure how Kodi patches reacts with my program. First be sure to remove old calibration file touchscreen_axes_calib. Addon can be at least started without errors? Can you see position string?
Did you compile new Kodi with touchscreen patches?
How does navit works? This is separate program and become in front of Kodi? So it doesn't react on touch? Or does it?
xdotool I know.
I don't really understand the problem. You should describe little more what works in you addon and what not.
RE: fix tslib integration - emka1981 - 2015-07-04
Ok, at first thank you for your answer. Here is my problem. I have the "normal" kodi gui with the skin of this site http://christian-brauweiler.de/howto/carpc-rpi-und-7-zoll-touchscreen-update-2015 it is the picture at the top. There is a menue point called navigation (thats the plugin in kodi, where i send the code in the pts_uinput_touchrivious post)
The Programm navit (http://www.navit-project.org/) is working on X-server normal, with your code of ts_uinput_touch normal, but in kodi it is not working, there is only a black screen with the back button of the skin. It is not crashing, because if i use the back - button it is going back. I can't see the programm navit, its only black. If i close kodi, i can see the programm and all the functions. I can use them, its no problem. But if i start kodi, and then the plugin, it's again a black screen. Exit kodi again and i can use navit ...
I think the plugin only brings the programm navit in the foreground in an own kodi skin, and with the back button, kodi activates the main window again (that would be the line ( Code: # Store original window ID
self.prevWindowId = xbmcgui.getCurrentWindowId()
)
Do you now understand my problem ?
Again thank you for helping me ...
greets Martin
RE: fix tslib integration - ultraman - 2015-07-05
Sorry but with this I can't help you because don't know how you can have Kodi running fullscreen and also Navit fullscreen.
What I have done with another GUI program in Openelec (where is no X btw) is to minimize Kodi and then run program (it was Opera browser) and it's window was visible. When Opera was closed Kodi was restored back.
One option I would think of is to switch both programs (Kodi and Navit) foreground/background. But for this you must make a switch back to Kodi from Navit.
Or to start Navit from Kodi and after it is done Navit is closed and Kodi is visible again.
As I wrote I don't understand your script how you can have Kodi visible and then put Navit over. And Kodi still reacts on touching buttons.
And do you have any errors in kodi.log?
RE: fix tslib integration - emka1981 - 2015-07-05
I am running kodi and navit in fullscreen mode (starting ts_uinput_touch, then navit, and then kodi). In the navigation plugin the is a switch back button to kodi which is working, i only need to start the program from kodi (or bring the programm in foreground), do you know, can i realize it with the plugin "Advanced Launcher" ?
How do you realize to minimize kodi ?
RE: fix tslib integration - ultraman - 2015-07-05
To minimize program with xdotool (bash syntax):
WINID=xdotool search --class Kodi
xdotool windowminimize $WINID
But I'm not sure how you will switch from Navit to Kodi. Does navigation plugin still reacts even if doesn't have focus? Because you don't see it's button.
And q again: Do you have any errors in Kodi logs? Like getting mouse coordinates? Seems you compiled Kodi yourself with some patches for this? Which Kodi version are you using?
RE: fix tslib integration - emka1981 - 2015-07-05
I have the version 15.0~git20150702.9ff25f8-1~wheezy from (http://michael.gorven.za.net/) I tried it with stable 14.2 and now 15.0 and neighter there nor there its working. But now, there is another fault, by kodi exit, i am not getting back to xserver anymore. I don't know exactly why, but is is so.
Here the kodi error log
Code: ############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Son Jul 5 11:47:56 CEST 2015
Kodi Options:
Arch: armv6l
Kernel: Linux 3.18.1 #1 PREEMPT Wed Jan 28 00:04:02 EET 2015
Release: Raspbian GNU/Linux 7 (wheezy)
############## END SYSTEM INFO ##############
############### STACK TRACE #################
=====> Core file: /home/pi/core (2015-07-05 11:47:56.139051051 +0200)
=========================================
[New LWP 3364]
[New LWP 3373]
[New LWP 3361]
[New LWP 3360]
[New LWP 3359]
[New LWP 3358]
[New LWP 3355]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin --standalone'.
Program terminated with signal 11, Segmentation fault.
#0 0x04168e90 in ?? ()
Thread 7 (Thread 0xb4f0f000 (LWP 3355)):
#0 0xb544ede4 in free () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0x014e9b64 in JSONRPC::JSONSchemaTypeDefinition::~JSONSchemaTypeDefinition() ()
#2 0x014e9c90 in boost::detail::sp_counted_impl_p<JSONRPC::JSONSchemaTypeDefinition>::dispose() ()
#3 0x00386864 in boost::detail::shared_count::~shared_count() ()
#4 0x014e9b44 in JSONRPC::JSONSchemaTypeDefinition::~JSONSchemaTypeDefinition() ()
#5 0x014e9c90 in boost::detail::sp_counted_impl_p<JSONRPC::JSONSchemaTypeDefinition>::dispose() ()
#6 0x00386864 in boost::detail::shared_count::~shared_count() ()
#7 0x014e9048 in std::_Rb_tree<std::string, std::pair<std::string const, JSONRPC::JsonRpcMethod>, std::_Select1st<std::pair<std::string const, JSONRPC::JsonRpcMethod> >, std::less<std::string>, std::allocator<std::pair<std::string const, JSONRPC::JsonRpcMethod> > >::_M_erase(std::_Rb_tree_node<std::pair<std::string const, JSONRPC::JsonRpcMethod> >*) ()
#8 0x014e9024 in std::_Rb_tree<std::string, std::pair<std::string const, JSONRPC::JsonRpcMethod>, std::_Select1st<std::pair<std::string const, JSONRPC::JsonRpcMethod> >, std::less<std::string>, std::allocator<std::pair<std::string const, JSONRPC::JsonRpcMethod> > >::_M_erase(std::_Rb_tree_node<std::pair<std::string const, JSONRPC::JsonRpcMethod> >*) ()
#9 0x014dc8f8 in JSONRPC::CJSONServiceDescription::CJsonRpcMethodMap::clear() ()
#10 0x014dc958 in JSONRPC::CJSONServiceDescription::Cleanup() ()
#11 0x014d5eec in JSONRPC::CJSONRPC::Cleanup() ()
#12 0x00a9f9f8 in CNetworkServices::~CNetworkServices() ()
#13 0xb540ddec in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#14 0xb53f3820 in __libc_start_main () from /lib/arm-linux-gnueabihf/libc.so.6
#15 0x00374a4c in _start ()
Thread 6 (Thread 0xb3d56410 (LWP 3358)):
#0 0xb549fdcc in ioctl () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0xb5fe6014 in completion_thread () from /opt/vc/lib/libvchiq_arm.so
#2 0xb5ff4da0 in vcos_thread_entry () from /opt/vc/lib/libvcos.so
#3 0xb643dc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 5 (Thread 0xb3556410 (LWP 3359)):
#0 0xb6444770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0xb6012bec in dispmanx_notify_func () from /opt/vc/lib/libbcm_host.so
#2 0xb5ff4da0 in vcos_thread_entry () from /opt/vc/lib/libvcos.so
#3 0xb643dc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 4 (Thread 0xb2d56410 (LWP 3360)):
#0 0xb6444770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0xb600eb84 in tvservice_notify_func () from /opt/vc/lib/libbcm_host.so
#2 0xb5ff4da0 in vcos_thread_entry () from /opt/vc/lib/libvcos.so
#3 0xb643dc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 3 (Thread 0xb2556410 (LWP 3361)):
#0 0xb6444770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0xb600f744 in cecservice_notify_func () from /opt/vc/lib/libbcm_host.so
#2 0xb5ff4da0 in vcos_thread_entry () from /opt/vc/lib/libvcos.so
#3 0xb643dc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 2 (Thread 0xac5ff410 (LWP 3373)):
#0 0xb549a830 in poll () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0xb6a32c64 in ?? () from /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3
#2 0xb6a32c64 in ?? () from /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Thread 1 (Thread 0xb0d39410 (LWP 3364)):
#0 0x04168e90 in ?? ()
#1 0x016d04f4 in XbmcCommons::ILogger::Log(int, char const*, ...) ()
#2 0x016cfb30 in CThread::staticThread(void*) ()
#3 0xb643dc00 in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#4 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#5 0xb54a7728 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############
################# LOG FILE ##################
11:47:34 T:3035688960 NOTICE: special://profile/ is mapped to: special://masterprofile/
11:47:34 T:3035688960 NOTICE: -----------------------------------------------------------------------
11:47:34 T:3035688960 NOTICE: Starting Kodi (14.2 Git:7cc53a9). Platform: Linux ARM 32-bit
11:47:34 T:3035688960 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
11:47:34 T:3035688960 NOTICE: Kodi compiled Mar 29 2015 by GCC 4.6.3 for Linux ARM 32-bit version 3.2.51 (197171)
11:47:34 T:3035688960 NOTICE: Running on Raspbian GNU/Linux 7 (wheezy), kernel: Linux ARM 32-bit version 3.18.1
11:47:34 T:3035688960 NOTICE: FFmpeg statically linked, version: 2.4.6-xbmc-2.4.6-Helix
11:47:34 T:3035688960 NOTICE: Host CPU: ARMv6-compatible processor rev 7 (v6l), 1 core available
11:47:34 T:3035688960 NOTICE: ARM Features: Neon disabled
11:47:34 T:3035688960 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
11:47:34 T:3035688960 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
11:47:34 T:3035688960 NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
11:47:34 T:3035688960 NOTICE: special://home/ is mapped to: /home/pi/.kodi
11:47:34 T:3035688960 NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
11:47:34 T:3035688960 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
11:47:34 T:3035688960 NOTICE: Local hostname: raspberrypi
11:47:34 T:3035688960 NOTICE: Log File is located: /home/pi/.kodi/temp/kodi.log
11:47:34 T:3035688960 NOTICE: -----------------------------------------------------------------------
11:47:34 T:3035688960 NOTICE: load settings...
11:47:35 T:3035688960 NOTICE: Found 1 Lists of Devices
11:47:35 T:3035688960 NOTICE: Enumerated PI devices:
11:47:35 T:3035688960 NOTICE: Device 1
11:47:35 T:3035688960 NOTICE: m_deviceName : HDMI
11:47:35 T:3035688960 NOTICE: m_displayName : HDMI
11:47:35 T:3035688960 NOTICE: m_displayNameExtra:
11:47:35 T:3035688960 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
11:47:35 T:3035688960 NOTICE: m_channels : FL,FR
11:47:35 T:3035688960 NOTICE: m_sampleRates : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
11:47:35 T:3035688960 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3
11:47:35 T:3035688960 NOTICE: Device 2
11:47:35 T:3035688960 NOTICE: m_deviceName : Analogue
11:47:35 T:3035688960 NOTICE: m_displayName : Analogue
11:47:35 T:3035688960 NOTICE: m_displayNameExtra:
11:47:35 T:3035688960 NOTICE: m_deviceType : AE_DEVTYPE_PCM
11:47:35 T:3035688960 NOTICE: m_channels : FL,FR
11:47:35 T:3035688960 NOTICE: m_sampleRates : 48000
11:47:35 T:3035688960 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
11:47:35 T:3035688960 NOTICE: Device 3
11:47:35 T:3035688960 NOTICE: m_deviceName : Both
11:47:35 T:3035688960 NOTICE: m_displayName : HDMI and Analogue
11:47:35 T:3035688960 NOTICE: m_displayNameExtra:
11:47:35 T:3035688960 NOTICE: m_deviceType : AE_DEVTYPE_PCM
11:47:35 T:3035688960 NOTICE: m_channels : FL,FR
11:47:35 T:3035688960 NOTICE: m_sampleRates : 48000
11:47:35 T:3035688960 NOTICE: m_dataFormats : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
11:47:35 T:3035688960 NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
11:47:35 T:3035688960 NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
<?xml version="1.0" encoding="UTF-8" ?>
<advancedsettings>
<video>
<defaultplayer>dvdplayer</defaultplayer>
<defaultdvdplayer>dvdplayer</defaultdvdplayer>
</video>
<gui>
<algorithmdirtyregions>3</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
</gui>
<splash>false</splash>
<lookandfeel>
<enablerssfeeds>false</enablerssfeeds>
</lookandfeel>
<cputempcommand>sed -e 's/\([0-9]*\)[0-9]\{3\}.*/\1 C/' /sys/class/thermal/thermal_zone0/temp</cputempcommand>
<gputempcommand>/opt/vc/bin/vcgencmd measure_temp | sed "s,temp=\([0-9]*\)\.[0-9]'C,\1 C,"</gputempcommand>
</advancedsettings>
11:47:35 T:3035688960 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
11:47:35 T:3035688960 NOTICE: Default DVD Player: dvdplayer
11:47:35 T:3035688960 NOTICE: Default Video Player: dvdplayer
11:47:35 T:3035688960 NOTICE: Default Audio Player: paplayer
11:47:35 T:3035688960 NOTICE: Disabled debug logging due to GUI setting. Level 0.
11:47:35 T:3035688960 NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
11:47:35 T:3035688960 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
11:47:35 T:3035688960 NOTICE: Loaded playercorefactory configuration
11:47:35 T:3035688960 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
11:47:35 T:3035688960 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
11:47:35 T:3033883664 NOTICE: Thread ActiveAE start, auto delete: false
11:47:35 T:3025495056 NOTICE: Thread AESink start, auto delete: false
11:47:35 T:2966656016 NOTICE: Thread CRBPWorker start, auto delete: false
11:47:35 T:3035688960 NOTICE: Running database version Addons16
11:47:35 T:3035688960 NOTICE: ADDONS: Using repository repository.xbmc.org
11:47:35 T:3035688960 NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
11:47:35 T:2957476880 NOTICE: Thread CECAdapter start, auto delete: false
11:47:35 T:2930766864 NOTICE: Thread PeripBusUSBUdev start, auto delete: false
11:47:36 T:3035688960 NOTICE: Raspberry PI firmware version: Apr 21 2015 14:42:19
Copyright (c) 2012 Broadcom
version 2d5ad04b63af4233440c3f7c8587108223201102 (clean) (release)
11:47:36 T:3035688960 NOTICE: ARM mem: 384MB GPU mem: 128MB MPG2:0 WVC1:0
11:47:36 T:3035688960 NOTICE: Config:
arm_freq=900
avoid_fix_ts=1
config_hdmi_boost=2
core_freq=250
disable_overscan=1
emmc_pll_core=1
force_pwm_open=1
framebuffer_depth=16
framebuffer_height=768
framebuffer_ignore_alpha=1
framebuffer_swap=1
framebuffer_width=1024
hdmi_channel_map=8
hdmi_force_cec_address=65535
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=87
over_voltage=2
pause_burst_frames=1
program_serial_random=1
sdram_freq=450
temp_limit=85
11:47:36 T:3035688960 NOTICE: Config:
device_tree=-
hdmi_cvt=1024 768 60 1 0 0 0
11:47:36 T:3035688960 NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 640 x 480 for display 0 with 640 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 480 for display 0 with 720 x 480 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 720 x 576 for display 0 with 720 x 576 @ 50.000000 Hz
11:47:36 T:3035688960 NOTICE: Previous line repeats 2 times.
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 50.000000 Hz
11:47:36 T:3035688960 NOTICE: Previous line repeats 2 times.
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 50.000000 Hz
11:47:36 T:3035688960 NOTICE: Previous line repeats 2 times.
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 23.976025 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970032 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970032 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 30.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 29.970032 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 800 x 600 for display 0 with 800 x 600 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1024 x 768 for display 0 with 1024 x 768 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1280 x 1024 for display 0 with 1280 x 1024 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 60.000000 Hz
11:47:36 T:3035688960 NOTICE: Found resolution 1440 x 900 for display 0 with 1440 x 900 @ 59.940063 Hz
11:47:36 T:3035688960 NOTICE: Found ([email protected]) at 63, setting to RES_DESKTOP at 16
11:47:36 T:3035688960 NOTICE: Checking resolution 16
11:47:36 T:3035688960 NOTICE: GL_VENDOR = Broadcom
11:47:36 T:3035688960 NOTICE: GL_RENDERER = VideoCore IV HW
11:47:36 T:3035688960 NOTICE: GL_VERSION = OpenGL ES 2.0
11:47:36 T:3035688960 NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
11:47:36 T:3035688960 NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker
11:47:36 T:2922378256 NOTICE: Thread CECAdapterUpdate start, auto delete: false
11:47:37 T:3035688960 NOTICE: Running database version Addons16
11:47:37 T:3035688960 NOTICE: Running database version ViewModes6
11:47:37 T:3035688960 NOTICE: Running database version Textures13
11:47:37 T:3035688960 NOTICE: Running database version MyMusic48
11:47:37 T:3035688960 NOTICE: Running database version MyVideos90
11:47:37 T:3035688960 NOTICE: Running database version TV26
11:47:37 T:3035688960 NOTICE: Running database version Epg8
11:47:37 T:3035688960 NOTICE: start dvd mediatype detection
11:47:37 T:2913494032 NOTICE: Thread DetectDVDMedia start, auto delete: false
11:47:39 T:3035688960 WARNING: JSONRPC: Could not parse type "PVR.Details.Channel"
11:47:39 T:3035688960 WARNING: JSONRPC: Could not parse type "PVR.Details.ChannelGroup.Extended"
11:47:39 T:3035688960 WARNING: JSONRPC: Could not parse type "GUI.Property.Value"
11:47:39 T:3035688960 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
11:47:40 T:2910835728 NOTICE: Thread LanguageInvoker start, auto delete: false
11:47:40 T:3035688960 NOTICE: initialize done
11:47:40 T:3035688960 NOTICE: Running the application...
11:47:40 T:2910835728 NOTICE: -->Python Interpreter Initialized<--
11:47:41 T:2900358160 NOTICE: Thread JobWorker start, auto delete: true
11:47:42 T:3035688960 NOTICE: starting zeroconf publishing
11:47:42 T:3035688960 NOTICE: ES: Starting event server
11:47:42 T:2883580944 NOTICE: Thread JobWorker start, auto delete: true
11:47:42 T:2875192336 NOTICE: Thread EventServer start, auto delete: false
11:47:42 T:2875192336 NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
11:47:42 T:2875192336 NOTICE: UDP: Listening on port 9777
11:47:42 T:2858415120 NOTICE: Thread JobWorker start, auto delete: true
11:47:42 T:2866803728 NOTICE: Thread TCPServer start, auto delete: false
11:47:42 T:3035688960 WARNING: no keymap support (requires /dev/tty0 - CONFIG_VT)
11:47:52 T:3035688960 WARNING: Previous line repeats 3 times.
11:47:52 T:3035688960 NOTICE: Storing total System Uptime
11:47:52 T:3035688960 NOTICE: Saving settings
11:47:52 T:3035688960 NOTICE: stop all
11:47:52 T:3035688960 NOTICE: stop player
11:47:52 T:3035688960 NOTICE: ES: Stopping event server
11:47:52 T:3035688960 NOTICE: stopping zeroconf publishing
11:47:53 T:2875192336 NOTICE: ES: UDP Event server stopped
11:47:53 T:3035688960 NOTICE: stop dvd detect media
11:47:54 T:3035688960 NOTICE: stop sap announcement listener
11:47:54 T:3035688960 NOTICE: clean cached files!
11:47:54 T:3035688960 NOTICE: unload skin
11:47:55 T:3035688960 NOTICE: stopped
11:47:55 T:3035688960 NOTICE: destroy
11:47:55 T:3035688960 NOTICE: closing down remote control service
11:47:55 T:3035688960 NOTICE: unload sections
11:47:55 T:3035688960 NOTICE: special://profile/ is mapped to: special://masterprofile/
11:47:55 T:3035688960 NOTICE: destroy
11:47:55 T:3035688960 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist
11:47:55 T:3035688960 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist
11:47:55 T:3035688960 NOTICE: closing down remote control service
11:47:55 T:3035688960 NOTICE: unload sections
11:47:55 T:3035688960 NOTICE: application stopped...
############### END LOG FILE ################
############ END Kodi CRASH LOG #############
I find a fix for the black screen, it is a kodi fault
https://www.raspberrypi.org/forums/viewtopic.php?t=100811
RE: fix tslib integration - ultraman - 2015-07-05
Sadly I can't help you much on this issue. If I could reproduce it would be easier but with guessing I'm not that good.
RE: fix tslib integration - emka1981 - 2015-07-05
Thank you for trying !!!! I have compiled your new code. The right Mouse click is working but now the mouse move disappeared. It is only the right click working. Can you guess why ?
edit 1: ts_test is working normal/perfect. Daemon also starts perfect .....
edit 2: in kodi it is working perfect, but in xserver only the right click is working.... (seems that the xserver is not in harmony with the ts_uinput_touch )
edit 3: is there a possibility to get the code before you change it. I really like the function of the right click, but for me more important is the mouse move. If i kill the daemon, the touch is working normal with the following code in /etc/X11/xorg.conf.d/99-calibration.conf
Code: Section "InputClass"
Identifier "calibration"
MatchProduct "eGalax Inc. Touch"
Option "Calibration" "44 1974 81 1985"
EndSection
Is there a possibility to write it down in the xorg.conf for example only to take the virtual input of your code ?
And the last question, how can i get kodi back to the foreground ? To minimize you wrote
- WINID=xdotool search --class Kodi
- xdotool windowminimize $WINID
but how to maximize ?
I was thinking of two bash - scripts if i click on a kodi menu point i start fist bashscript (minimize) and i also have a menu point in navit (back to kodi) where by onclick the start of the second bash script should begin.
Do you think its a good idea ? or shoul i realize it with python ?
cheers Martin
RE: fix tslib integration - ultraman - 2015-07-06
One stupid question: why do you even use my program if using X server? Doesn't X server already supports everything for touchscreens? Don't even think of what interactions happen with this configuration.
I don't know what happened in your case that you don't see mouse move.
After cloning the repo use git reset --hard 2ae9125 in tslib foder to get my first version.
For restoring window use windowraise command.
Other things I don't know.
RE: fix tslib integration - ultraman - 2015-07-06
One stupid question: why do you even use my program if using X server? Doesn't X server already supports everything for touchscreens? Don't even think of what interactions happen with this configuration.
I don't know what happened in your case that you don't see mouse move.
After clonig the repo use git reset --hard 2ae9125 in tslib foder to get my first version.
For restoring window use windowraise command.
Other things I don't know. You need python anyway so I would stick with it.
|