Problems with irxevent

Help with using MiniMyth (except Booting)

Moderator: Pablo

Problems with irxevent

Postby Spulit » Mon Apr 27, 2009 12:17 pm

Hi,

I've been using irxevent in MM to pass some X events to some applications like Firefox. However, in MM latest builds, I'm having some difficulties to have this working good. It seems that irxevent doesn't find the current window and the commands I sent through the remote control are not delivered to the currently focused windows. This only works when I connect a keyboard and press any button. From then on, everything starts working good... Any idea of what may be causing this strange behaviour?

Thanks
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Pablo » Mon Apr 27, 2009 4:01 pm

I cannot think of anything that would cause it. With what version did the problem start?
MiniMyth running on an ASUS M3N78-VM and an Acer ApireRevo 3610. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 3699
Joined: Tue Dec 14, 2004 1:13 am
Location: La Jolla

Postby Spulit » Mon Apr 27, 2009 5:29 pm

Hi Pablo,

For me it started to happen in 66b6, but it is likely to happen with previous versions. However, I have a beta of version 65 where it doesn't happen...
Honestly, I can't figure out why it happens...lircd and irexec are working good...irxevent also seems to be working good, it connects to lircd but for some strange reason it doesn't send the X events to CurrentWindow...maybe a focus problem...the strange fact is that when I press any key in the keyboard, it starts to work fine...and I can start/restart irxevent many times from then on and it will keep working good...
Maybe a window manager issue?

Thanks
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Spulit » Thu Apr 30, 2009 4:37 pm

Hi Pablo,

I've been able to find out some more interesting things. I recompiled irxevent in debug mode and I noticed that the irxevent receives the event, finds out the current window correctly, but keeps sending KeyCode=0 to the window, no matter what key you press on the remote control. The KeySim is also correct.
What I don't understand is why it starts to work ok (finding and sending the correct keycodes) after I press any key on the keyboard (it may even be a meta-key like Alt or Ctrl).
Any idea? Has anything changed lately with irxevent?
This guy has exactly the same problem:
http://www.mail-archive.com/xorg@lists. ... 02892.html
I guess that if I compile MM with Xorg 7.4, the problem is solved...I will try..
I think that's why a previous version I had was working...maybe it was compiled with Xorg 7.4...
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Spulit » Mon May 04, 2009 9:37 am

Well...no luck... (with the latest version 66)
In fact, I came up with another problem: Ctrl-Alt-F1 is not working so I cannot enter the shell locally.
Has this anything to do with the kernel version? I'm using the 2.6.26 kernel...

Thanks
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Spulit » Mon May 04, 2009 7:17 pm

One more update:

After checking the Xorg.0.log file, I noticed that there were some errors og XKB not being able to load keymaps because rules file was not finding any components, or something like that (sorry, I don't have log file here..). Since MM 64b10 was working, I copied the folder /usr/share/X11/xkb/rules to the new instalation and...voila! It works! The "base" and "evdev" files in the new MM are smaller (almost half of the size!), when compared to the ones of MM 64b10 that work!
So, I guess the problem is with the package xkeyboard-config, which is the one that provides these files...
Any idea on what has been changed?

Thanks
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Pablo » Tue May 05, 2009 12:04 am

Great job tracking down the problem.

Between those two releases xkeyboard-config was updated from version 1.4 to version 1.5. It appears that changes between 1.4 and 1.5 have resulted the need to include --enable-compat-rules when compiling. After adding it, the files are much more similar in size and content. In addition, the error message in /var/log/Xorg.0.0.log goes away.

I have uploaded a new test build (67b4) with the change. Could you let me know whether or not it fixes the problem?
MiniMyth running on an ASUS M3N78-VM and an Acer ApireRevo 3610. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 3699
Joined: Tue Dec 14, 2004 1:13 am
Location: La Jolla

Postby Spulit » Thu May 07, 2009 1:26 am

Hi Pablo!

Thanks for that! I'm now a few days on vacation, so I cannot test that at the moment, but I'm sure the fix will do the job! As soon as I'm back from vacations I will test that!

Thanks!
Spulit
Contributor
 
Posts: 181
Joined: Tue Dec 30, 2008 4:54 pm

Postby Pablo » Thu May 07, 2009 1:35 am

Spulit wrote:Thanks for that! I'm now a few days on vacation, so I cannot test that at the moment, but I'm sure the fix will do the job! As soon as I'm back from vacations I will test that!!

There is no hurry. Enjoy your vacation!
MiniMyth running on an ASUS M3N78-VM and an Acer ApireRevo 3610. Find out more at my MythTV page.
Pablo
Site Admin
 
Posts: 3699
Joined: Tue Dec 14, 2004 1:13 am
Location: La Jolla


Return to General Help

Who is online

Users browsing this forum: No registered users and 1 guest