MY GENTOO NOTEBOOKUnix系统 电脑资料_第1页
MY GENTOO NOTEBOOKUnix系统 电脑资料_第2页
MY GENTOO NOTEBOOKUnix系统 电脑资料_第3页
MY GENTOO NOTEBOOKUnix系统 电脑资料_第4页
MY GENTOO NOTEBOOKUnix系统 电脑资料_第5页
已阅读5页,还剩48页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MY GENTOO NOTEBOOKUnix系统 电脑资料 MY GENTOO NOTEBOOK CONFIG uml ine cellspacing=1 cellpadding=3 width=100% border=0I still remembered the day I got the new Dell 700m, after I made sure that all parts worked properly on MS Windows, I formated the hd and started th umline cellspacing=1 cellpadding=3 width=100% border=0I still remembered the day I got the new Dell 700m, after I made sure that all parts worked properly on MS Windows, I formated the hd and started the journey of Gentoo without any hesitation. This HOWTO is highly inspired by HARDWARE Gentoo Acer Travelmate 803LCi Manual ATTENTION: PLEASE BE AWARE I AM NOT RESPORNSIBLE FOR ANY DAMAGE TO YOUR SYSTEM, YOU TRY THIS AT YOUR OWN RISK ! Introduction Technical specification of Dell 700m: Processors Intel PentiumTM M processors 725 (1.60GHz, 2MB Cache, 400MHz FSB) Intel 855GME chipset Memory 256 MB shared3 DDR SDRAM standard, upgradable to 2 GB maximum SDRAM Configuration: 2 SoDIMM slots (one user-aessible) Displays 12.1-inch Wide Screen crystal clear TFT XGA active-matrix display (1280 x 800 resolution) Graphics Cards Intel Extreme Graphics up to 64 MB shared memory Hard Drives 30 GB3 Ultra ATA hard drive Optical Drives Combo Drive: 24x/10x/24x CD-RW and 8x DVD Sound Cards Integrated stereo sound Modems Internal 56K3 capable v.92 Fax modem Network Interface Integrated 10/100 Ether Wireless Networking Dell 1350 internal wireless solution (802.11b/g, 54 Mbps4) I/O Ports 1394: Integrated IEEE 1394 2-USB 2.0 (Universal Serial Bus) pliant 4-pin connectors Audio jacks: Line-out (external speakers/headphone) and external microphone Video: 15-pin monitor connector 10/100 Ether LAN: RJ-45 connector S-Video/TV Out: 7-pin mini-DIN connector Memory: Secure Digital memory slot Modem: RJ-11 connector Slots Connectors: Supports (1) Type I or Type II card 3.3 and 5 V cards supported Here is the output of lspci | cut -b 13- Code: Host bridge: Intel Corp. 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) System peripheral: Intel Corp. 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) System peripheral: Intel Corp. 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) VGA patible controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02) Display controller: Intel Corp. 82852/855GM Integrated Graphics Device (rev 02) USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) PCI bridge: Intel Corp. 82801 Mobile PCI Bridge (rev 83) ISA bridge: Intel Corp. 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) IDE interface: Intel Corp. 82801DBM (ICH4-M) IDE Controller (rev 03) SMBus: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03) Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC97 Audio Controller (rev 03) Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC97 Modem Controller (rev 03) Network controller: Broad Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03) CardBus bridge: Texas Instruments PCI7420 CardBus Controller CardBus bridge: Texas Instruments PCI7420 CardBus Controller FireWire (IEEE 1394): Texas Instruments PCI7x20 1394a-2000 OHCI Two-Port PHY/Link-Layer Controller Unknown mass storage controller: Texas Instruments PCI7420/PCI7620 Dual Socket CardBus and Smart Card Cont. w/1394a-2000 OHCI Two-Port PHY/Link-Layer Cont. an Ether controller: Broad Corporation BCM4401-B0 100Base-TX (rev 02) Installing Gentoo: Stage 1 NPTL on a Stage 3 Tarballis a good handbook for fresh Gentoo installation. CFLAGS and USE G 3.3.4 does NOT support Pentium-M architecture, some users argue that Pentium-M is more or less like Pentium 4. As far as I know, Pentium-M is a brand new architecture designed specifically for laptop inspired by PIII-M. So I choose this CFLAGS for g 3.3.4: Code: CFLAGS=-march=pentium3 -O2 -fomit-frame-pointer -pipe For g 3.4.3 Code: CFLAGS=-march=pentium-m -mtune=pentium-m -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer -fno-delayed-branch -fcaller-saves -freorder-blocks -freorder-functions -falign-jumps -finline-functions -frename-registers -fweb -fno-trapping-math -falign-functions=64 LD_FLAGS is disabled since Ive met several pilation fail if it is enabled. Kernel Everybody has his/her own flavor of kernel, I prefer nitro-sources,2.6.10-nitro4: The Kernel Formerly Known As Hercules. ACPI Code: Power management options (ACPI, APM) - ACPI (Advanced Configuration and Power Interface) Support - * ACPI Support * Sleep States (EXPERIMENTAL) AC Adapter Battery Button Fan Processor Thermal Zone If you would like as small a kernel as possbile, just like me, you need to add the following modules to /etc/modules.autoload/kernel-2.6: Code: # acpi button ac battery fan processor thermal Speedstep Kernelwise: Code: CPU Frequency scaling - * CPU Frequency scaling powersave governor userspace governor for userspace frequency scaling * /proc/sys/cpu/ interface (2.4. / OLD) ondemand cpufreq policy governor CPU frequency table helpers - CPUFreq processor drivers Intel Enhanced SpeedStep * Use ACPI tables to decode valid frequency/voltage pairs Add the following modules to /etc/modules.autoload/kernel-2.6: Code: # speedstep speedstep-centrino cpufreq_userspace cpufreq_ondemand Userspace daemon is speedfreq: Code: # emerge speedfreq # rc-update add speedfreq boot % cat /etc/conf.d/speedfreq SPEEDFREQ_SPEED=dynamic SPEEDFREQ_USERS=yes Software Suspend 2 Kernelwise configuration: Code: Software Suspend 2 - Swap Writer - Page Transformers LZF image pression (Preferred) - User Interface Options Text mode console support - General Options (/dev/hda2) Default resume device name Allow Keep Image Mode Code:emerge hibernate-script It takes quite a long time for me to hack the software suspend, then I found here is a little patch for the latest swsusp2: lists.berlios.de/pipermail/softwaresuspend-devel/xx-January/001458.html You need to apply this patch to the kernel, then format the swap partition for the sake of sanity, in my case, /dev/hda2 is the swap: Code:mkswap /dev/hda2 We also need to edit the /etc/hibernate/hibernate.conf to meet your own need, Here is the mine: Code: $ cat /etc/hibernate/hibernate.conf | grep # UseSwsusp2 yes Reboot no EnableEscape yes DefaultConsoleLevel 1 SuspendDevice swap:/dev/hda2 PowerdownMethod 4 Verbosity 0 LogFile /var/log/hibernate.log LogVerbosity 1 Bootsplash on SaveClock yes UnloadModules snd_intel8x0 GentooModulesAutoload yes RestartServices alsasound local SwitchToTextMode yes Since snd_intel8x0 is inpatible with swsusp, YMMV, I need to stop alsasound and unload this module before do_swsusp2. SaveClock is another issue to address, you might run ntp-client service after the swsusp2, if your box are online all the time. Last edited by bookstack on Sun Jan 16, xx 9:02 pm; edited 16 times in totalBack to topbookstack Tuxs lil helper Joined: 27 Feb xx Posts: 129 Posted: Fri Jan 14, xx 12:30 amPost subject: Dell 700m supports FnKeys for users convinience, most of them work out of box, except: Fn + Esc: Standby Fn + F5: Mute Fn + F6: VolumnDown Fn + F7: VolumnUp Fn + F11: PrintScrn/ SysRq Here is a small program, ESE Key Daemon, that supports multi-media keyboard, I just hacked a small patch to make it run more gentoo-like: Here is the patch : CUT FROM HERE Code: * esekeyd-1.2.1/src/esekeyd.c xx-05-15 05:43:34.000000000 -0400 - esekeyd-1.2.1-gentoo/src/esekeyd.c xx-01-16 19:18:23.598101776 -0500 * * 12,19 * - 12,28 - * Released under the GNU Public License. */ #include esekey.h + #include + + FILE *funkey = NULL; + const char PID_FILE = /var/run/esekeyd.pid; + + void cleanup(); + void HandleSignals(); + void CatchSignal(int x); + int main (int argc, char *argv) * * 21,33 * char device_namestrlen (EVENT_DEVICE) = 0 ; unsigned int keycount = 0; struct esekey *keys = NULL; unsigned int i = 0; ! FILE *funkey = NULL; char *key = NULL; struct input_event ev; ! printf (%sn, PACKAGE_STRING); if (argc 2) printf (nUsage:n); - 30,64 - char device_namestrlen (EVENT_DEVICE) = 0 ; unsigned int keycount = 0; struct esekey *keys = NULL; unsigned int i = 0; ! char *key = NULL; struct input_event ev; ! FILE* str; ! pid_t pid; ! ! ! /* check to see if a copy of ESE Key Daemon is already running */ ! ! if (!aess(PID_FILE, R_OK) ! ! if (str = fopen(PID_FILE, r ) ! ! fscanf(str, %d, &pid); ! fclose(str); ! ! if (kill(pid, SIGUSR1)=0) ! ! fprintf(stderr, esekeyd: alread running as process %d.n, pid); ! exit(1); ! ! ! unlink(PID_FILE); ! ! ! if (argc 2) printf (nUsage:n); * * 136,144 * fclose (stderr); #endif #ifndef DEBUGGER ! switch (fork () case -1: printf (%s: fork() error, argv0); exit (-3); - 167,175 - fclose (stderr); #endif #ifndef DEBUGGER ! switch (pid = fork () case -1: printf (%s: fork() error, argv0); exit (-3); * * 141,155 * - 172,200 - case -1: printf (%s: fork() error, argv0); exit (-3); + case 0: break; + default: + + /* create the pid file */ + if (str = fopen(PID_FILE, w) + + fprintf(str, %dn, pid); + fclose(str); + + else + fprintf(stderr, Fail to create %s, PID_FILE); + exit (0); #endif + HandleSignals(); + openlog (esekeyd, LOG_PID, LOG_DAEMON); syslog (LOG_NOTICE, started key daemon for %s, device_name); while (fread (&ev, sizeof (struct input_event), 1, funkey) * * 173,183 * closelog (); ! fclose (funkey); ! return 0; - 218,259 - + cleanup(); + + return 0; + + + + void cleanup() + closelog (); + fclose(funkey); + unlink(PID_FILE); + ! void HandleSignals(void) ! ! signal(SIGHUP, CatchSignal); ! signal(SIGINT, CatchSignal); ! signal(SIGQUIT, CatchSignal); ! signal(SIGILL, CatchSignal); ! signal(SIGTRAP, CatchSignal); ! signal(SIGABRT, CatchSignal); ! signal(SIGIOT, CatchSignal); ! signal(SIGFPE, CatchSignal); ! signal(SIGKILL, CatchSignal); ! signal(SIGSEGV, CatchSignal); ! signal(SIGPIPE, CatchSignal); ! signal(SIGTERM, CatchSignal); ! signal(SIGSTOP, CatchSignal); ! signal(SIGUSR1, SIG_IGN); ! return; ! + void CatchSignal(int x) + + fprintf(stderr, dispswitch: caught signal %d, cleaning up.n, x); + cleanup(); CUT ENDS HERE & /dev/null eend $? Could not kill pid $ else eend 1 Lost pid file :( fi Code: bookstackgetnoo / $ cat /etc/esekeyd.conf # # ESE Key Deamon 1.2.1 config file # # # example: to run mutt in xterm we must set DISPLAY # so the mand line will be as follows: #MAIL:/bin/sh -c DISPLAY=:0 xterm -e mutt # SLEEP: /usr/sbin/hibernate MUTE: amixer set PCM toggle VOLUMEDOWN: amixer set PCM 10%- VOLUMEUP: amixer set PCM 10%+ Now, you can lauch this daemon like this: Code:# /etc/init.d/esekeyd start you can also add it to default run-level: Code:# rc-update add esekeyd default If Fn+Fx are pressed in the console mode, an annoying symbol wil appear, for the sake of sanity, we need to add the following keymap to the system: Code: bookstackgetnoo bookstack $ zcat /usr/share/keymaps/i386/include/fnkey.map.gz keycode 113 = nul keycode 114 = nul keycode 115 = nul keycode 223 = nul And add the following lines to /etc/rc.conf: Code:EXTENDED_KEYMAPS=fnkey The above Fn keys work well in both console and X, Fn+F11 needs more tricks, I will take care of that later. Last edited by bookstack on Sun Jan 16, xx 9:00 pm; edited 7 times in totalBack to topbookstack Tuxs lil helper Joined: 27 Feb xx Posts: 129 Posted: Fri Jan 14, xx 12:30 amPost subject: TODO In Dell 700m specification, this machince can be configured as 64 MB shared video memory. Anybody knows HOW? Framebuffer and Gensplash Please refer to this post: For Dell 700m users, we can use vesafb, vesafb-tng, intelfb or i810fb as well, Code: Intel 810/815 support (EXPERIMENTAL) Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL) And enable them when booting: Code: # cat /boot/grub/grub.conf rootgetnoo bookstack # cat /boot/grub/grub.conf splashimage=(hd0,0)/grub/gentoo.xpm.gz # Default kernel title Gentoo 2.6.10-nitro4-unicon root (hd0,0) kernel /kernel-2.6.10-nitro4-unicon root=/dev/hda3 resume2=swap:/dev/hda2 video=intelfb:ywrap,mtrr,1024x768-2475 vga=0x317 splash=verbose,theme:emergence initrd (hd0,0)/boot/fbsplash-emergence-1024x768 If MPlayer is emerged with USE=directfb, we can play video in console mode: Code:mplayer -vo fbdev (or fbdev2 or directfb) foo.avi TODO However, I can not zoom the video to full screen. So it is with links2 -g, any suggestion ? X We need run 855resolution before X server lauch. Code: # cp ./855resolution /usr/local/sbin % cat /etc/conf.d/local.start #Tweak

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论