[mythtv-users] lirc acting very bizarrely

Gabe Rubin gaberubin at gmail.com
Tue Nov 29 05:59:08 UTC 2011


On Mon, Nov 28, 2011 at 8:59 PM, Gabe Rubin <gaberubin at gmail.com> wrote:
> On Mon, Nov 28, 2011 at 8:18 PM, Gabe Rubin <gaberubin at gmail.com> wrote:
>> On Mon, Nov 28, 2011 at 8:06 PM, Andrew Stadt <acstadt at stadt.ca> wrote:
>>> On 28/11/2011 10:33 PM, Gabe Rubin wrote:
>>>> On Mon, Nov 28, 2011 at 7:27 PM, Gabe Rubin<gaberubin at gmail.com>  wrote:
>>>>> On Mon, Nov 28, 2011 at 7:16 PM, Gabe Rubin<gaberubin at gmail.com>  wrote:
>>>>>> I have fixed just about all the issues from my fedora 14 to 16
>>>>>> upgrade.  However, a new issue just spontaneously came up.  My remote
>>>>>> was working fine and now, all of a sudden, it is not.  Half the keys
>>>>>> don't work or seem to be mapped to functions that are not defined in
>>>>>> my lircrc file.
>>>>>>
>>>>>> For example, the OK does nothing.  When I hit the Play key, a big icon
>>>>>> pops up that is a circle with a slash through it (international no
>>>>>> sign).  When I hit the keys bound to page up and page down, a volume
>>>>>> indicator pops up and adjusts the volume.  I have these keys set for
>>>>>> something different in my lircrc file.
>>>>>>
>>>>>> I know this is not a myth issue because when I quit myth, I still get
>>>>>> these icons with these buttons.  I can't for the life of me figure out
>>>>>> what application is doing this as I have not really installed anything
>>>>>> since it was working.  Any ideas?
>>>>>>
>>>>> I somehow screwed things up by adding the following to  /etc/default/grub :
>>>>> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rdblacklist=nouveau
>>>>> gfxpayload=1024x768x24 vmalloc=256M"
>>>>> and then updating grub by doing  grub2-mkconfig>  /boot/grub2/grub.cfg
>>>>>   per the recommendation of someone to fix other issues.  Not sure how
>>>>> any of that would have impacted lirc.
>>>>>
>>>> Sorry, replying to myself again.  When I rebooted another time, the
>>>> problem appears again.  These are the processes that are currently
>>>> running:
>>>> [mythtv at localhost ~]$ ps -A
>>>>    PID TTY          TIME CMD
>>>>      1 ?        00:00:01 systemd
>>>>      2 ?        00:00:00 kthreadd
>>>>      3 ?        00:00:00 ksoftirqd/0
>>>>      4 ?        00:00:00 kworker/0:0
>>>>      5 ?        00:00:00 kworker/u:0
>>>>      6 ?        00:00:00 migration/0
>>>>      7 ?        00:00:00 watchdog/0
>>>>      8 ?        00:00:00 cpuset
>>>>      9 ?        00:00:00 khelper
>>>>     10 ?        00:00:00 kdevtmpfs
>>>>     11 ?        00:00:00 netns
>>>>     12 ?        00:00:00 sync_supers
>>>>     13 ?        00:00:00 bdi-default
>>>>     14 ?        00:00:00 kintegrityd
>>>>     15 ?        00:00:00 kblockd
>>>>     16 ?        00:00:00 ata_sff
>>>>     17 ?        00:00:00 khubd
>>>>     18 ?        00:00:00 md
>>>>     19 ?        00:00:00 kworker/0:1
>>>>     21 ?        00:00:00 kswapd0
>>>>     22 ?        00:00:00 ksmd
>>>>     23 ?        00:00:00 khugepaged
>>>>     24 ?        00:00:00 fsnotify_mark
>>>>     25 ?        00:00:00 crypto
>>>>     31 ?        00:00:00 kthrotld
>>>>     32 ?        00:00:00 kworker/u:1
>>>>     33 ?        00:00:00 scsi_eh_0
>>>>     34 ?        00:00:00 scsi_eh_1
>>>>     35 ?        00:00:00 scsi_eh_2
>>>>     36 ?        00:00:00 scsi_eh_3
>>>>     37 ?        00:00:00 kworker/u:2
>>>>     38 ?        00:00:00 kworker/u:3
>>>>     39 ?        00:00:00 kworker/u:4
>>>>     40 ?        00:00:00 kpsmoused
>>>>     41 ?        00:00:00 kworker/0:2
>>>>     42 ?        00:00:00 kworker/u:5
>>>>    315 ?        00:00:00 scsi_eh_4
>>>>    327 ?        00:00:00 scsi_eh_5
>>>>    366 ?        00:00:00 firewire
>>>>    416 ?        00:00:00 kdmflush
>>>>    418 ?        00:00:00 kdmflush
>>>>    434 ?        00:00:00 kdmflush
>>>>    473 ?        00:00:00 jbd2/dm-0-8
>>>>    474 ?        00:00:00 ext4-dio-unwrit
>>>>    519 ?        00:00:00 kauditd
>>>>    521 ?        00:00:00 udevd
>>>>    523 ?        00:00:00 systemd-stdout-
>>>>    559 ?        00:00:00 rpciod
>>>>    569 ?        00:00:01 kworker/0:3
>>>>    624 ?        00:00:00 udevd
>>>>    625 ?        00:00:00 udevd
>>>>    744 ?        00:00:00 ivtv0
>>>>    748 ?        00:00:00 flush-253:0
>>>>    753 ?        00:00:00 hd-audio0
>>>>    781 ?        00:00:00 hd-audio1
>>>>    800 ?        00:00:00 msp34xx
>>>>    882 ?        00:00:00 kdmflush
>>>>    897 ?        00:00:00 kdmflush
>>>>    918 ?        00:00:00 jbd2/sda1-8
>>>>    919 ?        00:00:00 ext4-dio-unwrit
>>>>    933 ?        00:00:00 jbd2/dm-4-8
>>>>    934 ?        00:00:00 ext4-dio-unwrit
>>>>    978 ?        00:00:00 atd
>>>>    980 ?        00:00:00 NetworkManager
>>>>    982 ?        00:00:00 abrtd
>>>>    983 ?        00:00:00 ntpd
>>>>    985 ?        00:00:00 systemd-logind
>>>>    988 ?        00:00:00 rsyslogd
>>>>    998 ?        00:00:00 gpm
>>>>   1001 ?        00:00:00 dbus-daemon
>>>>   1042 ?        00:00:00 polkitd
>>>>   1071 ?        00:00:00 modem-manager
>>>>   1082 ?        00:00:00 bluetoothd
>>>>   1192 ?        00:00:00 sshd
>>>>   1215 ?        00:00:00 rpcbind
>>>>   1230 ?        00:00:00 rpc.idmapd
>>>>   1231 ?        00:00:00 flush-8:0
>>>>   1232 ?        00:00:00 flush-253:4
>>>>   1239 ?        00:00:00 dhclient
>>>>   1243 ?        00:00:00 rpc.statd
>>>>   1247 ?        00:00:00 lircd
>>>>   1372 ?        00:00:00 sendmail
>>>>   1409 ?        00:00:03 mysqld
>>>>   1450 ?        00:00:00 /usr/sbin/httpd
>>>>   1479 ?        00:00:00 sendmail
>>>>   1508 ?        00:00:00 /usr/sbin/httpd
>>>>   1509 ?        00:00:00 /usr/sbin/httpd
>>>>   1510 ?        00:00:00 /usr/sbin/httpd
>>>>   1511 ?        00:00:00 /usr/sbin/httpd
>>>>   1512 ?        00:00:00 /usr/sbin/httpd
>>>>   1513 ?        00:00:00 /usr/sbin/httpd
>>>>   1514 ?        00:00:00 /usr/sbin/httpd
>>>>   1515 ?        00:00:00 /usr/sbin/httpd
>>>>   1516 ?        00:00:00 /usr/sbin/httpd
>>>>   1517 ?        00:00:00 mythbackend
>>>>   1525 ?        00:00:00 gdm-binary
>>>>   1547 ?        00:00:00 gdm-simple-slav
>>>>   1552 tty1     00:00:00 Xorg
>>>>   1565 tty4     00:00:00 agetty
>>>>   1566 tty5     00:00:00 agetty
>>>>   1567 tty3     00:00:00 agetty
>>>>   1568 tty2     00:00:00 agetty
>>>>   1569 tty6     00:00:00 agetty
>>>>   1581 ?        00:00:00 gdm-session-wor
>>>>   1582 ?        00:00:00 console-kit-dae
>>>>   1583 ?        00:00:00 accounts-daemon
>>>>   1650 ?        00:00:00 gnome-session
>>>>   1661 ?        00:00:00 dbus-launch
>>>>   1662 ?        00:00:00 dbus-daemon
>>>>   1723 ?        00:00:00 imsettings-daem
>>>>   1727 ?        00:00:00 gvfsd
>>>>   1739 ?        00:00:00 gvfs-fuse-daemo
>>>>   1833 ?        00:00:00 gconfd-2
>>>>   1838 ?        00:00:00 gnome-settings-
>>>>   1839 ?        00:00:00 gnome-keyring-d
>>>>   1850 ?        00:00:00 upowerd
>>>>   1889 ?        00:00:00 cupsd
>>>>   1891 ?        00:00:00 gsd-printer
>>>>   1893 ?        00:00:00 packagekitd
>>>>   1895 ?        00:00:00 gvfs-gdu-volume
>>>>   1901 ?        00:00:00 udisks-daemon
>>>>   1902 ?        00:00:00 udisks-daemon
>>>>   1909 ?        00:00:00 gvfs-afc-volume
>>>>   1912 ?        00:00:00 gvfs-gphoto2-vo
>>>>   1915 ?        00:00:00 colord
>>>>   1918 ?        00:00:00 pulseaudio
>>>>   1919 ?        00:00:00 rtkit-daemon
>>>>   1927 ?        00:00:00 metacity
>>>>   1929 ?        00:00:00 dconf-service
>>>>   1933 ?        00:00:00 gnome-panel
>>>>   1937 ?        00:00:00 gnome-fallback-
>>>>   1938 ?        00:00:00 tracker-store
>>>>   1939 ?        00:00:00 gdu-notificatio
>>>>   1940 ?        00:00:00 gnome-sound-app
>>>>   1944 ?        00:00:00 nm-applet
>>>>   1946 ?        00:00:00 evolution-alarm
>>>>   1948 ?        00:00:00 tracker-miner-f
>>>>   1951 ?        00:00:00 notification-da
>>>>   1954 ?        00:00:00 bluetooth-apple
>>>>   1958 ?        00:00:00 abrt-applet
>>>>   1960 ?        00:00:00 tracker-miner-f
>>>>   1989 ?        00:00:00 irexec
>>>>   2023 ?        00:00:03 mythfrontend
>>>>   2026 ?        00:00:00 polkit-gnome-au
>>>>   2056 ?        00:00:00 wnck-applet
>>>>   2058 ?        00:00:00 clock-applet
>>>>   2060 ?        00:00:00 notification-ar
>>>>   2098 ?        00:00:00 mythfrontend<defunct>
>>>>   2099 ?        00:00:00 mythfrontend<defunct>
>>>>   2100 ?        00:00:00 mythfrontend<defunct>
>>>>   2101 ?        00:00:00 mythfrontend<defunct>
>>>>   2111 ?        00:00:00 sshd
>>>>   2113 ?        00:00:00 sshd
>>>>   2114 pts/0    00:00:00 bash
>>>>   2147 pts/0    00:00:00 ps
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users at mythtv.org
>>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>> cat /sys/class/rc/rc0/protocols
>>>
>>> I'm guessing that you're expecting lircd to handle everything, but
>>> chances are the new ir input layer is actually handling it.  If lircd is
>>> installed and running, you can
>>> echo lirc > /sys/class/rc/rc0/protocols
>>> which will allow lircd to do its interpretation, but will keep the input
>>> layer from doing  its thing.
>>>
>>> Just a guess, I gave up on FC??
>>>
>>> Andrew.
>>>
>>
>> I don't know, I will give that a shot.  I took screenshots of the
>> icons that pop up, maybe someone knows what program this is:
>> mustbethemoney.mine.nu:8080/shot.png
>> mustbethemoney.mine.nu:8080/shot2.png
>>
>> Thanks
>>
>
> I believe I have narrowed it down somewhat.  It seems to be a process
> that begins with gnome-settings- (when I hammer on the button
> repeatedly, that process jumps to the top of the list in top).
>
> How do I get gnome to not use the remote?  I don't even know how I set
> it up to use the remote in the first place.  Also, I can't use irw
> anymore.  When I run it, no output goes to the terminal when I hit
> keys.  This is very frustrating because it was working a little while
> ago and have no idea what I did to make this happen.
>

Some new discoveries while googling.

Apparently, xorg post 1.8 will scan devices using udev and use them as
an input device.  This is confirmed in my xorg log file:
[    25.143] (II) config/udev: Adding input device i2c IR (Hauppauge
WinTV PVR-350 (/dev/input/event3)
[    25.143] (**) i2c IR (Hauppauge WinTV PVR-350: Applying InputClass
"evdev keyboard catchall"
[    25.143] (**) i2c IR (Hauppauge WinTV PVR-350: Applying InputClass
"system-setup-keyboard"
[    25.143] (II) Using input driver 'evdev' for 'i2c IR (Hauppauge
WinTV PVR-350'
[    25.143] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    25.143] (**) i2c IR (Hauppauge WinTV PVR-350: always reports core events
[    25.144] (**) evdev: i2c IR (Hauppauge WinTV PVR-350: Device:
"/dev/input/event3"
[    25.144] (--) evdev: i2c IR (Hauppauge WinTV PVR-350: Vendor 0 Product 0
[    25.144] (--) evdev: i2c IR (Hauppauge WinTV PVR-350: Found keys
[    25.144] (II) evdev: i2c IR (Hauppauge WinTV PVR-350: Configuring
as keyboard
[    25.144] (**) Option "config_info"
"udev:/sys/devices/virtual/rc/rc0/input3/event3"
[    25.144] (II) XINPUT: Adding extended input device "i2c IR
(Hauppauge WinTV PVR-350" (type: KEYBOARD, id 9)


I found instructions here for how to stop this behavior:
http://wiki.xbmc.org/index.php?title=HOW-TO:Setup_Streamzap_PC_Remote_for_Linux#Xinput:_Preventing_Streamzap_from_becoming_a_keyboard
but I don't use a streamzap remote.

I added the following to my xorg.conf:
Section "InputClass"
  Identifier "Ignore remote IR"
  MatchProduct "i2c IR (Hauppauge WinTV PVR-350"
  MatchIsKeyboard "true"
  Option "Ignore" "true"
EndSection

and restarted xorg.  However, now the icons don't come up but my
remote does nothing for myth also.  Not sure why xorg does this now,
but its getting very frustrating.  I can't be the only one to have
dealt with this.


More information about the mythtv-users mailing list