Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![:]](wcf/images/smilies/pleased.gif)
Quoted
Original von MaseIch hatte aber gelesen, dass der Lüfter so gedreht wurde, dass er rauszieht.
Als ich das machen wollte, hab ich festgestellt, dass das schon so ist. Aber ich
kann's ja mal testen.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
#!/bin/bash
modprobe w83627hf
if [ ! -e /sys/bus/i2c/devices/9191-0290/pwm1 ]; then
exit 1
fi
# Spin the Fan at max for 10s
#echo 255 > /sys/bus/i2c/devices/9191-0290/pwm1
#sleep 10
# Slow the fan to minimum
echo 20 > /sys/bus/i2c/devices/9191-0290/pwm1
LEVEL=20
PWM=20
INCLEVEL=1
while [ true ]; do
TEMP=`cat /sys/bus/i2c/devices/9191-0290/temp2_input`
# echo TEMP=${TEMP} PWM=${PWM} LEVEL=${LEVEL} > /tmp/level
# echo TEMP=${TEMP} PWM=${PWM} LEVEL=${LEVEL}
if [ ${TEMP} -ge 80000 ]; then
/sbin/shutdown -h now
exit
else
if [ ${TEMP} -ge 76000 ]; then
PWM=255
INCLEVEL=8
else
if [ ${TEMP} -ge 75000 ]; then
PWM=64
INCLEVEL=4
else
if [ ${TEMP} -ge 60000 ]; then
PWM=$(((${TEMP} - 45000) / 1000))
INCLEVEL=1
else
if [ ${TEMP} -le 55000 ]; then
PWM=0
fi
fi
fi
fi
fi
sleep 1
if [ ${PWM} -gt ${LEVEL} ]; then
LEVEL=$((${LEVEL} + ${INCLEVEL}))
echo ${LEVEL} > /sys/bus/i2c/devices/9191-0290/pwm1
else
if [ ${PWM} -lt ${LEVEL} ]; then
LEVEL=$((${LEVEL} - 1))
echo ${LEVEL} > /sys/bus/i2c/devices/9191-0290/pwm1
fi
fi
#echo $TEMP $LEVEL
done
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
w83627hf-isa-0290
Adapter: ISA adapter
VCore 1: +1.14 V (min = +1.25 V, max = +1.66 V) ALARM
VCore 2: +1.89 V (min = +1.25 V, max = +1.66 V) ALARM
+3.3V: +3.39 V (min = +2.82 V, max = +3.79 V)
+5V: +5.16 V (min = +1.34 V, max = +4.41 V) ALARM
+12V: +12.28 V (min = +0.97 V, max = +0.73 V) ALARM
-12V: +1.78 V (min = -8.91 V, max = -11.13 V) ALARM
-5V: +2.54 V (min = +3.69 V, max = +3.59 V) ALARM
V5SB: +5.67 V (min = +0.00 V, max = +0.22 V) ALARM
VBat: +0.13 V (min = +3.14 V, max = +0.51 V) ALARM
fan1: 0 RPM (min = 0 RPM, div = 1)
fan2: 0 RPM (min = 4623 RPM, div = 2) ALARM
fan3: 0 RPM (min = 18750 RPM, div = 2) ALARM
temp1: -48°C (high = +12°C, hyst = -128°C) sensor = thermistor
temp2: +72.0°C (high = +80°C, hyst = +75°C) sensor = thermistor
temp3: +71.5°C (high = +80°C, hyst = +75°C) sensor = thermistor
vid: +1.450 V (VRM Version 8.5)
alarms:
beep_enable:
Sound alarm enabled
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
w83627hf-isa-0290
Adapter: ISA adapter
VCore 1: +1.14 V (min = +1.25 V, max = +1.66 V) ALARM
VCore 2: +1.84 V (min = +1.25 V, max = +1.66 V) ALARM
+3.3V: +3.31 V (min = +2.82 V, max = +3.79 V)
+5V: +5.11 V (min = +1.34 V, max = +4.41 V) ALARM
+12V: +12.40 V (min = +0.97 V, max = +0.73 V) ALARM
-12V: +1.62 V (min = -8.91 V, max = -11.13 V) ALARM
-5V: +2.49 V (min = +3.69 V, max = +3.59 V) ALARM
V5SB: +5.56 V (min = +0.00 V, max = +0.22 V) ALARM
VBat: +0.13 V (min = +3.14 V, max = +0.51 V) ALARM
fan1: 0 RPM (min = 0 RPM, div = 1)
fan2: 0 RPM (min = 4623 RPM, div = 2) ALARM
fan3: 0 RPM (min = 18750 RPM, div = 2) ALARM
temp1: -48°C (high = +12°C, hyst = -128°C) sensor = thermistor
temp2: +47.5°C (high = +80°C, hyst = +75°C) sensor = diode
temp3: +70.5°C (high = +80°C, hyst = +75°C) sensor = thermistor
vid: +1.450 V (VRM Version 8.5)
alarms:
beep_enable:
Sound alarm enabled
|
This post has been edited 3 times, last edit by "Mase" (Mar 4th 2008, 11:32pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
19:46:56.0751 I [3770] [dfb] init
=======================| DirectFB 1.1.1 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2008-03-18 17:41)
(*) Direct/Modules: suppress module 'lirc'
(!) Direct/Modules: Unable to dlopen `/usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_penmount.so'!
--> /usr/lib/directfb-1.1-0/inputdrivers/libdirectfb_penmount.so: undefined symbol: dfb_config
(*) Direct/Modules: suppress module 'joystick'
(*) Direct/Modules: suppress module 'ps2mouse'
(*) Direct/Modules: suppress module 'linux_input'
(*) Direct/Modules: suppress module 'keyboard'
(*) DirectFB/Genefx: MMX detected and enabled
(!) I810/AGP: AGPIOC_ACQUIRE failed!
--> Die Operation ist nicht erlaubt
(!) DirectFB/Core: Could not initialize 'graphics_core' core!
--> General I/O error!
19:46:56.0901 E [3770] [dfb] init EXITING:action=IDirectFB* DirectFB::Create(), result=General I/O error!
|
This post has been edited 1 times, last edit by "Mase" (Mar 18th 2008, 7:56pm)
This post has been edited 1 times, last edit by "Mase" (Feb 15th 2010, 9:42pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/bin/bash modprobe i2c-dev modprobe i2c-i810 sleep 2 echo Activating PAL output /usr/bin/smt7020s_tvout_setup echo Activating RGB output ID=$( i2cset 2>&1 | fgrep "SMBus I801 adapter at 1810" | cut -d - -f2 | cut -f1 ) echo $ID case "$ID" in [0-9]) i2cset -y $ID 0x4a 0x03 0xf6 ;; *) echo ERROR: No i2c $ID found ;; esac |
|
|
Source code |
1 |
sudo apt-get install libi2c-dev |
|
|
Source code |
1 |
gcc -o tvout_autosetup tvout_autosetup.c |