Programming :: Programming To Multiple Video Cards

Jun 24, 2009

I've browsed the internet, but haven't found a satisfying answer. Hope this forum can help me in the right direction.I'm exploring the possibilities of creating a program that manipulates (writes to) two different video cards.I program in C and hope to avoid high level libraries like Xlib to keep the mem footprint as low and the performance as high as possible. Windowing is not important no desktop environment will be used. Be able to write two pixels (one to each screen) to would do.

How would I go about?To give an idea of the solution I'm looking for:One screen will show thumbnails of images on the hard drive. Clicking an thumbnail on display A will show the selection full screen on display B. On a laptop; preferably thumbnails on the laptop screen and the selected image on the external monitor.Is this possible with just low-level libs or do I need X or some third-party software to make life easy?

View 14 Replies


ADVERTISEMENT

General :: Get Multiple Video Cards To Work?

Mar 7, 2010

I installed fedora 12.

I have 2 ATI cards that I used to use on windows to run 4 monitors. A recurring problem has been to get them detected in linux. Only my secondary card is picked up linux. When I manage the displays it detects the 2 monitors connected that card.

What are the specific steps I should take to get the second card detected? Supposedly there is a tool system-config-xfree. I don't have it, yum can't find it.

Also I heard it has something to do with editing some xorg.conf file or something to that effect. I have absolutely no idea how to find the "bus id" of my card, or lookup the horizontal refresh rates, etc..

I would probably have no problem following the documentation & editing the file if I knew a good way to find these values.

Someone also suggested installing linux twice and saving the xorg.conf it generates each time (with different card each time) and then merging the two by hand. That is like killing a fly with a hammer though, when I do this again and again in the future It'd be nice to not have to take twice as long.

View 1 Replies View Related

General :: Configure Multiple Video Cards?

Apr 27, 2010

In Ubuntu Lucid Lynx RC, I got NVidia's TwinView to work with 2 monitors in a single video card. But when I use the same monitors but split them between the video cards I can't make TwinView work and it starts a X server for each monitor. I want the same effect I had with one video card.

View 1 Replies View Related

Ubuntu :: Multiple Monitors And Video Cards?

Dec 14, 2010

I've been using linux for roughly 12 years now but I've always avoided linux on the desktop since touching X back in the day was quite a hassle. I recently decided that rather than keeping my windows desktop full of 15 PuTTY instances, I should rock the *nix desktop.

I started by installing Ubuntu 10.10 Desktop. It detected my two monitors handing off a pci express card just fine. I decided to install the ATI drivers when it prompted me - the proprietary drivers would let me select to use the monitors separately, but would always just default back to mirroring the screens. I was unable to get it to stop that, so I had to go back to the open source drivers. Which is fine, I don't really need the 3d accel. Roll forward a week, I ordered another video card to add another screen. I purchased another ATI card, since word on the street is that same-vendor chipsets play best together. This one had to be PCI, if this matters.

dmesg reports the new card is fine and happy, but the Monitors GUI thing doesn't detect any monitors off the new card, or report anything about it. So: what should I do to make the second video card get noticed?[URL]...

View 6 Replies View Related

Ubuntu Multimedia :: Shopping Video CardS For Multiple Monitors?

Aug 16, 2011

I'm about to start a new build for my primary machine at home. The plan is to load up a server/workstation motherboard (ASUS KGPE-D16) with two 8-core chip, as much RAM as it will take (32GB) and to put two graphics cards in it. One to power my main 24" monitor (ideally via HDMI) and the other card to power two screens, one 24" on each left and right side via DVI (unless I can find a dual-HDMI card that meets my needs).

Does that make sense? Here's my question for this awesome group of intelligent individuals: What video card model should I choose? Obviously, I'd like them to match so I can SLI / CrossFire if I really want to, but what setup should I plan on to have a good experience managing multiple displays on multiple video cards?

Oh, and budget is probably up to about $300 per card, maybe a little more if it makes a lot of sense.I'm not alone in having tons of problems with trying to get multi monitor support in the last few versions of Ubuntu, and honestly it's the only reason why I'm still running Windows7: the multi monitor support is just SO DAMNED easy! I shouldn't have to spend this much energy thinking about video card model- it should just work, shouldn't it?

View 4 Replies View Related

Programming :: Searching For Video Or Screen Cast Which Shows Device Driver Programming?

May 30, 2010

I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better

View 1 Replies View Related

Programming :: Totem Python Plugin Programming: Any Signal For Video Mouse Click?

Feb 9, 2011

I want that I click with the mouse on the video, it paused.I notice that there is "BaconVideoWidget" which I guess is the video rendering widget but it don't have signal named "clicked":

Code:
vd = totem_object.get_video_widget()
vd.connect("clicked", vd.hide)

[code]....

View 3 Replies View Related

Programming :: Synchronize Sound Cards On Different Computers?

Dec 27, 2010

I've written a "C" program which transmits audio to a number of computers over a TCP LAN connection. I'm using ALSA, the preemptive kernel, and pthread. After running for 30 minutes or so the slight variation in sampling rates (~+-.01%) among the computers accumulates and manifests as a noticeable differential delay in the sound from the speakers. I know how to detect the variation and would like to dynamically compensate for it by individually varying the sampling rate (ever so slightly) of each playback device to oppose the variation.

Does anybody out there in Linux Land know how to dynamically vary the playback sample rate? I've tried using snd_pcm_hw_params_set_rate() and snd_pcm_hw_params_set_rate() followed by snd_pcm_hw_params() to no avail. They don't seem to work when playback is running.

View 8 Replies View Related

Fedora :: Resolve An Ongoing Fight Involving /dev/video Node Assignment Between 2 TV Tuner Cards And USB Video Camera

Feb 27, 2011

I am trying to resolve an ongoing fight involving /dev/video node assignment between 2 TV Tuner cards and a USB video camera.

Each time I reboot the three devices seem to shuffle their /dev/video assignment. i.e. what was /dev/video0 (USB camera) after a reboot magically becomes /dev/video1.

This causes all kinds of grief between my MythBackend and ZoneMinder who expect the devices to have static assignments.

how to best solve this? I did a brief search and one solution appears to be to statically assign the devices.

View 3 Replies View Related

Programming :: .ogv Video Does Not Display With <video> Tag In Firefox 3.5?

Jul 3, 2009

I was trying to take advantage of that new HTML5 <video> tag, and Firefox 3.5's native Ogg support, by embedding an .ogv video. Here is the references I used:

[code].....

Here was the code I put on my web page:

Code:

<video width="640" height="480" controls="controls">
<source src="http://path/to/uploaded/video/on/my/site.ogv" />
Your browser does not support the <code>video</code> element.
</video>

However, when I view it I get a video box, but it is grey and will not play a video. I keep playing with the various attributes but the result always seems to be the same. I also tried it on a Windows box with Firefox 3.5 (to make sure it didn't have something to do with my Linux config) but the results were the same.

View 4 Replies View Related

Programming :: Getting A Script To Be Run On Multiple Files?

Apr 17, 2009

I use a mencoder line to convert .avi to .mpg (dvd player compatible), it works well but i can only do one file at the time. It requires giving the input and output directories and the files name. I tried using (*.avi *.mpg in the command) on the directory but it just add up all the .avi and convert them into one huge .mpg. My goal is to have a script that would convert all the .avi files from a directory to the same amount of .mpg and also keep the naming of those files. Here is what i work with on single files:

Code:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup
-srate 48000 -af lavcresample=48000
-lavcopts

[code]....

View 3 Replies View Related

Programming :: Usually Make Multiple Dir Using -p Option?

Apr 21, 2010

(i) I usually make multiple dir using -p optionex: mkdir -p dicttest/audrep/tdriver/testNow after creating this dir's i stay in current dir instead i want to go directly to test dir how can i acheive this.(ii) When i execute which command as followswhich testerm i will get the location of testterm now i want to open this filewhen i did in this wayhich testterm | vi The file dosent get opened how can i acheive this ?ex:

linuxx86:110$ which testterm
/view/rdl110_linuxx86/vobs_usrrdl/sc/testterm
linuxx86:110$ which testterm| vi

[code]....

View 3 Replies View Related

Programming :: Redirect To Multiple Files?

Nov 12, 2010

I feel kind of embarrassed posting here, but this is technically a scripting sub-forum. Here is the problem. I have a folder with various files which include .txt files as well

How can i redirect same content to each of the .txt files in the folder?

I have tried
Code: $ echo "hello" > *.txt
-bash: !": event not found Code: also cat ~/otherdir/test.txt > *.txt
-bash: *.txt: ambiguous redirect Can anyone help me with this?Ok i solved it
Code: #! /bin/bash
for file in *.txt
do
echo "Text that needs to be written" > $file
done

View 2 Replies View Related

Programming :: AWK - Combining Multiple Columns?

Feb 23, 2010

I have a folder with only 24 files named <number>.dat (i.e. 4.dat, 6.dat and so on) where <number> is between 0 and 256. Each file has just two columns of data and nothing else.

I'm trying to combine all the second columns ($2) together. I've been fiddling around with getline and so far have

awk '{ getline ln < "6.dat" ; print ln" "$2 }' 4.dat

which takes file 4.dat and adds $2 from 6.dat, but I want a single command to take each $2 from every file and add them to (for example) 4.dat (having $1 from 4.dat is no problem). A command that takes every file in the folder and grabs $2 and places them in a common file would be ideal. Frankly I can work around if you combine both columns from every file.

View 5 Replies View Related

Programming :: Write A .sh Script That Allows To Run Multiple Other

Jan 30, 2010

I'm trying to write a .sh script that allows me to run multiple other .sh scripts at once.

My problem occurs within a Variable:

I have set

S1 to S7 to be the name of the .sh

A="7"
B="S$A"
C="$S$A" <- and this is where my problem is

I want C to be the content of S7 till S1 but if I run this line it will of course look for the content of S and link it with the content of A.

How can I correct this?

Edit:

WHERE="/home/X/Y/"
SH=".sh";
A="7";
B="S$A";
C="$B";

[Code].....

View 6 Replies View Related

Programming :: Run Multiple Instances Of A Jar Executable?

May 5, 2009

It is possible to run multiple instances of a jar executable. Is it possible that only a single instance of the jar runs? Wrappers like JSmooth or Launch4J can be made to run as a single instance. But since there are no such wrappers for linux, I need a way to restrict the jar to a single instance. How to embed the jar file into an executable such it runs a single instance?

View 14 Replies View Related

Programming :: Grep Multiple Files ?

Dec 30, 2010

I want grep multiple files:

let abc.1.abc.2,abc.3,abc.4

I use grep <pattern> abc.* to read the files. But here grep read files in the order of 1,2,3,4 . I want to to grep the files in reverse order like 1st the abc.4 file will be read and abc.1 file will be last.

Is this possible ?

View 3 Replies View Related

Programming :: Multiple Command In Ssh Not Working?

Apr 22, 2011

I have prepared a script which will login to each server and search for a keyword.
I want output on same machine from where m running script.

When i try to run command on any machine.. It works well.

w=$(grep -irH "keyword.com" /home/*/public_html/*);if [ $? -eq 0 ];then echo -e "
$HOSTNAME";echo $(grep -irH "keyword.com" /home/*/public_html/* | cut -d: -f1 | uniq | awk '{for (i=1;i<=NF;i++) printf "%s
",$i}');fi

[Code]....

View 9 Replies View Related

Programming :: Multiple Definition Of 'variable_name'

Nov 3, 2010

I have the following header file in /usr/include/test.h:

Code:
#ifndef TEST_H
#define TEST_H
const int test_version = 1;
#endif

[Code].....

View 3 Replies View Related

Programming :: Multiple Files To Compile By G++?

Jan 12, 2011

how i could compile for example: a tutorial file of cantera open source files. when i do :g++ example.cpp -o examplei get huge errors such as the header files are not here,...please tell me how i could compile it. ofcourse i have configured the full opensources and i see in /usr/local/cantera/binthat the files are there but i still can not compile and execute any cpp file.

View 2 Replies View Related

Programming :: Multiple Runs With The Same Login, C++?

Aug 3, 2010

I am trying to implement a corba program (client) to retrieve customerinformation from the server. Since the server allow to login once andperform your operations until the lifetime experies, i want the client to use already login connection to perform the retrieve function withoutlogin in to the server for every request.Suppose retrieve has three functions, logon(), perform() and logoff()Pseudo code;Quote:

1. User runs a client application
./retrieve <URI> <customerID>
2. if the client program has already login, donot login, go to 4

[code]....

View 3 Replies View Related

Programming :: Multiple Threads In Socket C++?

Nov 26, 2010

Code:
void* thread(void* arg)
{

[code]....

View 5 Replies View Related

Programming :: Multiple Window GUI App In Qt Creator

Aug 3, 2010

For example I want my Qt Creator app to have multiple custom dialogs. How do I manage them? Also, what if I want to replace all the widgets in a window with new ones, how do I manage that in Qt Designer?

View 4 Replies View Related

Programming :: Use Multiple Options At The Same Time?

Dec 4, 2010

I want to be able to use multiple options at the same time and some of those options will require an argument and some will not.

Here is my bash script:

#!/bin/bash
while getopts ":a:bc:de:fg:" opt ; do
case $opt in
a)

[Code]....

If I only use option -a with no arguments, the script works...

View 1 Replies View Related

Programming :: Shell Script For Multiple OS?

Jun 28, 2009

i need a script that will give as much system info such as CPU usage, partition info, mem usage, etc.. from multiple OS's, FreeBSD, AIX, HP-UX. I only know SCO unix and dont know the commands on the other OS's.

View 2 Replies View Related

Programming :: Ssh Command On Multiple Hosts?

Apr 13, 2010

I want to create a script to insert the fstab and hostname in a textfile of multiple servers on the network without a password. The servers are situated in a text file. So i want to read the text file line by line and write the output into another textfile.

View 10 Replies View Related

Ubuntu :: Set Up Multiple Graphic Cards?

Jan 1, 2011

This is my lspci output.

Code:
01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (rev 01)
01:00.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (Secondary) (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
04:00.0 VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3600 Series
Initially I had just teh HD 3600 in the PC, using the "AMDccle" drivers and configuration running two monitors.

I then added an old RV280 PCI card to allow a third monitor. When the PC powers on the bios output is on the RV280, once linux starts the RV280 monitor goes to the ubuntu desktop colour, the two monitors on the HD3600 get a signal (power up) and display the logon screen.

When I log on the two HD3600 screens become my desktop. If I ctrl alt f1 etc. the terminal screen comes up on the RV280 and the two HD3600 screens go blank. This suggests that all 3 monitors/ 2 graphics cards are all working ok, and ubuntu is happy with them. My problem now is to make the RV280 accessable via X/gnome at the same time as the HD3600. It would be nice to have it as a 3rd monitor on a very wide desktop, but I'd settle for it being its own little window running various tasks/programs such as mail/firefox.

View 9 Replies View Related

Programming :: Load Multiple Records Into SQLite?

Nov 19, 2008

I am using SQLite as my database for some portable cross platform applications I am working on with REALBasic as my IDE. I have an old Sybase 8.0 database that I can access via Microsoft Access and thereby extract the data I need from each table.

Now I know I can create .csv files from each table and load them into SQLite using the import tool, but then I can't define the primary key and other field attributes. So the other option is to load each file via SQL.

Now with most SQL editors I can create multiple queries and they will run just fine. But I can't seem to do that with the SQLite interfaces. I can paste multiple queries but I can only run one at a time. And by that I mean I have to click run.

Ummm that's not acceptable since my biggest table contains over 600,000 records. I have the queries all written, that was easy using a simple interface I wrote in Access.

Code:
INSERT INTO tblMeters(recordId,meterId,meterName,meterSerNum,registerSerNum,mxuSerNum,meterType,manufacture,meterModel,readType,groupId,multiplier,rollover,vendorId,xfrmerCode,bldgCode,CATEGORY,energyType,unitOfMeasure,location,access,comments,dateInstalled,dateCalibrate,pipeSizeIn,pipeSizeOut,elecMeterSpecs)

[Code]...

So is there another method I can use? I can't seem to find anything relating to my particular question at the SQLite web site

View 3 Replies View Related

Programming :: Right Utility To Rename Multiple Folders?

Sep 14, 2009

I've got about twenty folders with names such as "Bennett Galleries" or "Athletic House" and I want to rename them to "Bennett_Galleries" or "Athletic_House". Any right utility to use to accomplish this (sed, awk, bash script, etc...)?

View 2 Replies View Related

Programming :: Mounting Multiple Devices To Root?

May 16, 2010

I'm trying to build a custom setup that requires a flash drive and a CD to both be mounted to root. Applications, boot data, and other static directories are on the CD, while /home, /opt, and /tmp are on the flash drive. Is there a special option I can enter into fstab to allow this? If not, I intend to modify my kernel to allow this, but I'll need to find the sources that control this function.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved