gnewsense-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnewsense-dev] Re: Closing Yeelong cover fails to shut off display


From: Hongbing Hu
Subject: Re: [Gnewsense-dev] Re: Closing Yeelong cover fails to shut off display
Date: Mon, 28 Dec 2009 19:12:34 +0800
User-agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110)



Daniel Clark 写道:
Hongbing Hu wrote:
Ok, attachment inclueds all the things

Please be careful!

I installed this on a yeeloong using linux 2.6.27.1 - I think the README
needs to be fixed, it refers to the "ec_misc" module, whereas the module
names seems to be actually named "ec_miscd".

yes, it's ec_miscd.

It seems to have installed fine:

loongson2f-1:~# cat /proc/cmdline
console=tty root=/dev/hda1 resume=/dev/hda5 no_auto_cmd rootdelay=8
machtype=8.9 PMON_VER=LM8089-1.4.3 EC_VER=PQ1D28 rd_start=0x84000000
rd_size=0x2af778

update successfully

However the backlight still does not go off when the lid is closed.

Maybe there is some parameter that also needs to be set in PMON for this
to work / be turned on?

no need to set anything
sorry, some machine can't detect the closing cover event.

Also on this box I had previously set the fan to manually be on highest
speed from PMON using the instructions at
http://gnewsense.pastebin.com/f32f338b (also below) - could that be
causing a problem?

now, you can contorl the speed of fan via sysfs

disable auto mode, enable manual mode
> echo 1 > /sys/class/hwmon/hwmon0/pwm1_enable
set the fan speed
> echo 0 > /sys/class/hwmon/hwmon0/pwm1  #stop the fan
> echo 1 > /sys/class/hwmon/hwmon0/pwm1  #set the fan speed "3600 RPM"
> echo 2 > /sys/class/hwmon/hwmon0/pwm1  #set the fan speed "4000 RPM"
> echo 3 > /sys/class/hwmon/hwmon0/pwm1  #set the fan speed "4500 RPM"


turning fan on on a yeeloong via pmon 2000

when in pmon using :(rdecreg addr size(can be a group of addr), wrecreg
addr val(only 1 addr))
wrecreg f459 1                  // setting the fan manual control mode
wrecreg f4d2 1                  // switch fan
wrecreg f4cc 2                  // you can setting 1, 2,3 for fan speed stage 
1, 2, 3.
here is stage2 for eg.

you can get the status of fan from :
rdecreg f4da 1                  // read one reg from f4da : '0' for stop, '1' 
for running.

Thanks,

--
---------------------------------------------------------
Hongbing,Hu (Software Department)
Tel:    0512-52308631
        13182649969
E-mail: address@hidden
MSN:    address@hidden
JiangSu Lemote Corp. Ltd.
MengLan, Yushan, Changshu, JiangSu Province, China
---------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]