Thursday, November 15, 2007

How to make Piranha 6.0 to work on Linux

If your "Z-Star Microelectronics Corp. ZC0303 WebCam" is not working on Linux, then read this ;)

There is a conflict with the old version of module. It recognizes the Piranha web cam however with the wrong module. So removing the wrong module lets the correct one to recognize the camera and make it work!

The old driver was showing this when 'dmesg' is called, however web cam was not working
[78983.564439] usb 1-1: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8:0x303B)
[78983.684101] usb 1-1: PB-0330 image sensor detected
[78984.383977] usb 1-1: Initialization succeeded
[78984.384052] usb 1-1: V4L2 device registered as /dev/video0

$ camorama
..Could not found /dev/video0 :(

So remove the old module from kernel..
$ sudo modprobe -r zc0301

After the ZC0301 module is removed from the kernel, and the camera unplugged, then plugged. It started to work!
[88075.663459] usbcore: deregistering interface driver zc0301
[88075.663539] usb 5-2: Disconnecting ZC0301[P] PC Camera...
[88075.663543] usb 5-2: V4L2 device /dev/video0 deregistered
[88086.697969] usb 5-2: USB disconnect, address 3
[88089.183332] usb 5-2: new full speed USB device using uhci_hcd and address 4
[88089.380328] usb 5-2: configuration #1 chosen from 1 choice
[88089.383203] /build/buildd/linux-ubuntu-modules-2.6.22-2.6.22/debian/build/build-generic/media/gspcav1/gspca_core.c: USB SPCA5XX camera found.(ZC3XX)
[88089.492264] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.07
[88089.750150] usbcore: registered new interface driver zc0301
$ camorama
..YES!

Tuesday, January 02, 2007

Memtest86+ Yeni RAM mi aldim nedir?

Sonunda laptop'a 3000TL vermekten kurtuldum. 2x512 MB PC 2700 333Mhz Kingston Notebook Ram'i aldim. Bilgisayara taktim ve hemen dusundum acaba nasil anlayacagim 1GB oldu mu, veya bir bozukluk mu oldu.

Masaustu bilgisayarim acilirken RAM'in her bir MB'ini sayiyordu. 1..2...3 ...367.. gibi. Fakat dizustu bilgisayarimda boyle birsey yok. Direk GRUB'a giriyor. Shift mi, tab mi derken GRUB listesine girdim. Ubuntu'nun kendiliginden guncelledigi linux kernel versiyonlarinin en altinda Memtest86 yaziyordu. Bu da nesiydi?!!

Hemen onu sectim tabi. Tamam. Ram binli bir deger, ve bilgisayarla ilgili diger ozellikler de yaziyor. Hmm. Memmove, vb. testler yapiyor. Hmm.. Hmm..

Ve huh.. Ram'ler saglam. Memtest86+, guzel bir calisma olmus.

Iste bu da sitesi :

http://www.memtest.org/
http://www.memtest86.com/

Bana hayirli olsun yeni RAM'ler insallah. Laptop almak yerine simdilik hafizayi yukseltmemi onerip dizustu cesitleri arasinda kaybolmus durumdan beni kurtaran arkadaslara tesekkurler :)

Saturday, December 02, 2006

Dis networkten de ic networkten de ayni isimle server'a erisim..

Svn, cvs gibi araclari kullananlar, hatta web sitesi yapanlar bilirler, cogu zaman 10.0.0.15 gibi ipler kullaniriz ki server'a iceriden eriselim. Ama bu cogunlukla disaridan erisimlerde phoad.dyndns.org gibi bir isme tekabul eder.

Esas sorun soyle oldu. Iceride svn bilgibankasinda bir proje actim ve 10.0.0.15 gibi bir adres vererek bu bankaya commit ettim. Sonra okuldan degisiklikleri commit etmeye yeltendim ki, amanin ip adresi local. Her zaman degistirmek yerine icerde de disardada ayni ismi kullanarak ayni makineye erisme yoluna baktim. Ahmet Yildirim DNS'te phoad.dyndns.org ismini makinenin ic ipsine yonlendir dedi.

DNS'i actim. phoad.dyndns.org host name'ini 10.0.0.15'e yonlendirdim.

nslookup ile test ettim. YES! phoad.dyndns.org 10.0.0.15'i gosteriyor. Disaridan da 81.214.87.44 .

Problem cozuldu. Simdi her yerde IP yazmak yerine phoad.dyndns.org yaziyorum.

Ufak ama mide agritan bir sorun daha cozuldu.
Tesekkurler..

Sunday, October 22, 2006

Hard disk geometry error on FreeBSD..

My hard disk, MAXTOR 6L040J2, resulted error while trying to install FreeBSD 6.1, then I made a search and some readings. They were about APCI, setting geometry values with hand, making memory checks etc.

The point
was that,

"Article about installation on FreeBSD site"

The article was saying "With this scheme the master disk on the second IDE controller will always be ad2, even if there are no ad0 or ad1 devices."

So I think the error may be because of using the end of the cable which I am plugged to the HD. Instead of using the end part, I used the middle joint point. So the primary will get the middle one, if secondary exists it would have the last one.

And tataa. It solved the problem. The installation worked out. So if you get such kind of error try to plug the cables of HD in different order before trying other things.

Lets see what more FreeBSD will bring to me and to this blog.

Have a nice day everybody..

Saturday, October 07, 2006

Webots' problems on Linux..

Webots well works on both Windows and Linux systems. Some days ago I made a mistake, changing screen card driver to NVidia, but my screen card was from Intel.

So Webots's simulation view, the 3D screen, did not work properly. When pressed stop or smt. the program quits. So as usual I tried to redownload and install the Webots. Off course, it did not solve the problem, because it was not the problem.

I also see some flash videos does not work, some works but. Whatever.
So I tried the
sudo nvidia-glx-config disable
command. This command told me that, my configuration is different, namely changed. So I made what did the command tell and changed the config. I also remove all the nvidia related packages from my system. Then, I restart the computer.

Oh my god. I am in console, and getting failures about gdm. I thougt the error is about my removed packages. So I reinstall
linux-386
linux-restricted-modules..2.6....
linux-restricted-modules-386
Then I go to
/etc/X11
and get the old config back. Thanx the backups..
cp /etc/X11/xorg.conf~ /etc/X11/xorg.conf
then
startx
yes! I came back. I think the error was all about the config file.

Because I have been removed all nvidia related packages, when retried the webots!! Yes Webots is also back..

It may be a quite little chance to get the same kind of error, however if it happened, I wish this writing to help you..
I did not search the web about this error, but you may find a better reference, and if so let me know by writing comments..