Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 08:01
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
mpdPup - Simplified MPD Music Server/Jukebox - v0.9.3
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 25 of 36 Posts_count   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 34, 35, 36 Next
Author Message
tallboy


Joined: 21 Sep 2010
Posts: 449
Location: Oslo, Norway

PostPosted: Mon 15 Apr 2013, 11:35    Post_subject:  

Hi DenisP.
I don't use the application in question, but have you looked for a script in /root/Startup/?

I think /usr/sbin/delayedrun is used for several purposes, so it is maybe a file you should be careful about modifying, unless you know exactly what you do... Cool

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Tue 16 Apr 2013, 08:10    Post_subject:  

tallboy wrote:

I don't use the application in question, but have you looked for a script in /root/Startup/?

I think /usr/sbin/delayedrun is used for several purposes, so it is maybe a file you should be careful about modifying, unless you know exactly what you do... Cool


I've checked the "Startup" folder, it's not there...

As for modifying something that I don't know, I don't think there's much danger in this case.

This line of script automatically invokes the "MPDwizard", which is a script for setting up the MPD server - which is exactly what I want to avoid (i.e. I don't want it to start automatically!).

It's not like I'm disabling the automatic start of the MPD server... Wizard is a different thing, and I can start it whenever I want, by just entering "mpdwizard" on the command line.
So, if I disable its automatic start, the system still functions without any changes.
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Sat 20 Apr 2013, 09:31    Post_subject:  

A couple of suggestions for Idolse:

I see you're "slurping" neompc and web10mpc from your site during installation, so perhaps you could add/change the following:

in neompc, when used on some smartphones, e.g. iphone, the volume slider doesn't work. I've found a patch online, and it enables you to "tap" the volume bar to change volume. A bit clumsy, but better than nothing. Here is the additional code - goes towards the bottom of the "neompc.js" file in "/var/www/neompc/lib/js":

Code:

// this addition takes care of volume slider problems on some smartphones, e.g. iPhone
   
   $('#slider_container').click(function(event){
      ajax_control('volume', pos_to_volume(event.pageY-($('#volume_slider').outerHeight()/2)-$('#slider_container').offset().top));
   });

// end of addition for smartphones


Also, it would be nice if the web10mpc came already set for showing the volume on the page - it is changed in "control.ini.php", in "var/www/web10mpc/include"

it says:
Code:

show_volume_controls = false


Just change it to "true"... I guess most of the people who use smartphone GUI also want to have the volume control Smile
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Sat 20 Apr 2013, 12:46    Post_subject:  

And, as an aside, what is the "proper" (or recommended) way to properly configure "client175" and have it start automatically when the machine is powered on?
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Sat 20 Apr 2013, 15:57    Post_subject:
Sub_title: Client175 (mis)configured?
 

I think there's something amiss with client175 configuration.

Having installed client175 using mpdwizard, I was surprised that it did not start automatically (see my question above).

After some searcing, I found an entry for "client175" in /etc/init.d:

it's under "37.client175" - but its size (and contents) are the same as for "30.empcd" - which is obviously not as it should be - and is the obvious reason why "client175" is not actually autostarting.

Could someone provide a valid /etc/init.d file for client175?

Idolse?

Thanks!
Back to top
View user's profile Send_private_message 
ldolse

Joined: 23 Oct 2009
Posts: 366

PostPosted: Sun 21 Apr 2013, 23:42    Post_subject:  

Good catch - I think I ran out of steam as I was testing/integrating non-PHP clients - I actually thought I had removed client175 support at the last minute, but may have been one of the other clients I was testing. I'll need to re-install it in order to create an init script - the empcd script is the most generic of the init scripts so I use it as a template.

Regarding the to PHP clients, I can go ahead and integrate those tweaks.

Glad you figured out mpdwizard - can't remember why I used delayedrun instead of the startup folder, but seems to me startup didn't work right...
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Tue 23 Apr 2013, 10:18    Post_subject:
Sub_title: lirc with serial IR?
 

bonalux wrote:

I've not listed the ir receiver but it's already connected, i've to try to dump some ir codes to see if it's working correctly, then, if the only other config to be done it's in the empcd.conf file the trick is done, but i see that this file is referring to "eventdevice /dev/input/imon_remote", got to look even at it. Maybe lirc remote codes are sent to some input device (have no idea of what are event0, event1 ecc..), i'll try to find out...


Bonalux, any luck with setting up lirc with something else besides imon?

This is my next step, and I'm stuck Sad

I'm using a simple serial IR receiver, and the first thing that happens when I try to add "modprobe lirc_serial" is:
Code:
FATAL: Module lirc_serial not found.

Sad
So, I'd really like to know how you are getting along Smile
I have (just barely) succeeded in making this receiver work on my other Linux box (opensuse 12.1), where it does show some results when I press buttons on the remote... but even that one wasn't easy!
And on mpdPup, I don't even know where to start...
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Wed 24 Apr 2013, 05:31    Post_subject:
Sub_title: Lirc modules (lirc_serial)?
 

Again, I need a BIG favour:

could someone tell me how to compile the appropriate "lirc_serial" module and have it load properly, so that I can try to configure my homebrew serial IR receiver?

I've tested the IR serial receiver under windows, using winlirc, and it works properly, no problems at all... So, the receiver works as it should with the remote I've tested.

However, I'm at a loss when trying to set it up in mpdPup: I've tried downloading "lirc" and "lirc_modules" using Puppy package manager in X, but to no avail: I don't know what has to be done to enable "lirc_serial" module Sad

Today I tried another approach: I downloaded the lirc source tgz package, and tried compiling it (I've loaded "devx" and "kernel" sfs packages, and have the kernel sources etc. available).
The "lirc" program itself compiled OK, but the executables were put in other directories - so I deleted old "lircd" and "lircmd" from /usr/sbin and replaced those with the newly compiled ones. I've also added newly built "lirc_serial.ko" to /lib/modules/2.6.39/misc (which already contains the original "lirc_dev.ko" which comes already installed with mpdPup - so I thought that might be the proper location).

When I try lirc with "lircd -H ?" to get the list of available modules, I get only "default" as available/supported driver.

I even tried to get the "lirc_serial" loaded at boot time, using boot manager: I get "lirc_serial" offered in the left pane as loadable module, can get it added to modules loaded at boot time, and everything seems OK. However, upon next boot, module is not there:
Code:
# lsmod | grep lir
ir_lirc_codec           2608  0
rc_core                 9120  7 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,imon,ir_nec_decoder
lirc_dev                7156  1 ir_lirc_codec
#



When I try "modprobe lirc_serial", I get the following:
Code:
FATAL: Error inserting lirc_serial (/lib/modules/2.6.39/misc/lirc_serial.ko): Device or resource busy


So, could anyone be so kind as to try to find out what I'm doing wrong - and perhaps suggest the proper locations for newly built executables and the "lirc_serial" module, and where to put it, so that it can be found and activated at boot time.... or any other way possible to get the serial IR receiver working properly? (Maybe there's another Puppy package that can be installed, which might have all the necessary stuff already - i.e. "lirc_serial" driver?)

TIA,

Denis
Back to top
View user's profile Send_private_message 
ldolse

Joined: 23 Oct 2009
Posts: 366

PostPosted: Wed 24 Apr 2013, 06:15    Post_subject:  

Most of the lirc documentation on the Internet is out of date, as the project lived outside the kernel source tree until about 2 years back. When it finally did get integrated into kernel a lot of things changed which made all the old how-to information obsolete for newer kernels. Installing lirc has better odds of screwing up your installation than helping you.

I don't have step by step instructions for you, but I recommend reading through the LIRC developer's blog and article on 2.6.35+:
http://wilsonet.com/?page_id=95
http://wilsonet.com/

It's more accurate than just about anything Google will give you at random.

If I understand what's been done correctly, once it's working the rc_core drivers basically just turn your remote into a keyboard as far as Linux is concerned, I don't believe lircd is needed - empcd can take over from there. I'm not sure if lirc_serial is still required...
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Wed 24 Apr 2013, 08:29    Post_subject:  

ldolse wrote:

If I understand what's been done correctly, once it's working the rc_core drivers basically just turn your remote into a keyboard as far as Linux is concerned, I don't believe lircd is needed - empcd can take over from there. I'm not sure if lirc_serial is still required...


Thanks for the quick reply Smile

I'm not sure how everything is supposed to work just by using empcd... It requires some kind of driver, I think - at least that's what it says in empcd.conf ("eventdevice" line)....

So, do I just disregard lirc completely, and see if it will work with empcd, by putting "eventdevice /dev/input/event0" into empcd.conf?

From what I understand, empcd uses input events, and I should find which "event" my serial IR receiver is (most likely "event0"), and then try to decipher which button does what.... thus bypassing lirc and its settings, modules and whatnot?

Will try that, sure - and I'll be back soon to report on my progress Smile
Back to top
View user's profile Send_private_message 
ldolse

Joined: 23 Oct 2009
Posts: 366

PostPosted: Wed 24 Apr 2013, 10:14    Post_subject:  

Well you can pretty much disregard the user-space LIRC pieces, they're not needed for MPD control. That said they could help you for debugging. I haven't built my own serial receiver yet to do any of what you're attempting to do and didn't include the user space binaries in the builds to save space - I'll probably integrate them with the devx in a future release to simplify the debugging and testing side of things.

The drivers on the other hand you do need - I don't see an lirc_serial driver in the kernel modules that are bundled with mpdPup, my assumption is that this is deprecated in favor of some newer modules, but I can't find any good documentation to back this up. You also need to configure the keymap for your remote control so the LIRC driver correctly converts it's IR codes to keyboard commands, and I don't know how a specific keymap is loaded and tied to an event device.

Edited_time_total
Back to top
View user's profile Send_private_message 
ldolse

Joined: 23 Oct 2009
Posts: 366

PostPosted: Wed 24 Apr 2013, 10:26    Post_subject:  

Here is an article where someone posted some detailed information on how to get this working for newer kernels:

http://forum.xbmc.org/showthread.php?tid=104541

You would want to follow the steps which discuss using the kernel drivers only.

Note I think this guide may be specifying some user-space LIRC tools for debugging purposes. ir-keytable is frequently referenced but that's not something bundled today - I assume it's part of the lirc user space tools. If you know the exactly what config file goes with your remote you may not need it. I have a hunch this might still be a bit easier than this poster is making it sound, but as he notes in his article, documentation is extremely sparse.
Back to top
View user's profile Send_private_message 
DenisP

Joined: 25 Mar 2013
Posts: 56
Location: Croatia

PostPosted: Fri 26 Apr 2013, 11:36    Post_subject:  

Idolse, thanks for the help!

But...

I don't think I'll be able to do it "the new way", using just the kernel.

Namely, my serial receiver is not recognized as input, there are no "events" for it, and /dev/input/event0 or any other "event" does not generate anything.

From what I've read in the articles you've linked (and some others), it seems that for the homebrew serial IR receiver in this case it would be best if I disabled everything from the new kernel stuff and do it "the old way", with lirc, which is, for example, also explained here:
http://www.linurs.org/linux/InfraredRemoteControl.html
My 8250 module for the serial port is listed OK (it was added to boot modules parameter in /etc/rc.d/MODULESCONFIG automagically), and I guess I now have to see how to disable the new kernel stuff with input/events, and go step by step to get lirc up and running in the old way...
On the machines I'm using, the serial port isn't used for anything else, anyway, so... IR serial would be the best way to go in my situation. The receivers can be made cheaply (I already have parts for several), and used with cheap "universal" remotes...
Imon displays with remotes would be the best, and could be used "out of the box" without tinkering, since that is the what you've set up mpdPup, but the price of such an imon unit would more than exceed the unit cost of the existing PC machines I'm tinkering with Smile Besides, it wouldn't fit Smile
Here's what I'm playing with:
http://www.parkytowers.me.uk/thin/Igel/3210/index.shtml (note those are NOT my pages...)
- a perfect machine for a totally quiet headless music server: I've already set up several for some of my friends who are into hifi (and who have rather serious hifi equipment at home) - and evey single one of them praises its sound quality Smile
So, I also have to extend their praise to you, since I actually have nothing with it - I'm just setting these up with mpdPup installation (somewhat customised), and at their homes I set up the local wifi network stuff, connecting to DAC and setting their mobile phone clients, etc. for remote management...
Back to top
View user's profile Send_private_message 
ldolse

Joined: 23 Oct 2009
Posts: 366

PostPosted: Sat 27 Apr 2013, 02:57    Post_subject:  

Huh - that first link is interesting. The article you linked is basically saying the kernel needs to be re-compiled with a flag to pass IR to the user space LIRC. What's weird though is this advice is contrary to the various posts and emails to the LIRC list from the main developer (the blog I linked earlier), this is all supposed to work with the in kernel drivers.

I think the biggest issue here is the lack of documentation - in his blog post in 2010 he mentioned a FAQ on the in kernel updates would come out but then nothing ever did. Almost all the documentation on the lirc.org site dates from 2010 and earlier so no help there either. I suspect if you have the patience to wade through the LIRC mailing list archives most of the needed info is hiding there.

If compiling the kernel with a special flag is really the only way to get serial working then I can look into this when I get around to re-building the whole system on a 3.x kernel, but hopefully there is a way to get this working using the in-kernel drivers and standard event devices. I guess I really need to break out my soldering iron and put together the homebrew serial receiver pieces I picked up.

Another option if you're trying to do this on a budget is to see if any of the cheap USB IR receivers will work - based on what I've read most of the cheap receivers that present themselves as an MCE remote should work similarly to iMon.

Those iGel units look nice - looks like a similar class of hardware to the PC Engines Alix but nicer packaging and DVI. Glad to hear you're having good luck with them.
Back to top
View user's profile Send_private_message 
luisb

Joined: 30 Sep 2012
Posts: 25

PostPosted: Sun 28 Apr 2013, 08:30    Post_subject:  

Hi DenisP
Do you see any advantage using Igel 5/4 with a more powerfull CPU?. It also has an external power supply. Prices are great at Ebay.
Regards
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 25 of 36 Posts_count   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, ..., 34, 35, 36 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1273s ][ Queries: 13 (0.0185s) ][ GZIP on ]