View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 35 posts ] 
Go to page Previous  1, 2, 3  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Jan 08, 2007 8:02 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Pretty sure .lircrc isn't needed. Back it up and then delete it.

The case of your button names in lircrc have to match exactly names defined in lircd.conf ie
Code:
STOP
=
Code:
STOP
this is bad
Code:
StOp  stop STop


after you get get lircrc set, exit frontend and relaunch for configurations to take effect.

Also use irw from a command prompt to test what your reciever is getting from your remote.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 8:51 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Put the cleaned up file under "/home/mythtv/.mythtv/lircrc". Make sure that "/home/mythtv/.lircrc" is a symbolic link (a "no, look over _there_" entry) to the other file.
Code:
root@black2:~# ls -al /home/mythtv/.mythtv/lircrc /home/mythtv/.lircrc
lrwxrwxrwx 1 mythtv mythtv   14 Jan  6 01:26 /home/mythtv/.lircrc -> .mythtv/lircrc
-rw-r--r-- 1 mythtv mythtv 6497 Aug 19 16:31 /home/mythtv/.mythtv/lircrc

For details see the LinuxTips page.

BTW - A few months back I posted an editing script somewhere around here which puts all the button names into a standard format. It might be worth hunting down...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 9:43 pm 
Offline
Joined: Tue Jan 02, 2007 9:00 pm
Posts: 76
I'm sorry I feel like a complete idiot, nothing seems to be working...

spalVl I checked everything the only differce with the lirdcd.conf was the x on the hexadecimal values, lirdcd.conf had a normal x, while lircrc had a weird smaller x (floating a littlebit on air) I changed all the x on the hexadecimal number to match the one in the lirdcd.conf also the 0 (zero) on the lircd.conf was a 0/AV on the lircrc file and I fixed that also. Also what i'm I supposed to see when I type irw? I do it and nothing comes up no error, or no message at all, I just get the prompt again...

tjc I did what you told me and it went through just fine but it did not solve the problem. :( What do you mean by a symbolic link?

I don't know what else to do anymore, I fear that I might be making things worse everytime I do something new, everyting worked at the beginning all I did was replace the original lircrc by anotherone I created in windows and uploaded using WinSCP, and I did this because all the keys in the remote were not working right, just some of them because I had the wrong lircrc file, after that nothing has worked ever since... :(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 9:58 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
la_tengo_como_burro wrote:
tjc I did what you told me and it went through just fine but it did not solve the problem. :( What do you mean by a symbolic link?

Did you follow the URL to the LinuxTips page and read the "Creating symbolic links" section? A symbolic link is very much like that URL, it's not the actual thing, just a reference that redirects you to the real destination. The ls output above shows this as "/home/mythtv/.lircrc -> .mythtv/lircrc". You can read it as "the directory entry at '/home/mythtv/.lircrc' is really the thing found at (relative position) '.mythtv/lircrc' ", which in this case is the real file at "/home/mythtv/.mythtv/lircrc"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 10:34 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
spalVl I checked everything the only differce with the lirdcd.conf was the x on the hexadecimal values, lirdcd.conf had a normal x, while lircrc had a weird smaller x (floating a littlebit on air) I changed all the x on the hexadecimal number to match the one in the lirdcd.conf also the 0 (zero) on the lircd.conf was a 0/AV on the lircrc file and I fixed that also. Also what i'm I supposed to see when I type irw? I do it and nothing comes up no error, or no message at all, I just get the prompt again...


May not have been good idea to edit lircd.conf, anyway will learn with results of irw and cross that bridge if/when we get there.

behavior you are describing with irw is correct. You run the command, a console opens which waits for you to press buttons on the remote. Those button presses are echoed to the console. As I posted earlier irw is a troubleshooting tool.

I am going to hold off any more suggestions until know the results of irw tests and you get the symbolic links fixed per TJC's post.


Last edited by spalVl on Mon Jan 08, 2007 10:44 pm, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 10:41 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
spalVl wrote:
SSH and WinSCP are my most bestest friends...


:oops:

WinSCP is my friend when you use the context menu (right click edit) command. It is not my friend when I use the non-standard Microsoft text editor to create local files then upload putting weird stuff in files to mess up working text files. :evil:

Seriously edit out of Putty/SSH or console until you get this working.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 11:15 pm 
Offline
Joined: Tue Jan 02, 2007 9:00 pm
Posts: 76
spalVl I never edited lircd.conf I just opened up and edited lircrc to make it match with lircd.conf. now.. when I run irw it does not do absolutely anything (yes, i'm running it as root), no console opens or anything, is this console supposed to pop up? I just get the prompt all over again and if I run it a secont time it tell me...

connect: Connection refused

Also, sice I had this problem I have not used windows notepad anymore, I just use the one that comes with WinSCP (right click edit)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 11:52 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Reboot your KnoppMyth box,

Login to a console as root

irw will sit a a prompt. Point your remote at your IR reciever press some buttons. If working will display some charcters on the screen.

like this

Code:
root@KMBACKEND01:/# irw
00000000000017b5 00 Play Hauppauge_350
00000000000017b0 00 Pause Hauppauge_350


CTRL+C to exit irw.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 9:00 am 
Offline
Joined: Mon Apr 10, 2006 3:48 pm
Posts: 997
Location: Lexington, Ky
Glad you found those, you might want to bring back a copy to you pc, by the way never use notepad to edit Unix files. It always add the extra characters.

Just make sure the permissions on the file match the rest of the files in that location. Be sure that you su to the use root user to change the permissions.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 7:34 pm 
Offline
Joined: Tue Jan 02, 2007 9:00 pm
Posts: 76
spalVl I rebooted the machine, exited the knopmyth regular user and logged in as root, then I opened a console screen (opened xterm) and entered irw at the prompt, it did absolutely nothing, it just went back to the prompt again inmediately, I tried pressing the keys on the remote but it is useless since its back at the prompt and If I try entering irw again for a second time it tells me...

connect: Connection refused

and goes back to the prompt again, is there another shell I sould use? should I use something other than xterm?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 8:32 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
I tested running irw from xterm (on KM desktop), tty1, tty2, etc.. ssh Works from all of them.

Did you change anything in hardware.conf or lircd.conf anything else (lircrc aside for now) since you had it working? apt-get install or remove anything?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 8:36 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Also make you didn't overlook the obvious. I know with my regular KM box, I have troubleshot my remote for an hour only to discover reciever was not physically plugged in 100%.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 8:59 pm 
Offline
Joined: Tue Jan 02, 2007 9:00 pm
Posts: 76
It was working until I pasted that lircrc file on notepad and uploaded it using WinSCP to the machine, after that I have done nothing but work on the issue, with what you and other people suggested here (only on this post), I have done everything that you have suggested me to do and I also did the following, suggested by tjc

Quote:
Put the cleaned up file under "/home/mythtv/.mythtv/lircrc". Make sure that "/home/mythtv/.lircrc" is a symbolic link (a "no, look over _there_" entry) to the other file.
Code:
root@black2:~# ls -al /home/mythtv/.mythtv/lircrc /home/mythtv/.lircrc
lrwxrwxrwx 1 mythtv mythtv 14 Jan 6 01:26 /home/mythtv/.lircrc -> .mythtv/lircrc
-rw-r--r-- 1 mythtv mythtv 6497 Aug 19 16:31 /home/mythtv/.mythtv/lircrc

For details see the LinuxTips page.

BTW - A few months back I posted an editing script somewhere around here which puts all the button names into a standard format. It might be worth hunting down...


I have done nothing on my own and the only files I have edited on /home/mythtv/.mthtv directory, the only thing I have done outside that directory is what tjc sugested


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 11:18 pm 
Offline
Joined: Tue Jan 02, 2007 9:00 pm
Posts: 76
CAN SOMEBODY HELP ME, FOR THE LOVE OF GOD!!!!! :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 7:26 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Start over from square one.

Backup up the stuff you have

Code:
cp /etc/lirc/hardware.conf /etc/lirc/hardware.conf.bak1
cp /etc/lirc/lircd.conf /etc/lirc/lircd.conf.bak1
cp /home/mythtv/.mythtv/lircrc /home/mythtv/.mythtv/lircrc.bak1


Then do what you did before to get it to work.


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu