分类: LINUX
2008-11-30 22:46:20
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:
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:
GRUB
Open up a console and do the following:
To the “#kopt=root=” line, add
And to the “# defoptions” line, add
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:
Append to the end
Then EXIT and continue on with:
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!
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:
add the following bit of code to the new file:
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.
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:
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:
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
|
Information about the phenomena of broken sound on some ThinkPad models.
Contents []
|
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 ModelsFirst 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:
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 ALSACompile 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=0This 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=0There is a which can do all this for you, including activation of the device and detecting the correct resource settings to use.
Using OSSAdd the following lines to a boot script, ie. rc.local:
modprobe soundor 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 deviceIf 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!时可参考以下: