Page 1 of 1
ubuntu problems
Posted: Sun Jul 15, 2007 12:33 am
by alejandrowa
I am trying to get my proyect running but no way. LAst week tried with debian and didnt work also.
I have a PV149 from blackberry card. I installed it today on ubuntu gutsy, went through all the process, everything seems to work, but on ntsc just get a black screen and on pal get a b/w image and only shows about 80% of the vertical image.
Already went to the wiki with the shared memory topic, chmod's, check every log and nothing seems to be wrong. But when I run xawtv and switch to pal and back to ntsc suddenly start to get beautiful color pictures.
Can someone give me a little help.
Is it really an Ubuntu problem?
Posted: Sun Jul 15, 2007 1:26 am
by PeterHoward
(Speaking as the package mainainer for Debian/Ubuntu)
You've listed it as an "ubuntu problem". You mention trying on debian (effectively same package) and having it fail there too. Now what you don't say is whether you've tried it on anything else, e.g.
- Fedora/Redhat ?
The "live cd" ?
Why is this relevant (and not just me being pedantic and annoying)? If the problem is directly related to the debian/ubuntu package, then that's mine to deal with. However if it isn't specific to my packaging, then you're better using a title releated to the specific problem (the PV149 card) in the title as you risk people thinking the problem is mine to deal with and not bothering to read the thread. And whilst I do know a bit about the zoneminder internals, I'm by no means an expert; (closer to a user with some packaging ability) there are others out there with much greater knowledge.
However if you
have had it working on a different zoneminder install, let me know and we can start working through the problem in detail.
PJH
Posted: Sun Jul 15, 2007 7:21 pm
by Lee Sharp
Ditto... There is very little information in your post. What is the result of xawtv? What is your shared memory set at and how? Did you hard code a modprobe, and how? What is it? And of course, have you tried the RH live cd?
Posted: Tue Jul 17, 2007 12:50 am
by alejandrowa
I just run the bluecherry live cd and it's works 100%. Color images, smooth pictures, no lines. I used to have install debian/ubuntu from scratch, when through your shared memory wiki and the shared memory error from logs was removed. And no more errors on the logs but still no good images just b/w+cut image on pal and black images on NTSC.
on /etc/modprobe.d/bttv I put the tuner = 2,2,2,2 the card onto 98 that is the one detected by the kernel.
But when I run xawtv and switch to pal and back to ntsc everything just works great until I reboot.
What else can do you need to get into the problem?
thx
Posted: Tue Jul 17, 2007 4:34 pm
by Lee Sharp
Boot the live CD, and copy /etc/modprobe.d/options to a thumb drive. Now put it in your real system.
Also, suid zmfix.
Edit /etc/sysctl.conf and add the following lines (for 128meg shared mem)
Code: Select all
kernel.shmall = 134217728
kernel.shmmax = 134217728
Now we should have a stable platform. If something else is wrong, we can find it.
Posted: Wed Jul 18, 2007 4:22 pm
by alejandrowa
ill test it and tell you what happend.
thx
Posted: Wed Jul 18, 2007 6:43 pm
by curtishall
Lee,
Is the options file not moved installed by default?
Lee Sharp wrote:Boot the live CD, and copy /etc/modprobe.d/options to a thumb drive. Now put it in your real system.
Also, suid zmfix.
Edit /etc/sysctl.conf and add the following lines (for 128meg shared mem)
Code: Select all
kernel.shmall = 134217728
kernel.shmmax = 134217728
Now we should have a stable platform. If something else is wrong, we can find it.
Posted: Thu Jul 19, 2007 4:39 am
by Lee Sharp
I am not sure if he installed with your CD, or from an Ubuntu CD, and Peter's .deb, so I am covering all the possible situations.
Posted: Thu Jul 19, 2007 11:13 pm
by PeterHoward
I'm guessing that the bit above:
I used to have install debian/ubuntu from scratch,
is the giveaway.
Is that correct - you did a scratch install? What options did you give configure?
PJH
(On an unrelated note, I seem not to be getting notifications on this thread - anyone else seeing problems with this?)
This is what I did to get that to work.
Posted: Mon Oct 29, 2007 2:49 pm
by startrk
My system:
Debian
PV-149
When I reboot I get the same thing as above. Black images. My /etc/modprobe.d/bttv is
options bttv card=98,98,98,98 tuner=2,2,2,2
Same black images but when I go to xawtv and reset NTSC --> PAL and then back again I get great images. So I wrote this startup script to control this at bootup.
cd /etc/init.d
sudo nano setvideo.sh
sudo v4lctl -c /dev/video0 setnorm PAL
sudo v4lctl -c /dev/video0 setnorm NTSC
sudo v4lctl -c /dev/video1 setnorm PAL
sudo v4lctl -c /dev/video1 setnorm NTSC
sudo v4lctl -c /dev/video2 setnorm PAL
sudo v4lctl -c /dev/video2 setnorm NTSC
sudo v4lctl -c /dev/video3 setnorm PAL
sudo v4lctl -c /dev/video3 setnorm NTSC
Save that file. Then:
sudo chmod 777 /etc/init.d/setvideo.sh
sudo update-rc.d setvideo.sh start 40 S . stop 89 0 6 .
Reboot!!! Now everything should come up fine.
Posted: Fri Nov 09, 2007 7:18 am
by wildpossum
Your pal<->ntsc problem is because you have not set up the pll timing.
Do the following and all should be OK.
options bttv card=98,98,98,98 tuner=2,2,2,2 pll=1,1,1,1
You may have to make the above "pll=0,0,0,0" for NTSC if that is the definition you ultimately require.