Showing posts with label sound. Show all posts
Showing posts with label sound. Show all posts

Saturday, October 24, 2009

deb for OpenTTD

I'd like to create a proper package for OpenTTD. So I've followed the ottd compilation wiki. At the end of the wiki page it is explained how to create a deb package.
I first had to install the following packages:

apt-get install build-essential fakeroot libfontconfig1-dev
then, from the root directory of the source code,
mv os/debian .
and
dpkg-buildpackage -rfakeroot -uc -us
to build the package (ge75bb64).

I had some problems with openttd sound stuttering, to solve it I found that (thanks Rubidium in the #openttd channel) running with -s sdl:hz=22000 solves the problem. This can be also set to be the default in the openttd.cfg file, just set:
sounddriver = "sdl:hz=22000"

Tuesday, June 30, 2009

A new revelation (Zubuntu RC1)

After a hint speculatrix gave me, I followed this post to install Zubuntu RC1 (8.04) on my Zaurus. I first reflashed the zaurus with a rom including kexec.
This little nifty app enables the zaurus to boot from the SD/CF card.
I got me a 4GB SDHC card. On a desktop (actually a virtual machine) I repartitioned it using gparted (one ext2 and one swap partition). and extracted the rootfs to the SD,

# tar zxvf zubuntu-desktop-rc1.tar.gz -C /media/disk
and the kernel modules for my boxer,
# tar zxvf c7x0-root-addition.tar.gz -C /media/disk
and voila, I have ubuntu on my zaurus. I needed to fix the touchscreen by changing in ~/.profile:
export TSLIB_TSDEVICE=/dev/input/event2
to
export TSLIB_TSDEVICE=/dev/input/event1
alternatively the following command will change it:
sed -i "s#export TSLIB_TSDEVICE=/dev/input/event2#export TSLIB_TSDEVICE=/dev/input/event1#" root/.profile
And also removed from ~/.xinitrc
xrandr -o right
or
sed -i "s/xrandr -o right/#xrandr -o right/" root/.xinitrc
to keep the screen in portrait mode when starting.

To enable usb networking , i edited /etc/network/interfaces as I did before. I also had to add to /etc/resolve.conf:
nameserver 192.168.1.1
to have access to the internet.

The only major problem I have now is that the CF slot is dead so I cant use the bluetooth or wifi cards.

eventually I found this link (in german) after
# modprobe pxa2xx_cs
the port came back to life. I added g_ether (USB networking), pxa2xx_cs (CF slot) and snd-soc-corgi (Sound card) to /etc/modules.
this can be done by,
grep snd-soc-corgi etc/modules || echo "snd-soc-corgi">>etc/modules
grep pxa2xx_cs etc/modules || echo "pxa2xx_cs">>etc/modules
grep g_ether etc/modules || echo "g_ether">>etc/modules


Thursday, October 11, 2007

Alsa Mixer

Sometimes the alsmixer settings get corrupted, so I take a note of the "good" settings:

  • Sidetone: 100
  • Mic Boost: Off
  • Playback: (Off) 81
  • Playback De-mphasis: None
  • Capture Mic: On
  • ADC High Pass Filter: On
  • Input Mux: Line In
  • Jack Function: Off
  • Output Mixer HiFi Playback Switch: On
  • Output Mixer Line Bypass: On
  • Output Mixer Mic Sidetone Switch: Off
  • Speaker Function: On
  • Store DC Offset: Off