“UbuntuHelp:Forum/customization”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/forum/customization}} {{Languages|UbuntuHelp:forum/customization}} A page for posting information from the forums that deals with CUSTOMISING your...) |
小 |
||
(未显示同一用户的3个中间版本) | |||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:forum/customization}} | {{Languages|UbuntuHelp:forum/customization}} | ||
A page for posting information from the forums that deals with CUSTOMISING your Ubuntu. Examples might be setting up new programs, not included by default with the Ubuntu system, or tweaking existing programs. | A page for posting information from the forums that deals with CUSTOMISING your Ubuntu. Examples might be setting up new programs, not included by default with the Ubuntu system, or tweaking existing programs. | ||
− | |||
http://www.ubuntuforums.org/showthread.php?t=2780 <-- lm-sensors guide | http://www.ubuntuforums.org/showthread.php?t=2780 <-- lm-sensors guide | ||
Howto Install and Configure lm-sensors | Howto Install and Configure lm-sensors | ||
− | |||
http://www.ubuntuforums.org/showthread.php?t=32220 <-- | http://www.ubuntuforums.org/showthread.php?t=32220 <-- | ||
Howto have a menu which shows all installed applications on your system | Howto have a menu which shows all installed applications on your system | ||
− | |||
======================== | ======================== | ||
+ | 1. Install lm-sensors using apt-get or the Synaptic GUI. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install lm-sensors | sudo apt-get install lm-sensors | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
2. Run the mkdev.sh script in the lm-sensors source. It is extacted below: | 2. Run the mkdev.sh script in the lm-sensors source. It is extacted below: | ||
+ | a. Copy the script file below to a text editor and save it to a file named mkdev.sh. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/bash | #!/bin/bash | ||
第49行: | 第45行: | ||
</nowiki></pre> | </nowiki></pre> | ||
b. Make the file executable: | b. Make the file executable: | ||
+ | |||
<pre><nowiki> | <pre><nowiki> | ||
chmod 755 mkdev.sh | chmod 755 mkdev.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
c. Run mkdev.sh from the current directory | c. Run mkdev.sh from the current directory | ||
+ | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo ./mkdev.sh | sudo ./mkdev.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | 3. Now run sensors-detect and answer YES to all YES/no questions. I generally use the ISA bus rather than the SMBus bus, your choice to this question!. At the end of the detection phase, a list of modules that needs to be loaded will displayed. You will need to write these down or print the list for the next steps. | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo sensors-detect | sudo sensors-detect | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Below is an example of results from sensors-detect: | Below is an example of results from sensors-detect: | ||
#************************************************* ***************************** | #************************************************* ***************************** | ||
To make the sensors modules behave correctly, add these lines to | To make the sensors modules behave correctly, add these lines to | ||
/etc/modules: | /etc/modules: | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
#----cut here---- | #----cut here---- | ||
第77行: | 第73行: | ||
#----cut here---- | #----cut here---- | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Then, run /etc/init.d/module-init-tools | Then, run /etc/init.d/module-init-tools | ||
− | |||
To make the sensors modules behave correctly, add these lines to | To make the sensors modules behave correctly, add these lines to | ||
/etc/modprobe.d/local and run update-modules: | /etc/modprobe.d/local and run update-modules: | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
#----cut here---- | #----cut here---- | ||
第90行: | 第83行: | ||
#********************************** | #********************************** | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
4. In this example, we add the modules in reverse order (order is critical!) in "/etc/modules". | 4. In this example, we add the modules in reverse order (order is critical!) in "/etc/modules". | ||
第116行: | 第108行: | ||
#***************************************** | #***************************************** | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
4. I found that there was no "/etc/modprobe.d/local" and that "alias char-major-89 i2c-dev" was already listed in "/etc/modprobe.d/aliases". So, nothing to do here. | 4. I found that there was no "/etc/modprobe.d/local" and that "alias char-major-89 i2c-dev" was already listed in "/etc/modprobe.d/aliases". So, nothing to do here. | ||
− | |||
5.Now load the modules manually using modprobe and update the dependencies. | 5.Now load the modules manually using modprobe and update the dependencies. | ||
第130行: | 第120行: | ||
sudo update-modules <may not be needed!> | sudo update-modules <may not be needed!> | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | 6. Now test the sensor output using the lm-sensors utility "sensors". | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sensors | sensors | ||
第138行: | 第128行: | ||
it87-isa-0290 | it87-isa-0290 | ||
Adapter: ISA adapter | Adapter: ISA adapter | ||
− | VCore 1: +1.57 V (min | + | VCore 1: +1.57 V (min = +1.42 V, max = +1.57 V) ALARM |
− | VCore 2: +2.66 V (min | + | VCore 2: +2.66 V (min = +2.40 V, max = +2.61 V) ALARM |
− | +3.3V: +6.59 V (min | + | +3.3V: +6.59 V (min = +3.14 V, max = +3.46 V) ALARM |
− | +5V: +5.11 V (min | + | +5V: +5.11 V (min = +4.76 V, max = +5.24 V) |
− | +12V: +11.78 V (min | + | +12V: +11.78 V (min = +11.39 V, max = +12.61 V) |
− | -12V: -19.14 V (min | + | -12V: -19.14 V (min = -12.63 V, max = -11.41 V) ALARM |
− | -5V: +0.77 V (min | + | -5V: +0.77 V (min = -5.26 V, max = -4.77 V) ALARM |
− | Stdby: +5.00 V (min | + | Stdby: +5.00 V (min = +4.76 V, max = +5.24 V) |
VBat: +3.12 V | VBat: +3.12 V | ||
− | fan1: 3668 RPM (min | + | fan1: 3668 RPM (min = 0 RPM, div = |
− | fan2: 0 RPM (min | + | fan2: 0 RPM (min = 664 RPM, div = ALARM |
− | fan3: 0 RPM (min | + | fan3: 0 RPM (min = 2657 RPM, div = 2) ALARM |
− | M/B Temp: +39°C (low | + | M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor |
− | CPU Temp: +36°C (low | + | CPU Temp: +36°C (low = +15°C, high = +45°C) sensor = thermistor |
− | Temp3: +96°C (low | + | Temp3: +96°C (low = +15°C, high = +45°C) sensor = diode |
************************************************** ******************** | ************************************************** ******************** | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
7. Reboot Ubuntu and the sensors should now be detected during the boot process properly! | 7. Reboot Ubuntu and the sensors should now be detected during the boot process properly! | ||
+ | 8. The sensor output may be tweaked by editing the "/etc/sensors.conf" file. It is possible to correct inacurate scaling too. For details check "man sensors.conf. | ||
− | |||
---- | ---- | ||
− | [[category:CategoryForum | + | [[category:CategoryForum]] |
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 16:50的最新版本
点击翻译: |
English |
A page for posting information from the forums that deals with CUSTOMISING your Ubuntu. Examples might be setting up new programs, not included by default with the Ubuntu system, or tweaking existing programs. http://www.ubuntuforums.org/showthread.php?t=2780 <-- lm-sensors guide Howto Install and Configure lm-sensors http://www.ubuntuforums.org/showthread.php?t=32220 <-- Howto have a menu which shows all installed applications on your system
============
1. Install lm-sensors using apt-get or the Synaptic GUI.
sudo apt-get install lm-sensors
2. Run the mkdev.sh script in the lm-sensors source. It is extacted below: a. Copy the script file below to a text editor and save it to a file named mkdev.sh.
#!/bin/bash # Here you can set several defaults. # The number of devices to create (max: 256) NUMBER=32 # The owner and group of the devices OUSER=root OGROUP=root # The mode of the devices MODE=600 # This script doesn't need to be run if devfs is used if [ -r /proc/mounts ] ; then if grep -q "/dev devfs" /proc/mounts ; then echo "You do not need to run this script as your system uses devfs." exit; fi fi i=0; while [ $i -lt $NUMBER ] ; do echo /dev/i2c-$i mknod -m $MODE /dev/i2c-$i c 89 $i || exit chown "$OUSER:$OGROUP" /dev/i2c-$i || exit i=$[$i + 1] done #end of file
b. Make the file executable:
chmod 755 mkdev.sh
c. Run mkdev.sh from the current directory
sudo ./mkdev.sh
3. Now run sensors-detect and answer YES to all YES/no questions. I generally use the ISA bus rather than the SMBus bus, your choice to this question!. At the end of the detection phase, a list of modules that needs to be loaded will displayed. You will need to write these down or print the list for the next steps.
sudo sensors-detect
Below is an example of results from sensors-detect:
- *****************************
To make the sensors modules behave correctly, add these lines to /etc/modules:
#----cut here---- # I2C adapter drivers i2c-viapro i2c-isa # I2C chip drivers eeprom it87 #----cut here----
Then, run /etc/init.d/module-init-tools To make the sensors modules behave correctly, add these lines to /etc/modprobe.d/local and run update-modules:
#----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---- #**********************************
4. In this example, we add the modules in reverse order (order is critical!) in "/etc/modules".
#*************************************************************** # /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a "#", and everything on the line after them are ignored. psmouse mousedev ide-cd ide-disk ide-generic lp #For lm-sensors, i2c modules it87 i2c-viapro i2c-isa #end of file! #*****************************************
4. I found that there was no "/etc/modprobe.d/local" and that "alias char-major-89 i2c-dev" was already listed in "/etc/modprobe.d/aliases". So, nothing to do here.
5.Now load the modules manually using modprobe and update the dependencies.
sudo modprobe i2c-sensor sudo modprobe i2c-viapro sudo modprobe i2c-isa sudo modprobe it87 sudo depmod -a <may not be needed!> sudo update-modules <may not be needed!>
6. Now test the sensor output using the lm-sensors utility "sensors".
sensors ************************************************** ***************** it87-isa-0290 Adapter: ISA adapter VCore 1: +1.57 V (min = +1.42 V, max = +1.57 V) ALARM VCore 2: +2.66 V (min = +2.40 V, max = +2.61 V) ALARM +3.3V: +6.59 V (min = +3.14 V, max = +3.46 V) ALARM +5V: +5.11 V (min = +4.76 V, max = +5.24 V) +12V: +11.78 V (min = +11.39 V, max = +12.61 V) -12V: -19.14 V (min = -12.63 V, max = -11.41 V) ALARM -5V: +0.77 V (min = -5.26 V, max = -4.77 V) ALARM Stdby: +5.00 V (min = +4.76 V, max = +5.24 V) VBat: +3.12 V fan1: 3668 RPM (min = 0 RPM, div = fan2: 0 RPM (min = 664 RPM, div = ALARM fan3: 0 RPM (min = 2657 RPM, div = 2) ALARM M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor CPU Temp: +36°C (low = +15°C, high = +45°C) sensor = thermistor Temp3: +96°C (low = +15°C, high = +45°C) sensor = diode ************************************************** ********************
7. Reboot Ubuntu and the sensors should now be detected during the boot process properly! 8. The sensor output may be tweaked by editing the "/etc/sensors.conf" file. It is possible to correct inacurate scaling too. For details check "man sensors.conf.