Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1029687
  • 博文数量: 177
  • 博客积分: 3629
  • 博客等级: 中校
  • 技术积分: 1839
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-23 21:21
文章分类

全部博文(177)

文章存档

2021年(1)

2020年(5)

2019年(4)

2018年(7)

2017年(1)

2016年(4)

2014年(1)

2013年(8)

2012年(10)

2011年(50)

2009年(12)

2008年(10)

2006年(56)

2005年(8)

分类: LINUX

2008-11-30 22:46:20

内核参数 配置很好:
http://savant.be/blog/linux/ubuntu-610-edgy-on-a-thinkpad-600e-2645-57u/15/

关于声卡也很精辟:






Ubuntu 6.10 Edgy on a Thinkpad 600E (2645-57u)

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 :

There are two sound chips in these machines, a PCI based , and an ISA based .

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: ,

Diese Seite zu Mister Wong hinzufügen

Information about the phenomena of broken sound on some ThinkPad models.

Contents []
if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } Problem description

There are two sound chips in these machines, a PCI based , and an ISA based .

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

There is also a separate issue with recent ALSA builds and the Intel AD1981-1984 chip. [] This causes problems starting with alsa shipped with kernel 2.6.22. Workarounds include manually updating ALSA or using your distributions version rather than the kernel version. Also see for patches.

Affected Models
  • ThinkPad
  • ThinkPad ,
  • Thinkpad , ,
  • ThinkPad
Solutions Activating the devices

First you must make sure that the sound devices are activated.

Disable "Quick Boot" in your ThinkPad BIOS, otherwise the sound devices will not be activated by the BIOS. 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 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 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).


故障解决:

启动时出现: piix4_smbus 0000:00:07.3: IBM system detected; this module may corrupt your serial eeprom! Refusing to load module!时可参考以下:

以下几个链接是在GOOGLE上以piix4 smbus 或者i2c-piix4搜到的。





http://www.mjmwired.net/kernel/Document ... /i2c-piix4





原来仅仅一句(/etc/modprobe.d/blacklist):
blacklist i2c-piix4
就解决问题了。


600e官方相关驱动(和BIOS):


linux下看硬件信息工具:


升级图文详解:









2011年新加:
600E 安装archlinux

阅读(2012) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2008-12-03 09:27:47

拜师傅,收徒弟,请到淘师宝,网址:www.taoshibao.com(淘师宝)

chinaunix网友2008-12-02 13:59:57

600e是台好机