Showing posts with label M200. Show all posts
Showing posts with label M200. Show all posts

Tuesday, October 23, 2007

Tips for running Mandriva 2008 on a Toshiba Satellite M200

KRandRTray
If you have a Intel Graphics card like mine, you can't miss out trying KRandRTray. You'll have access to all the functions of the video card, like clone / extended desktop and even rotate. It's excellent for working with projectors.

Toshiba Fn Hotkeys
As to be expected, not all the hotkeys would work. Luckily all the important ones did. Already working were the LCD/VGA display switcher, brightness up/down and suspend to ram key. The keys that will not work are the media player, lock pc, backlight off, suspend to disk, wifi scan & touchpad toggle keys. To enable the other hotkeys on this Toshiba, you will need to change the keyboard type, the standard installation set the keyboard to a "Generic 105 key (Intl) PC" keyboard. You will need to change this in Mandriva Control Center (MCC), under Hardware->Set up keyboard layout->Keyboard type-> Select Toshiba Satellite S3000. This will enable the remaining hotkeys, namely Wifi killswitch, Volume dial, browser, play/pause, stop, prev & next keys.

LCD Brightness
In Mandriva 2007.1, the LCD is brightness can't be changed by either the hotkeys or kpowersave. I had to resort to a hack using /proc/acpi and laptop-mode. This time round the LCD brightness worked with the hotkeys & kpowersave but reacted strangely to the brightness slider in kpowersave, as you slid down the bar the brightness would go up & down erratically. Eventually I discovered again through /proc/acpi that only the following percentages worked 10 25 35 50 60 75 100. Using these values in the kpowersave profiles worked very well. Any other value would set the brightness to the lowest.

Chicony 1.3MP Webcam
This webcam works very well in aMSN. It's a little iffy in Kopete with intermittent color. Completely useless in Pidgin.

Some compiz-fusion bugs
There only 3 bugs with compiz-fusion that I've encountered. First is an issue with the kscreensaver whereby the screensaver will come out but not cover the whole screen as it should. This can be solved by using the workaround in CompizConfig Settings Manager (ccsm) called 'Fullscreen Legacy Support'. However locking the screen using the lock button still causes the issue. The second bug is an intermittent issue when I login in & out of a session, sometimes the hot corners / screen edges stop working until I open ccsm & make some changes. The final bug is a intermittent crash of compiz-window-decorator whenever I switch the K Menu button to another style, such as Kickoff or Default KDE. The issue only occurs during the change, once done it does work fine.

That's all I can write about this topic, Mandriva has been working great so far on this laptop & is actually giving me very decent (better than Windows Vista) battery life. I'm lovin' it.

Tuesday, August 28, 2007

Return of that blasted Toshiba

After wasting several hours of tearing apart the notebook and putting it back together to no avail. It just doesn't feel right for this damn thing to just work again the next morning. What is wrong with this lemon that Toshiba has given me?

Since it's working again. I'm back to tinkering with the acpi to get the LCD brightness working. I figured out that if you write 2 different values into the 2 /proc entries you'll get the that "TBX error" issue when you reboot.

Here's the output of that file:
[terrorsomemore@Terrors-PC ~]$ cat /proc/acpi/video/GFX0_PCI0/LCD/brightness
levels: 75 35 10 25 35 50 60 75 90 100
current: 0

The levels are the different setting available. Don't understand why the numbers are jumbled up. Tested the setting, the numbers between 10 -> 90 worked. The 0 & 100 did not work.

So here's my solution:
I wrote a script lcd-dim.sh with the contents:
#!/bin/bash
# Minimum Brightness
echo 10 > /proc/acpi/video/GFX0_PCI0/LCD/brightness
echo 10 > /proc/acpi/video/VGA_PEGP/LCD/brightness

Another script lcd-bright.sh
#!/bin/bash
# Nice Brightness
echo 50 > /proc/acpi/video/GFX0_PCI0/LCD/brightness
echo 50 > /proc/acpi/video/VGA_PEGP/LCD/brightness

Gave them execute permission: chmod 755 *.sh

To make the LCD dim when using battery.
I copied lcd-dim.sh into /etc/laptop-mode/batt-start/

To make the LCD bright when plugging in AC.
I copied lcd-bright.sh into /etc/laptop-mode/batt-stop/

To make the LCD bright at the desired level on power-up with AC.
I copied lcd-bright.sh into /etc/laptop-mode/nolm-ac-start/

If you wanna go further, you could add 2 icons into your panel & link that to your scripts so you get buttons for changing the brightness. I didn't bother because these needed root privileges that meant u had to type the root password every time you click the icon.

So all in all, I needed 3 hacks to make this laptop work decently.
1. The script I just explained above.

2. To make the Bluetooth & Wifi on/off switch work. I compiled & installed the latest omnibook module. Forcing module load using option ectype=12. Every other features of the omnibook module didn't work, only the switch worked.

3. To make Mandriva's KDE utilize the Media playback & volume control buttons, I installed lineak. Klineakconfig just segfaulted, so I had to configure it by hand. This was done basically using 'xev' to capture the keycode & writing my own custom keyboard type, then mapping these to the necessary plug-ins or DCOP commands. I managed to configure the Play, Stop, Next, Prev and VolumeUpDown buttons all this way.

I contrast, I recently installed Mandriva & Ubuntu into a Dell Inspiron 1520 notebook which has pretty much the same specs as this Toshiba. The Inspiron did not require any hacks whatsoever, it just worked. That's because Dell properly builds all the Fn+ hotkeys into the BIOS the way they should be.

That blasted Toshiba

Last night the Toshiba decided to go ape shit on me. After I messed around with the acpi setting in /proc I've discovered that I can control the brightness of the LCD through:
/proc/acpi/video/VGA_EGEP/LCD/brightness
and also
/proc/acpi/video/GFX0_PCI0/LCD/brightness

Somehow, these 2 settings both work for setting the brightness, but changing 1 file doesn't reflect in the other. I changed 1 file & rebooted.

On reboot, the system froze at the BIOS with a helpful error on the top left that says "TBX error".

For the next 2 hours I couldn't revive the system. I almost disassembled the machine.
After leaving it alone for a while. I tried again. This time, it booted up & I was able to get into the BIOS. But the HDD was not detected, I reseated the HDD & tried again, "TBX error" again.

I removed the HDD & tried, still "TBX error". Some research revealed that TBX error comes from the TPM system that checks the Hardware Integrity. But whatever I tried, I can either bootup with the HDD not detected or it will freeze at BIOS with "TBX error". I thought it was royally screwed. I was getting ready to call Toshiba & make up a story about what happened.

The next morning, suddenly the system worked fine again. Like last night never happened. WTF!!!

Saturday, August 25, 2007

Toshiba Satellite M200 Notebook

I recently got a new notebook, a free gift that came with the car i bought. It's just a cheap local car, so I was rather surprised to a get a RM3K free gift. I was delivered 6 weeks after the car, was supposed to be an M100, but was upgraded to M200 because the M100 is obsolete.

Here's the spec sheet:
Intel Centrino Duo (1.86Ghz)
Intel GMA950 Video
512MB DDR2-667 RAM (Upgraded to 1536MB for RM150)
80GB SATA Hard Drive
Intel Pro Wireless 3945a/b/g
Bluetooth 2.0
1.3 MP webcam

Not exactly high-end, but pretty decent notebook.

I quickly tested both Ubuntu and Mandriva on it. Both worked well. Ubuntu even picked up & setup all the hotkeys. Mandriva needed lineak to make use of the hotkeys.

A couple of things expectedly did not work out.
- The webcam worked but has poor color correction. (It was gray most of the time & tweaking had no effect)
- Some of the hotkeys are not working. Most notably, Brightness control, Touchpad toggle, Lock System, Hibernate, Media & Wireless radio on/off button.
- The ones that did work are: Mute, Volume, Wireless device on/off switch, Web, Play/pause/stop/prev/next, Suspend and Toggle Display. (These all worked out of box in Ubuntu & Mandriva's GNOME, but required tweaking lineak in KDE + the omnibook module)
- The most pressing issue with the notebook is that it's LCD is stuck at the highest brightness all the time, with the controls not working + unplugging the adapter does not dim the LCD.

Toshiba is really relying too heavily on software utilities to supply all the functionality instead of building all these things into the BIOS like they should be, heck the BIOS is just a very simplistic and completely useless Phoenix BIOS.

In the supplied Windows Vista Basic nothing worked until the ToshUtil program fully loaded-up, and that took some time as it is a seriously bloated application. I tried loading it up with WinXP SP2, then found out there were no drivers for it at all, this system ONLY works with Vista. Through some research I discovered this is one of those non-toshiba toshibas that were probably made by Compal or Quanta, one of these Taiwan Notebook ODMs.

My advice, if you're looking for a notebook to run Linux on, buy a Dell Inspiron/Latitude. Forget Toshibas, they're not worth it.