duminică, 16 noiembrie 2014

Lazarus / FPC - some of my work

Here are some programs that I am working with. I hope someone will find some of them useful

https://www.dropbox.com/sh/d5bw7h3j33vmu5t/AAARZeUlm4pvHHJwnqUEn4Jqa?dl=0

Raspberry Pi - Fixing some USB issues

    The USB ports appear to be somehow unstable on Raspberry Pi. A complete explanation and a solution that worked for me can be found here:

   http://ludovicrousseau.blogspot.ro/2014/04/usb-issues-with-raspberry-pi.html

In short, this is what I did:

1. Start a file manager with root privileges
        sudo thunar        (thunar is my file manager)

2. Edit the file /boot/cmdline.txt and add dwg_otg.speed=1  Your file should look like this:
   dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
   dwc_otg.speed=1 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4
   elevator=deadline rootwait

3. Save and reboot

PS: I have a ASIC USB Miner for bitcoins that I'm running on Raspberry Pi just for fun (it didn't produced anything so far and I'm not expecting it to do so). The solution above appears to fix the stability of the system (it was freezing every 5-10 hours, now it's working non-stop for about 2 days)


vineri, 7 noiembrie 2014

OpenSuSE 13.1 / VLC error: No suitable decoder module

I've just switched from OpenSuSE 12.3 to 13.1 and I got this problem. VLC won't play a video file and returned the following error:

"No suitable decoder module: VLC does not support the audio or video format "mp4v". Unfortunately there is no way for you to fix this."

Fortunately, there is a way to fix this, and here is how:

1) Completely remove all VLC files with the following command (open a terminal and type):
sudo zypper rm libavc1394-0 libavutil52 libcaca0 libcddb2 libdirac_encoder0 libdvbpsi7 libdvdnav4 libebml4 libgme0 libmatroska6 libmodplug1 libshout3 libslang2 libswscale2 libupnp6 libvlc5 libvlccore7 libxcb-xv0 libzvbi0 vlc-noX vlc-noX-lang vlc-qt

2) Install VLC with OneClick Install from VLC's home page

That's all!



sâmbătă, 1 noiembrie 2014

OpenSUSE 13.1 / older nVIDIA cards / nVIDIA GeForce G105M

    I have a laptop ACER with nVIDIA GeForce G105M videocard. Yes, it is about 5 years old and I have a lot of problems with OpenSuSE (12.x, 13.1) and nVIDIA drivers.
     I have covered some issues in a previous post when I posted a config file example.
     My videocard requires the nVIDIA G02 package. However, some programs insist to install the nVIDIA G03 package (I don't know why), so I have to be very careful. If the 03 package is installed it will mess up the entire system (OpenGL not working anymore, multiple images of the desktop on the laptop's display). I tried to ban the installation of the 03 package but it didn't seem to work, so the only option is to check very carefully every installation (why is Mozilla Thunderbird trying to install video drivers I can't imagine).

    So far, OpenSuSE 13.1 is working (almost) properly: KDE desktop is not working with OpenGL when I attach a monitor to the laptop (yet other programs that requires OpenGL are working; I can live with that)