Friday, January 24, 2014

my work at XDA

My Work at XDA



Supported devices: 

Motorola : 
  • Moto G

Sony(-ericsson) Xperia 2010 line
  • X10mini (e10/robyn); 
  • X10miniPRO (u20/mimmi); 
  • X8/W8 (e15/shakira)

Motorola related work : 

Wednesday, January 22, 2014

Logitech Unifying Mice & Keyboard : pairing and setting up

Logitech Unifying Mice & Keyboard : pairing and setting up



Since there is no support form Logitech for Linux, a small tool have been created by Daniel Pavel : Solaar.


  • How to install on Ubuntu based distros : 


  • Launch it by typing solaar in terminal or seek for it in menu.
(You may need to unplug/re-plug your receiver before Solaar can detect it.)

here are some screen-shots of the app : 




  • For my specific device (M505), only Smooth scrolling and battery status are supported: 




About Solaar : 


Monday, January 20, 2014

Tip Of The Day (4) : Bulk renaming files in linux

Tip Of The Day (4) : Bulk renaming files in linux 

Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (3) : Linux Mint 13 and Petra Backports
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 
    • Xfce with Thunar : use the embedded Bulk renamer included in Thunar.


    • Linux Mint with Nemo (or Ubuntu based with Nautilus) : 

    1- Install pyrenamer 

    2- Use it "as it is" or integrate it in your file manager : 

    Nautilus and its fork, Nemo can use scripts to integrate new features.

    to get the right folder for your script, use either solutions : 

    - Right click on a file, search for scripts > open scripts folder
    - On Nautilus for Ubuntu 12.10 and before : ~/.gnome2/nautilus-scripts
    - On Nautilus for Ubuntu 13.04 and after : ~/.local/share/nautilus/scripts
    - On Nemo : ~/.gnome2/nemo-scripts

    Create a new file call it "Bulk rename" or whatever, open it with your text editor and paste the following : 

    #!/bin/bash
    #Launch Pyrenamer in current folder.
    #########################################################################
    # Nemo "Bulk Rename" Script #
    ##########################################################################
    if [ "$1" = "" ];then
    wdir=${NEMO_SCRIPT_CURRENT_URI#file://}
    wdir=${wdir//%20/ }
    else
    filetype=$(file "$1")
    filetype=${filetype##*: }
    if [ "$filetype" = "directory" ];then
    wdir=${NEMO_SCRIPT_SELECTED_FILE_PATHS%%$1*}
    wdir=$wdir/$1
    else
    wdir=${NEMO_SCRIPT_SELECTED_FILE_PATHS%%$1*}
    fi
    fi
    pyrenamer "$wdir"

    Save, and make it executable

    3- the script is now available when right clicking > scripts in the folder you want files to be renamed.


    Saturday, December 21, 2013

    Tip Of The Day (3) : Linux Mint 13 and Petra Backports

    Can't log in after the update of your Linux Mint with Petra Backports ?

    Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (4) : Bulk renaming files in linux
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 



  • After the update i shot down my PC, and the following day i couldn't log in and got 
    "There was an error loading the theme XXXXXX" 
    And no way to log or anything

    Here is the Workaround : 

    1. Press ctrl+alt+F1 to switch to the console
    2. Log in
    3. Then type sudo killall mdm
    4.  and startx
    5. Cinnamon will start correctly (we've just bypassed the login window)
    if not done yet, make sure mint-meta-cinnamon , mint-mdm-themes are installed, and ubuntu-system-adjustments is up-to-date.

    ==> you've got a somewhat working PC now, but you'll need to repeat the process at every boot

    Now fixing the issue : 

    When the update was performed it erased the potentially custom theme we were using so mdm couldn't launch anything at boot ...

    • Once in Cinnamon trying to start mdm in order to change the theme fails.
    • Open /etc/mdm/mdm.conf as root
    • Search for  HTMLTheme= and GraphicalTheme=
    • Change theses values to : 
    HTMLTheme=Mint-XGraphicalTheme=linuxmint
    • Save the file, and reboot
    • Log in, open mdm and choose the theme you want (html or gdm/gtk)

    ==> You've now recovered a fully working Linux Mint 13 with the Petra backports ! 


    Alternate fix [source

    • Delete your MDM configuration with the command: sudo rm -f /etc/mdm/mdm.conf
    • Reset the MDM configuration with the command: sudo touch /etc/mdm/mdm.conf
    • Reboot the computer


    Thursday, November 28, 2013

    Motorola Moto G



    Previous article was 100% obsolete. 
    This will be updated ASAP!

    How to wireless charge your Moto G

    Sunday, November 10, 2013

    Tip Of The Day (2) : Batch resizing pictures in linux

    How to batch resize pictures in Linux (Mint and Ubuntu based distros)


    Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (4) : Bulk renaming files in linux
  • Tip Of The Day (3) : Linux Mint 13 and Petra Backports
  • Tip Of The Day (1) : Screenshot 



  • first install imagemagick
    sudo apt-get install imagemagick

    then open in terminal the folder containing your pictures you want to resize, and then type the following : 
    for file in *.[picture extension]; do convert $file -resize [size you want] [new-name]-$file; done

    example, for .JPG files that you want to resize in 800*600 (the file will be sized to fit in a 800*600 frame without destroying ratio)
    for file in *.JPG; do convert $file -resize 800x600 resized-$file; done

    Your resized pictures are now called resized-*.JPG (original pics are not overwritten) ie : 
    DSCF2248.JPG is now called resized-DSCF2248.JPG

    Now you have forum-ready pics, for fast upload and quick sharing ;)


    That's all folks !

    Sunday, November 3, 2013

    CCFL : some experiments

    A while ago i took apart some screens with CCFL backlight, and then did nothing with it.

    It's time to change that ! 



    What is used : 

    • Old PSU
    • CCFL inverter bought in a electronic shop
    • Some CCFL took from screens
    • some electric wire
    • soldering iron
    • soldering tin

    the CCFL tube is longer than the Inverter can handle, that's why i played with it,with a smaller one i got a geeky desk light.

    here is the lighting circuit : 



    here is the result : 


    And in the dark now : 



    Ok, This was pointless ... but that was fun to play with