Keynames in keyboard-mapping

problems with keyboard, lirc or evdev

Moderator: Moderator

bluescreen2004
Posts: 2
Joined: Sun May 27, 2007 5:35 pm

Keynames in keyboard-mapping

Postby bluescreen2004 » Sun May 27, 2007 5:43 pm

Hi,

I want to use mms on an S100 settop box. This has a remote control which sends for numerical keys the normal numerical keycodes and on several other keys it sends the numerical keypad keycodes (not LIRC, it simulates a PS/2 keyboard).

Can MMS distinguish between these two numerical keys (e.g. "1" <> "NUM-1") ?

How are the names of several special keys like the Numpad minus sign. I tried their SDL names like [-] but it does not work.

I also tried to understand the keyboard sourcecode but I cannot understand C++ :cry: only normal C

Thank you for help
Bluescreen

samoth
Posts: 23
Joined: Mon Mar 05, 2007 2:30 pm

Postby samoth » Sun May 27, 2007 5:51 pm

Use zenegalircd-20061222.tar.gz

LIRC Daemon for the Zenega/S100 source package.

see http://zen.htpc-forum.de/page5/page5.html

Regards, Thomas :wink:

P.S: If you a German, see http://forum.zenega-user.de/index.php?showtopic=4503&hl=zenegalircd

bluescreen2004
Posts: 2
Joined: Sun May 27, 2007 5:35 pm

Postby bluescreen2004 » Mon May 28, 2007 10:26 am

I don't think that zenegalirc is the solution. It is for the Zenega 101 box which has another frontpanel/IR-receiver.

If you press a key on the remote of the S100 you see the key e.g. on the console, not on LIRC. So the IR receiver seems to simulate keypresses.

BTW, I already loaded the zenegalirc daemon and it seems to do nothing.

Bye
Bluescreen

samoth
Posts: 23
Joined: Mon Mar 05, 2007 2:30 pm

Postby samoth » Mon May 28, 2007 1:08 pm

There is a zenslack distrubution with integrated vdr support, which is running on both boxes (S101 and S100) with the same zenegalircd.

See rc.local from the distribution:

Code: Select all

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:

# Zenslack functions startup

. /etc/zenslack/zen-config

if [ ${ZS_SWAP} == yes ]; then
  if [ ! -f ${ZS_SWAP_FILE} ]; then
    dd if=/dev/zero of=${ZS_SWAP_FILE} bs=1024 count=65535
    /sbin/mkswap ${ZS_SWAP_FILE}
  fi
  /sbin/swapon ${ZS_SWAP_FILE}
fi

if [ ${WLAN} == yes ]; then
  /sbin/iwconfig eth1 essid ${WLA_ESSID} mode managed enc ${WLA_KS}
  /sbin/ifconfig eth1 up
  if [ ${WLA_USE_DHCP} == yes ]; then
    /sbin/dhcpcd -h zenslack-wl -t 20 eth1
  else
    /sbin/ifconfig eth1 ${WLA_IP} netmask ${WLA_NM}
  fi
fi

if [ ${MODEL} == S101 ]; then
  /usr/sbin/zenegafbd
fi

/usr/sbin/zenegalircd
/usr/local/bin/irexec /etc/lirc.conf &

export PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
/usr/X11R6/bin/xinit /etc/X11/xinit/xinitrc &> /dev/null &

if [ ${ZS_VDR_LOCAL} == yes ]; then
  /etc/zenslack/runvdr.sh&
fi
 


Regards, Thomas :wink:

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Postby naicheben » Fri Jun 01, 2007 7:14 pm

As far as I understand zenegalircd is it a replacement for Lircd. I think you will have to setup zenegalircd like you would do with lircd and connect to zenegalircd like you would connect to lircd ("hello"). Starting mms with -i lircd will enable mms to receive from the "keyboard"

bell
Posts: 13
Joined: Fri Jun 15, 2007 8:30 pm

Postby bell » Fri Jun 15, 2007 8:40 pm

current i use the evdev input device for my S100.
with evdev the mobile keys works for searches (2ABC)(3DEF)
and "1" is != "NUM-1" ("NUM-1" = "KP1")

but i have a other problem with evdev and view movies.
all keys that pressed during play a movie in mplayer are passed on mms over evdev and create a unpredictable hold back.


Return to “input”

Who is online

Users browsing this forum: No registered users and 1 guest