View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 28 posts ] 
Go to page Previous  1, 2

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Lirc reompile.
PostPosted: Mon Dec 08, 2003 10:05 pm 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
Hello all,

firstly i would like to say that myth is the best PVR that i can find, i would class it better that the windows version that i had running htcp. ALthow growing up in a windoz world linux is very hard to get use to. but life was not meant to be easy!.

I have started with knoppmyth as i have very limited knowledge of linux and it seem the best way to get wifev1.0 off my back and get some more money for a better back/frontend.
so i start surfing the post with my problems, first being Lirc.

low and behold here is a post with the answer to my questios, even with the same hardware as i have a leadtek winfast as well, Almost :wink:

SO here goes.....
i have installed R4 as per instuctions with teh TV option at start and then tried the remote. no luck. so i ended up here and tried to follow the post (no exp with Liunx at all). I have done pritty well

Ran the i686-l script to let myth use lirc.
reboot
moved the lircd.conf from the remotes dir to /etc/lircd.conf
moved the lircrc file to the right dir ( havent update the file with myth setting yet)
recompiled the source for the leadtek
reboot
tried IRW to test it, no luck
---snip---
root@mythtv:/#irw
connect: Connection refused
root@mythtv:/#irexec
irexec: could not connect to socket
irexec: connection refused

----snip-----

checked to log and came up with the same problem as in this post.

lird(leadtek_0010) ready
accepted new client on /dev/lird
default_init(): No such device
cught signal

so i tried the chmod 666 /dev/lirc

no luck.

Now near the end of this post he had the same problem but the next post the problem was fixed and there is no answer in here. I cheacked out the LIRC site and they said to do the chmod 666 to give everyone permission etc.

so what have i missed?

Question two

in the install instrutions i tell you to go to the following dir and edit a file if you have a nvidia card, which i do ausu 7700 (geforce2gts) but the file nor the x11 dir does not exsit.


--- snip-------
**NOTE**
If you have an nForce chipset or any nVidia card, before running the command below, you may want to edit /etc/X11/XFConfig-4 and add
Option "ConnectedMonitor" "TV" # This is only if attaching to a TV.**
For more options, please see: ftp://download.nvidia.com/XFree86/Linux ... README.txt

At the root prompt, type:
# install-nvidia.sh (Thanks Kano!). This will build and setup the NVidia modules. When it completes, X will restart and you'll be taken back to the Xterm asking for the root password. Please provide it and follow the script providing any requested information.

---- snip-----

Again have i missed somthing?


Thanks in advance for any help.
please keep up the good work with mythtv and the help that you guys in the forum it does help a lot.

Chris H

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
 Post subject: Re: Lirc reompile.
PostPosted: Mon Dec 08, 2003 10:20 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
Fodder1 wrote:

tried IRW to test it, no luck
---snip---
root@mythtv:/#irw
connect: Connection refused
root@mythtv:/#irexec
irexec: could not connect to socket
irexec: connection refused

----snip-----

you might want to try from a root console
Code:
lsmod | more

this will list the modules that are loaded. I believe the one that you are interested in for the leadtek is the lirc_gpio and lirc_dev or something similar. If they are not loaded then lirc will not work for that remote.

if they do not show up post back and we will work from there.
Quote:
Question two

in the install instrutions i tell you to go to the following dir and edit a file if you have a nvidia card, which i do ausu 7700 (geforce2gts) but the file nor the x11 dir does not exsit.


Chris H

well the file is there, but you can't just type /etc/X11/XF86Config-4 to edit it. You have to open it with an editor.

something like
Code:
 vi /etc/X11/XF86Config-4
should open it for you. vi is a little difficult for a newbie, so you may want to run
Code:
 vimtutor
to learn how to use it. It's a good thing to know if you are working in any type of unix enviornment vi will almost always be installed for you to use.


Top
 Profile  
 
PostPosted: Tue Dec 09, 2003 5:16 am 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
Thanks for replying.

I tried the lsmod |more and the only 'lirc' entrys that were there are;

lirc_i2c
lirc_dev

Is that right?

As for the second question, I tried to load it via an editor ( i use APT-Get to get JED & MC, I know how to use both of them)
jed /etc/x11/xf86config-4 to edit it and it failed.

But then i remembered that linux is case sensiative and i tried
jed /etc/X11/XF86Config-4
and it worked. :?:
But i dont understand even MC said that the /etc/X11 dir was not there, how is this possable? is this like the 'hidding system files' in windoz?

Well it is there, thank you. so if i add the required line now will i have to re-run the install.nvidia.sh script? or do i have to reload the system?

thanks again.

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 5:39 am 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
sorry i forgot to ask in the last post, where do i put the line 'option "connectedMonitor" "tv"?

I carnt find anything concreate saying put it here. I think it should go in the 'monitor' section but i am not real sure. it looks like it matters.

Thanks

Chris H

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 5:40 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
MythTV uses lircrc in /home/mythtv/.mythtv/lircrc. The one currently residing there is for the grey Hauppauge. Once your have lirc working, you'll need to modify that file in order to get MythTV to respond.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 7:15 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
after editing the XF86Config-4 file all you should need to do is restart X or reboot if it's easier for you. You may or may not need the "ConnectedMonitor" "TV" line I personally have to have it or X doesn't work properly, but most people don't have to have it. If you need it you should put it under the Device section.

Just curious what are you outputing your screen to? Do you already have it hooked up to a tv and it's working to do all this editing on or you want to edit it and then swap to a tv or do you want it on both a tv and monitor?

Quote:
MythTV uses lircrc in /home/mythtv/.mythtv/lircrc. The one currently residing there is for the grey Hauppauge. Once your have lirc working, you'll need to modify that file in order to get MythTV to respond.

yes I forgot about this, but I still think some modules are not getting loaded properly.
Quote:
I tried the lsmod |more and the only 'lirc' entrys that were there are;

lirc_i2c
lirc_dev

Is that right?

I used to use the remote from my leadtek card before I got my pvr250 and I could swear that it needs the lirc_gpio module. the gpio part may be slightly off as it's from memory. This module probably got built when you recompiled lirc for the leadtek, but you haven't put anything in place to load it.

try from a root console
Code:
 modprobe lirc_gpio
then try irw agian. Like I said you may need to make sure I have the module name right. If it works after you load this module maybe cesman will jump in with the best place to make it load on boot.


Top
 Profile  
 
 Post subject: lirc recomplie
PostPosted: Wed Dec 10, 2003 4:30 am 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
Thanks for tking the time to help
Once i entered the 'option "connectMonitor" "tv" ' the tv out work perfectly. Before that i had an CRT conected to the viedo card (asus GF2 7700gts) and the tv connected to the tv out of the same card. The crt work great and so now does the tv out.
EXECPT, (or but as there is always a but), is there any way to have both running at the same time? the problem now is that i carnt read the Xterm window and when i go to the root promt (ctrl+alt+f1) the tv goes all crazy and the monitor turns on from stand by but does not display anything.

or is there a way to switch between tv out and monitor?

As for the romote config it is a bit hard to see (due to the fact it on a tv) but when myth starts i drop out to a xterm window and did a lsmod |more and it looks like there is still only two entrys. so i do a modprobe lirc_gpio and it returns a small amount of info, which i think is the driver registering info that it printed last time.

so it looks good and i type irw and i get conection refused.
I tried to look at the log (very hard to read but) it say the same thing

accepted new client on /dev/lircd
could not open /dev/lirc
default_init(): Nosuch device
Cught signal

Got putty to work by editing the hosts allow file and inserting a line saying
sshd: all
As the boxen and my home network (where the myth boxen is) and the folding servers network sit behind a fire wall. allowing all ssh connections is pritty safe.

so i can now putty into the myth boxen form the windoz world. much easier. :wink:

So now i just need to get that dam remote working.

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 7:51 am 
Offline
Joined: Mon Dec 08, 2003 12:28 pm
Posts: 5
Location: Las Vegas, NV
ok heres how i get my leadtek winTV 2000 deluxe remote working.

After boot up i retreat to an xterm window where i do the following:

$ su
# modprobe lirc_gpio
# /usr/local/sbin/lircd
# exit
$ irxevent

then i restart the frontend leaving irxevent running in the xterm window and everything works. only problem is having to do this everytime i restart the machine. I tried running the install-i686-l script but it doesnt seem to help.

_________________
Hello Mr. Dell, meet Frankenputer.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 9:40 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
Fodder1 wrote:
Thanks for tking the time to help
Once i entered the 'option "connectMonitor" "tv" ' the tv out work perfectly. Before that i had an CRT conected to the viedo card (asus GF2 7700gts) and the tv connected to the tv out of the same card. The crt work great and so now does the tv out.
EXECPT, (or but as there is always a but), is there any way to have both running at the same time? the problem now is that i carnt read the Xterm window and when i go to the root promt (ctrl+alt+f1) the tv goes all crazy and the monitor turns on from stand by but does not display anything.

or is there a way to switch between tv out and monitor?


ok you can have both, but it's not completely working at this time cause you can't have accelerated output on both and some other stuff. If you really want to do that you need to look at the apendix section of the nvidia readme that talks about twinview. This section is about connecting two monitors or monitor and tv.

that said you really should just stick with one display. you should probably comment out the connectedMonitor line by putting a # in front of it and disconnect your tv then get everything working the way you want then you can remove the comment and reboot while it's reboting remove the monitor and plug in the tv only and everything should work on the tv.

VegasJohnny wrote:
ok heres how i get my leadtek winTV 2000 deluxe remote working.

After boot up i retreat to an xterm window where i do the following:

$ su
# modprobe lirc_gpio
# /usr/local/sbin/lircd
# exit
$ irxevent

then i restart the frontend leaving irxevent running in the xterm window and everything works. only problem is having to do this everytime i restart the machine. I tried running the install-i686-l script but it doesnt seem to help.


when you install the install-i686-l script it installs mythtv with built in lirc support so you don't need to run irxevent. what you will need to do is modify the /home/mythtv/.mythtv/lircrc file to work with your leadtek remote.
as for getting the modprobe lirc_gpio that needs to go into the modules somewhere to load on boot. There are several ways to do this and I was hoping cesman would pipe in with the best way on this distrobution, but if he does not I will look into it and try to find the best place to put it.


Top
 Profile  
 
 Post subject: still with lirc
PostPosted: Wed Dec 10, 2003 10:08 pm 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
thanks for taking the time to help me BTW,

i have a basic version of the lircrc file that i have edited in MC for the leadtek in place. I dont know if i got it right just yet. When it works i will forward it on to CESMAN (i think he said to forward it on to him in another post) to be included with R5. there is a few ppl here abouts that have them.

But even with the lirc_gpio module loaded by hand, i do a lsmod and it is there, i then run IRW to see if i am getting a responce from the remote there is nothing. I just get the connection refused.

I was under the impression that the lircd deamon was the translator from IR to the machine and lircrc was the file that says 'this button press from the remote does this in this program'

well anyway the up side is that even with the lircrc file updated and the lirc_gpio module loaded by hand the remote does not work.

chris

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 10:21 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
Hmm well I'm not sure what the problem is if you are getting the connection refused when you run irw then it will never work. that is where the problem lies. once irw will work and display output then it should work.

Ok a couple of more thoughts once you load lirc_gpio then from a root console do
Code:
 # /etc/init.d/lirc restart


then test irw agian.

also did you change the /etc/lircd.conf file to reflect the leadtek remote? If not you will need to do that.


Top
 Profile  
 
PostPosted: Thu Dec 11, 2003 7:15 pm 
Offline
Joined: Thu Dec 04, 2003 12:45 am
Posts: 17
Location: Perth Australia
YEA! it works. :D

ok after a lot of help from XSECRETS (give him a pat on the back for putting up with little old me) i have got the stupid thing to work.

I got the lirc_gpio module to load on start up by googling from here (aust) to just about every liunx forum in the known universe to find somthing that made sence to my small brain. That and a bit of poking around in the boexen itsself with MC (midnightCommander) and i found /etc/modules. it was as simple as just adding a line at teh bottom of the file at it is loaded at startup.
the Lircrc file i wrote for the Leadtek winfast remote is working but it needs some refining. I will send it to whomever you would like, proberly cesman for inclusion in R5(???).

this is the break dowm

- fresh install
- follow the install inst
- install teh I686 script
- un tar lirc
- copy lircd.conf to /etc/lircd.conf
- copy lircrc to /home/mythtv/.mythtv/lircrc (copy of the leadtek one for myth will be posted here soon)
- rebuild lirc
- use your fav text editior to edit /etc/modules and add at the bottom lirc_gpio. save, exit
- restart

and it worked for me.


Now i dont know if i should start another post for these questions but here goes.
(1) i google myth forum etc for a key mappings file but with no luck. lots of talk but no goods. Is there a key for fine tuning the channel in myth? i know there is a setting in the XMLTV grabber when you setup the channels but not knowing how much to adjusting is a pain.

(2) I am here i Aust and we use PAL or so i thought, i googled (google is my best freind) and came up with a couple of different answers. PAL & PAL BG. myth does not have a PALBG setting so PAL it is but the stations are all black & White, snowy etc. (hence the fine tune question) am i using the right PAL setting as there is others?

(3) also this is more a bug fix than a qustion, the tv listings grabber for AU is missing (in mythtv v12 too). this is not a big problem as you can get it and install it your self http://www.onlinetractorparts.com.au/rohbags/xmltvau/
big thankyou to all concerned getting this for Aust.
just follow the inst to install. as of today the ZIP file is coruppted but that should be fixed soon i guess. I willshoot him and email.

ANd on the bonus side the wifev1.0 came home last night and saw me playing with myth in the lounge trying to get the channels to tune. She was impressed and i got more money for upgrades. now she does not have to remember to record her shows. (believe me that is going to save and argument :wink: )Its only running on a P111 450 256ram 8GB (storage is on the file server). Cool.
Dual athlon backend, epiam front end here i come!!!!!! :lol:

Thanks for your continuing help

Chris

_________________
Linux makes my head hurt!!! ;-)


Top
 Profile  
 
PostPosted: Fri Feb 06, 2004 8:18 pm 
Offline
Joined: Fri Feb 06, 2004 8:10 pm
Posts: 1
Fodder 1, I am sure you have the answer by now, but I post it anyway: As I am also in PAL-B/G - Australia I had to set

options tuner type=5

in /etc/mythtv/modules/ivtv

Cheers Lars

Fodder1 wrote:
YEA! it works. :D

ok after a lot of help from XSECRETS (give him a pat on the back for putting up with little old me) i have got the stupid thing to work.

I got the lirc_gpio module to load on start up by googling from here (aust) to just about every liunx forum in the known universe to find somthing that made sence to my small brain. That and a bit of poking around in the boexen itsself with MC (midnightCommander) and i found /etc/modules. it was as simple as just adding a line at teh bottom of the file at it is loaded at startup.
the Lircrc file i wrote for the Leadtek winfast remote is working but it needs some refining. I will send it to whomever you would like, proberly cesman for inclusion in R5(???).

this is the break dowm

- fresh install
- follow the install inst
- install teh I686 script
- un tar lirc
- copy lircd.conf to /etc/lircd.conf
- copy lircrc to /home/mythtv/.mythtv/lircrc (copy of the leadtek one for myth will be posted here soon)
- rebuild lirc
- use your fav text editior to edit /etc/modules and add at the bottom lirc_gpio. save, exit
- restart

and it worked for me.


Now i dont know if i should start another post for these questions but here goes.
(1) i google myth forum etc for a key mappings file but with no luck. lots of talk but no goods. Is there a key for fine tuning the channel in myth? i know there is a setting in the XMLTV grabber when you setup the channels but not knowing how much to adjusting is a pain.

(2) I am here i Aust and we use PAL or so i thought, i googled (google is my best freind) and came up with a couple of different answers. PAL & PAL BG. myth does not have a PALBG setting so PAL it is but the stations are all black & White, snowy etc. (hence the fine tune question) am i using the right PAL setting as there is others?

(3) also this is more a bug fix than a qustion, the tv listings grabber for AU is missing (in mythtv v12 too). this is not a big problem as you can get it and install it your self http://www.onlinetractorparts.com.au/rohbags/xmltvau/
big thankyou to all concerned getting this for Aust.
just follow the inst to install. as of today the ZIP file is coruppted but that should be fixed soon i guess. I willshoot him and email.

ANd on the bonus side the wifev1.0 came home last night and saw me playing with myth in the lounge trying to get the channels to tune. She was impressed and i got more money for upgrades. now she does not have to remember to record her shows. (believe me that is going to save and argument :wink: )Its only running on a P111 450 256ram 8GB (storage is on the file server). Cool.
Dual athlon backend, epiam front end here i come!!!!!! :lol:

Thanks for your continuing help

Chris
[code][/code]


Top
 Profile  
 

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



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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu