ubuntu problems

Support and queries relating to all previous versions of ZoneMinder
Locked
alejandrowa
Posts: 10
Joined: Fri Jun 29, 2007 6:37 am

ubuntu problems

Post 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.
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Is it really an Ubuntu problem?

Post 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
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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?
alejandrowa
Posts: 10
Joined: Fri Jun 29, 2007 6:37 am

Post 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
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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.

Code: Select all

sudo chmod 4755 /usr/bin/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.
alejandrowa
Posts: 10
Joined: Fri Jun 29, 2007 6:37 am

Post by alejandrowa »

ill test it and tell you what happend.
thx
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post 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.

Code: Select all

sudo chmod 4755 /usr/bin/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.
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post 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. :)
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post 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?)
startrk
Posts: 8
Joined: Wed May 23, 2007 9:02 pm

This is what I did to get that to work.

Post 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.
User avatar
wildpossum
Posts: 38
Joined: Wed Jul 04, 2007 5:40 am
Location: Sydney - AUSTRALIA

Post 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.
Grahame
Locked