ubuntu linux ÉÏʹÓÃË÷Äász 6/7ϵÁÐË«ÏÔ¿¨¹¦ÄÜ

×÷Õß: velcbo 2008-10-05 00:34:58
×÷Õß:Kevin.U £¨YOUDI£©
e-mail/gtalk:youdimail#gmail.com
sony szϵÁбʼDZ¾ÓÐÒ»¸ö¶ÀÌصŦÄÜ£¬ÄǾÍÊÇË«ÏÔ¿¨Çл»¹¦ÄÜ£¬¸ÃϵÁоùÓÐÁ½¿éÏÔ¿¨£¬ËÙ¶Èģʽ£»nvidia¶ÀÁ¢ÏÔ¿¨£¬ÄÍÁ¦Ä£Ê½£» intel¼¯³ÉÏÔ¿¨£¬Óû§¿ÉÒÔ¸ú¾Ý×Ô¼ºÊ¹Óû·¾³À´Ñ¡ÔñÏàÓ¦µÄģʽ£¬ÒÔ±£Ö¤µç³ØʹÓõÄʱ¼äºÍ±Ê¼Ç±¾µÄÐÔÄÜ£¬ÕâÊÇÒ»¸ö·Ç³£ÈËÐÔ»¯µÄÉè¼Æ¡£È»¶øÈçºÎÔÚubuntu linuxÀ´Ê¹ÓÃÕâ¸ö¹¦ÄÜÄØ£¿ÎÒÓë´ó¼Ò·ÖÏíһϡ£
Îҵİ®±¾Îªsony sz65 , OSΪubuntu 8.04 64bit,ÔÚ°²×°ÏµÍ³Ê±Ê¹ÓÃspeedģʽ¡£
°²×°Íê³ÉÖ®ºó°²×°nvidiaÏÔ¿¨Çý¶¯£º
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/96.43.07/NVIDIA-Linux-x86_64-96.43.07-pkg2.run
Èç¹ûÊÇ32bitÓ¦¸ÃÊÇÕâ¸ö
wget http://us.download.nvidia.com/XFree86/Linux-x86/96.43.07/NVIDIA-Linux-x86-96.43.07-pkg1.run
sudo apt-get install build-essential
sudo /etc/init.d/gdm stop
alt+ctrl+f1
ÊäÈëÓû§Ãû ÃÜÂë ½øÈë
sudo sh ¸Õ²ÅÄúÏÂÔصÄÎļþÃû.run
È»ºóÒ»²½Ò»È·¶¨¾Í¿ÉÒÔÁË
sudo /etc/init.d/gdm start

½øÈëxϵͳ֮ºó
sudo nvidia-settings
µ÷Õû·Ö±æÂÊ ±£´æ

sudo gedit /etc/default/linux-restricted-modules-common
½«ÆäÖеÄDISABLED_MODULES=¡±"¸ÄΪDISABLED_MODULES="nv nvidia_new"¡£Èç¹û²»ÕâôÐ޸ģ¬ÖØÐÂÆô¶¯ÒÔºó£¬Çý¶¯¾Í»áʧ°Ü
speedģʽnvidiaÏÔ¿¨Çý¶¯°²×°Íê³É¡£
°²×°intelÏÔ¿¨£º
sudo apt-get install xserver-xorg-video-intel
°²×°Íê³É£¬
speedģʽµÄxorg.conf½«Æä±£´æΪ/etc/X11/xorg.conf.speed
¿ÉÒÔ¸´ÖÆÒÔÏÂÄÚÈݱ£´æΪxorg.conf.speed
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,am"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
Option "XkbVariant" ","
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Synaptics Touchpad"
EndSection
Section "Module"
Load "glx"
EndSection

staminaģʽµÄxorg.conf½«Æä±£´æΪ/etc/X11/xorg.conf.stamina
¿ÉÒÔ¸´ÖÆÒÔÏÂÄÚÈݱ£´æΪxorg.conf.stamina

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Device"
Identifier "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"if [ "$VIDEO" = 1 ]; then
cp -f /etc/X11/xorg.conf.speed /etc/X11/xorg.conf
else
cp -f /etc/X11/xorg.conf.stamina /etc/X11/xorg.conf
fi

Identifier "Generic Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "DRI"
Mode 0666
EndSection

vim /etc/init.d/rc.local¼ÓÈëÈçÏÂshell´úÂ룺

if [ "$VIDEO" = 1 ]; then
cp -f /etc/X11/xorg.conf.speed /etc/X11/xorg.conf
else
cp -f /etc/X11/xorg.conf.stamina /etc/X11/xorg.conf
fi

ÏÖÔÚ¿ÉÒÔÊÔÒ»ÊÔÄãµÄsz±¾±¾ÔÚlinuxÏÂÊÇ·ñ¿ÉÒÔʹÓÃË«ÏÔ¿¨¹¦ÄÜÁË¡£

Ïà¹Ø×ÊѶ