WebLog Olivier Berger

Aller au contenu | Aller au menu | Aller à la recherche

mercredi, avril 7 2010

Le Geek qui murmurait à l'oreille des PC - Episode 3 (enfin !)

Des années après, je me souviens que j'avais effectivement participé au casting du "Geek qui murmurait à l'oreille des PC - Episode 3".

J'ai peut-être loupé ma vocation :-)

mercredi, mars 31 2010

Je vais aux Rencontres Mondiales du Logiciel Libre, à Bordeaux en juillet, et vous ?

Et j'y coordonnerai la session "Développement" du thème technique.

Venez nombreux : les interventions et les rencontres sont toujours d'un bon niveau aux RMLL

Plus de news en suivant #RMLL2010 sur votre logiciel de micro-blog préféré (apr exemple ici).

mercredi, mars 3 2010

Restoring duplicity backups with different debian distro : attention to incompatible versions

I've recently had to test my backupninja + duplicity backups (yes, I think I haven't blogged about backups since I described my previous setup which used amanda).

The zonbu PC that managed the backup disks target of duplicity, which was running Debian stable has died.

I tried and restore the contents of its system (to have a look on the config files I had setup there) on a Debian testing system, using the same duplicity commandline (more or less).

However, I couldn't do that, since apparently, duplicity in Debian stable (0.4.11) and testing (0.6.06) don't seem to be exactly compatible.

I managed to restore anyway by reinstalling duplicity 0.4.11 in a custom prefix setup, which worked fine. The command-line then goes something like this (excerpt from the tarball's README) :

python setup.py install --prefix=/usr/local
PYTHONPATH='/usr/local/lib/python2.x/site-packages/' /usr/local/bin/duplicity -V

I've traced this problem in Debian BTS (#572102), as I'm afraid of the consequences when people will try and restore on the next stable distro backups made with the previous stable...

You've been warned anyway ;)

Measuring OpenMoko FreeRunner battery life with SHR-T

I've tried and apply the technique shown in Measuring Freerunner battery life for my FreeRunner which runs SHR-T.

Unfortunately, I couldn't recompile the wkalrm program on the freerunner (problems of compilation chain, I think). So I decided to use atd to insert an at command which would wake up the FR... but that isn't exactly easy since no at command seems packaged for the atd-over-fso that comes with SHR-T (actually, there's an at script provided in the initial atd version it was based on).

Thanks to help provided on the SHR ML, I've written this short resume-at shell script that can be used to insert an at command/script that will wake up the FR after a certain amount of minutes :

#!/bin/bash

# Will program an at job that will just execute in some number of minutes (passed in args)
# This script will do nothing, but can be interesting to wakeup the machine

# It uses atd-over-fso for atd execution

now=`date +'%s'`

minutes=$1
let "seconds = minutes * 60"

# add some minutes to now
let "time = now + seconds"

# filename for the at script
filename="/var/spool/at/$time.resume-at"

# Install the script
cat >$filename << EOF
#!/bin/sh

this="/var/spool/at/\$0"

echo \$this >>/tmp/resume-at.log
date >>/tmp/resume-at.log

rm \$this
echo "update" > /var/spool/at/trigger

EOF

# Make the at script executable
chmod +x $filename

# initialize the logs file
touch /tmp/resume-at.log

# Notify atd-over-fso that a new script was installed
echo "update" > /var/spool/at/trigger

Now, all that is left to do is to change the battery monitoring script to :

#!/bin/bash

while :
do


echo ===========================================
date
cat /sys/class/power_supply/battery/capacity
cat /sys/class/i2c-adapter/i2c-0/0-0073/resume_reason
cat /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason
#/root/wkalrm +30m
/home/root/resume-at 30
sleep 20
apm -s

done

The script has now been run, and here are the results : discharge in 66 hours and 10 minutes : Battery discharge curve

Hope this helps.

lundi, janvier 18 2010

Support GNU/Linux parfait pour l'imprimante Photosmart C4780 HP

Merci HP :-)

Notre précédente imprimante HP a fini par nous lâcher définitivement (après quelques prolongations hackesques).

Je savais déjà qu'HP offrait un certain support pour GNU/Linux pour ses imprimantes (projet HPLIP), donc je n'ai pas trop hésité sur la marque pour en racheter une nouvelle.

Et là, très bonne surprise : la Photosmart wireless alias C4780 est parfaitement supportée pour GNU/Linux avec hplip. En plus des packages à jour existent en Debian (testing).

Voilà, ça imprime et ça scanne en réseau, comme ça devrait toujours être.

Quand un constructeur offre un bon support pour GNU/Linux, ça mérite de se signaler... un jour peut-être, ce genre de billet devrindra obsolète ;) ?

samedi, novembre 7 2009

How to disable buggy trackstick for an Inspiron 4000 in Ubuntu 2009.10

I own an old Dell Inspiron 4000 laptop whose trackstick / trackpoint (the blue little joystick in the middle of the keyboard) has become really annoying : typing on the keyboard, or even touching the surface of the laptop generate parasite movements of the pointer.

I've looked for a way to disable it, and found one way using hal (since X is auto-configured in Ubuntu now), by adding the following file as /etc/hal/fdi/policy/10-disabletrackstick.fdi :

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
     <match key="info.product" contains="TPPS/2 IBM TrackPoint">
       <remove key="input.x11_driver"/>
     </match>
  </device>
</deviceinfo>

Thanks to this post by Brice Goglin for he hint on how to disable a device.

samedi, septembre 5 2009

Un stylo bien pratique pour se glisser partout

Ce stylo est bien pratique. Je remercie l'opérateur de téléphonie qui me l'avait envoyé, et je suis content de l'avoir gardé, car il va bien aller avec mon carnet de notes, je crois.
 

Ajout d'un porte-stylo sur un carnet moleskine

Voici un essai de support pour stylo pour carnet de notes Moleskine :

Mon bidouillage

Ca le fait pas mal, si ce n'est que le stylo (une recharge de stylo stabilo effaçable) n'écrit pas bien :-(

Voici une photo un peu plus claire, peut-être, sur comment j'ai réalisé ce support, qui est en fait amovible :


mercredi, juillet 29 2009

My frist contribution to the Linux kernel

Here's my first contribution to the linux kernel : http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d023e49118b9c93bbab9aaf798b25f78f1a5803c.

It fixes the ACPI which had been blacklisted on P4B266 mainboards, and will allow my old machine to suspend in 2.6.31, hopefully.

Does it make me a kernel hacker ? Certainly not. But glad to be somehow part of that history ;)

mardi, juillet 7 2009

En route pour les RMLL 2009

Et encore une édition des RMLL à laquelle je vais contribuer (notamment en tant que coordinateur du thème "développement").

Aujourd'hui, départ pour Nantes.

La suite (si le wifi fonctionne) sur #rmll2009.

vendredi, juin 19 2009

Why's evolution so buggy ?

Evolution is buggy, and crashes all the time.

It used to be reliable... and since a few weeks the versions in testing are awful :-(

lundi, juin 8 2009

Open source Wild Chips

On the way to the OSS2009 social event, we had the surprise to get offered beverages and snacks (including alcoholic ones), which is quite unusual, in my opinion.

Among the snacks there were the Wild Chips with the packaging bellow :

Doesn't the upper-right logo look familiar ?

OK, I admit, I'm a bit obsessed ;)

samedi, mai 30 2009

Carte postale plus ou moins ancienne sur Gradignan

Et hop, dénichée chez un vendeur de cartes anciennes : Gradignan

Maintenant, la question qui tue : d'où cette photo a-t-elle été prise, et à quoi ça ressemblerait de nos jours... :-/

Update : la photo en plus haute résolution. Il semble que ce soit une vue prise un peu plus haut que la poste en direction du bourg.

samedi, mars 28 2009

Proper power management on Asus P4B266 mainboard

I've had difficulties with power management on my P4B266 mainboard (yes, pretty old but still works).

Here are a couple tweaks I've done (which work with Debian lenny) :

  1. passing acpi=force to the kernel to enable acpi
  2. tweaking the HAL suspend quirks (see bellow) in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-asus.fdi
  3. tweaking s2ram's options with S2RAM_OPTS="-f -a 3" in /etc/pm/config.d/defaults
Here's the patch on /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-asus.fdi for hal to be used by pm-utils :
--- /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-asus.fdi.orig    2009-03-28 19:29:39.000000000 +0100
+++ /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-asus.fdi    2009-03-28 19:29:44.000000000 +0100
@@ -108,5 +108,12 @@
       <merge key="power_management.quirk.none" type="bool">true</merge>
     </match>
 
+    <match key="system.firmware.version" prefix="ASUS P4B266 ACPI BIOS Revision">
+      <match key="system.firmware.version" contains=" 1010">
+    <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
+    <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
+      </match>
+    </match>
+
   </device>
 </deviceinfo>


dimanche, mars 8 2009

Vendu Nokia 770

Je vends ma tablette internet Nokia 770 : ayant une 800 sous la main depuis quelque temps, la 770 est un peu en trop.

Me contacter pour des détails.

Update 2009/06/11 : Vendue !

Enfin un usage malin du Nabaztag : le répondeur Free

Un Nabaztag, c'est joli, ça remue les oreilles, mais ça sert pas trop à grand chose, faut le reconnaître.

Sauf qu'il est maintenant capable de faire le répondeur de la messagerie vocale Free. Et ça, c'est bien !

Plus de détails là : http://www.nabazfree.com/. Attention : ne pas oublier de sélectionner le type de mail avec le message en pièce jointe dans l'interface de configuration de la messagerie chez Free.

Vendu zaurus akita

N'ayant plus le temps de jouer avec Angstrom, je vends mon Zaurus Akita (SL-C1000), superbe PDA avec clavier sous GNU/Linux, mais qui dort un peu sur mon étagère en ce moment :(

Me contacter si intéressés pour le lien avec plus de détails.

Update 2009/06/11 : Vendu !

dimanche, mars 1 2009

Black out :-(

Décidément, les législateurs français ont vraiment du mal avec l'Internet :-(

Les Cowboys Fringants en concert : de la bien belle soirée !

Les cowboys fringants en concert, c'est à ne pas rater.

Le dernier concert à l'Olympia était vraiment un pur moment de bonheur, d'un bout à l'autre.

Je vous conseille la prochaine date à Paris, au Zénith, en novembre. Nous en tout cas, on y sera. Plus de détails sur leur site.

samedi, février 28 2009

/me's Debian Maintainer (DM)

Thanks to the good fellows, I've been advocated and accepted as Debian Maintainer.

Now I only need to take more time to work on Debian ;-)

- page 1 de 7