Whirliwig’s Weblog

Just another WordPress.com weblog

Archive for the ‘Life’ Category

Markets are illogical

leave a comment »

Recent experience selling on eBay:

“raw” 16gb SSD: Sold immediately at a good price.

“modded” mm10 containing the SAME SSD, plus Bluetooth, WLAN, Windows XP license, and, of course, a beautiful little ‘netbook’: could not sell and enquiries were predatory bids at LOWER prices than the SSD alone.

It’s just because people see the potential more clearly in the SSD.

Written by whirliwig

September 22, 2009 at 10:49 pm

Posted in Life

Tagged with

Suspending MM10 (again)

leave a comment »

If you end up using pm-utils for power management (make sure you DO NOT install acpi-functions), drop a file called ‘sharpmm10′ (or any name you like) into /etc/pm/config.d, which reads as follows:

ADD_PARAMETERS="--quirk-dpms-suspend --quirk-dpms-on"
SUSPEND_MODULES="ath_rate_sample ath_hal ath_pci"

gnome-power-manager kicks of pm-utils.

I hate power management in linux.

Written by whirliwig

May 25, 2008 at 12:26 pm

Posted in Life

Hardy Heron and MM10 SLOWWWWW

leave a comment »

Well, I’ve two MM10s, one with Hardy Heron and one with Debian lenny.

Hardy Heron is much slower.

I think that’s because of encrypted LVM, but I can’t be sure.

Anyhow, I’m not convinced I get much extra with Hardy Heron, now that I’ve pretty much hacked a working Debian together.

Hardy Heron STILL didn’t give me suspend and hibernate out of the box.

I got that working under Debian.

But now I’ve broken it again :-(

Written by whirliwig

May 12, 2008 at 10:40 pm

Posted in Life

We’re all Heels

leave a comment »

Google’d for ‘hibernate linux post sleep’, because I want to run scripts on wake-up to kick the MM10 back up to longrun ‘performance’ (always defaults to ‘economy’). Near the top of the results was this article on TechRebublic written this month (March 2008) by Jack Wallen.

Jack states he has ten years’ experience with ‘Linux’ (BTW, see a comment to my previous post to decode what I mean by ‘Linux’ — Jack uses some convenient shortcuts too).

Too many people are waving their Achilles Heels at Linux, and I’m just as guilty.

If I say something a little unthinking, and a little inflammatory, will y’all please take it as a provocative viewpoint of the n00b, and feel free to educate me. I just believe that if I try to be precisely correct in my postings, I’ll never write anything; I’ll never annoy anyone and I’ll never learn anything.

I really like Linux (OK, to be precise, the Debian Distro. Gnome Desktop on Linux 2.6.24 patched with Suspend2, with most packages taken from Lenny). It just seems the processes surrounding it[s development could cause more pain than necessary.

Written by whirliwig

March 28, 2008 at 6:53 pm

Posted in Life

Linux and Sado-Masochism

with 4 comments

I’ve been dabbling with Linux now for a couple of months.

When I started, I was sure that I wouldn’t be doing anything new compared to others who ‘went before’ — I would just be covering ground worn bare by the sneaker tracks of other, more experienced geeks. My task was to avoid the traps, and the dead-ends, marked by the forum posts that trail off into nothing, or with a plaintive ‘Haven’t heard anything for two months now. Please help!’ posting.

As everyone knows the Geek’s last cry is a terrible sound to hear — somewhere between the call of a dying elephant and that of a distressed hamster. Shiver.

I discovered quickly that Linux is on two tracks:

  1. The academic-driven track, where new concepts and technologies are developed and implemented, often in C/C++ with a low-level non-gui interface
  2. Those who believe that, with a bit of effort, and if everyone just ‘pulls together’, Linux will become the desktop-environment-to-end-all-desktop-environments

Lurking in the sidelines are the big companies who wait for something worth cherry-picking to turn up, and then they cherry-pick the products of the first of the Linux types, add their own spin, and make lots of money. Cough, cough Asus-tishoo..

The second Linux type is full of missionary zeal, and often youthful energy. They respond almost immediately to people posting questions on the forums they own.

In between all of the honest, wonderfully generous hard-graft, there is also time to have the Linux version of the sneering conviction that no-one else can do anything half as ‘cool’ as we can attitude that infects open source.

That is the problem.

They want to make their component the best it can be, and will soon become irritated by the lack of facilities that dependent other components offer up to their component. So what do they do? They ask for patches in the other components to give them the functionality they require.

That is why most forum postings end in: “You should be using Patch xyz of <dependent component>”, and the forum poster replies “That fixed it! Thanks!” If you are like me, you feel sudden elation, followed by a brooding depression: now I’ll have to patch, recompile, and try again. And then, I’ll find the patched component doesn’t quite work with <other component>, and so on.

From having this occur repeatedly to me, I began to believe that I was simply ‘on the bleeding edge’ of Linux, and suddenly I began to become infected by the same revolutionary zeal of the component writers. I thought “Maybe I can make a difference! Maybe, if I pull all of the right levers, twiddle all of the correct knobs I can create the most perfect installation of Linux ever!”

And so began the ‘tail chasing’ of someone who believed he was only ever an hour away from Linux Nirvana.

  1. Install latest ‘testing’ version of NetworkManager (say)
  2. Install latest ‘testing’ version of WPA Supplicant (say)
  3. It kinda works, but not automatically when I wake the laptop up from sleep.
  4. Install cutting edge version of NetworkManager, compile from code if necessary
  5. Try again. Now all of my network APs look like gibberish.
  6. Forum search
  7. Install cutting edge version of WPA Supplicant
  8. My networks are fixed!
  9. Buy new network card
  10. My networks are broken!
  11. Install patches for NetworkManager
  12. Grow several grey hairs
  13. etc.

In fact, it really is best to get off the bleeding edge, or you’ll get hurt. Not to realise this is to indulge in masochistic fantasy.

I also believe that the very enthusiasm which makes Linux so dynamic is also its weakness.

I want to develop the theory here that the GUI component writers are closet sadists, releasing patches to dependent components in an uncontrolled way, thereby potentially breaking everything, and requiring the masochistic masses to follow the path of pain.

In other words, I want to propose the theory of Sado-Masochistic Software Development which will always stay one-step behind capitalist companies paying non-masochistic employees to develop to a vision…because if it ever led the world, it wouldn’t have anything to beat itself up about, and then it would be as bad as ‘The Man’. In the end, being a leader is too scary.

Most people will look at what I have written in the previous paragraph, and snort, laugh, or just get angry. Or ignore it.

I am suggesting no less than a massive collusion between developers to believe in ‘them and us’ so that they can always define themselves as ‘us’: the Honest Geek Syndrome.

The very ‘freedom’ that allows anyone to release a component which claims to work well with the rest of the environment, and which is ‘a lot better than the old <component>’ is what creates the world of pain we inhabit; one in which the dependencies between patch-levels can grow exponentially.

The only answer is more control, and a reigning in of creative impulses without responsibility.

Yes, our betters have said it for years: without discipline, we’ll never amount to much.

Written by whirliwig

March 28, 2008 at 3:06 pm

Posted in Life, Linux

Building NetworkManager — patch

leave a comment »

 While trying to build the latest NetworkManager, I came across the ‘tp:type’ namespace issue mentioned elsewhere. That is, on attempting to build the XML DBUS stuff, one may receive an error about ‘illegal use of tp:type’. This is because a later version of dbus has support for namespaces in the schemas, and I don’t have that patched dbus, or the energy to find it.SO, I found a posting referring to this issue, and how to fix it. I can’t find that posting anymore. Before I lost it, I copied it verbatim to this posting. If the original author wants to contact me and tell me to credit them, I’ll be happy to. For now… In NetworManager top-level directory, create cleanup.sh, chmod u+x cleanup.sh.cleanup.sh 

#!/bin/sh

 

mkdir introspection-dirty
mv introspection/nm-*.xml introspection-dirty
for i in introspection-dirty/*.xml
do
xmlfile=`basename $i`
{
xsltproc spec-to-introspect.xsl introspection-dirty/$xmlfile \
| perl -pe '$hash = chr(35); s{xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec${hash}extensions-v0"} {}g'

  

} >  introspection/$xmlfile
done

 Also write the following file in the Top-Level directoryspec-to-introspect.xsl<!– Remove Telepathy extensions from a D-Bus interface, trying to leave onlyDTD-compliant introspection XML. The output still needs to be subjected to thefollowing sed filter:sed -e ‘s@xmlns:tp=”http://telepathy\.freedesktop\.org/wiki/DbusSpec.extensions-v0″@@g’ The master copy of this stylesheet is in the Telepathy spec repository -please make any changes there. Copyright (C) 2006, 2007 Collabora Limited This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details. You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA–> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”xmlns:tp=”http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0″exclude-result-prefixes=”tp”>        <xsl:output method=”xml” indent=”yes” encoding=”UTF-8″omit-xml-declaration=”no”doctype-system=”http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd”doctype-public=”-//freedesktop//DTD D-BUS Object Introspection 1.0//EN” />  

Written by whirliwig

March 25, 2008 at 7:07 pm

Posted in Life

Sound on MM10

leave a comment »

From lenny at least, just run ‘alsaconf’ from a root prompt.

erm…that’s it.

Written by whirliwig

March 25, 2008 at 11:45 am

Posted in Life

Installing RPMs in Debian

leave a comment »

http://www.debianadmin.com/install-rpm-files-in-debian-and-ubuntu.html

Of course, why not have aptitude do this conversion on the fly?

All link arms and sing…

Written by whirliwig

March 25, 2008 at 11:09 am

Posted in Life

Talking to Macs from Linux

leave a comment »

Connect to a Mac from MM10…

http://sourceforge.net/project/showfiles.php?group_id=179882

FUSE based AppleTalk

Written by whirliwig

March 25, 2008 at 11:03 am

Posted in Life

Bluetooth Dingle Dangle Dongle

leave a comment »

Just got latest available thumbnail sized USB EDR Bluetooth 2.0 dongle. Plugged into MM10. Nada. hcitool -scan. Nada ‘device not found’. Bah.

lsusb

Nada.

Hang on. It’s started flashing! Hoorah! a flashing dongle!

lsusb again…

diddlysharp:/home/ant# lsusb

Bus 003 Device 001: ID 0000:0000

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Bus 001 Device 001: ID 0000:0000

diddlysharp:/home/ant# hcitool scan

Scanning …

00:xx:xx:xx:xx:xx K800i

Tadaaaa!!! It’s there! just running lsusb did it. Has my hotplug gone cold? What is hotplug?

I assume it handles someone unexpectedly plugging their dongle into an available socket, and other such ‘hot’ plugging events.

Written by whirliwig

March 20, 2008 at 1:17 pm

Posted in Life

Follow

Get every new post delivered to your Inbox.