Harry's Lemote Yeeloong Page

The Lemote Yeeloong (warning: Engrish ahead) is a Chinese-manufactured mips64el netbook that I now own (and love quite dearly).

It has a few unique advantages over other netbooks:

I'll also list the common advantages:

Of course, it also has some unique disadvantages:

And like any laptop, it has common disadvantages:

I've developed some quick bash scripts for it:

setfanspeed -- Set fan speed and display battery temperature

#!/bin/bash
echo $1 > /sys/class/hwmon/hwmon0/pwm1
thinkfan
echo battery temperature is $(cat /sys/devices/virtual/power_supply/yeeloong-bat/temp)

Requires thinkfan to be installed.
Called with setfanspeed [number], where [number] is either 0, 1, 2, or 3.
The numbers roughly correspond to these fan speed values:

0 250 RPM
1 3300 RPM
2 3700 RPM
3 (default) 4300 RPM

Mostly stolen from Roman Mamedov.

bat -- Perform various battery-related tasks

#!/bin/bash
if [ $1 ]
then
        if [ $1 == "temp" ]
                then cat /sys/devices/virtual/power_supply/yeeloong-bat/temp
        fi
        if [ $1 == "status" ]
        then
                echo "max charge:" $(cat /sys/class/power_supply/yeeloong-bat/charge_full)
                echo "current charge:" $(cat /sys/class/power_supply/yeeloong-bat/charge_now)
        fi
        if [ $1 == "set" ]
        then
                if [ $2 == "powersave" ]
                then
                        echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
                        echo "set to power-saving mode"
                fi
                if [ $2 == "maxpower" ]
                then
                        echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
                        echo 797000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
                        echo "set to high-performance mode"
                fi
        fi
fi
if [ ! $1 ]
then
        echo "options:"
        echo "   temp           to show temperature"
        echo "   status         to show status"
        echo "   set [mode]     sets mode, where [mode] can be:"
        echo "      maxpower    to set to high-performance, short-battery mode"
        echo "      powersave   to optimize for longer battery life"
        echo ""
        echo "most of this was taken from:"
        echo "   http://delqn.com/yeeloong/yeeloong.md"
fi

Luckily, this one is self-documenting.