[Pxc] pxc_control locked out by pxc_live, sometimes

M Bianchi mbianchi@Foveal.com
Wed, 31 Jan 2001 11:01:07 -0500


On Wed, Jan 31, 2001 at 09:47:55AM +0100, Alessandro Rubini wrote:
> > However, when I run
> > 	pcx_live  /dev/pxc0Hpgm
> > which uses the full frame grabber resolution,
> > 	pxc_control getmux
> > says that the device is "busy".  I also see this behaviour in my
> > code when I use
> > 	ioctl( fd, PX_IOCGMUX, &args );
> 
> That's because the device being openened by default is the low
> resolution one. If it's already opened in high resolution (by
> pxc_live, in this case), open will fail.
> 
> (ehm... no, it uses /dev/pxc0ctl which should be open()able independent
> of the current resolution; looks like I have a buglet here).
> 
> What about "pxc_control getmux /dev/pxc0Hpgm" ? (the device can be either
> first or last argument, or PXCDEVICE in the environment)

That works!  Solves my problem.  Many thanks!

-	-	-	-	-	-	-	-	-	-

> > I am still using pxc-0.23 because, in all the later versions, I get
> > sproadic horizontal streaks across the grabbed image.
> 
> This sometimes happens to me when the PCI bus is busy, it's pretty
> rare in my setups, though. Can you converm that 0.23 doesn't do that
> even in situation of high load? In other words, could you recall or
> check if the PCI load is somehow involved in the issue and at the same
> load the behaviour is reliably different?

I'm using Linux kernel  2.2.12-20  on  i686 (Pentium III) architecture.
I tried pxc-0.23 with  locate -u  running, figuring that would beat up the
PCI bus since my SCSI filesystem disks are PCI backplane devices.  Witness ...

  lspci
00:00.0 Host bridge: Intel Corporation 440GX - 82443GX Host bridge
00:01.0 PCI bridge: Intel Corporation 440GX - 82443GX AGP bridge
00:0b.0 Parallel controller: Lava Computer mfg Inc: Unknown device 8800
00:0b.1 Serial controller: Lava Computer mfg Inc: Unknown device 0900
00:0c.0 SCSI storage controller: Adaptec 7896
00:0c.1 SCSI storage controller: Adaptec 7896
00:0e.0 Ethernet controller: Intel Corporation 82557 (rev 08)
00:10.0 Serial controller: US Robotics: Unknown device 1008 (rev 01)
00:12.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02)
00:12.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
00:12.2 USB Controller: Intel Corporation 82371AB PIIX4 USB (rev 01)
00:12.3 Bridge: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
00:14.0 VGA compatible controller: Cirrus Logic GD 5480 (rev 23)
01:0f.0 PCI bridge: Digital Equipment Corporation: Unknown device 0023 (rev 06)
02:07.0 Multimedia video controller: Brooktree Corporation Bt848 (rev 12)

top(1) does not show locate as a CPU hog, but I figure it has to be hitting
the bus some.  Anyhow, NO STREAKS(!) with pxc-0.23, the same or longer
streaks, every 2-5 seconds or so, under pxc-0.28.

By the way, pxc-0.24 does not show streaking, but pxc-0.26 does.

-- 
 Mike Bianchi
 Foveal Systems
 190 Loantaka Way
 Madison NJ  07940-1910

 +1 973 822-2085	Voice and Fax

 MBianchi@Foveal.com

 Create videos of auditorium presentations without a crew?
 Yes!
 http://www.AutoAuditorium.com