<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:pavelmachek</id>
  <title>pavelmachek</title>
  <subtitle>pavelmachek</subtitle>
  <author>
    <name>pavelmachek</name>
  </author>
  <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom"/>
  <updated>2008-05-07T20:52:54Z</updated>
  <lj:journal username="pavelmachek" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://pavelmachek.livejournal.com/data/atom" title="pavelmachek"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:58188</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/58188.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=58188"/>
    <title>Kohjinsha wifi driver</title>
    <published>2008-05-07T20:52:54Z</published>
    <updated>2008-05-07T20:52:54Z</updated>
    <content type="html">&lt;a href="http://code.google.com/p/winbondport/"&gt;Kohjinsha wifi driver&lt;/a&gt; is now updated to 2.6.26-rc1, and should be available in my &lt;a href="http://git.kernel.org/?p=linux/kernel/git/pavel/work.git;a=summary"&gt;work git-tree&lt;/a&gt;. I won't have Kohjinsha with me for next week, so don't expect any development. But if you want to clean up some really challenging code, feel free to help. Longer term, some testers would be very welcome.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:58013</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/58013.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=58013"/>
    <title>Slowest machine</title>
    <published>2008-05-01T18:09:09Z</published>
    <updated>2008-05-01T18:09:09Z</updated>
    <content type="html">...to run "quick benchmark" was Wouter Verhelst's Mac IIci (running linux on 68030) -- thanks!&lt;br /&gt;&lt;br /&gt;time factor $[65863223*65863159]&lt;br /&gt;4337959928701457: 65863159 65863223&lt;br /&gt;&lt;br /&gt;real    6m16.660s&lt;br /&gt;user    6m9.920s&lt;br /&gt;sys     0m4.530s&lt;br /&gt;&lt;br /&gt;...that's 376 seconds, and almost exactly 1000 times slower than my home desktop.&lt;br /&gt;&lt;br /&gt;Fastest machine seems to be djwong's Xeon E5450 (3GHz): 0.116s, 3000 faster than Mac II.&lt;br /&gt;&lt;br /&gt;Do you have faster or slower machine?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:57718</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/57718.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=57718"/>
    <title>Single AA phone charger</title>
    <published>2008-04-27T19:32:30Z</published>
    <updated>2008-04-27T19:32:30Z</updated>
    <content type="html">I have 10+ NiMH accumulators nearby, still my cellphones sometimes run out of power.&lt;br /&gt;&lt;br /&gt;My first solution was to create pack for 4 of these, with USB connector, and charge from that. That did not work too well.&lt;br /&gt;&lt;br /&gt;Now I got &lt;a href="http://gme.cz/cz/index.php?page=product&amp;amp;detail=751-563"&gt;this toy&lt;/a&gt;... and it seems to work quite well. It also may be solution to my "1W headlamp from single battery" -- it provides ~500mA@3.6V with full accumulator. Is there some simple current limiting circuit I could use? (Regulator seems to have 5.5V max, I need 300mA for a 1W led, and it would be very nice if it was possible to limit current down to 10mA or so.)&lt;br /&gt;&lt;br /&gt;Manufacturer says cellphone gets charged for ~1day standby from single AA, and that seems to be about right. (Actually n6230 seemed to last 1.5 days, but the test left something to be desired). I wonder how big conversion losses are: 1.5 days is definitely not full capacity of lion in n6230; and it has 700mAh li-ion ~= 2520mWh. Single NiMH should be ~2100mAh ~= 2520mWh, too...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:57572</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/57572.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=57572"/>
    <title>pavel's quick benchmark</title>
    <published>2008-04-27T18:47:24Z</published>
    <updated>2008-04-27T18:47:24Z</updated>
    <content type="html">This one actually has a huge advantage: factor seems to be part of default installation, so it is easy to run on all machines down to sharp zaurus.&lt;br /&gt;&lt;br /&gt;It also shows just how slow those embedded cpus are. I always assumed that arm@400MHz was approximately as fast as pentiumMMX@200MHz. ... that's quite far away from truth.&lt;br /&gt;&lt;br /&gt;root@amd:~# time factor $[65863223*65863159]&lt;br /&gt;4337959928701457: 65863159 65863223&lt;br /&gt;&lt;br /&gt;amd: 0.591 s&lt;br /&gt;eee @ 630: 1.673 s&lt;br /&gt;eee @ 900: 1.858 s ?!&lt;br /&gt;arima: 0.536 s&lt;br /&gt;hobit: 0.376 s&lt;br /&gt;zaurus: 21.99 s&lt;br /&gt;kohjinsha: 4.062 s&lt;br /&gt;&lt;br /&gt;Surprising notes here: Asus eee is much faster than kohjinsha. (In fact, eee has pretty cool CPU, it can compile kernel in like 15 minutes, unlike kohjinshas 90 minutes). And even kohjinsha's geode@500MHz is 5 times faster than zaurus... So zaurus is more like pentium@100MHz.&lt;br /&gt;&lt;br /&gt;And now... What's the best and the worst result you can get in pavel's benchmark? Does someone has 386sx still running? Or will some ARMs be even slower? And is there anyone with those pentium extreme's at 3GHz?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:57214</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/57214.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=57214"/>
    <title>Asus EEE to play with</title>
    <published>2008-04-27T18:25:40Z</published>
    <updated>2008-04-27T18:25:40Z</updated>
    <content type="html">Asus EEE is a pretty cool machine. It actually has an usable keyboard, and its linux distribution is very nicely done, and well integrated with the hardware.&lt;br /&gt;&lt;br /&gt;Unfortunately, its ACPI BIOS is crap: no thermal zones, and battery values completely off. (It seems to only report values in percent, but it does so by claiming battery is 100mAh and counting from that. Oops).&lt;br /&gt;&lt;br /&gt;It took me a while to figure out touchpad really has two buttons... it is one big button, and depending on you pressing left or right side it means left or right click. Unfortunately that means you can't even use X's 3 button emulation, and I have not figured out how to copy &amp; paste between xterm (well hidden behind ctrl-alt-t) and browser.&lt;br /&gt;&lt;br /&gt;...speaking of which, this is actually my first machine where flash works including audio, and I did not even have to agree to stupid EULA. Skype also works, which is a plus (had to deal with ugly EULA there :-().</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:56940</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/56940.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=56940"/>
    <title>Horse will not step on human</title>
    <published>2008-04-18T22:25:37Z</published>
    <updated>2008-04-18T22:25:37Z</updated>
    <content type="html">...at least according to old czech saying.&lt;br /&gt;&lt;br /&gt;And it is mostly true, too. First horse will not step on you, because he can see you clearly and insticts tell him not to do that. Unfortunately, second horse has his view blocked by the first horse...&lt;br /&gt;&lt;br /&gt;...and so he stepped on my hand. I guess I just won $1000000 in lottery, because my bones survived that unbroken.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:56669</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/56669.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=56669"/>
    <title>800kg of fun</title>
    <published>2008-04-12T22:22:52Z</published>
    <updated>2008-04-12T22:22:52Z</updated>
    <content type="html">...one more question related to big mare... She's quickly becoming leading horse in group of 20 horses. Basically all the geldings fell in love with her. And we'd rather have some other leading horse. Is there any way to interfere with their hierarchy?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:56477</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/56477.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=56477"/>
    <title>Fun with kohjinsha, and how to control 800kg mare</title>
    <published>2008-04-12T21:46:08Z</published>
    <updated>2008-04-12T21:46:08Z</updated>
    <content type="html">&lt;p&gt;I had some fun with kohjinsha wifi driver... the &lt;a href="http://code.google.com/p/winbondport/"&gt;winbondport&lt;/a&gt; driver (also known as w35und) contains its own 802.11 stack... which is no-go if it should be ever merged to mainline. So I played a bit, and managed to &lt;em&gt;add&lt;/em&gt; softmac interface to it. It is quite a hack, as I kept the 802.11 parts intact, so single card now announces itself as two interfaces. To my amazement, receive now works -- if I iwlist wlan0 scan on hardmac interface, I see the results on softmac interface, too. Unfortunately, transmit looks more tricky.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Theres beatiful, but very big mare in Kostelec stables... she is 15 (or so), but I'm not sure how much training she had. Anyway she is pretty easy to ride (and very afraid to ride alone), but leading her just does not work. If she wants to go to the destination, its okay, and if you lead her in a group, that's okay, too, but leading her away from other horses is pretty much no-no.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I guess Parelli/Roberts tricks could help here, but round fence is not available nearby. Leading on headstall will probably do... or is there any other trick available? Rope halter?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:56234</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/56234.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=56234"/>
    <title>Sesja Linuksowa</title>
    <published>2008-04-04T11:29:13Z</published>
    <updated>2008-04-04T11:29:13Z</updated>
    <content type="html">I am going to &lt;a href="http://www.sesjalinuksowa.pl/"&gt;Sesja Linuksowa&lt;/a&gt; in Poland... but slowly. For some reason, bus driver decided to avoid highways.... so if you are there, be sure to say "hello".</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:55906</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/55906.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=55906"/>
    <title>Daylight saving time is stupid idea</title>
    <published>2008-04-01T23:34:53Z</published>
    <updated>2008-04-01T23:34:53Z</updated>
    <content type="html">...and handling of time zones in vCalendar does not help. When you add an appointment to calendar in nokia 6230 (and similar, probably everything vCalendar based), the phone converts meetings to GMT, and stores them.&lt;br /&gt;&lt;br /&gt;Unfortunately, with begining of daylight saving time, you move from GMT+1 to GMT+2... but your appointments stay there, and are now one hour off.&lt;br /&gt;&lt;br /&gt;"Correct" solution would be to always enter timezone when entering appointment.&lt;br /&gt;&lt;br /&gt;Workaround would be not to change timezone when dst begins, but lie to telephone, and set the time instead. Unfortunately, that would wreak havoc with synchronization, such as mobical.&lt;br /&gt;&lt;br /&gt;"Reasonable" solution would be to assume appointments to be in "local" time zone, whatever that is. Just do not store that in GMT... but that's not how vCalendar works.&lt;br /&gt;&lt;br /&gt;Is there chance of getting this mess cleared?&lt;br /&gt;&lt;br /&gt;And before I loose them, here are some measurements from headlight I modded. Originally, it had 3 white leds, with optics making pretty narrow beam. I added 100mA, 90degrees red and green led.&lt;br /&gt;&lt;br /&gt;On "almost empty" NiMHs (3x AAA), directly connected for white &amp; green, current was: 18mA for white, 15mA for green and 26mA for red.&lt;br /&gt;&lt;br /&gt;On freshly charged 900mAh NiMHs, current was 65mA for white, 54mA for green, 95mA for red. 82mA when running white+green.&lt;br /&gt;&lt;br /&gt;I added switch selecting direct connection, 20 ohm resistor, and unknown blue resistor. With 20 ohms and fresh batteries, values are 28mA for white, 24mA for green and 50mA for red. Difference in light output is pretty minimal, and this setting is what I use when "very low" setting is not enough -- like going trot/gallop. White+green in this mode is very nice.&lt;br /&gt;&lt;br /&gt;Unknown blue resistor  and empty batteries gives about 3mA white (assuming 3mA on green?) and 6mA on red. Red is pretty unusable in this setting, you'll see objects above ground and branches trying to hit you, but not the ground itself. Green in this mode is OTOH very usable, providing nice light all around you, with visibility of few meters, and you can walk horse on this setting... not bad for 3mA (~10mW). This is actually too much light for eyes to go into highest-gain mode.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:55710</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/55710.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=55710"/>
    <title>MAINTAINERS file sucks</title>
    <published>2008-03-29T20:37:57Z</published>
    <updated>2008-03-29T20:37:57Z</updated>
    <content type="html">So I want to submit a patch to ALSA... and I'd like to know who the maintainer is, and what list should be CCed... So I open MAINTAINERS file in less, and search for ALSA...&lt;br /&gt;&lt;br /&gt;...and nothing relevant comes up. Hmm, perhaps someone was clever and title says "ADVANCED LINUX SOUND ARCHITECTURE"?&lt;br /&gt;&lt;br /&gt;...nope. Did I get the acronym wrong? No. &lt;br /&gt;&lt;br /&gt;...relevant maintainter is listed under "SOUND". (And the list is subscribers-only). There were about 10 proposals to split MAINTAINERS file and put it close to relevant sources, or at least add "Files: " field to MAINTAINERS file. Perhaps it is time to do something like that?&lt;br /&gt;&lt;br /&gt;Oh and BTW ALSA sucks. It invents compeletely new abstractions where none are neccessary:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;
snd_assert(subs-&amp;gt;dataurb[i].urb, return -EINVAL);
if (subs-&amp;gt;ops.prepare(subs, runtime, subs-&amp;gt;dataurb[i].urb) &amp;lt; 0) {
	snd_printk(KERN_ERR "cannot prepare datapipe for urb %d\n", i);
	goto __error;
}
...
snd_printdd(KERN_INFO "setting usb interface %d:%d\n", fmt-&amp;gt;iface, fmt-&amp;gt;altsetting);
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;snd_assert? WTF is that? (and notice the ugly "return -EINVAL" parameter). Rest of kernel uses WARN_ON()...&lt;br /&gt;&lt;br /&gt;snd_printk()... what is it? Will it print? [answer is yes, and depending on config option, it will print filename and linenumber, too]&lt;br /&gt;&lt;br /&gt;snd_printdd()... what is it? Why is it ALSA-specific? Will I see the printout? [answer is no, unless I tweak the config]&lt;br /&gt;&lt;br /&gt;If you are a kernel janitor, and want to clean something up, please take a look at ALSA.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:55419</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/55419.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=55419"/>
    <title>iommu and lots of fun</title>
    <published>2008-03-27T09:28:27Z</published>
    <updated>2008-03-27T09:28:27Z</updated>
    <content type="html">This is what I got after my iommu experiments:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;
Welcome to openSUSE 10.3 (i586) - Kernel 2.6.22.5-31-bigsmp (tty2).


leet login: root
Password:
Last login: Sun Feb  1 09:41:07 CET 1987 from he cron daemon
#
#
auth     sufficient     pam_rootok.so
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session
 on The PAM configuration file for t
Have a lot of fun...
leet:~ #

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;...seems like there will be a lot of fun. Anyway, if you want to avoid this "fun", use iommu=soft on &amp;gt;3GB machines where you are running hibernation. Be sure to use iommu=soft on both boot and resume kernels.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:55247</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/55247.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=55247"/>
    <title>thanks Theodore ext3 is so robust</title>
    <published>2008-03-27T09:07:25Z</published>
    <updated>2008-03-27T09:07:25Z</updated>
    <content type="html">In theory, running journalled filesystem without barriers in write-back mode is very bad idea... Unfortunately, it is what I have been doing for years now: x60's disk does not seem to support barriers. ext3 survived.&lt;br /&gt;&lt;br /&gt;Today I was trying to debug iommu problems after resume, apparently overwriting beggining of partition with some random data. ext3 fsck just used backup superblock...&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:54958</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/54958.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=54958"/>
    <title>click on link provided by FBI, go to jail?</title>
    <published>2008-03-21T10:39:19Z</published>
    <updated>2008-03-21T10:39:19Z</updated>
    <content type="html">...for 3 or so years...? US finally &lt;a href="http://www.news.com/8301-13578_3-9899151-38.html?tag=nefd.pop"&gt;went crazy&lt;/a&gt;.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:54697</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/54697.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=54697"/>
    <title>vger.kernel.org is down</title>
    <published>2008-03-19T09:11:20Z</published>
    <updated>2008-03-19T09:11:20Z</updated>
    <content type="html">...and yes, David Miller already knows about it. So no, problem is not in your incoming mail setup, and no, being unable to post to linux-kernel@vger.kernel.org is not fault on your system.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:54391</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/54391.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=54391"/>
    <title>Wikipedia, evil autorepeat, strange usb and good wireless news</title>
    <published>2008-03-13T08:29:23Z</published>
    <updated>2008-03-13T08:29:23Z</updated>
    <content type="html">There has been recent talk about "wikipedia should accept advertising to keep itself from bankrupting". Well... there's easy way to "fix" this: set up wikipedia mirror, add advertising, and send the generated money to wikipedia foundation. I may even use that mirror...&lt;br /&gt;&lt;br /&gt;X windows seem to be doing software autorepeat, even on plain PS/2 keyboards that are perfectly capable of autorepeating themselves. That's wrong and stupid: as soon as you get non-trivial interrupt/scheduling latencies, your keyboard becomes unusable. Console gets this right: if your interrupt latency is too high it will loose keystrokes due to limited buffer, but at least it will not insert new ones so you can actually make progress on typing.&lt;br /&gt;&lt;br /&gt;Played with USB soundcard a lot... and found a magic way to make it play at least mono... Seems like playing 8-bit sound is required in order to kick it to work?!&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;
mplayer -ao alsa:device=hw=1 -af format=u8  KDE_Startup.wav
mplayer -ao alsa:device=hw=1 -af format=s16le -af resample=48000
        -af channels=1 KDE_Logout_1.ogg
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And after about 2 years, good news in iwl3945 land: it still crashes (under evil kind of load) but at least you can now compile it into kernel (not a module). That means that Thinkpad x60 finally got to state of Thinkpad x32, functionality-wise.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:54220</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/54220.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=54220"/>
    <title>Kohjinsha updates</title>
    <published>2008-03-10T13:33:41Z</published>
    <updated>2008-03-10T13:33:41Z</updated>
    <content type="html">Kohjinsha sound seems to work for me now. If it is broken for you, try updating to 2.6.25-rc4 or something.&lt;br /&gt;&lt;br /&gt;Petr Susil created &lt;a href="http://atrey.karlin.mff.cuni.cz/~susa/kohjinsha.html"&gt;a page about Kohji&lt;/a&gt;, including recent hacks on the USB wifi. It seems that driver is actually stable once you enable 8KB stack.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:53873</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/53873.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=53873"/>
    <title>How to boot into distribution living in chroot...</title>
    <published>2008-03-03T20:29:17Z</published>
    <updated>2008-03-03T20:29:17Z</updated>
    <content type="html">Guillaume Chazarain describes this "interesting" trick: init=/working_distro/lib/ld-linux.so.2 --library-path&lt;br /&gt;/working_distro/lib  /working_distro/usr/sbin/chroot /working_distro/&lt;br /&gt;/sbin/init&lt;br /&gt;&lt;br /&gt;...okay, it probably also qualifies as "most interesting kernel cmdline hack", ever.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:53508</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/53508.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=53508"/>
    <title>bioheadlight &amp; warm-loving computer</title>
    <published>2008-03-03T18:56:16Z</published>
    <updated>2008-03-03T18:56:16Z</updated>
    <content type="html">Ok, so how does ideal headlight look like?&lt;br /&gt;&lt;br /&gt;Produces as much light as possible? ...no, that's an atomic bomb, not headlight.&lt;br /&gt;&lt;br /&gt;Produces as much light as possible, and lasts as long as possible? ...that's better, but it still is not what is needed. Powerful headlights blind people, and that's not good use of energy... it is also annoying.&lt;br /&gt;&lt;br /&gt;I guess feedback based on light sensor would work. Have few separate beams, and have light sensors. If too much light would reach user's eyes, turn down that particular beam. No more blinding, and it should be pretty energy-efficient, too.&lt;br /&gt;&lt;br /&gt;(Actually, this is inspired by riding on white horses in the dark. As soon as you lie down because of low branches, you blind yourself.... bad.)&lt;br /&gt;&lt;br /&gt;Now... does anyone actually make a headlight like that? Is there schematics available somewhere?&lt;br /&gt;&lt;br /&gt;As far as computers go... it seems I have one CPU that hates cooling. It gets more stable when it warms up, and after I displaced the CPU fan so that only 30% of air hits the cooler, machine seems to last longer between crashes now...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:53296</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/53296.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=53296"/>
    <title>suspend to RAM in Fedora</title>
    <published>2008-03-03T18:34:36Z</published>
    <updated>2008-03-03T18:34:36Z</updated>
    <content type="html">...does not work too well. One of reasons is that, well, Fedora does not ship s2ram.&lt;br /&gt;&lt;br /&gt;Fedora relies on pm-utils restoring video state by hand. That unfortunately means you need to be running HAL to test suspend (no easy testing from init=/bin/bash). It also relies on external utilities, so if your disk fails to wake up, you'll not read anything on screen.&lt;br /&gt;&lt;br /&gt;s2ram has integral whitelist... which means easier testing. (It also appears to be what Fedora people dislike -- they fell in love with HAL, apparently). Anyway, &lt;em&gt;you don't have to use internal whitelist&lt;/em&gt;. Just pass the whitelist parameters on command line to s2ram.&lt;br /&gt;&lt;br /&gt;Pretty please, package s2ram for Fedora. It is not easy to compile s2ram, because its dependencies are lacking, and s2ram is realy vital for suspend debugging. (You can get s2ram sources at suspend.sf.net, it is GPLed).</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:53028</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/53028.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=53028"/>
    <title>Evil hack to get gps to work on openmoko with 2.6.24 kernel</title>
    <published>2008-02-20T23:38:14Z</published>
    <updated>2008-02-20T23:38:14Z</updated>
    <content type="html">gllin expects paths in /sys... unfortunately they changed with 2.6.24 update. Fortunately, sed works on binary files :-)&lt;br /&gt;&lt;br /&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;cat gllin.real | sed 's-/sys/-/s/s/-g' &amp;gt; gllin.real2&lt;br /&gt;mkdir -p /s/s/bus/platform/devices/&lt;br /&gt;ln -s&amp;nbsp; /sys/bus/platform/devices/neo1973-pm-gps.0/ /s/s/bus/platform/devices/gta01-pm-gps.0&lt;br /&gt;&amp;lt;/pre&amp;gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:52928</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/52928.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=52928"/>
    <title>Evil lights</title>
    <published>2008-02-12T23:56:30Z</published>
    <updated>2008-02-12T23:56:30Z</updated>
    <content type="html">I played with headlights in last month or two, because horses need&lt;br /&gt;to be ridden in the winter, too... and that often means going after sunset. Few observations:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;powering red LEDs from 3x NiMH AAA is a bad idea. Resistor eats half of the energy. What is worse, LED will drive batteries into pretty low voltage without reducing brightness. That's bad for them, and means you'll get very little light when you attempt to switch back to green/white LED.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;due to human vision system, red light is pretty much wasted. Yes, it allows you to keep night vision; OTOH 50mA green LED allows you to see much better than 100mA red LED.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;using hot glue to glue 100mA+ LEDs is not a cool idea.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;incandescent lights are evil. They can go from pretty much full&lt;br /&gt;power to no light at all in about a minute. Guess what happened to me&lt;br /&gt;in the middle of dark wood... (fortunately horses do not rely on&lt;br /&gt;vision as much as humans do).&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;you can't power 1W white LED from 3x NiMH battery. Not even AAs will work.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;width of beam matters. Narrow beam is useful for "this is how far&lt;br /&gt;away I can shine" and for blinding people. That's about it.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;DC-to-DC converters are nice -- they keep the light steady, and&lt;br /&gt;are probably the only way how to do 1W led reasonably, but can be&lt;br /&gt;evil... if they fail down to no light when battery goes low. I&lt;br /&gt;actually seen that in one commercial headlight (Petzl something?), and&lt;br /&gt;I'd consider that fatal flaw.  &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;li&gt;joule thief is a cool toy, it works and produces light even from single dead AA battery. But it remains a toy, maybe useful in emergency. 20mA is not enough for serious light. &lt;/li&gt;&lt;/ul&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:52680</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/52680.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=52680"/>
    <title>testing@home</title>
    <published>2008-02-12T14:36:38Z</published>
    <updated>2008-02-12T14:36:38Z</updated>
    <content type="html">I guess I have a project idea.&lt;br /&gt;&lt;br /&gt;You know, there are about 1000 distributed projects: seti@home, tiles@home, folding@home, and who knows what else. They produce lot of heat, but they have a side effect -- they test stability of your machine.&lt;br /&gt;&lt;br /&gt;At the same time, those distributed projects have problems with unreliable machines, cheating, etc. But there seems to be easy solution: Just run everything twice, on machines far away from one another... which means distributed projects get even better for testing: now you can recognize not only crashes/hard locks, but also incorrect results.&lt;br /&gt;&lt;br /&gt;Now... it would be nice to create distributed network with main goal of testing machine stability. Yes, it can produce tiles for openstreetmap as a sideeffect, or search for UFO or whatever... Do everything few times, tell owners which hosts last responded when using nice UI, and you can get lots of spare cycles, while clients get a lot of nice testing...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:52397</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/52397.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=52397"/>
    <title>for the record</title>
    <published>2008-02-06T00:54:51Z</published>
    <updated>2008-02-06T00:54:51Z</updated>
    <content type="html">...I'll be happy when freezer is gone, and am now looking forward to &lt;a title="Matthew Garrett" href="http://mjg59.livejournal.com/"&gt;Matthew Garrett&lt;/a&gt;'s patches to fix all the drivers in tree, which is the thing that keeps freezer there for s2ram path.&lt;br /&gt;&lt;br /&gt;Plus, I'd really like kexec/kjump patches to go in. I believe one extra kernel boot during suspend is going to slow stuff down, but lets see... and kjump really looks interesting for different kinds of hacks, like live crashdumps....</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:pavelmachek:52128</id>
    <link rel="alternate" type="text/html" href="http://pavelmachek.livejournal.com/52128.html"/>
    <link rel="self" type="text/xml" href="http://pavelmachek.livejournal.com/data/atom/?itemid=52128"/>
    <title>thanks for port 0x80 debugging cards</title>
    <published>2008-02-02T00:07:07Z</published>
    <updated>2008-02-02T00:07:07Z</updated>
    <content type="html">&amp;nbsp;s2ram wakeup with new real mode running .c code now works, both 32-bit and 64-bit... and big thanks go for port 0x80 debugging cards... without them debugging would be impossible.&lt;br /&gt;&lt;br /&gt;I just wonder if hardware debugers will ever enter mainstream. It is simple piece of hardware (low-speed i2c connection to cpu debug port), but it is sometimes very very useful.</content>
  </entry>
</feed>
