Kirjoittaja Aihe: 11.04 ja Imon PAD kaukosäädin  (Luettu 1591 kertaa)

realpet

  • Käyttäjä
  • Viestejä: 167
    • Profiili
11.04 ja Imon PAD kaukosäädin
« : 16.04.12 - klo:19.13 »
Osaisiko joku vääntää rautalangasta miten 11.04:ssä ir-kaukosäätimen pitäisi toimia?
10.10:ssä toimi otsikon mukainen kaukosäädin lirc:in kanssa ihan ok. 11.04-päivityksen jälkeen tilanne on seuraava kun painan kaukosäätimen Play-, Go-  ja Enter-nappeja (lircd ei ajossa):
Koodia: [Valitse]
evtest /dev/input/event5
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x15c2 product 0x38 version 0x1
Input device name: "iMON Remote (15c2:0038)"
Supported events:
  Event type 0 (Sync)
  Event type 1 (Key)
    Event code 1 (Esc)
    Event code 14 (Backspace)
    Event code 28 (Enter)
    Event code 57 (Space)
    Event code 103 (Up)
    Event code 105 (Left)
    Event code 106 (Right)
    Event code 108 (Down)
    Event code 113 (Mute)
    Event code 114 (VolumeDown)
    Event code 115 (VolumeUp)
    Event code 116 (Power)
    Event code 119 (Pause)
    Event code 127 (Compose)
    Event code 128 (Stop)
    Event code 139 (Menu)
    Event code 148 (Prog1)
    Event code 154 (CycleWindows)
    Event code 156 (Bookmarks)
    Event code 161 (EjectCD)
    Event code 162 (EjectCloseCD)
    Event code 167 (Record)
    Event code 168 (Rewind)
    Event code 174 (Exit)
    Event code 204 (?)
    Event code 207 (Play)
    Event code 208 (Fast Forward)
    Event code 212 (Camera)
    Event code 226 (Media)
    Event code 272 (LeftBtn)
    Event code 273 (RightBtn)
    Event code 359 (Time)
    Event code 368 (Language)
    Event code 370 (Subtitle)
    Event code 372 (Zoom)
    Event code 374 (Keyboard)
    Event code 375 (Screen)
    Event code 377 (TV)
    Event code 389 (DVD)
    Event code 392 (Audio)
    Event code 393 (Video)
    Event code 402 (ChannelUp)
    Event code 403 (ChannelDown)
    Event code 407 (Next)
    Event code 412 (Previous)
    Event code 438 (?)
    Event code 512 (?)
    Event code 513 (?)
    Event code 514 (?)
    Event code 515 (?)
    Event code 516 (?)
    Event code 517 (?)
    Event code 518 (?)
    Event code 519 (?)
    Event code 520 (?)
    Event code 521 (?)
    Event code 522 (?)
    Event code 523 (?)
  Event type 4 (Misc)
    Event code 4 (ScanCode)
  Event type 20 (Repeat)
Testing ... (interrupt to exit)
Event: time 1334591381.330516, type 4 (Misc), code 4 (ScanCode), value 2a8115b7
Event: time 1334591381.330527, type 1 (Key), code 207 (Play), value 1
Event: time 1334591381.330528, -------------- Report Sync ------------
Event: time 1334591381.410518, type 1 (Key), code 207 (Play), value 0
Event: time 1334591381.410525, -------------- Report Sync ------------
Event: time 1334591385.482565, type 4 (Misc), code 4 (ScanCode), value 2ab195b7
Event: time 1334591385.482577, type 1 (Key), code 148 (Prog1), value 1
Event: time 1334591385.482578, -------------- Report Sync ------------
Event: time 1334591385.578569, type 1 (Key), code 148 (Prog1), value 0
Event: time 1334591385.578576, -------------- Report Sync ------------
Event: time 1334591388.826609, type 4 (Misc), code 4 (ScanCode), value 2000028
Event: time 1334591388.826621, type 1 (Key), code 28 (Enter), value 1
Event: time 1334591388.826622, -------------- Report Sync ------------
Event: time 1334591388.954612, type 1 (Key), code 28 (Enter), value 0
Event: time 1334591388.954618, -------------- Report Sync ------------
Koodia: [Valitse]
ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1334591381.330516: event MSC: scancode = 2a8115b7
1334591381.330527: event key down: KEY_PLAY (0x00cf)
1334591381.330528: event sync
1334591381.410518: event key up: KEY_PLAY (0x00cf)
1334591381.410525: event sync
1334591385.482565: event MSC: scancode = 2ab195b7
1334591385.482577: event key down: KEY_PROG1 (0x0094)
1334591385.482578: event sync
1334591385.578569: event key up: KEY_PROG1 (0x0094)
1334591385.578576: event sync
1334591388.826609: event MSC: scancode = 2000028
1334591388.826621: event key down: KEY_ENTER (0x001c)
1334591388.826622: event sync

1334591388.954612: event key up: KEY_ENTER (0x001c)
1334591388.954618: event sync

Nyt haluaisin mythtv:n jotenkin mäppäävän esim. tuon Enter-key:n toimintoon down, vanhassa elämässä .mythtv/lircrc:ssä se tapahtui konfiguraatiolla

Koodia: [Valitse]
begin
    prog = mythtv
    button = KEY_ENTER
    config = Down
end

/lib/udev/rc_keymaps/imon_pad -tiedostossa jota käytin komennossa
Koodia: [Valitse]
ir-keytable -c -w /lib/udev/rc_keymaps/imon_pad on noille napeille seuraavat määritykset:
Koodia: [Valitse]
0x2a8115b7 KEY_PLAY
0x2a8315b7 KEY_PLAY
0x02000028 KEY_ENTER
0x28a195b7 KEY_ENTER
mutta esim tuolle Go-napille (Prog1) ei ole määritystä

ja tässä vaiheessa multa loppuu ymmärrys. Kun käynnistän lircd:n ja kokeilen kaukosäädintä mytht:n kanssa niin
- Enter-nappi tekee enterin
- Go/Prog1 ja Play -napit eivät tee mitään
sama tulos jos lircd ei ole ajossa.
Ja sama tulos irw-komennolla

samihs72

  • Käyttäjä
  • Viestejä: 846
    • Profiili
Vs: 11.04 ja Imon PAD kaukosäädin
« Vastaus #1 : 16.04.12 - klo:21.02 »
Moi! Löytyykö /usr/share/lirc/remotes/imon/ hakemistosta lircd.conf.imon-antec-veris filua? Joskus Mythbuntu 9.04:n aikaan hain itse tuon filun täältä ja kopioin sen tuohon /usr/share/lirc/remotes/imon/ hakemistoon.
Sitten kommentoin /etc/lirc/lircd.conf filusta muut rivit ja lisäsin sinne tämän rivin:
Koodia: [Valitse]
include "/usr/share/lirc/remotes/imon/lircd.conf.imon-antec-veris"
Tämän jälkeen käynnistä lirc uudelleen...
Koodia: [Valitse]
sudo /etc/init.d/lirc restart

Sitten katsot irw-komennolla, mikä kaukosäätimesi nimi on ja muokkaat sen ~./lirc/ filuihin mythtv, vlc, mplayer ja totem kaukosäätimen tyyppi oikeaksi, joka komentoon, jos ei ole oikein jo valmiiksi.
mulla on kaukosäätimen  nimi on mx200.

En tiedä auttaako tämä mutta kokeile, jos et muuta keksi..
Desktop:HP Pavilion h8-1111sc Core i5-2320/8 GB/1.5 TB/GeForce GT 530 2 GB/Windows 10 64-bit,  Ubuntu 24.04 Noble Numbat
RPi 4B Nextcloudpi

realpet

  • Käyttäjä
  • Viestejä: 167
    • Profiili
Vs: 11.04 ja Imon PAD kaukosäädin
« Vastaus #2 : 17.04.12 - klo:11.48 »
Sitten katsot irw-komennolla, mikä kaukosäätimesi nimi on ja muokkaat sen ~./lirc/ filuihin mythtv, vlc, mplayer ja totem kaukosäätimen tyyppi oikeaksi, joka komentoon, jos ei ole oikein jo valmiiksi.
mulla on kaukosäätimen  nimi on mx200.

En tiedä auttaako tämä mutta kokeile, jos et muuta keksi..

Käsittääkseni tuo ei enää ole validia 10.10:stä eteenpäin.
Eli 10.10:ssä jouduin muuttamaan konfiguraation tämän linkin: http://www.mythtv.org/wiki/Soundgraph_iMON_Antec_Veris_Mythbuntu_10.10 mukaiseksi eli niin että lirc käyttää devinput-deviceä.

Eli kake toimii sinällään koska sekä evtest että ir-keytable antavat indikaation nappien painamisesta. En ehtinyt testaamaan auttaako tilannetta devinputin suhteen se, että /lib/udev/rc_keymaps/imon_pad tiedostoon vaan lisää nuo puuttuvat napit.
Sen testasin että kun ko. tiedostoon vaihdoin rivin
0x02000028 KEY_ENTER riviksi
0x02000028 KEY_DOWN niin ko. napin painaminen toimi mythtv:ssäkin down-toiminteena.
Ongelmaksi muodostuvat nappien mäppäämiset tiettyhin toimintoihin, esim. 10.10:ssä KEY_PLAY mäppäys on seuraava:
Koodia: [Valitse]
begin
    prog = mythtv
    button = KEY_PLAY
    config = p
end
mutta koska en saa lirc:iä toimimaan niin nuo lircrc:ssä olevat osoitukset eivät toimi.

- Petri