• 03mar
    Categories: Hardware & Software Commenti disabilitati

    A needed consideration is that testing by polygraph (also known as “truth machine”) has given rise to conflicting opinions about the scientificity of the method and regarding the validity of the outcoming results. Even if in some countries it is still used for formal questioning investigations, the idea of integrating this kind of system into a portable device best fits the social and recreative environment rather than covering any social or utility purposes.
    Goal of the project is building a device from a microcontroller and few electric components, so that it has a minimum amount of accuracy needed to works in the most generic cases. This paper will cover the steps that led me to its realization.

    A full view of the Arduino polygraph

    A full view of the Arduino polygraph, featuring a heartbeat and GSR sensors

    Polygraph project: perv_sys_proj_736581.zip

    Tags:
  • 13gen
    Categories: Hardware & Software Commenti disabilitati

    This little bash script prioritize the smooth view of a fullscreen application preventing screen shutdown, start of screensaver and suspends boinc projects untill the window goes out of fullscreen.
    It has to be put as a startup application (it must use a command like sh ~/fullscreen-daemon.sh) and runs as a daemon, under gnome desktop environment version 2 and 3.
    UPDATE 2011/05/29: The script is tested under gnome 3 but should work as it has always done under gnome 2
    File: fullscreen-daemon

    Furthermore, in case of a fullscreen video, if it is still choppy there might be a workaround to play smoothly fullscreen:

    sudo mkdir /etc/adobe
    echo "OverrideGPUValidation=true" >~/mms.cfg
    sudo mv ~/mms.cfg /etc/adobe/


    References:
    http://ubuntuforums.org/archive/index.php/t-1090393.html
    http://ubuntuforums.org/showthread.php?t=319519
    http://boinc.berkeley.edu/wiki/Boinccmd_tool
    https://bugs.launchpad.net/ubuntu/+bug/346289

  • 30ago
    Categories: Hardware & Software Commenti disabilitati

    UPDATE 2011/05/29 In gnome shell 3.0.0 there is no concept of tray applets, but still I like to make a single startup script in wich I execute all the background programs needed, instead of creating lists of entries in the autostart registry
    I use this little script, which run at startup, to make stuff available

    #!/bin/bash
    programs=(
      "perl .bg-shifter"
      "skype"
      "gnote"
    )
    startup () {
        echo $@ "starting..."
        eval $@ &
    }
    
    #Execution
    for (( i = 0 ; i < ${#programs[*]}  ; i++ )) do
       startup ${programs[i]}
    done

    Skype needs "Start in tray option" to behave.

  • 16ago
    Categories: Hardware & Software Commenti disabilitati

    Two small steps to fix the problems had in suspending and resuming, which can be noticed using Fedora on many Sony VAIO:

    1. System hangs after suspend/hybernate
    2. The keyboard is not responding after resume/thaw

    1. Avoid hang
    UPDATE 2010/12/13: As of Fedora 14,  a built in script will deal with the deactivation and subsequent reactivation of problematic modules. It's name is /usr/lib/pm-utils/sleep.d/75modules.

    It only needs to be setup by creating a configuration file:
    sudo nano /etc/pm/config.d/modules

    If you wish to know how to identify the problematic modules, fedoraproject wiki is the place to go. In my case SD card reader turned out to be the cause of the hang, so I specified the following content:

    SUSPEND_MODULES="sdhci-pci"
    export SUSPEND_MODULES
    2. Rebind keyboard

    Recently a kernel parameter was introduced to rebind keyboard after resume, putting the word end to this long term bug. So all you have to do is (UPDATE 2012/04/18 for grub2)

    sudo nano /etc/default/grub

    and append  atkbd.reset to the kernel line, like this:

    GRUB_CMDLINE_LINUX="... atkbd.reset"
    Don't forget to run grub2-mkconfig. Consequently, the system will take care of resetting the driver on resume.

    Sources:
    http://thesopebocks.com/2009/07/26/running-a-script-on-suspend-and-wake-fedora/
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/59867/comments/102

  • 21giu
    Categories: Hardware & Software Commenti disabilitati

    There is a script which allows to bind ACPI events to backlight intensity, so that Fn+F5/Fn+F6 will work. Thing, this one, that doesn't happen out of the box. Not only, the resource offers a wide coverage of common problems of Sony Vaio Z-Series laptops and Ubuntu, but still were appliable to my setup.

    Link: LCD brightness controll with the acpi_create_nv_event script

    Tags: ,
  • 29mar
    Categories: Hardware & Software Commenti disabilitati

    1) Retrieve localhost interface
    $ ifconfig vmnet1 | grep "inet "
    inet XXX.XXX.XXX.YYY  netmask 255.255.255.0  broadcast XXX.XXX.XXX.255

    2) Configure VM Settings > Network Adapter > Network Connection: NAT

    3) Add entry in C:\Windows\System32\drivers\etc\hosts
    XXX.XXX.XXX.YYY        fedorahost

    4) Be aware that not all ports are opened on the host machine. For instance, access to weblogic default port (7001) should be enabled:
    sudo iptables -I INPUT -p tcp --dport 7001 -j ACCEPT

    5) It might be useful to restart the HTTP server on the host machine. Then, browse to  http://fedorahost

  • 15feb
    Categories: Hardware & Software Commenti disabilitati

    Project hamster

    Project hamster

    A nice gnome applet for time tracking. It was not immediate to find so maybe worth reporting.

    Link: http://live.gnome.org/ProjectHamster

    Tags: ,
  • 16dic
    Categories: Hardware & Software Commenti disabilitati

    Problem is the 4GB maximum file size limit of FAT32. As this thread states:

    dd if=/dev/hda | gzip -c | split -b 2000m - system_drive_backup.img.gz.

    will create chunks of 2MB each. Then, to restore:

    cat system_drive_backup.img.gz.* | gzip -dc | dd of=/dev/hda

    Tags: ,
  • 15dic
    Categories: Hardware & Software Commenti disabilitati

    Could happen that 1024MB RAM is too few for a virtual machine, and an intensive guest process (more then 2h of elaboration) runs out of memory. But if raising the vm RAM quantity doesn't change a thing, if it runs out of memory when the system has memory, then there is another problem. And here is the solution.
    Basically, adding the following lines

    MemTrimRate=0
    sched.mem.pshare.enable = "FALSE"
    mainMem.useNamedFile = "FALSE"
    prefvmx.minVmMemPct = "100"

    to the virtual machine configuration (mine is ~/vmware/[machine-name]/[machine-name].vmx), will result in faster memory allocation... et voilà!

  • 28ott
    Categories: Hardware & Software Commenti disabilitati

    VMWare 7 features:

    http://www.vmware.com/products/workstation/new.html

    Features hardware accelleration in virtualized graphic adapter using Microsoft WDDM driver. That was the most acceptable solution instead of using WARP, anyway.. kudos to them.

    Download (need to have an account)

    http://downloads.vmware.com/d/info/desktop_downloads/vmware_workstation/7_0

    It is a 30-day evaluation of VMWare Wotkstation. VMWare player will keep running after that time.

    Screenshot (No Gimp here :P)

    Windows 7 with aero in a host operating system Fedora 11

    Windows 7 with Aero in a host operating system Fedora 11