tiistai 16. helmikuuta 2010

S/PDIF TOSLINK mod for a motherboard

Problem: A motherboard (Asrock Conroe 865PE) that has no digital audio output.

Solution: alsamixer shows a control for IEC958 (which means digital output), and also that the codec chip is Realtek ALC850. Docs from Realtek show that digital output is at pin 48, and it can directly drive TOSLINK transmitters like TOTX176.



Black blob on lower left is the TOTX176 (or TOTX178 or something like that, I'm not sure as I took it from a broken DVD player), 100nF capacitor between its ground and Vcc and a pin header for those, signal wire going to Realtek chip with a loop through a connector to remove physical strain on the soldering. Added a launcher button to XFCE4 (the window manager I use), executing "/usr/bin/amixer 'IEC958' toggle"; meaning that clicking it will toggle the output on-off.

Problem solved. :)

Happy Valentine's

This is just lovely.

I like to keep all personal messages - cards, letters, emails, sms' - for sentimental values. And now, for no apparent reason, my cellular (HTC Diamond) decided to lose ALL messages sent or received on Valentine's day. Nice. I did backup all messages a couple days ago, but didn't make it a scheduled job or to be done after each receive/send, so that doesn't help. The irony is that I wanted to make backing up automatic right from the beginning when I got this phone, but it seems that Windows Mobile is as nice to make do things for you as regular Windows is. *Explicit deleted*, that is. Some regular Python love ought to be enough on _any_ platform. (Well, yeah, I did find out there is Python for WinCE, but I doubt messaging APIs are up to the task...)

Looks like it's time to cash in for the Linux kernel development project on this cellular.

sunnuntai 3. tammikuuta 2010

Headtracking part 2, Silent Wings

Sometimes it's nice to be wrong. When I tried soaring simulator Silent Wings' remote UDP control earlier, I must've done something wrong. I thought PANH and PANV parameters control only external view, but they do work in cockpit view too - and, almost immediately after suggesting, the developer added support for full 6DOF movement, which will be available in next patch. Nice!

In the meantime, here's how to get 2DOF headtracking. Do the stuff in previous post, get ltlib_test.c.sw-udp here and overwrite linux-track-read-only/src/ltlib_test.c with it, do "make" again in linux-track-read-only, change "use_remote_control" to "true" in SilentWings/data/options.dat, run ltlib_test (again, activate wiimote with 1+2 buttons first), and then run SilentWings. For subsequent runs, running ltlib_test and SilentWings is enough.

Although Condor has much more online races, Silent Wings was a easy choice. Whereas Condor runs poorly on Wine and development/fixing seems quite dead, Silent Wings not only runs well on Wine but also has native clients for linux and OSX, and is evolving. AFAIK both will have V2 "soon", but at this state, wanting to fly now, it was clear. Not to mention that being a bit more "open" suits my taste well.

And for something not so different, check out James May riding a U2. Preferably with no hurry and a nice cup of coffee / tea / wine / etc. This still leaves me speechless.