<?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/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>pavelmachek</title>
  <link>http://pavelmachek.livejournal.com/</link>
  <description>pavelmachek - LiveJournal.com</description>
  <lastBuildDate>Wed, 07 May 2008 20:52:54 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>pavelmachek</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>http://p-userpic.livejournal.com/29207494/6648113</url>
    <title>pavelmachek</title>
    <link>http://pavelmachek.livejournal.com/</link>
    <width>70</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/58188.html</guid>
  <pubDate>Wed, 07 May 2008 20:52:54 GMT</pubDate>
  <title>Kohjinsha wifi driver</title>
  <link>http://pavelmachek.livejournal.com/58188.html</link>
  <description>&lt;a href=&quot;http://code.google.com/p/winbondport/&quot;&gt;Kohjinsha wifi driver&lt;/a&gt; is now updated to 2.6.26-rc1, and should be available in my &lt;a href=&quot;http://git.kernel.org/?p=linux/kernel/git/pavel/work.git;a=summary&quot;&gt;work git-tree&lt;/a&gt;. I won&apos;t have Kohjinsha with me for next week, so don&apos;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.</description>
  <comments>http://pavelmachek.livejournal.com/58188.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/58013.html</guid>
  <pubDate>Thu, 01 May 2008 18:09:09 GMT</pubDate>
  <title>Slowest machine</title>
  <link>http://pavelmachek.livejournal.com/58013.html</link>
  <description>...to run &quot;quick benchmark&quot; was Wouter Verhelst&apos;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&apos;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&apos;s Xeon E5450 (3GHz): 0.116s, 3000 faster than Mac II.&lt;br /&gt;&lt;br /&gt;Do you have faster or slower machine?</description>
  <comments>http://pavelmachek.livejournal.com/58013.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/57718.html</guid>
  <pubDate>Sun, 27 Apr 2008 19:32:30 GMT</pubDate>
  <title>Single AA phone charger</title>
  <link>http://pavelmachek.livejournal.com/57718.html</link>
  <description>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=&quot;http://gme.cz/cz/index.php?page=product&amp;amp;detail=751-563&quot;&gt;this toy&lt;/a&gt;... and it seems to work quite well. It also may be solution to my &quot;1W headlamp from single battery&quot; -- 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...</description>
  <comments>http://pavelmachek.livejournal.com/57718.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/57572.html</guid>
  <pubDate>Sun, 27 Apr 2008 18:47:24 GMT</pubDate>
  <title>pavel&apos;s quick benchmark</title>
  <link>http://pavelmachek.livejournal.com/57572.html</link>
  <description>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&apos;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&apos;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&apos;s the best and the worst result you can get in pavel&apos;s benchmark? Does someone has 386sx still running? Or will some ARMs be even slower? And is there anyone with those pentium extreme&apos;s at 3GHz?</description>
  <comments>http://pavelmachek.livejournal.com/57572.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/57214.html</guid>
  <pubDate>Sun, 27 Apr 2008 18:25:40 GMT</pubDate>
  <title>Asus EEE to play with</title>
  <link>http://pavelmachek.livejournal.com/57214.html</link>
  <description>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&apos;t even use X&apos;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 :-().</description>
  <comments>http://pavelmachek.livejournal.com/57214.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/56940.html</guid>
  <pubDate>Fri, 18 Apr 2008 22:25:37 GMT</pubDate>
  <title>Horse will not step on human</title>
  <link>http://pavelmachek.livejournal.com/56940.html</link>
  <description>...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.</description>
  <comments>http://pavelmachek.livejournal.com/56940.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/56669.html</guid>
  <pubDate>Sat, 12 Apr 2008 22:22:52 GMT</pubDate>
  <title>800kg of fun</title>
  <link>http://pavelmachek.livejournal.com/56669.html</link>
  <description>...one more question related to big mare... She&apos;s quickly becoming leading horse in group of 20 horses. Basically all the geldings fell in love with her. And we&apos;d rather have some other leading horse. Is there any way to interfere with their hierarchy?</description>
  <comments>http://pavelmachek.livejournal.com/56669.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/56477.html</guid>
  <pubDate>Sat, 12 Apr 2008 21:46:08 GMT</pubDate>
  <title>Fun with kohjinsha, and how to control 800kg mare</title>
  <link>http://pavelmachek.livejournal.com/56477.html</link>
  <description>&lt;p&gt;I had some fun with kohjinsha wifi driver... the &lt;a href=&quot;http://code.google.com/p/winbondport/&quot;&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&apos;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&apos;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?</description>
  <comments>http://pavelmachek.livejournal.com/56477.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/56234.html</guid>
  <pubDate>Fri, 04 Apr 2008 11:29:13 GMT</pubDate>
  <title>Sesja Linuksowa</title>
  <link>http://pavelmachek.livejournal.com/56234.html</link>
  <description>I am going to &lt;a href=&quot;http://www.sesjalinuksowa.pl/&quot;&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 &quot;hello&quot;.</description>
  <comments>http://pavelmachek.livejournal.com/56234.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/55906.html</guid>
  <pubDate>Tue, 01 Apr 2008 23:34:53 GMT</pubDate>
  <title>Daylight saving time is stupid idea</title>
  <link>http://pavelmachek.livejournal.com/55906.html</link>
  <description>...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;&quot;Correct&quot; 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;&quot;Reasonable&quot; solution would be to assume appointments to be in &quot;local&quot; time zone, whatever that is. Just do not store that in GMT... but that&apos;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 &quot;almost empty&quot; 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 &quot;very low&quot; 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&apos;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.</description>
  <comments>http://pavelmachek.livejournal.com/55906.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/55710.html</guid>
  <pubDate>Sat, 29 Mar 2008 20:37:57 GMT</pubDate>
  <title>MAINTAINERS file sucks</title>
  <link>http://pavelmachek.livejournal.com/55710.html</link>
  <description>So I want to submit a patch to ALSA... and I&apos;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 &quot;ADVANCED LINUX SOUND ARCHITECTURE&quot;?&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 &quot;SOUND&quot;. (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 &quot;Files: &quot; 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 &quot;cannot prepare datapipe for urb %d\n&quot;, i);
	goto __error;
}
...
snd_printdd(KERN_INFO &quot;setting usb interface %d:%d\n&quot;, 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 &quot;return -EINVAL&quot; 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.</description>
  <comments>http://pavelmachek.livejournal.com/55710.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/55419.html</guid>
  <pubDate>Thu, 27 Mar 2008 09:28:27 GMT</pubDate>
  <title>iommu and lots of fun</title>
  <link>http://pavelmachek.livejournal.com/55419.html</link>
  <description>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 &quot;fun&quot;, 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.</description>
  <comments>http://pavelmachek.livejournal.com/55419.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/55247.html</guid>
  <pubDate>Thu, 27 Mar 2008 09:07:25 GMT</pubDate>
  <title>thanks Theodore ext3 is so robust</title>
  <link>http://pavelmachek.livejournal.com/55247.html</link>
  <description>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&apos;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!</description>
  <comments>http://pavelmachek.livejournal.com/55247.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/54958.html</guid>
  <pubDate>Fri, 21 Mar 2008 10:39:19 GMT</pubDate>
  <title>click on link provided by FBI, go to jail?</title>
  <link>http://pavelmachek.livejournal.com/54958.html</link>
  <description>...for 3 or so years...? US finally &lt;a href=&quot;http://www.news.com/8301-13578_3-9899151-38.html?tag=nefd.pop&quot;&gt;went crazy&lt;/a&gt;.</description>
  <comments>http://pavelmachek.livejournal.com/54958.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/54697.html</guid>
  <pubDate>Wed, 19 Mar 2008 09:11:20 GMT</pubDate>
  <title>vger.kernel.org is down</title>
  <link>http://pavelmachek.livejournal.com/54697.html</link>
  <description>...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.</description>
  <comments>http://pavelmachek.livejournal.com/54697.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/54391.html</guid>
  <pubDate>Thu, 13 Mar 2008 08:29:23 GMT</pubDate>
  <title>Wikipedia, evil autorepeat, strange usb and good wireless news</title>
  <link>http://pavelmachek.livejournal.com/54391.html</link>
  <description>There has been recent talk about &quot;wikipedia should accept advertising to keep itself from bankrupting&quot;. Well... there&apos;s easy way to &quot;fix&quot; 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&apos;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.</description>
  <comments>http://pavelmachek.livejournal.com/54391.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/54220.html</guid>
  <pubDate>Mon, 10 Mar 2008 13:33:41 GMT</pubDate>
  <title>Kohjinsha updates</title>
  <link>http://pavelmachek.livejournal.com/54220.html</link>
  <description>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=&quot;http://atrey.karlin.mff.cuni.cz/~susa/kohjinsha.html&quot;&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.</description>
  <comments>http://pavelmachek.livejournal.com/54220.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/53873.html</guid>
  <pubDate>Mon, 03 Mar 2008 20:29:17 GMT</pubDate>
  <title>How to boot into distribution living in chroot...</title>
  <link>http://pavelmachek.livejournal.com/53873.html</link>
  <description>Guillaume Chazarain describes this &quot;interesting&quot; 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 &quot;most interesting kernel cmdline hack&quot;, ever.</description>
  <comments>http://pavelmachek.livejournal.com/53873.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/53508.html</guid>
  <pubDate>Mon, 03 Mar 2008 18:56:16 GMT</pubDate>
  <title>bioheadlight &amp; warm-loving computer</title>
  <link>http://pavelmachek.livejournal.com/53508.html</link>
  <description>Ok, so how does ideal headlight look like?&lt;br /&gt;&lt;br /&gt;Produces as much light as possible? ...no, that&apos;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&apos;s better, but it still is not what is needed. Powerful headlights blind people, and that&apos;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&apos;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...</description>
  <comments>http://pavelmachek.livejournal.com/53508.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/53296.html</guid>
  <pubDate>Mon, 03 Mar 2008 18:34:36 GMT</pubDate>
  <title>suspend to RAM in Fedora</title>
  <link>http://pavelmachek.livejournal.com/53296.html</link>
  <description>...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&apos;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&apos;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).</description>
  <comments>http://pavelmachek.livejournal.com/53296.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/53028.html</guid>
  <pubDate>Wed, 20 Feb 2008 23:38:14 GMT</pubDate>
  <title>Evil hack to get gps to work on openmoko with 2.6.24 kernel</title>
  <link>http://pavelmachek.livejournal.com/53028.html</link>
  <description>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 &apos;s-/sys/-/s/s/-g&apos; &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;</description>
  <comments>http://pavelmachek.livejournal.com/53028.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/52928.html</guid>
  <pubDate>Tue, 12 Feb 2008 23:56:30 GMT</pubDate>
  <title>Evil lights</title>
  <link>http://pavelmachek.livejournal.com/52928.html</link>
  <description>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&apos;s bad for them, and means you&apos;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&apos;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 &quot;this is how far&lt;br /&gt;away I can shine&quot; and for blinding people. That&apos;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&apos;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;</description>
  <comments>http://pavelmachek.livejournal.com/52928.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/52680.html</guid>
  <pubDate>Tue, 12 Feb 2008 14:36:38 GMT</pubDate>
  <title>testing@home</title>
  <link>http://pavelmachek.livejournal.com/52680.html</link>
  <description>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...</description>
  <comments>http://pavelmachek.livejournal.com/52680.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/52397.html</guid>
  <pubDate>Wed, 06 Feb 2008 00:54:51 GMT</pubDate>
  <title>for the record</title>
  <link>http://pavelmachek.livejournal.com/52397.html</link>
  <description>...I&apos;ll be happy when freezer is gone, and am now looking forward to &lt;a title=&quot;Matthew Garrett&quot; href=&quot;http://mjg59.livejournal.com/&quot;&gt;Matthew Garrett&lt;/a&gt;&apos;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&apos;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....</description>
  <comments>http://pavelmachek.livejournal.com/52397.html</comments>
  <lj:security>public</lj:security>
</item>
<item>
  <guid isPermaLink='true'>http://pavelmachek.livejournal.com/52128.html</guid>
  <pubDate>Sat, 02 Feb 2008 00:07:07 GMT</pubDate>
  <title>thanks for port 0x80 debugging cards</title>
  <link>http://pavelmachek.livejournal.com/52128.html</link>
  <description>&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.</description>
  <comments>http://pavelmachek.livejournal.com/52128.html</comments>
  <lj:security>public</lj:security>
</item>
</channel>
</rss>
