I have have to write a video device driver, but rendering will happening in memory, not on a physical card. I already wrote a simple driver stripping out hardware piece code from an existent vodoo driver. I an install it, uninstall it but i dont know how to map it to a file /dev/mydevice_video
Is there a field in fb_info or fb_vscreenifo where the device name has to be passed before calling register_framebuffer.
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
I am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.
I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'
Code:
Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.
Is that possible that SHM shared memory is counted as cache memory on Linux with kernel 2.6.18?If find it really odd since this memory is not file backed, but I have a piece of code that loads data using shm_open+mmap, and it generates an amount of cache memory in /proc/meminfo that corresponds exactly to the amount of shared memory (I load that data from a file but I am using posix_fadvise(fd,0,0,POSIX_FADV_DONTNEED) to ensure this file is not cached and I made sure that it is working as expected). As far as I know SHM memory was not tagged as cache memory with kernel 2.6.9.If it is the case it is really unfortunate since normally cache memory can be considered to be part of the "available" memory since it can be flushed promptly but this is clearly not the case with SHM memory... Is there an easy way to get the total amount of used SHM memory on a system?
If I take out the existing video card and put in another one of a different type (but not a different brand), how does Ubuntu behave? I know what Windows typically does. Windows starts up the screen using a default video driver which is at least 1024 by 768 and then asks you what this new bit of hardware is and asks where the drivers are. I'm pretty sure Ubuntu has default drivers of its own, but I don't know what their resolution is.
I just installed Linux Mint 9 as a dual boot install with Win XP. Trying to activate wireless network card driver and video driver. Pops up: "You are not authorized to perform this action".How do I get authorized?
Now every time I boot Win XP, the Internet Explorer menu bar is all blacked out and goofy. If I log out and back in it corrects itself. If I reboot it's blacked out again. Re-installed IE8. Still blacks out.Also Firefox in Win XP crashes expectantly. It has NEVER crashed on me previously.
I installed Debian recently, and everything seems to be working fine, except some video games are unusually slow compared to what they would normally be. Tremulous, for example, worked reasonably fine on this computer with Windows XP, but now (Debian) for some reason it's laggy even on the title screen. Something wrong with my video drivers?
All of the information I know: The computer is a Dell Dimension 3000 RAM: 256mb? Gnome System Monitor says 247.1mb, SWAP: about 730mb Processor: Intel Celeron 2.40GHz HD: 25gb out of a 40gb HD free, and an external 1tb HD with about 920gb free Debian Release 6.0 (squeeze) Kernel Linux 2.6.32-5-686 GNOME 2.30.2 (I've tried LXDE also, no noticeable change) Only linux on the machine.
I am running gnome 3 on ubuntu 11.04, a clean installation from the gNatty version, 32 bit. The machine is a Lenovo t420, with 6GB RAM and a integrated video card.
Everything is running smoothly but not for games. I tried urban terror, Tremulous, Nexuiz, all of the lags from the very beginning as if I was using a machine 5 years ago to run today's video games (ie, takes 10 seconds for a mouse move a show, audio lags, .etc). From my experience it should come from video card driver not installed, but the update manager shows all device works fine (indeed, the screen resolution is 1600X900).
I just got a Sony DCR-DVD108. It uses a mini dvd and a memory stick pro duo. It was a gift, and it's the first time through the rodeo for me using this set up. I can get the card recognized when I plug it in using a card reader. I want to record video, and that's where I run into problems. When I insert it, I get something saying that I have still photos, and Shotwell is the default photo software. That would be OK if I had still photos, but like I said, I'm going for video with this set up. I have VLC, but when I tell VLC to "open capture device" under "Media" it gives me a dialog box with (I think) Linux 2 as the capture method (this is going to get a little fuzzy as I have no idea what it's looking for here) and a couple of blanks that need filled in. I may be going about this bass-ackwards, in fact I probably am, but like I said, this is the first time I've messed with a memory stick pro duo. I guess since it's Sony they want me to go out and buy a Play Station to get this to work. I don't think I want to go there. I might be barking up the wrong forest with VLC, but Wikipedia says it will play it.
This is a clean install of Debian Lenny, using KDE3.5.10 desktopHave followed these instructions:http://wiki.debian.org/ATIProprietary
Using kernel 2.6.26-2-686, I think the fglrx module has been built correctly. orac:~# modinfo fglrx filename: /lib/modules/2.6.26-2-686/nonfree/fglrx/fglrx.ko
I'm trying to install plymouth on my Debian 8.2 Jessie (Stable), but when I boot my pc I get this error:
Code: Select alluvesafb: cannot reserve video memory at 0xdf000000
This is my configuration:
Code: Select allcat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration'
How can I decrease the amount of video memory in a debian squeeze laptop? The amount of video memory is 1GB and I want to reduce it to 512MB or 256MB. How can I do this
I'm trying to increase my framerate on World of Warcraft, and I'm not sure if this will help but it should in theory. I'm not even sure if I'm right in my assumption that it's currently non-optimal. nvidia-settings reports the full 1024MB of onboard video memory from my 420GT, but lspci reports three separate figures which don't even add up to 256MB:
[Code]....
Now, I don't know which to trust, is all the video memory being detected or just the pittance that lspci reports? To my mind, more graphics memory means you can store more graphical code and data closer to the gpu resulting in faster framerates, right?
I dont know if this issue has already been solved, or if there are other threads dealing with it, but Im quite desperate with this bug that has been annoying me since I upgraded from 9.10 to 10.04.
Firs I thought it would be GEM related, but Im using a proprietary graphics card, so thats not the way to solve it. I experience the problems a memory leak provokes, mainly that, as time goes by with the laptop turned on, the system needs more resources to execute simple actions, and it freezes too many times. Plus IBUS will, suddenly, stop working (I still don't know if it is related or not), and, most of the times I log in, Notification Area 2.30.0 will load with errors.
I recently bought 1GB video card of 'xfx radeon hd 5450'. It came with cd for drivers of windows. I installed fglrx. Still in ubuntu 10.10 (lucid) I ran: lspci -v | grep -i prefetchable which shows 256M which is video memory of my ASUS motherboard.
Upgraded to 10.04 with proprietary Nvidia driver. No plymouth at boot, but dmesg gives error below. On shutdown get large plymouth display. Tried several hints but none work.
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.
I'm currently developping a program in C++, using Qt, for an embedded board (SBC9261).It works well but crashes after some time, due to a system memory overload (my program uses more and more memory until 100%, when it crashes).I've been able to figure out the source of the memory leak :The function f is called by my program every second. f instanciates a new object (a QImage from the Qt lib), does a bunch of processing on it, and returns it to the calling function :
Code: QImage *MyClass::f(QString filename) {// Open image QImage *image = new QImage(filename);
I have a general question regarding memory errors. I frequently ran into memory errors such as seg fault, double free, etc. Sometimes I got the following traces for example.
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":
I have 2 applications that send and receive messages through shared memory IPC. When I run the app ..it works but the number of messages per sec keeps changing drastically sometimes it is 400-500 per sec..then 800 then 1200 then 2000. is this normal with SHM IPC or could it be a code related issue.
I have faced a problem with my code (a small tcp server). After the thread returns, the memory not decreases, but when a new connection is made, memory not increases and the new connection initialize a new thread with a same thread id of the previous thread. When two connections are made at same time, two thread ids are created and when the respective threads returns the memory not decreases. The Valgrind indicates that not memory leak occurs, the pointers are released. Indeed, more memory are allocate when new thread id is created. i used gcc and debian.
I have been assigned a school project on detecting memory leaks in linux processes. I am reading.. but have found it hard and inefficient to go through the very vast documentation not knowing what to really look for. Could you please give me some guidelines on this subject?
In words, AND the byte at memory location 45 with immediate value 03. As reports "Ambiguous operand size for and". How could I code the instruction such that as understands my intention?
john: .byte 45 and byte[john],03 gives the same error.