evdev works not under internet-radio, help needed

problems with keyboard, lirc or evdev

Moderator: Moderator

cezar
Posts: 18
Joined: Fri Jan 30, 2009 2:58 pm
Location: Germany

evdev works not under internet-radio, help needed

Postby cezar » Sat Aug 28, 2010 9:48 pm

hi folks,

I installed Debian Lenny 5.0.5 on an old machine using a net installation CD. After installing the base system I added the sources for MMS in /etc/apt/sources.list and installed MMS. My idea is to build in the computer inside an old VCR and use it as Internet-Radio, Audio-CD player and Ogg and MP3 player. Other features like movies, pictures and games are not needed and wanted.

For this purpose I explicit need a working evdev-input.

Here is what I have and what I have done:
Kernel: 2.6.26-2-686
MMS-Version: 1.1.1
Gamepad: ID 07b5:0312 Mega World International, Ltd Gamepad
It is a PS2 like gamepad for the USB interface.

Here are my configuration files:
/etc/mms/EvdevConfig

Code: Select all

### EVDEV ####

version = 1

# Path to the evdev device
#
evdev_dev = /dev/input/event1



/etc/mms/input/evdev/default

Code: Select all

#########################################
# Example configuration file for evdev input based on Playstation 2 remote
#
# Syntax:
# mode, command, key, multiple keypresses
#
# some modes inherit from other modes, which means that you can't
# define the same key in both. Otherwise you are free to use the same
# keys.
#
# all inherit from general and audio_general
# all audio modes inherit from audio_general
# choose_playlist and playlist inherit from playlist_general
#
# For more information see: http://mms.kicks-ass.org/wiki/index.php/Config_file

version = 6

general,prev,ThumbBtn,yes
general,next,ThumbBtn2,yes
general,left,Trigger,yes
general,right,TopBtn,yes

general,back,TopBtn2
general,action,BaseBtn

general,second_action,BaseBtn2



So with triangle I go next, with X prev, circle is right and square left.
When I start MMS a can navigate through and exit with the gamepad buttons. When I go inside Play Internet Radio no single button works. The same is with Search. In Options and Themes all buttons work fine.
I have to test Play audio from harddrive and Play an audio cd and see if they work.

Any idea how to fix this problem?
Thank you for all your help. The evdev input is very important to me.

Regards,

Cezar

cezar
Posts: 18
Joined: Fri Jan 30, 2009 2:58 pm
Location: Germany

Re: evdev works not under internet-radio, help needed

Postby cezar » Sat Aug 28, 2010 9:55 pm

Just tested it under Play an audio cd. Same result - it doesn't work.
I tried to remove yes for multiple keypresses, but it doesn't have any influence, too.
I tried another USB gamepad, very similar, also PS2 like, and it is still the same, so it is not up to the particular gamepad.

Thanks.

Regards,

Cezar

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

Re: evdev works not under internet-radio, help needed

Postby naicheben » Sun Aug 29, 2010 6:40 am

Interesting thing. How did you test the gamepad? Can you check if it works with

Code: Select all

cat /dev/event/input1
? Do you have a kernelmodule for the gamepad?
mit Hellseherschein ;.)

cezar
Posts: 18
Joined: Fri Jan 30, 2009 2:58 pm
Location: Germany

Re: evdev works not under internet-radio, help needed

Postby cezar » Sun Aug 29, 2010 8:19 am

Thank you naicheben, I solved the problem.
It is actually very logical, but nowhere explained.

I hade only one file (default) in the folder /etc/mms/input/evdev/, like the following
/etc/mms/input/evdev/default

I made:
cp /etc/mms/input/keyboad/audio /etc/mms/input/evdev/
than opened the file /etc/mms/input/evdev/audio and uncommented everything except the line "version".
I did the same with the files audio_extend, search and playlist, and now it works great.
Thanks folks for the great job.

Should I write small wiki entry on this issue, so other beginners can find an easy way to the solution?

I am working now on my MMS project. I'll drop a few lines more, when it is finished or when I get other problems.

Regards,

Cezar

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

Re: evdev works not under internet-radio, help needed

Postby naicheben » Sun Aug 29, 2010 3:35 pm

Great! Glad you solved it! We could send a bug-report. I think these files should be installed along with mms-input-event (or whatever is the name for this plugin).
A wiki entry would be great! Thanks a lot cezar.
mit Hellseherschein ;.)

cezar
Posts: 18
Joined: Fri Jan 30, 2009 2:58 pm
Location: Germany

Re: evdev works not under internet-radio, help needed

Postby cezar » Tue Aug 31, 2010 2:09 pm

I think these files should be installed along with mms-input-event (or whatever is the name for this plugin).


Exactly. After installing mms-input-lirc all files needed are automatically created in the directory /etc/mms/input/lirc/. But after installing mms-input-evdev there is only the file default in the noted directory. IMHO it would be much better to fix this problem in the next version instead of leaving it to the user for solving.

Regads,

Cezar

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: evdev works not under internet-radio, help needed

Postby Uatschitchun » Wed Sep 01, 2010 6:55 am

Could you revert to a state prior your changes (adding files to /etc/input/evdev) and post MMS' error messages when started from command line?
Lg
Roman


Return to “input”

Who is online

Users browsing this forum: No registered users and 1 guest