PDA

HOW TO : Linux on Toshiba M45 S331

VlacDebil
2005-03-16, 07:43 AM PST
============================================================
Linux on a Toshiba Laptop M45 S331
============================================================

How to set up Fedora Core 3

I really hope it will help people, cause it cost me a lot of time, specially with the Wireless card.
Why Fedora 3 ? Because I like it :-) and because Mandrake was not able to detect the Cdrom/DVD/RW device...

I have to say first : I found how to connect the wireless network, but not the Ethernet card (maybe later).
And second: I detailed everything, so that non-experts (euphemism) like me can do it easily. If you face any problem with that setup, let me know. (VlacDebil).


------------------------------------------------------------
1) Getting Fedora Core 3
------------------------------------------------------------

1.1)--Download--------------------

Go to : http://fedora.redhat.com/
And download the iso disc you need.


1.2)--Burn Iso Image--------------------

You then have to burn this iso images. Be careful,
Windows XP and Sonic Record can not burn iso-images
by default.

For windows, you can find here some freeware dedicated to that task
http://members.home.nl/lsnoek/iso.htm

Personally I used http://www.snapfiles.com/get/burncdcc.html and it worked well.

------------------------------------------------------------
2) Setting Linux/XP dual boot
------------------------------------------------------------

2.1)--Provided Toshiba DVD--------------------

Setting the dual boot could be easy. However, Toshiba Laptops (at least this one) come with a partition already made (XP). The problem is that the DVD provided does not allow to reinstall and choose a partition: it reinstall everything as provided originally...

2.2)--Partitioning the hard disk--------------------

There are different way to solve the problem: Use Partition Magik if you have it, Use a Windows XP cd if you have an additional one, or use a Linux tool (Mandrake can do that, but I don't know more). I personally used another Windows Cd, and used the serial number provided with the laptop. The problem is then that you have to use the Toshiba DVD to reinstall all the drivers. The nice point is that you can choose what you want to have on your windows...

2.3)--Booting From CD--------------------

To reinstall Windows XP, you need boot from the CD (if you use the autorun mode, it will not work, cause this way some setup files will be put on the hard drive). To boot from CD you need to restart and to enter the BIOS, (one key, I don't remember: I think F1 but maybe F12? Del??). In the BIOS Menu, find the boot sequence Submenu, and there make sure that the BIOS will try first booting from CD (the default BIOS configuration make it tries the hard drive first).

2.4)--Reinstall Windows--------------------

Then Windows setup starts. Choose to remove the partition C: and then Create a new one with the desired size. (I used 35Gigs). When everything is done, use the Toshiba DVD to reinstall all the missing drivers and soft/spy-wares you need.

2.5)--Create a vfat partition-(optional-very old school)-----

I then did something old school: on the free space of the hard disk, I created a vfat partition of 5G (Control Panel, Computer Maintenance, Disk Manager, Create New Partition, Type FAT32). Someone told me that now, Linux can read/write Windows partition. I like to have a shared partition cause it is easy to setup and I don't know the other option (I should really have a look).


------------------------------------------------------------
3) Installing Fedora Core 3
------------------------------------------------------------

3.0)--Preparing the upgrade-(optional can be done later) -----

a) Download the new kernel update: for instance here:

http://mirror.cs.wisc.edu/pub/mirrors/linux/download.fedora.redhat.com/pub/fedora/linux/core/updates/3/i386/

Take one like
kernel-2.6.10-1.770_FC3.i686.rpm (This is the last update at this time)

save it under your vfat partition, or burn it on a CD-RW


b) Download what is necessary for the wireless card.

First go here http:/ipw2200.sourceforge.net/
take the driver (Downloads->ipw1.0.0.gz, at that time)
and take the firmware ( Firmware->v0.19.currentfirmware)

Then : go to fresh rpm and take the ipw2200-firmware rpm.
(right now it is ipw2200-firmware-2.2-2.1.fc3.fr.noarch.rpm)

save these three files on your vfat partition or on a CDRW


3.1)--Installing Fedora Core 3--------------------

you can then proceed with FC3 installation: put the CD/DVD in the device, and reboot (be sure that the BIOS is set correctly, see section 2.3.)
Anaconda will take care of everything, and detect all devices, except the Ethernet and the wireless card... (no luck)

3.2)--Mounting vfat (old-school, continued)----------

Logging as root.
Open a terminal and
> mkdir /mnt/vfat
Using emacs, or vi, edit the file /etc/fstab and
add the following line at the end :

/dev/sda2 [tab] /mnt/vfat [tab] vfat [tab] noauto,users,rw [tab] 0 0

save, quit the editor and then type mount /mnt/vfat (do it everytime to access vfat partition)
and ls /mnt/vfat should show you what you saved under windows.

3.3)--Upgrade the kernel--------------------

> cp /mnt/vfat/kernel* .
Then type
> rpm -vif kernel_blablabla.rpm

reboot. The new kernel should detect the wireless card.
Select automatic, or setup the parameter of the dhcp stuff according
to your home network (most probably automatic)

------------------------------------------------------------
4) Set up the wireless card
------------------------------------------------------------

4.1)--Remove old drivers--------------------

In a terminal window, you need to find all versions of
> ieee80211_crypt_ccmp.ko ieee80211_crypt_tkip.ko ieee80211.ko
> ieee80211_crypt.ko ieee80211_crypt_wep.ko ipw2200.ko

What I do, but there are better ways:
>updatedb
>locate ieee80211*.ko ipw2200*.ko
and remove whatever it gives

4.2)--Install the new drivers--------------------

Copy the driver and the firmware tarballs (tar.gz) in the directory.

a) Extract the firmware directory and copy its contents (*.fw + INSTALL)
in /lib/firmware (depends on the distribution, check /etc/hotplugs/firmware.agent). Then do something unpleasant :
>rpm -vih with the name of the rpm firmware

I had to do this because at some point I had a problem with the name of the firmware. Maybe it will be fixed in the next future ??

Now if you ls /lib/firmware, you should see *.fw stuff,
some of them ipw2200_*.fw which are duplicates of the original ipw-2.2-*.fw
You can also stick to the ipw2200 Install manual, to see if that name issue has been corrected.


b) Extract the driver source directory archive ipw2200-?.?.tar.gz (gunzip and tar -xvf) get in and type make and make install


4.3)--Setup the ACPI option--------------------

Here is the trick I waste my time before finding it (a couple of days, enjoy this post). In a text editor edit the /boot/grub/grub.conf file and
add at the end of the line beginning with 'kernel' going on with the name of your new kernel and finishing with 'rhgb quiet' the following:

> ... rhgb quiet acpi=off

save, exit, and you will have to reboot (do 4.4. first...)

4.4)--Set the Internet configuration--------------------

Check that the Wireless switch is on (looks stupid, I know)...
Put the following in a file /etc/sysconfig/network-scripts/ifcfg-eth0

# Intel Corp. PRO/Wireless 2200BG
DEVICE=eth0
TYPE=Wireless
ONBOOT=yes
#IPV6INIT=no
MODE=Managed
ESSID=xxx
KEY=xxx
BOOTPROTO=dhcp

reboot (due to 4.3 if already rebooted don't reboot, use the steps below)

If the connection does not work, don't panic. You have to play with
the following tools :

modprobe -r ipw2200 // To unload the driver
modprobe ipw2200 // To reload the driver

iwconfig // To see the devices
iwconfig eth0 essid my_essid // To set your essid
iwconfig eth0 key open 123456_my_key // To set your key (open/restricted)

iwlist scan // To see the available ap (including your neighbors !)

ifconfig eth0 up
ifup eth0 // To give the connection a try

------------------------------------------------------------
5) Set the resolution (new !)
------------------------------------------------------------

At this point, the resolution is not good, but you cannot see that there is a problem,
because of a BIOS option. So when rebooting, use F1 to enter the BIOS menu, and disable the
screen option 'stretched'. Now when you start Linux, you end with a screen which does not use the all possible surface. This is because the resolution is set on 1024x768. To change this, you need to edit the
/etc/X11/xorg.conf file and make the following changes (make a copy first, to avoid big mistakes)

1) add the ModeLine line as follows (Don't ask why, I am not an expert)

>Section "Monitor"
> Identifier "Monitor0"
> VendorName "Monitor Vendor"
> ModelName "LCD Panel 1280x800"
> HorizSync 31.5 - 90.0
> VertRefresh 60.0 - 60.0
> ModeLine "1280x800" 83.9 1280 1312 1624 1656 800 816 824 841
> Option "dpms"
>EndSection

2) and the following display options

>Section "Screen"
> Identifier "Screen0"
> Device "Videocard0"
> Monitor "Monitor0"
> DefaultDepth 24
> SubSection "Display"
> Viewport 0 0
> Depth 24
> Modes "1280x800"
> EndSubSection
> SubSection "Display"
> Viewport 0 0
> Depth 24
> Modes "1280x800"
> EndSubSection
>EndSection

Reboot, and now you should use the full available resolution !

acz
2005-03-20, 02:10 AM PST
Thanks for the good howto, especially the "acpi=off" is also essential to get the ethernet up and running.

However, for me one important part is still missing - the modem!
Have you been able to get the modem up and running??

Thanks, Andreas

artur
2005-03-20, 11:52 AM PST
Wow, are you saying you have acpi=off? Can I know why? I have it disabled because it wasn't monitoring the CPU temperature right, and it was overheating, so now I have acpi=off apm=on. But the problem is I now can't use USB jump drive, the computer just freezes (woks with acpi=on). Are you able to use it? But the ethernet was working just fine with acpi... Also I am having some other issues with acpi=off, e.g. sound is sometimes skipping (again no such thing with acpi=on). Can you tell me if you are also having any issues. Mine is Toshiba A65-S126
Thanks a lot

acz
2005-03-20, 12:45 PM PST
Hi Artur

I use acpi=off, because otherwise the kernel badly complains. See attachment at the end of this message.

Neither USB, nor wireless, nor ethernet are working with acpi=on correctly. They all seem to share the same IRQ, which seems to be too much for the kernel - I probably have to try the latest kernel...

I can only use my USB drive with acpi=off, completely in contrast to you...

Did you have any luck with the modem?

Bye,
Andreas


Kernel error messages:

Mar 19 15:02:18 thetis kernel: mtrr: 0xa0000000,0x10000000 overlaps existing 0xa0000000,0x400000
Mar 19 15:02:18 thetis kernel: drivers/usb/input/hid-input.c: event field not found
Mar 19 15:17:18 thetis kernel: exmutex-0272: *** Error: Thread 6 cannot release Mutex [MUT1] acquired by thread 1836
Mar 19 15:17:18 thetis kernel: psparse-1133: *** Error: Method execution failed [\_SB_.RDEC] (Node c146c828), AE_AML_NOT_OWNER
Mar 19 15:17:18 thetis kernel: psparse-1133: *** Error: Method execution failed [\_TZ_.TZCR._TMP] (Node cdea09a8), AE_AML_NOT_OWNER
Mar 19 15:47:52 thetis kernel: PCI: Unable to reserve mem region #1:1000@13000000 for device 0000:05:06.0
Mar 19 15:47:52 thetis kernel: yenta_cardbus: probe of 0000:05:06.0 failed with error -16
Mar 19 15:47:52 thetis kernel: PCI: Enabling device 0000:00:1d.7 (0000 -> 0002)
Mar 19 15:47:52 thetis kernel: irq 11: nobody cared!
Mar 19 15:47:52 thetis kernel: [<c010868c>] __report_bad_irq+0x1c/0x70
Mar 19 15:47:52 thetis kernel: [<c010875b>] note_interrupt+0x5b/0x80
Mar 19 15:47:52 thetis kernel: [<c010894c>] do_IRQ+0xdc/0x120
Mar 19 15:47:52 thetis kernel: [<c0106cd8>] common_interrupt+0x18/0x20
Mar 19 15:47:52 thetis kernel: [<c0108639>] handle_IRQ_event+0x29/0x60
Mar 19 15:47:52 thetis kernel: [<c01088f2>] do_IRQ+0x82/0x120
Mar 19 15:47:52 thetis kernel: [<c0106cd8>] common_interrupt+0x18/0x20
Mar 19 15:47:52 thetis kernel: [<e0a780ec>] set_phy_reg+0x5c/0x90 [ohci1394]
Mar 19 15:47:52 thetis kernel: [<e0a78f51>] ohci_devctl+0x361/0x500 [ohci1394]
Mar 19 15:47:52 thetis kernel: [<e0a96466>] csr1212_generate_csr_image+0x1c6/0x200 [ieee1394]
Mar 19 15:47:52 thetis kernel: [<e0a8c120>] hpsb_reset_bus+0x20/0x30 [ieee1394]
Mar 19 15:47:52 thetis kernel: [<c012987a>] worker_thread+0x16a/0x210
Mar 19 15:47:52 thetis kernel: [<e0a8e510>] delayed_reset_bus+0x0/0x150 [ieee1394]
Mar 19 15:47:52 thetis kernel: [<c0119c70>] default_wake_function+0x0/0x10
Mar 19 15:47:52 thetis kernel: [<c0119c70>] default_wake_function+0x0/0x10
Mar 19 15:47:52 thetis kernel: [<c0129710>] worker_thread+0x0/0x210
Mar 19 15:47:52 thetis kernel: [<c012ce6c>] kthread+0x7c/0xb0
Mar 19 15:47:52 thetis kernel: [<c012cdf0>] kthread+0x0/0xb0
Mar 19 15:47:52 thetis kernel: [<c0104255>] kernel_thread_helper+0x5/0x10
Mar 19 15:47:52 thetis kernel: handlers:
Mar 19 15:47:52 thetis kernel: [<e09d8b70>] (SkY2Isr+0x0/0x140 [sk98lin])
Mar 19 15:47:52 thetis kernel: [<e09bc820>] (ipw_isr+0x0/0x1d0 [ipw2200])
Mar 19 15:47:52 thetis kernel: Disabling IRQ #11
Mar 19 15:47:52 thetis kernel: hdc: ATAPI 63X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache

artur
2005-03-20, 03:20 PM PST
Very strange...
This messages I was getting too

Mar 19 15:17:18 thetis kernel: exmutex-0272: *** Error: Thread 6 cannot release Mutex [MUT1] acquired by thread 1836
Mar 19 15:17:18 thetis kernel: psparse-1133: *** Error: Method execution failed [\_SB_.RDEC] (Node c146c828), AE_AML_NOT_OWNER

with acpi=on. My DSL modem was working with acpi=on without any problems too, I didn't have to do any tweaking at all.

VlacDebil
2005-03-20, 03:35 PM PST
Actually, I don't need a ethernet connection nor my modem, I therefore don''t know more....

But : To set up the screen resolution, I had to do the following trick ( I will include it in the how to):

First in the BIOS, there is an option that allows stretching the screen.
By default, it is on, so you don't know that FC3 does not use the good resolution (1280x800).
When you disable it, you end up with a linux screen which does not use the all laptop surface (which is disapointing)

To correct this, you need to edit /etc/X11/xorg.conf,
and add the 'modeline' line as follows:


Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 1280x800"
HorizSync 31.5 - 90.0
VertRefresh 60.0 - 60.0
ModeLine "1280x800" 83.9 1280 1312 1624 1656 800 816 824 841
Option "dpms"
EndSection


and the display options:

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x800"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x800"
EndSubSection
EndSection

acz
2005-03-20, 04:54 PM PST
Hi,

Yes, I had to do a similar trick - I am using SuSE 9.2 :D
But after updating to X11R6.8.2 (and the latest sax2) the i915 (?) graphics chipset was recognized and I could switch into 1280x800 mode - X11R6.8.1 couldn't do the job correctly.

Are you using the framebuffer driver or the driver for i915 (which actually uses the i810 driver)?

Andreas

VlacDebil
2005-03-22, 06:36 AM PST
Hi,

i was (and I'm still) using the framebuffer driver. Actually I compiled a new kernel 6.11.3 (Usefull so I could select the M processor type, and it looks like acpi is supported....). I can select the i915 driver but I still cannot launch my X system under that configuration....

I will try updating to X11R6... My fonts look ugly : it is a shame (I hope it is due to that driver issue)
I feel like my eyes are burning (or is it due to the brightness of the screen ?)

By the way: was your ethernet card automatically detected ? (I think I need to add an 'insmod' somewhere)

Mathias

acz
2005-03-22, 08:32 AM PST
Advance notice: Those installations have been done with Kernel 2.6.11.4 and SuSE 9.2

How To... get the Yukon marvel ethernet card working

Get the latest driver from the manufacturer SysKonnect:
http://www.syskonnect.com/syskonnect/support/driver/d0102_driver.html
If the link should ever be broken, they call this page "Linux Install Package for SysKonnect Gigabit adapters".
The webpage as well as file (currently: install-8_15.tar.bz2) contain an excellent readme on how to compile and install the updated kernel module for the ethernet card.
Simply follow those steps...


How To... get the 1280x800 display working

Without X11R6.8.2 the i915GM chip is not detected and the screen resolution cannot be set to 1280x800. This is important: Even if you state in your xorg.conf file that you want to have 1280x800 it switches back to 1024x768 and stretches the screen. As consequence the fonts look ugly.

So make sure you have at least X11R6 verson, at least 8.2 installed. The preferred way to get it is of course from your linux distributor - I know that SuSE provides the latest version in their download area. If this is not the case for Redhat, download and install it from
www.x.org/ (http://www.x.org/)

I use this xorg.conf file (which can be found in /etc/X11):

---------------------------------------------------------------------------------

# /.../
# SaX generated X11 config file
# Created on: 2005-03-19T20:34:01-0800.
#
# Version: 4.8
# Contact: Marcus Schaefer <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (4.8)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/URW"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/latin2/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/kwintv"
FontPath "/usr/X11R6/lib/X11/fonts/truetype"
FontPath "/usr/X11R6/lib/X11/fonts/uni:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/CID"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/hellas/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
InputDevices "/dev/ttyS0"
InputDevices "/dev/ttyS1"
InputDevices "/dev/ttyS2"
InputDevices "/dev/ttyS3"
InputDevices "/dev/ttyS4"
InputDevices "/dev/ttyS5"
InputDevices "/dev/ttyS6"
InputDevices "/dev/ttyS7"
InputDevices "/dev/ttyS8"
InputDevices "/dev/psaux"
InputDevices "/dev/logibm"
InputDevices "/dev/sunmouse"
InputDevices "/dev/atibm"
InputDevices "/dev/amigamouse"
InputDevices "/dev/atarimouse"
InputDevices "/dev/inportbm"
InputDevices "/dev/gpmdata"
InputDevices "/dev/mouse"
InputDevices "/dev/usbmouse"
InputDevices "/dev/adbmouse"
InputDevices "/dev/input/mice"
InputDevices "/dev/input/event0"
InputDevices "/dev/pointer0"
InputDevices "/dev/pointer1"
InputDevices "/dev/pointer2"
InputDevices "/dev/pointer3"
EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail"
Option "RandR" "on"
EndSection

Section "Module"
Load "glx"
Load "type1"
Load "extmod"
Load "dbe"
Load "freetype"
Load "v4l"
EndSection

Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "pc104"
Option "XkbRules" "xfree86"
EndSection


Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "ButtonNumber" "10"
Option "Device" "/dev/mouse"
Option "Name" "SynPS/2 Synaptics TouchPad"
Option "Protocol" "imps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
Option "CalcAlgorithm" "CheckDesktopGeometry"
DisplaySize 385 240
HorizSync 30-82
Identifier "Monitor[0]"
ModelName "1280X800@75HZ"
Option "DPMS"
VendorName "--> LCD"
VertRefresh 58-75
UseModes "Modes[0]"
EndSection


Section "Modes"
Identifier "Modes[0]"
Modeline "1280x800" 88.68 1280 1352 1488 1696 800 801 804 830
Modeline "1280x800" 104.35 1280 1360 1496 1712 800 801 804 835
EndSection


Section "Screen"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection


Section "Device"
BoardName "I815"
Driver "i810"
Identifier "Device[0]"
Screen 0
Option "Rotate" "off"
VendorName "Intel"
EndSection


Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]"
EndSection

Section "DRI"
Group "video"
Mode 0660
EndSection

Section "Extensions"
EndSection

----------------------------------------------------------------

Please be aware that the functionality of the i915GM "graphics" chip has been incorporated into the i810 driver - they didn't write a new one!

Finally your display will look under Linux as nice as under Windows - or even better ;)

Be aware that all this has been tested with SuSE Linux 9.2! :p
Andreas

guioum
2005-03-29, 07:12 AM PST
My laptop is a M40.
Here is my configuration in /etc/grub.conf to use my Wifi:
title Fedora Core (2.6.10-1.770_FC3)
root (hd0,1)
kernel /vmlinuz-2.6.10-1.770_FC3 ro irqpoll pci=usepirqmask root=/dev/VolGroup00/LogVol00 quiet
initrd /initrd-2.6.10-1.770_FC3.img
with kernel-2.6.10-1.770_FC3.i686.
... I am working on a tutorial too... :-)
... hope It could help.

acz
2005-03-29, 07:38 AM PST
Help is always appreciated :)

Do you have any problems with IRQ11 disabled if you do not use "irqpoll pci=usepirqmask"?
I had to deactivate the firewire port to avoid this problem.

Does your ACPI work? On the M45 this is a nigthmare and you have to modify the kernel to get it to work stable, because the temperature sensors produce spikes, which cause the computer to shutdown...

The most probable cause of the problem is a not standard conform ACPI / DSDT.

Andreas

guioum
2005-03-29, 08:56 AM PST
Yes. I can't use my 2200BG wifi card without this (IRQ11 messages in dmesg).
The computer is very stable with "irqpoll pci=usepirqmask" ... but It is a very temporary solution (if I use my DVD and sound card for example, the sound is very bad and i have touchpad problems).
My ACPI is working (more or less); for example :
---
$ more /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charged
present rate: 0 mA
remaining capacity: 4213 mAh
present voltage: 15000 mV
---
... I have tested very quickly a 2.6.11 kernel too, and it seems to be more 'IRQ problems friendly'.

How do you deactivate the firewire port ?

guioum.

lowtraxx
2005-04-11, 01:36 PM PDT
Hi,

has anyone of you gotten the fn key to work. I need a way to dim my display, because the lifetime of the batterie is really bad with fully lit display. I need help.

Thanks in advance

Lowtraxx

acz
2005-04-11, 01:58 PM PDT
Sorry,

Never tried it - if you have a solution then let us know.

Thanks,
Andreas

sandersonshea
2005-04-12, 12:03 AM PDT
For function keys and power managment check these links out:

http://www.buzzard.org.uk/toshiba/
http://fnfx.sourceforge.net/

Shea

guioum
2005-04-12, 06:05 AM PDT
For the M40, toshiba_acpi do not work (so, fnfx don't) on the fedora 3 2.6.10-1.770_FC3 kernel :
FATAL: Error inserting toshiba_acpi (/lib/modules/2.6.10-1.770_FC3/kernel/drivers/acpi/toshiba_acpi.ko): No such device
'fan' tool in Toshutils 2.0.1 from http://www.buzzard.org.uk/toshiba/ do not work on the M40 (for the same reason?!). :-(
I really have to take 1 or 2 hours to test a new kernel... :-)
... or 1 or 2 days to work on the toshiba_acpi code :-)

lowtraxx
2005-04-12, 07:43 AM PDT
I tried all the above listet programs, but with no effect. modprobe fails, because the notebook is not supported :( I hope i find a way, because battery power lasts only about 2 hours. I have kernel 2.6.11-r3. So i think with the internal kernel drivers its not supported. Everything acpi related works, except fn key, lcd dim and the card reader. I hope these issues will be resolved... So if you find out something new, please tell me! Thank you very much.

Greetings

Lowtraxx

Hitman1
2005-05-30, 01:09 PM PDT
I have the Toshiba M45 laptop and currently I'm stuck with trying to turn DMA on for the DVD drive.

everytime I do:
hdparm -d1 /dev/hdc

I get:
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

not having dma set on the DVD drive makes it impossible to watch a DVD on the laptop. Han anyone of you guys managed to fix this problem? please detial how did you do it.

acz
2005-05-30, 03:08 PM PDT
I just played around a bit and noticed that I am facing exactly the same problem (even with the latest kernel and all DMA stuff compiled into the kernel). If you find a solution can you please post it here?

acz
2005-05-31, 09:56 AM PDT
Hi Hitman,

I have no movie DVD to check the performance, but if I activate the 32bit I/O and IRQ unmasking then the read-performance increases from 1.7 MB/s to 2.7 MB/s:

hdparm -c1 /dev/hdc
hdparm -u1 /dev/hdc

However, this is still well below the 10.8 MB/s it should do (because it's 8x) :(

acz
2005-06-02, 11:43 AM PDT
Warning - Read closing remarks - Warning
The following procedure is to be considered as extremely experimental! Use common sense! Computer sometimes freezes!

How To... bring the DVD drive to top speed

The problem on the Toshiba M45 notebook is a very poor performance of the DVD drive (extreme CPU load, only 1.7 MB/s transfer rate for a test file, somebody has reported that watching DVDs is impossible) with the current default kernels.

The main problem is that the SATA DVD drive is actually only operated in compatibility mode via the IDE interface in PIO mode without DMA. If the DVD drive appears as /dev/hdc instead of /dev/sr0 then the problem is present.

To solve the problem one needs the latest kernel (currently 2.6.12-rc5) and even has to patch it:

In drivers/scsi/ata_piix.c

Change:
- PIIX_COMB_PATA_P0 = (1 << 1),
- PIIX_COMB = (1 << 2), /* combined mode enabled? */
to:
+ PIIX_COMB_PATA_P0 = (1 << 0),
+ PIIX_COMB = (1 << 1), /* combined mode enabled? */

In include/linux/libata.h

Change:
-#undef ATA_ENABLE_ATAPI /* define to enable ATAPI support */
-#undef ATA_ENABLE_PATA /* define to enable PATA support in some
to:
+#define ATA_ENABLE_ATAPI 1 /* define to enable ATAPI support */
+#define ATA_ENABLE_PATA 1 /* define to enable PATA support in some

In addition make sure that all IDE stuff is not compiled into the kernel but only as module. In combination with ata_piix in the initrd modules, this makes sure the the kernel first tries to initialize the DVD as SATA and not as IDE drive.

After doing all the kernel related installation stuff, on the next reboot the DVD appears as /dev/sr0 and the performance for the test file increased to 4.4 MB/sec. That's roughly identical with the performance I get on Windows XP for that file.

Closing remark:
The whole operation is to be considered as very experimental (you use a not released kernel and patch it to activate code, which the author does not yet want to be activated). Indeed after one day of operation, the computer freezed after accessing the DVD drive. So it is not yet stable. Thus I am not using this patched kernel for my daily work.

Hitman1
2005-06-04, 09:48 PM PDT
acz,

It's great to know that the problem is aknowledged by someone and is being worked on. Unfortuantley, the m45 laptop is a new one I bought for my wife use having it hang every time she uses a DVD is not an option.

its a pitty, my wife learned to use the internet and computers in general on my linux desktop. Believe it or not, she is having a hard time switching to windows. She actually prefers linux. However, this DVD thing is a show stopper :(

acz
2005-06-04, 10:02 PM PDT
You do neither need Linux nor Windows to watch DVDs with the Laptop!
Did you ever wonder what the 6 buttons on the left side are about?
Its a CD/DVD player!
It's a small OS only intended to play CDs and DVDs. Put in the DVD, turn of the Notebook. Then press the DVD button (top right) and the Computer starts in the DVD player mode!

This of course assumes you did not delete the small partition, where its OS is on, when you installed Linux!

:)

rathodr
2005-06-29, 07:46 AM PDT
I recently have my M45-S351 working with everything but the sound. I have installed Fedora Core 3 with the kernel 2.6.11. ALSA doe not appear to be installed (except the lib, util, tools stuff). As root, I used alsamixer and turned on all options (channels) and placed the output levels on evrything at about mid-level. I turned up the speaker volume on the front of the machine and attempted to use the "Soundcard Detection" utility to play a test sound. I get nothing. The hardware appears to be detected correctly (in the lspci also).

Any ideas or suggestions are appreciated.

P.S. This forum has been instrumental in making my experience positive -- I appreciate all posts.

rathodr
2005-06-29, 09:51 AM PDT
I found a post on another forum that worked! It is on LinuxQuestions.org:

Heirarchical Link:
LinuxQuestions.org > Forums > Linux - Hardware > More Sound Card Crap

HTTP Link:
http://www.linuxquestions.org/questions/showthread.php?s=&postid=1720986#post1720986

Suggestion by Jessard, Post #4.

I hope this works for others. Apparently, after installing Fedora, no additional drivers in ALSA are needed. Just find the conflicting channels and mute them!

Hitman1
2005-07-03, 04:21 PM PDT
[QUOTE=acz]Warning - Read closing remarks - Warning
The following procedure is to be considered as extremely experimental! Use common sense! Computer sometimes freezes!

How To... bring the DVD drive to top speed

The problem on the Toshiba M45 notebook is a very poor performance of the DVD drive (extreme CPU load, only 1.7 MB/s transfer rate for a test file, somebody has reported that watching DVDs is impossible) with the current default kernels.

The main problem is that the SATA DVD drive is actually only operated in compatibility mode via the IDE interface in PIO mode without DMA. If the DVD drive appears as /dev/hdc instead of /dev/sr0 then the problem is present.

To solve the problem one needs the latest kernel (currently 2.6.12-rc5) and even has to patch it:

In drivers/scsi/ata_piix.c

Change:
- PIIX_COMB_PATA_P0 = (1 << 1),
- PIIX_COMB = (1 << 2), /* combined mode enabled? */
to:
+ PIIX_COMB_PATA_P0 = (1 << 0),
+ PIIX_COMB = (1 << 1), /* combined mode enabled? */

In include/linux/libata.h

Change:
-#undef ATA_ENABLE_ATAPI /* define to enable ATAPI support */
-#undef ATA_ENABLE_PATA /* define to enable PATA support in some
to:
+#define ATA_ENABLE_ATAPI 1 /* define to enable ATAPI support */
+#define ATA_ENABLE_PATA 1 /* define to enable PATA support in some

In addition make sure that all IDE stuff is not compiled into the kernel but only as module. In combination with ata_piix in the initrd modules, this makes sure the the kernel first tries to initialize the DVD as SATA and not as IDE drive.

After doing all the kernel related installation stuff, on the next reboot the DVD appears as /dev/sr0 and the performance for the test file increased to 4.4 MB/sec. That's roughly identical with the performance I get on Windows XP for that file.
[/QUOTE]

For the record, I did try the above procedure and the drive was indeed detected as a scsi drive but the DVD playback on linux remained choppy :( Still a show stopper for me on linux. If anyone managed to work around this problem please step up and post a procedure.

tsukasa_au
2005-07-08, 10:17 AM PDT
Hi Guys,

After a bit of experimenting, I have found a couple of ways fixing (well at least it seems that they are fixed, I could be wrong...) the IRQ problems seen on the M40/M45's. The first few you have already mentioned. One other method that I have found to work quite well is by passing the kernel parameter "acpi_irq_balance" (without the quotes), using this instead of "acpi=noirq pci=usepirqmask" or "irqpoll pci=usepirqmask" seems to result in better performance.

I am not sure what software you are using to play DVD's under linux, but I am not having any problems (Although it is using a surprising amount of CPU) using MPlayer1.0pre7. My system is running a fairly standard kernel (2.6.11-1.1369), the only changes I have made to it is that I have enabled NTFS read support, Disabled firewire (so it does not even get compiled), and set the processor type to Pentium-M (Centrino)

*EDIT* I have just checked the transfer rate, it is fairly slow (approx 1MB/s). The DVD that I tried playing probally has a low bit rate (as it was a futurama episode), which is why it doesnt seem to jump on my machine

rathodr
2005-08-17, 06:41 PM PDT
Does anyone have an idea what ethernet wire card is shipped with the M45-S351 or how I can find out? I have the Inter Pro Wireless 2200BG working fine. I will have a need to use the hard wire port and would like to get it working, if possilble. What I have done so far:

1. I checked 'lspci' and 'dmesg' but was not able to see any detection of the hard wire card.
2. Looked in to the Marvel Yukon card mentioned above to see if the author was implying that was the card in the laptop -- I don't think it is because the website does not mention any laptop cards, only desktop and server.

Any help would be really appreciated.

Regards

sancho_el_turco
2005-09-18, 12:31 PM PDT
[QUOTE=rathodr]Does anyone have an idea what ethernet wire card is shipped with the M45-S351 or how I can find out? I have the Inter Pro Wireless 2200BG working fine. I will have a need to use the hard wire port and would like to get it working, if possilble. What I have done so far:

1. I checked 'lspci' and 'dmesg' but was not able to see any detection of the hard wire card.
2. Looked in to the Marvel Yukon card mentioned above to see if the author was implying that was the card in the laptop -- I don't think it is because the website does not mention any laptop cards, only desktop and server.

Any help would be really appreciated.

Regards[/QUOTE]
It should actually be Marvell Yukon 88E8036 network card. Try this address
http://www.syskonnect.de/syskonnect/support/driver/ge.htm.
I know the card name doesn't sound like a laptop card name but the module name in my FC4 is sk98lin so this should be the driver

lowtraxx
2005-11-06, 07:24 PM PST
Is there Anything new about getting the FN and/or Media keys to work on the M40 / M45 ?
Does anyone of you know if the Bios is Toshiba or Phoenix? I nearly tried everthing i can think of. Tried toshiba.ko toshiba_acpi.ko (patched or not patched) omnibook.ko (reported to work on some toshibas, sadly not on miné) pcc_acpi.ko (for panasonic nbs. was reported to work on some toshibas, but yes, you knew it... not on this one. Please, help!!!

sincerly yours

Oliver

lowtraxx
2005-11-14, 07:43 PM PST
I used my webserver to host a wiki, for providing Informations on installing and using Linux on Toshiba 's and other Notebooks. I hope you visit the Site, post articles and help the wiki grow. At the moment, there is only one Article on gettin gentoo to work on a Toshiba Sat. M40, but hopefully, there soon will be more. So visit

http://www.toshsoft.de/wiki/

for more Information.

Hope you use it. :)

Greetz

Oli

lowtraxx
2005-11-15, 12:29 AM PST
go to http://tz.exit0.net/tecras1.html and download the tool. its a single c File, and it proved to work on my M40-129

Cheers

Oli