[mythtv-users] ***SPAM*** Caveats in upgrading from Ubuntu 18.04 + MythTV 29.1 to something newer?

Paul Gardiner lists at glidos.net
Fri Mar 10 14:00:31 UTC 2023


On 10/03/2023 11:45, Stephen Worthington wrote:
> On Fri, 10 Mar 2023 10:24:43 +0000, you wrote:
> 
>> On 09/03/2023 23:27, Will Dormann wrote:
>>> Hi folks,
>>> .
>>> .
>>> .
>>>
>>> Having skimmed through this list from time to time, I seem to recall
>>> seeing messages along the line of "lirc doesn't work anymore unless you
>>> do <blah>", or something similar.
>>
>>
>> I went through the swap from lirc to evdev last year. I build the disc
>> image for my frontend with kiwi-ng and have the recipe in a git
>> repository here: https://github.com/Glidos/kiwi-mythfrontend
>>
>> Looking back, I can see that I ...
>>
>> * Removed lirc from the system including all the old config and tables
>>
>> * Added a package called v4l-utils (may be called something else in
>> distros other than openSuSE)
>>
>> * Created a file called rc6_mce in /etc/rc_keymaps, containing
>>
>> 0x800f0400 KEY_0
>> 0x800f0401 KEY_1
>> 0x800f0402 KEY_2
>> 0x800f0403 KEY_3
>> 0x800f0404 KEY_4
>> 0x800f0405 KEY_5
>> 0x800f0406 KEY_6
>> 0x800f0407 KEY_7
>> 0x800f0408 KEY_8
>> 0x800f0409 KEY_9
>> 0x800f040c KEY_T
>> 0x800f040d KEY_M
>> 0x800f040f KEY_I
>> 0x800f0410 KEY_F11
>> 0x800f0411 KEY_F10
>> 0x800f0412 KEY_UP
>> 0x800f0413 KEY_DOWN
>> 0x800f0414 KEY_RIGHTBRACE
>> 0x800f0415 KEY_LEFTBRACE
>> 0x800f0416 KEY_ENTER
>> 0x800f0417 KEY_R
>> 0x800f0418 KEY_P
>> 0x800f0419 KEY_O
>> 0x800f041a KEY_Z
>> 0x800f041b KEY_Q
>> 0x800f041c KEY_T
>> 0x800f041d KEY_T
>> 0x800f041e KEY_UP
>> 0x800f041f KEY_DOWN
>> 0x800f0420 KEY_LEFT
>> 0x800f0421 KEY_RIGHT
>> 0x800f0422 KEY_ENTER
>> 0x800f0423 KEY_ESC
>> 0x800f0426 KEY_S
>>
>>
>> I think I may have come up with those codes by running a program that
>> displayed them while pressing keys on the remote, but I can't off hand
>> remember the name of the program.
> 
> If you go down that route, remember that the remote can only be used
> for one program (MythTV).  I always need to use mplayer as an
> alternative player from mythfrontend, as I have quite a few old .wmv
> files and some DVDs that MythTV can not play properly.  So using
> direct key mappings would not work for using the remote with
> mythfrontend and mplayer.

Yes, I was aware of that. Have you found an alternative method that 
avoids that limitation.

> Your rc6_mce file is in the old format.  For Ubuntu 22.04, it would
> need to be converted to .toml format, which looks like this where I
> have copied the original and added one new key assignment that was
> missing:
> 
> root at crw-pvr:/etc/rc_keymaps# cat haupp.toml
> [[protocols]]
> name = "haupp"
> protocol = "unknown"
> [protocols.scancodes]
> 0x1e00 = "KEY_0"
> 0x1e01 = "KEY_1"
> 0x1e02 = "KEY_2"
> 0x1e03 = "KEY_3"
> 0x1e04 = "KEY_4"
> 0x1e05 = "KEY_5"
> 0x1e06 = "KEY_6"
> 0x1e07 = "KEY_7"
> 0x1e08 = "KEY_8"
> 0x1e09 = "KEY_9"
> 0x1e0a = "KEY_KPASTERISK"
> 0x1e0b = "KEY_RED"
> 0x1e0c = "KEY_RADIO"
> 0x1e0d = "KEY_MENU"
> 0x1e0e = "KEY_GRAVE"
> 0x1e0f = "KEY_MUTE"
> 0x1e10 = "KEY_VOLUMEUP"
> 0x1e11 = "KEY_VOLUMEDOWN"
> 0x1e12 = "KEY_CHANNEL"
> 0x1e14 = "KEY_UP"
> 0x1e15 = "KEY_DOWN"
> 0x1e16 = "KEY_LEFT"
> 0x1e17 = "KEY_RIGHT"
> 0x1e18 = "KEY_VIDEO"
> 0x1e19 = "KEY_AUDIO"
> 0x1e1a = "KEY_IMAGES"
> 0x1e1b = "KEY_EPG"
> 0x1e1c = "KEY_TV"
> 0x1e1e = "KEY_NEXT"
> 0x1e1f = "KEY_BACK"
> 0x1e20 = "KEY_CHANNELUP"
> 0x1e21 = "KEY_CHANNELDOWN"
> 0x1e24 = "KEY_LAST"
> 0x1e25 = "KEY_OK"
> 0x1e29 = "KEY_BLUE"
> 0x1e2e = "KEY_GREEN"
> 0x1e30 = "KEY_PAUSE"
> 0x1e32 = "KEY_REWIND"
> 0x1e34 = "KEY_FASTFORWARD"
> 0x1e35 = "KEY_PLAY"
> 0x1e36 = "KEY_STOP"
> 0x1e37 = "KEY_RECORD"
> 0x1e38 = "KEY_YELLOW"
> 0x1e3b = "KEY_GOTO"
> 0x1e3d = "KEY_POWER"
> 
> # JSW additions
> 0x1e27 = "KEY_ENTER"

Interesting, thanks. Do you know any good sources describing the 
relationships between these formats. Sounds like something I should read 
up on.


More information about the mythtv-users mailing list