July 2008 Archives

Few years ago, at our local Croatian Linux User Conference I said: "we won, it's over". However, since then I have been noticing that all interesting problems are already solved.

There are few strange people (like me) who like to do stuff which is needed (and for which people are willing to pay money regardless if it's open source or not) but aside from that it seems that there is more interest it writing third twitter or one hundred twenty fourth wiki than solving some of open problem with open source software.

Having said that, OSCON 2008 is near end, and I just left keynote speech in which Microsoft announced donation to Apache foundation. It really seems that new leadership in Microsoft will change this company in same way that IBM changed and embraced Open Source. I should have anticipated that when we got lecture about open standards from Microsoft on our last CLUC conference, but it didn't occurred to me that this is a global thrend in Microsoft.

That brings us, Open Source community, into interesting position: we no longer have clear external enemy (and comming from former Yugoslavia let me tell you how important external enemy is :-)

This situation puts me in interesting position: I could ask myself do I want to work for Microsoft (that question until now was easily answered with big bold NO). I don't have such clear answer any more (no, I'm not leaving for Microsoft any time soon :-)

It seems that people don't care any more about freedom (in FSF sense of free software) and any "open" license is just good enough. That model worked well for BSD folks for quite some time, but I do believe that critical component of Linux success was GPL license.

All in all, OSCON 2008 was good, but traveling half way around the world doesn't give me same pleasure as it once was. It might be that podcasts from lectures turned out to be good enough for me to consume conference materials or that OSCON is not right conference for me (I loved YAPC last year, and I'm not going this year which is a bit shame).

For some time, I'm seeing strange messages in powertop with mounted SD card:

A USB device is active 100.0% of the time:
USB device  5-5 : UB6225 (ENE)

Since I'm leaving for OSCON (and will mostly work on eee while there) I wanted to be conservative about my battery usage, so I took a closer look at this problem.

At first, installing autofs seemed like good idea. However, autofs can't run scripts (and I really want to toggle card reader's power) so I took a looked at afuse which seemed nice, but I didn't want to add another layer of indirection (missing timeout feature could be solved by script which sleeps in background).

Than I thought about it a bit more and decided that best solution is probably simplest possible: do a small shell script. I usually know when I want to access files on SD card anyway (otherwise, I couldn't really power off card because I would be using files on it).

#!/bin/sh

dir=/rest

if mount | grep $dir >/dev/null ; then
umount $dir && sudo sh -c "echo 0 > /proc/acpi/asus/cardr"
sudo rmmod usb-storage
sudo dmesg -c
else
if [ `cat /proc/acpi/asus/cardr` -eq 1 ] ; then
mount $dir && df $dir
else
sudo modprobe usb-storage delay_use=0
sudo sh -c "echo 1 > /proc/acpi/asus/cardr"
sudo dmesg -c
sleep 2
sudo dmesg -c
mount $dir && df $dir
fi
fi

You might want to remove dmesg calls if you don't care about output or don't want this script to mess with your kernel logs.

About this Archive

This page is an archive of entries from July 2008 listed from newest to oldest.

June 2008 is the previous archive.

August 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

  • pics
OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.04