Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - seagullarity

Pages: [1] 2
Users / Re: touchscreen problem
« on: June 28, 2011, 05:42:47 am »
tschak helped me to overcome this problem!

Symptoms: The touchscreen always brings up the Lighting "More" menu. The problem seems like every touch of the touchscreen clicks in the upper left hand corner.

Problem: The GenericHIDInterface drivers need to be rewritten. Currently, the event packet is being decoded incorrectly, and in fact the touchscreen device shouldn't even be grabbed by the GenericHIDInterface drivers. So let's just remove that functionality from the MD where the touchscreen is installed!

1) Checkout the svn source if you haven't already: svn co

2) Comment out line 781 from /src/Orbiter/Orbiter.cpp: //pthread_create(&m_GenericHidThreadID, NULL, ProcessGenericHIDEvents, (void*)m_pGenericHIDInterface);

3) Download the libraries necessary to make the Orbiter. I downloaded the following libraries, though I might have more in the list than are necessary:

sudo apt-get install libgtk2.0-dev libxtst6-dev libxtst-dev libxmu-dev libhid-dev libusb-dev libttf-dev libtexttools-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev libsdl1.2-dev libsdl-image1.2-dev libsdl-sge-dev

4) Copy the files from /usr/pluto/lib into /src/lib (into your svn tree)

sudo cp /usr/pluto/lib/* ../../src/lib/

5) make clean ; make bin

6) Copy the Orbiter binary into /usr/pluto/bin on your MD.

7) Restart your MD.

Thats it! Obviously, this is a workaround and if anyone would like to work on fixing GenericHIDInterface, here's some words from tshack on the topic:

<TSCHAKeee> right now, there is a method in there that just looks for all the event devices in a directory, and grabs them
<TSCHAKeee> this needs to be changed to only grab the devices a template specifies.
<TSCHAKeee> this would solve the problem.
<TSCHAKeee> it doesn't exist
<TSCHAKeee> it would need to be specified i.e.
<TSCHAKeee> /dev/input/by-id/usb-Gyration_Gyration_RF_Technology_Receiver-event-mouse
<TSCHAKeee> with the ability to specify more of them by separating them with something like a |

Users / ui2 menu disappearing and display alerts
« on: May 29, 2011, 01:34:06 am »
My onscreen orbiter menu2 (the popup UI) was appearing onscreen for a split second and then disappearing. I fixed the problem by simply doing a full regen of each orbiter from the web admin. Below are the error messages I was getting in my logs.

      First, I get a flood of Display Alerts:
Code: [Select]
      08      05/28/11 19:21:37.424           Received Message from 0 (unknown / ) to 33 (OnScreen Orbiter / Bedroom (Master)), type 1 id 809 Command:Display Alert, retry none, parameters: <0x71afeb90>                                                                                                                                                                   
      08      05/28/11 19:21:37.424             Parameter 9(Text): Downloading Pluto MPlayer Player done <0x71afeb90>                                                                   
      08      05/28/11 19:21:37.424             Parameter 70(Tokens): install <0x71afeb90>                                                                                               
      08      05/28/11 19:21:37.424             Parameter 182(Timeout): 5 <0x71afeb90>                                                                                                   
      05      05/28/11 19:21:37.424           The target device 33 (routed to 33) has not registered. <0xb654fb90>                                                                       
      05      05/28/11 19:21:37.475           Socket::ReceiveData 0x72322bc8 failed, bytes left 0 start: 1040000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 8 Incoming_Conn Socket 8 <0x71afeb90>                                                                                                                                                                         
      05      05/28/11 19:21:37.475           Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 8 <0x71afeb90>                                   
      05      05/28/11 19:21:37.475           TCPIP: Closing connection to -1003 (Router Dev #0) 0x72322bc8 m_Socket: -1 <0x71afeb90>                                                   
      05      05/28/11 19:21:37.475           Router::RemoveAndDeleteSocket 0x72322bc8 -1003 <0x71afeb90> 
      Then I get a flood of these:
Code: [Select]
      01      05/28/11 19:22:34.235           MediaAttributes_LowLevel::GetAttributeFromDescription PK_MediaType 7 PK_AttributeType 30 string sName * PK_Attribute_Related 0 size 1 <0x864dbb90>                                                                                                                                                                             
      08      05/28/11 19:22:34.243           Received Message from 0 (unknown / ) to Media Plug-in(10), type 1 id  819 Command:Get ID from Filename, retry none, parameters: <0x784bfb90>
      08      05/28/11 19:22:34.243             Parameter 13(Filename): /home/public/data/pictures/flickr/2011/05/24/5754364790.jpg <0x784bfb90>                                         
      05      05/28/11 19:22:34.285           Socket::ReceiveData 0x72322bc8 failed, bytes left 0 start: 1090000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 149 Incoming_Conn Socket 149 <0x77cbeb90>                                                                                                                                                                         
      05      05/28/11 19:22:34.285           Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 149 <0x77cbeb90>                                     
      05      05/28/11 19:22:34.285           TCPIP: Closing connection to -1003 (Router Dev #0) 0x72322bc8 m_Socket: -1 <0x77cbeb90>                                                   
      05      05/28/11 19:22:34.285           Router::RemoveAndDeleteSocket 0x72322bc8 -1003 <0x77cbeb90>                                                                               
      05      05/28/11 19:22:34.293           Socket::ReceiveData 0x985edfa8 failed, bytes left 0 start: 1100000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 162 Incoming_Conn Socket 162 <0x784bfb90>                                                                                                                                                                         
      05      05/28/11 19:22:34.293           Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 162 <0x784bfb90>                                     
      05      05/28/11 19:22:34.295           TCPIP: Closing connection to -1003 (Router Dev #0) 0x985edfa8 m_Socket: -1 <0x784bfb90>                                                   
      05      05/28/11 19:22:34.295           Router::RemoveAndDeleteSocket 0x985edfa8 -1003 <0x784bfb90>                                                                               
      08      05/28/11 19:22:34.302           Received Message from 0 (unknown / ) to Media Plug-in(10), type 1 id  391 Command:Add Media Attribute, retry none, parameters: <0x784bfb90>
      08      05/28/11 19:22:34.302             Parameter 5(Value To Assign): * <0x784bfb90>                                                                                             
      08      05/28/11 19:22:34.302             Parameter 122(EK_AttributeType): 30 <0x784bfb90>                                                                                         
      08      05/28/11 19:22:34.302             Parameter 145(EK_File): 5247 <0x784bfb90>

Users / Re: pthread_mutex_trylock in DCERouter.log
« on: May 28, 2011, 03:00:31 am »
My orbiter would be going through the initialization routine (with the large text statements flashing on the screen), and before it got to the point that it actually loaded the on-screen orbiter, it hung at a black screen. I had to close X windows (ctrl-alt-backspace) since I couldn't change terminals for some reason, and that's how I was able to view the logs. I didn't see DCERouter doing anything else as I scrolled through about ten thousand lines of that error message.

I then cleared DCERouter.log, and restarted the Core. I could then see that above the spewing of error messages was a call to VDR, which looked like below:

Code: [Select]
08      05/27/11 18:28:01.782           Received Message from 11 (^[[36;1mTelecom Plug-in / Tech Closet^[[0m) to 18 (^[[36;1mAsterisk / Tech Closet^[[0m), type 1 id 922 Command:^[[35;1mSend Asterisk Status^[[0m, retry retry, parameters: <0xa6ea6b90>
05      05/27/11 18:28:01.782           ^[[33;1mThe target device 18 (routed to 18) has not registered.^[[0m <0xb64bbb90>
01      05/27/11 18:28:01.805           ^[[31;1mStarting Hulu_Plugin::Register()^[[0m <0xb64bc6c0>
01      05/27/11 18:28:01.806           ^[[31;1mRegistered device 2102^[[0m <0xb64bc6c0>
01      05/27/11 18:28:01.818           ^[[31;1mattempting to use un-initialized lock (0x95b1594) (>5103) ÃÃK¶8ÃK¶ÃÃK¶^A: VDRPlugin.cpp:1045 ^[[0m <0xb64bc6c05      05/27/11 18:28:02.815           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:03.815           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:04.815           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:04.815           ^[[33;1mClientSocket::Connect() not successful^[[0m <0xb64bc6c0>
05      05/27/11 18:28:04.815           ^[[33;1mvoid ClientSocket::Disconnect() on this socket: 0xbf86cb18 (m_Socket: 141)^[[0m <0xb64bc6c0>
01      05/27/11 18:28:04.815           ^[[31;1mVDRPlugin::BuildChannelList cannot get channel list^[[0m <0xb64bc6c0>
01      05/27/11 18:28:04.815           ^[[31;1mattempting to use un-initialized lock (0x95b1594) (>5144) ÃÃK¶8ÃK¶ÃÃK¶^A: VDRPlugin.cpp:1313 ^[[0m <0xb64bc6c01      05/27/11 18:28:04.815           ^[[31;1mQuery failed (Table 'pluto_main.Bookmark' doesn't exist): SELECT PK_Bookmark,EK_Users,Position FROM Bookmark WHERE EK_MediaType=1 (1)^[[0m <0xb64bc6c0>
05      05/27/11 18:28:04.815           ^[[33;1mResetting db_wrapper connection^[[0m <0xb64bc6c0>
01      05/27/11 18:28:04.815           ^[[31;1mQuery failed (Table 'pluto_main.Bookmark' doesn't exist): SELECT PK_Bookmark,EK_Users,Position FROM Bookmark WHERE EK_MediaType=1 (1)^[[0m <0xb64bc6c0>
05      05/27/11 18:28:04.815           ^[[33;1mResetting db_wrapper connection^[[0m <0xb64bc6c0>
01      05/27/11 18:28:04.815           ^[[31;1mQuery failed (): SELECT PK_Bookmark,EK_Users,Position FROM Bookmark WHERE EK_MediaType=1 retry: (nil)^[[0m <0xb64bc6c0>
01      05/27/11 18:28:04.815           ^[[31;1mattempting to use un-initialized lock (0x95b1594) (>5149) ÃÃK¶8ÃK¶ÃÃK¶^A: VDRPlugin.cpp:1425 ^[[0m <0xb64bc6c
05      05/27/11 18:28:05.817           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:06.815           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:07.815           ^[[33;1mConnect() failed, Error Code 111 (Connection refused))^[[0m <0xb64bc6c0>
05      05/27/11 18:28:07.815           ^[[33;1mClientSocket::Connect() not successful^[[0m <0xb64bc6c0>
05      05/27/11 18:28:07.815           ^[[33;1mvoid ClientSocket::Disconnect() on this socket: 0xbf86ccc8 (m_Socket: 141)^[[0m <0xb64bc6c0>
01      05/27/11 18:28:16.001           ^[[31;1mpthread_mutex_trylock returned 22  (0x95b1598) (>5334) Media Plugin: Media_Plugin.cpp:6314 ^[[0m <0xa7ea8b90>
01      05/27/11 18:28:17.011           ^[[31;1mpthread_mutex_trylock returned 22  (0x95b1598) (>5334) Media Plugin: Media_Plugin.cpp:6314 ^[[0m <0xa7ea8b90>

That's how I figured out that it was VDR.

Users / pthread_mutex_trylock in DCERouter.log
« on: May 28, 2011, 01:04:47 am »
I was getting a flood of error messages in /var/log/pluto/DCERouter.log that looked like the following:

01      05/27/11 16:45:32.738           pthread_mutex_trylock returned 22  (0xaac1dcb8) (>10245) Media Plugin: MythBackEnd_Socket.cpp:132  <0x98bfeb90>

I had to scroll up to see what was above the flood of error messages. In my case, it was being caused by VDR. Since I don't use VDR, I ran "sudo apt-get remove vdr" and the problem was fixed.

Users / Re: has dependency problems
« on: May 27, 2011, 10:32:11 pm »
I chrooted into the directory and ran apt-get install pluto-orbiter. It raised dependency issues that went like this:
pluto-orbiter needs pluto-avwizard
pluto-avwizard needs pluto-xine-player
pluto-xine-player needs libxine1
libxine1 needs libmagick10
libmagick10 needs libgraphviz4

Finally, libgraphviz4 allowed me to install it. Then I tried to go back up the chain, but libmagick10 raised the following dependency error:

libmagick10: Depends: libgraphviz4 (>= 2.20.0) but 2.18-1ubuntu2 is to be installed
E: broken packages

I tried apt-get install 2.18-1ubuntu2 but that failed (no such package).

I'm also getting the following errors when I run apt-get update:

Code: [Select]
W: Failed to fetch  404 Not Found [IP: 80]

W: Failed to fetch  Unable to find expected entry  non-free/binary-i386/Packages in Meta-index file (malformed Release file?)

W: Failed to fetch  404 Not Found

W: Failed to fetch  404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.

Any other ideas ? Thanks so much posde for your help.

Users / has dependency problems
« on: May 27, 2011, 03:46:29 am »
I'm getting the following error when I run /usr/pluto/bin/ I have run apt-get update/upgrade on both the CORE and the MD. According to dpkg -l, all of the dependencies listed below are met on both CORE and MD. It says to file a bug report, and I willl. Any other ideas? I've looked at the forums but none of the suggested fixes apply -- my sources.list doesn't really have anything wrong with it.


Code: [Select]
      #### Package pluto-orbiter failed (/tmp/tmp.JyAFY27358) - We wait 10sec and try again - to stop retrying press Ctrl-C.
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      Since you only requested a single operation it is extremely likely that
      the package is simply not installable and a bug report against
      that package should be filed.
      The following information may help to resolve the situation:
      The following packages have unmet dependencies:
        pluto-orbiter: Depends: pluto-avwizard (>= but it is not going to be installed
                       Depends: pluto-avwizard (< but it is not going to be installed
                       PreDepends: xine-ui but it is not going to be installed
      E: Broken packages

The bug has to do with choosing a digital audio source. I didn't feel like fixing the actual bug, so for now, just select stereo and it will skip the Dolby Digital and DTS audio tests. It's easy to manually configure your MD later via the web admin to use a digital output with AC3/DTS.

Users / [SOLVED] Forever MythTV PlugIn loading EPG data
« on: May 23, 2011, 12:58:25 am »
I could never reload my DCE router (without forcing it) because it was waiting at a screen that read: MythTV PlugIn loading EPG data

I investigated further only to find that I was receiving red bits in my /var/log/pluto/DCERouter.log that looked like this: Query failed (): INSERT INTO `capturecard`(videodevice,audiodevice,cardtype,defaultinput,hostname) VALUE (\\\\\\\\\\\\\\\'/dev/video0\\\\\\\\\\\\\\\',\\\\\\\\\\\\\\\'2\\\\\\\\\\\\\\\',\\\\\\\\\\\\\\\'HDPVR\\\\\\\\\\\\\\\',\\\\\\\\\\\\\\\'Component\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\'moon72\\\\\\\\\\\\\\\'); retry: 0

This is the "magic slashes" problem. It has actually been fixed my merkur2k!

Solution: TSCHAK explained to me that it's a problem in the dce repository. In the webadmin choose Advanced -> sqlCVS -> Update. Choose pluto_main, and then check all boxes under the DCE heading and run the update. Be aware that if you have personally customized any of your own dce pluto_main files as I had, don't worry, the update will not affect any files that you customized on your own setup.

Users / Re: Richard Van de Perre (rperre) is gone.
« on: May 06, 2011, 03:42:38 am »
He was the first person to ever help me in the chatroom. So sorry to hear he's gone.


Users / Re: USB-UIRT Sends Repeat Commands
« on: March 25, 2011, 08:16:07 pm »
I fixed the problem by switching to a different remote control. It was explained to me in the IRC channel that the problem was caused by my remote control pulsing IR commands so slowly that the USB-UIRT received each pulse as a separate command. A better quality remote control will pulse the codes faster, and each pulse won't register as a separate command, but rather as one long strung-together command.

Developers / LinuxMCE Scenarios support in Insteon PLM
« on: March 25, 2011, 08:10:09 pm »
I'm writing code so that LinuxMCE will automatically add Insteon devices that are in the same LinuxMCE scenario into an Insteon Group (by updating each insteon devices' ALDB). When the user chooses to activate that scenario it will send an Insteon Group Command (instead of sending separate individual commands to each insteon device, resulting in a staggered response).

I've got the code written that updates the ALDBs of each insteon device accordingly, based on data from pluto_main (queried through the XML_Data_Handler_Plugin).

Now there's one thing I'm trying to figure out: what kind of command should I send from LinxuMCE to the Insteon PLM drivers to trigger the Group command?

Tschak in the IRC channels has recommended the following.

<TSCHAKeee> basically, i would put the devices in a DeviceGroup
<TSCHAKeee> figure out in the plugin if the devices are part of a DeviceGroup
<TSCHAKeee> and if they all belong to the same parent interface
<TSCHAKeee> and then ask if the target interface implements an execute broadcast scenario command
<TSCHAKeee> if so, execute it, passing in the devicegroup
<TSCHAKeee> so the target device can do its mapping of devicegroup to whatever it needs to do internally

Any other thoughts on this problem?

PS: I've also fully implemented support for Insteon Motion Detectors in the Ruby GSD drivers, and I've cleaned up the code. I will commit my changes shortly.

Users / [FIX] Overlapping Buttons in Media Scenarios on UI
« on: February 16, 2011, 03:34:00 am »
Thanks for golgoj4 for this tip.

If you have the problem where media scenarios are overlapping in the UI, just go into the webadmin, choose 'media scenarios' from the left, then choose 'sort scenarios', scroll down to the room in question and simply move one up or down. Reload DCERouter and regen the orbiter and you'll be good again.

Tschak says the root of the problem has to do with a bug in UpdateEntArea that causes iOrder to get miscounted.

Users / USB-UIRT Sends Repeat Commands
« on: February 12, 2011, 02:36:38 am »
With my USB-UIRT, when I press a button on my remote control the USB-UIRT appears very sensitive to the infrared pulses and it repeats each command between one to three times, depending on how gently I can manage to press the button. If I give the button a nice fat smoosh, it definitely ends up sending the command around three times.

Is there a way to add a delay between a series of IR commands sent directly to the MD (such as arrow key commands)? I know that this feature exists for other AV Devices (DVD Player, Television, Roku Box, etc), but what about commands sent *directly to the MD*?

I have looked at the device template for the USB-UIRT, as well as the Advanced menu in the web admin, and I see no way to configure this setting. I've also looked on the USB-UIRT forums and it appears that there is no way to directly configure the USB-UIRT to add a delay between commands. In every case, it is the software utilizing the USB-UIRT that is responsible for managing the number of command repeats (in this case the software is LinuxMCE). I have also followed the logs for my USB-UIRT while sending commands, and even though the log reports only one reception of the IR code, or sometimes zero receptions, the code is repeated rapidly to the MD.

Any ideas? I suppose if I need to add a feature myself, then so be it.

Users / Re: Webadmin takes 10 mins to respond to clicking on AV Equipment
« on: February 05, 2011, 03:39:57 am »
Figured it out.

Change line 2680 in /var/www/lmce-admin/include/

Before:      $cmd = "ssh ".$IPaddress." ";
After:      $cmd = "ssh ".$ipAddress." ";

I'll submit a trac ticket patch.

Users / Re: Insteon
« on: February 04, 2011, 11:01:44 pm »
Many Insteon devices are currently supported, including the powerlinc modem, switchlinc, lamplinc, and keypadlinc. I do know of at least one user who cannot get the Insteon PLM to work with LinuxMCE, for unknown reasons to me.

Just last month I updated the Insteon PLM drivers to include support for Insteon Motion Sensors. Because of that, I have a good understanding of ddamron's drivers, and I might be able to help you if there is a feature that is not included.

I have also been working on a way to create Insteon groups from the LinuxMCE side of things. Currently, Linuxmce handles Insteon devices within lighting scenarios by sending an ON command to each device separately, so if a room has five lights each one will turn on sequentially about one second apart. The proper way to handle this would be to add those devices to an Insteon group and then send a broadcast command. Also, because the drivers are written in Ruby instead of C++, multithreaded ON commands are also not possible unless someone were to rewrite the drivers in C++. I think there is a version of the driver in C++, but I'm not familiar with that.

Pages: [1] 2