From WikiMwyann

Jump to: navigation, search

This page describes tips, tricks and fixes for Ångström-x11. I got into these when trying to configure my Sharp Zaurus CL-1000 (akita) and a D-Link DCF-660W wifi card (Prism2 chipset, hostap driver).



Sharp Zaurus CL-1000 arch: armv5te

Packages are located here: http://www.angstrom-distribution.org/feeds/2007/ipk/glibc/armv5te/

Best browser I tested: minimo


How to get the # root prompt instead of the $ one?

Open /etc/profile and change the PS1 part with that:

if [ "$PS1" ]; then
# works for bash and ash (no other shells known to be in use here)
  if [ "`id -u`" -eq 0 ]; then
    PS1='\u@\h:\w\# '
    PS1='\u@\h:\w\$ '

Note that this will only work if you log in as root or if you use the command "su -".

How to keep usb0 away from coming up all the time?

Comment out the usb0 paragraph in /etc/network/interfaces and usb0 won't be bringed up at boot-time again.

How to run the dhcp client?

Just run the following command (for example on wlan0):

udhcpc -i wlan0

How to use USB Host?

Just run the following command:

modprobe ohci-hcd

Note: The Zaurus won't bring enough power for most USB devices. You'll need to use an externally powered USB Hub for that.

Note: I don't know how to get back to USB Slave after doing this, apart from rebooting the whole thing. If you do know, mail me!

How to autoconfigure and bring up wlan0 at startup/resume without hotplugging?

Note that this tip is for prism-based card only. Do make the proper change with your card when you see /lib/udev/prism-fw.sh.

Create the file /etc/apm/suspend.d/S10-wlan and write this:


if iwconfig wlan0 2> /dev/null | grep -q IEEE; then
ifdown wlan0

Create the file /etc/apm/resume.d/10-wlan and write this:


if iwconfig wlan0 2> /dev/null | grep -q IEEE; then
sleep 1
ifup wlan0

And finally, edit the file /etc/init.d/networking and add this:

echo -n "Configuring network interfaces... "
if iwconfig wlan0 2> /dev/null | grep -q IEEE; then
  sleep 1
  ifup wlan0 &
ifup -a


echo -n "Deconfiguring network interfaces... "
ifdown wlan0
ifdown -a

How to get snd-usb-audio working?

If, like me, you installed the package kernel-module-snd-usb-audio and it won't insert the modules (telling about some symbols...) do what's written on this page.

How to be able to play more than one sound with alsa?

Create a file named ~/.asoundrc and write this into:

pcm.ossmix {
   type dmix
   ipc_key 1021          # must be unique!
   slave {
       pcm "hw:0,0"
       period_time 0
       period_size 1024  # must be power of 2
       buffer_size 8192  # dito. It
       #format "S32_LE"
       #periods 128      # dito.
       rate 44100

# bindings are cool. This says, that only the first
# two channels are to be used by dmix, which is enough for
# (most) oss apps and also lets multichannel chios work 
# much faster:

   bindings {
       0 0   # from 0 => to 0
       1 1   # from 1 => to 1

# Redirect to ossmix
pcm.!default {
   type plug
   slave.pcm "ossmix"     # use our new PCM here

# Redirect to ossmix
pcm.dsp0 {
   type plug
   slave.pcm "ossmix"     # use our new PCM here

# mixer0 like above
ctl.mixer0 {
   type hw
   card 0

Test it with mpayer:

mplayer -ao alsa test.mp3

Note: the config file for mplayer is ~/.mplayer/config if you want default output to alsa.


wlan0 not working with wep keys!

Fix it by upgrading your distro using the usb ethernet gadget connection:

ipkg update && ipkg upgrade

How to get minimix applet working?

Simply add the following command at the beginning of your /etc/init.d/alsa-state file:

echo 'VOLUME "PCM" 0' > /proc/asound/card0/oss_mixer

You can reboot or execute this same command in a shell and here you go.

How to have only one virtual keyboard running in portrait mode?

When you're already running mbinputmgr in landscape mode, when you switch to portrait, you get another virtual keyboard.

To fix this issue, just edit /etc/zaurusd/hinge-portrait.d/20-matchbox-portrait and, at the end of the file, change every occurence of grep -q "mbinputmgr " by grep -q "mbinputmgr" (remove the extra space after mbinputmgr).

Of course, this fix will not affect the case when you have no virtual keyboard in landscape: the virtual keyboard will still display and kills when you switch modes.

My timezone won't be saved, it keeps using UTC again and again!

Edit /etc/profile and replace the TZ paragraph with this:

if [ ! -e /etc/timezone ]; then
    TZ=`cat /etc/timezone`

Create /etc/timezone and write down your zone, like this:


Finally, copy the zoneinfo file from /usr/share/zoneinfo/ into /etc/localtime, like this:

cp /usr/share/zoneinfo/Europe/Paris /etc/localtime

Then logout or reboot, and you're done.


Personal tools