View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Fri Apr 01, 2005 9:04 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Outpour wrote:
My major problem now with the remote is that it is SUPER sensitive. You push the arrow and it will push 'up' or 'down' 3 or 4 times. This makes navigating menus extremely hard (Similarly when you push the escape button, it will escape 2 or 3 times).


We're still talking about lirc aren't we? It has a demultiplier right in the button press definition config file... I don't have access to the KnoppMyth box at the moment but it's righ there in the sample file if you look... You just give it a number of repeat keypresses to count as one, it's dead easy.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 10:06 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
no the ati doesn't use lirc it's and RF remote and uses it's own kernel module.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 11:44 am 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
Outpour (or whomever): if you do work out the steps to adjust sensitivity and get a new version of the module installed, please add it to the wiki. I see the same behavior and it would be great to get it to calm down.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 5:28 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
OK, Outpour... I've just discovered a new problem... I thought the script was debugged to the point where everything was working correctly... but today I just discovered that if the video file I'm trying to play has any spaces in it, the script won't run...

I have a ton of videos in multiple directories that I have shared to the MythTV box from my Windows box, and most of the files have spaces in the names. Is there something I need to change in the script to allow it to handle spaces in the filenames?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 6:47 pm 
Offline
Joined: Tue Mar 29, 2005 10:14 pm
Posts: 15
I ran into the same problem. Instead of working out away to allow files with spaces, I wrote a perl script to replace spaces with _s. But it only works on linux, so i guess a quick fix for you would be to make your script like so:

Code:
mplayer -fs -zoom -quiet -vo xv $1 $2 $3 $4 $5 $6


Not very clean, but it should work.. assuming you don't have any files with more than six spaces.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 7:10 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Since I do have files with more than 6 spaces (when you include the directory structure), how far out can I carry that? when I get to $9, is that the end, or can I use letter variables?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 7:22 pm 
Offline
Joined: Tue Mar 29, 2005 10:14 pm
Posts: 15
Try it out... not sure.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 7:54 pm 
Offline
Joined: Tue Mar 29, 2005 10:14 pm
Posts: 15
Alright to compile the ati_remote.c.. I ran 'make modules' but it compiled _Every_ module in the src tree.

If i do a make modules_install it will install all those modules. All I want to install is the ati_remote one. Anyone have any idea how I can do this?

Copying the generated .o file from the src to the correct /lib/modules/ tree does not make it work as installed modules are '*.ko' (kernel objects).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 01, 2005 8:30 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Shell Programing 102 - When you want all of the arguments to a shell script you use the special variable expansions $* and it's cousin $@. The main difference is in how they expanded within quotes, but that's for shell programing 201.

A better solution is to put quotes around the %s you use in the GUI. Then the existing $1 would work, although for best results you should also put double quotes around it on the mplayer line. E.g. - mplayer -fs -zoom -quiet -vo xv "$1"

BTW - Putting spaces in Unix file names is allowed, but discouraged since it plunges you into the depths of quoting hell. Doing it is often considered a real (MS-)Windows Weenie stunt in polite society. ;-) We won't even talk about the Mac cultists - as a friend told me half a lifetime ago about APL programmers - "Why would you want have anything to do with those crazed religous fanatics?" ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 02, 2005 6:15 am 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Thanks for the tip, tjc... it worked beautifully. I definitely understand about not putting spaces in filesnames on my MythTV box, but I've got about 100 seasons of various TV shows on my Windows box that I stream to MythTV. Since they're all organized by show and season and title, some of them have lots of spaces in the entire path eg (D:\TVShows\The Wonder Years\Season 2\0205 - Just Between Me and You and Kirk and Paul and Carla and Becky.avi).

So... thanks for getting me out of quoting hell. And... I can't knock Windows too much... if it didn't have so many isues, I wouldn't have a job. :)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu