找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

600E 安装linux 一些精品网页

2009-12-20 13:43| 发布者: admin| 查看: 102| 评论: 0|原作者: 心然


内核参数 配置很好:
http://savant.be/blog/linux/ubuntu-610-edgy-on-a-thinkpad-600e-2645-57u/15/
关于声卡也很精辟:
http://www.thinkwiki.org/wiki/Problem_with_broken_sound_on_some_ThinkPads#Problem_description
Ubuntu 6.10 Edgy on a Thinkpad 600E (2645-57u)


By
Jose
⋅ February 1, 2007 ⋅
Post a comment



Yeah,
a while ago I received a Thinkpad 600e. Shot Battery, no CD Drive,
basically a little crappy. I managed to only have to swap out an HD
from my T20 and used both KateOS and WinXP. KateOS was slow and WinXP
had driver errors on bootup. I ended up having to format it and
painfully install Windows XP.
Then I got some Toshiba’s. Best machines ever. So I ordered some
Ram, but turns out I could only use the ram on the 600E. Then I ordered
a CD Drive just for the heck of it.
The CD Drive came in yesterday, and I smacked it into the Laptop. I
previously had trouble getting sound working in Ubuntu on this laptop,
so I hoped I could fix the problem this time.
MACHINE SPECIFICATIONS
300 MHz Pentium II
296 MB Ram (64MB onboard, 2×128MB Sticks)
1 USB 1.1 Port
24x CD Drive
UltrayBay Battery
INSTALL
Boot up the Ubuntu 6.10 Alternate CD with the following kernel options:
pnpbios=off acpi=off
Those two options will stop the errors Ubuntu throws on the 600E.
Proceeded to install, albeit slowly. When it came to installing the
system, the CD gave me a “Compatible Kernel not found in Repository.” I
backtracked a little, choosing to stop the install of the base but not
quitting. Then I chose to install the base again. When the option came
up, I chose the “linux-image-generic” Kernel image. Install proceeded
normally from there.
Reboot while holding F1. Go into the BIOS and Initialize your
system, AND THEN disable “Quick Boot.” Do it exactly in this order.
Turn of the system and then turn it back on.
Nota bene
After the install, I checked the processor specs with “cat
/proc/cpuinfo” and it reports a 75.683 MHz PII. Running dmesg gave me
something about “loosing too many ticks” and “AC’97 read problem”.
There are multiple messages for both of those. I will investigate at a
later date should the machine feel slow or unresponsive.
UPDATE: There is a fix for the reporting of the
processor speed in the comments to this blog post. I have not had the
chance to verify but will do so shortly. As well, after reading some
literature on the ThinkWiki.org, I have found that the “AC’97 read
problem” results from some weird DOS soundfix. From
Thinkwiki
:
There are two sound chips in these machines, a PCI based
Crystal SoundFusion 4610
, and an ISA based
Crystal SoundFusion 4239
.
The Linux drivers for the CS4610 (both OSS and ALSA) expect to find
it paired with an AC’97 codec chip, while instead the CS4610 is paired
with the ISA CS4239. This was done, because at the time this allowed
DOS games to output sound using SoundBlaster Pro emulation.
To get sound under Linux you will have to use the OSS cs4232 or ALSA snd-cs4236 driver for the ISA soundchip instead.
A good thread on the problem can be found in the
alsa-devel mailing list
REMEMBER: To exit nano while saving, do the following:
ctrl x
y
enter
GRUB
Open up a console and do the following:
sudo su
password
nano -w /boot/grub/menu.lst
To the “#kopt=root=” line, add
pnpbios=off acpi=off
And to the “# defoptions” line, add
add "vga=0x316"/
SOUND
To get sound working, first I had to make sure the right module would be loaded on boot by doing the following in a console:
nano -w /etc/modules
Append to the end
snd-cs4236
Then EXIT and continue on with:
nano -w /etc/modprobe.d/sound
The following bit assumes that you did the warmup off initializing
and then turning off quickboot. Make sure you add the following down to
the letter!
options snd-cs4236 isapnp=0 port=0x530 cport=0x538 irq=5 fm_port=0x388 sb_port=0x220 dma1=1 dma2=0 isapnp=0
Then EXIT.
POWER
The 600E has a few problems with how it does power. Since we kinda
disabled ACPI before (implementation on the 600E is there, but buggy)
we have to do the following to make sure Shutdown works. In a console
window:
nano -w /etc/modprobe.d/power
add the following bit of code to the new file:
options apm power_off=1 realmode_power_off=1
And then EXIT from the file.
MISCELLANEOUS
The following are some tweaks I did to the system to make it snappier and get some extra functioning.
This little segment sets the number of colors lower, saving video
memory and making the screen look better. It also helps make the system
a little faster.
nano -w /etc/X11/xorg.conf
Change the “DefaultDepth” to “16″. If they are not there, add the resolutions of “800×600″ and “640×480″.
The scrolling button can also be fixed by changing a setting in the xorg.conf file in the appropriate section:
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"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
EndSection
Sometimes I leave the laptop on at night to update the system or
download a torrent and it finishes sometime during my sleep. The hard
drive keeps spinning though. To stop it from spinning after inactivity,
do the following in a console window:
hdparm -S 60 /dev/hda
After about 5 minutes, it will spin-down.
You might also want to customize the fonts of the system. Setting
the default size to 8 makes more stuff fit on the screen, and the
settings should also be for LCD-mode. You can do this in
System–>Preferences–>Font.
Windows users might also wish to customize the taskbar and move
everything onto the top bar. I personally find it easier to look at the
top of the screen for stuff than move my eyes down, but to each his own.
As I find more stuff I will add to this entry. Good luck to everyone using it.
__________________________________________________________________________
Problem with broken sound on some ThinkPads

From ThinkWiki

Jump to:
navigation
,
search

screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.mister-wong.de/img/buttons/btn_2.gif');}" onmousewheel="return imgzoom(this);" alt="" />


Information about the phenomena of broken sound on some ThinkPad models.
Contents [
To enter the BIOS, power cycle your ThinkPad and press F1 when the ThinkPad screen shows.
You can also manually activate the sound card once booted:

With apm and pnpbios, this is done with setpnp from the pcmcia package:


# setpnp 0x0e on
# setpnp 0x0f on

With acpi and pnpacpi, use these commands:


# echo 'activate' > /sys/devices/pnp0/00:05/resources
# echo 'activate' > /sys/devices/pnp0/00:06/resources
It seems that with very new kernels and ACPI enabled, you will need
to manually enable the device even if you have correctly disabled
"Quick Boot".
This only works with newer kernels that fully support pnpacpi, and provided that
this patch
has been applied (applied to Linus' tree in july 2005).
It seems that the default dma numbers change when pnpacpi is used (to dma1=1 dma2=3, for instance).
If you're using acpi and pnpacpi, you can see which resources the sound card is using like this:
# cat /sys/devices/pnp0/00:05/resources
# cat /sys/devices/pnp0/00:06/resources
Using ALSA
Compile the sound driver as a module and load it after everything else.
You can add the following line to a boot script, ie. rc.local for that:
/sbin/modprobe snd-cs4236 index=0 port=0x530 cport=0x538 irq=5 dma1=1 dma2=0 isapnp=0
This is reported to work at least with kernel 2.6.9, 2.6.13 and 2.6.15.
On the 770x using kernel 2.6.16/2.6.17 you may try this:
/sbin/modprobe snd-cs4232 port=0x530 cport=0x120 irq=5 dma1=1 dma2=0 isapnp=0
There is a
nice script
which can do all this for you, including activation of the device and detecting the correct resource settings to use.
Using OSS
Add the following lines to a boot script, ie. rc.local:
modprobe sound
insmod ad1848
insmod uart401
insmod cs4232 io=0x530 irq=5 dma=1 dma2=0
or try from commandline:
modprobe cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=7 synthio=0x330 synthirq=7 (parameter not necessarily)
In case an insmod or modprobe of cs4232 fails with the following error appearing at the console, via dmesg, or in /var/log/messages, double-check you have QUICKBOOT (in the BIOS) disabled.
modprobe: FATAL: Error inserting cs4232: No such device
Audio loops
If your OSS module loads like it should, but audio loops or sounds choppy then reloading the module should help:
# rmmod cs4232 && modprobe cs4232
(For the modprobe command to work without IRQ/IO/DMA parameters,
you'll probably want to add the correct parameters as an "options"
clause in /etc/modprobe.conf).









最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 23:27 , Processed in 0.280619 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部