Archive

Archives pour la catégorie ‘Hints & Tips’

Samsung R730: adjust the brightness of the screen with Ubuntu

Rest of my adventures with my brand new Samsung R730 and the installation of Ubuntu. I reassure everybody: all worked perfectly! The only small issue I encountered was about the adjustment of the brightness with the FN key. The applet was correctly shown, but there was no effect.

After some researches, to fix the issue, I had to:

  1. In the BIOS, set the brightness adjustment to « User » and not to « Auto » anymore.
  2. Install the packages samsung-backlight, samsung-tools, nvidia-bl-dkms, after adding the repository ppa:voria/ppa. In order to do this:

    sudo add-apt-repository ppa:voria/ppa
    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install samsung-backlight samsung-tools nvidia-bl-dkms

  3. Change a line in the configuration of grub (as surprising as it sounds):

    gksudo gedit /etc/default/grub

    The line to update (the modification is in bold) :

    GRUB_CMDLINE_LINUX_DEFAULT= »quiet splash acpi_backlight=vendor« 

    Then :

    sudo update-grub

  4. A reboot and now it should works!
Categories: Hints & Tips Tags:

How avoid Android indexing new medias in the library

Each time a new file is added in a device, the Android operating system seems to index it to the new media library. This feature is very interesting, because it allows to retrieve automatically all photos, movies and songs. However, some cases exist that we don’t want these added files to be indexed.

To avoid this, it’s very easy: all you have to do is to add in the folder which contains the file(s) (or sub-directories) a simple (empty) file named:

.nomedia

Easy and effective!

Categories: Hints & Tips Tags:

How to comment and uncomment with the flick of a hand

Something absolutely useless but which could be however sometimes useful…

How comment/uncomment two bit of code in one time, in order to make tests, with // and /* */ comments.

first-codeAnd to switch:

second-codeReally impresive, isn’t it?

Categories: Hints & Tips Tags: