-   Linux - Laptop and Netbook (
-   -   linux on gateway M675 (

Klypin 02-13-2004 07:50 PM

linux on gateway M675
Does anyone knows how to configure Xconfig for 17in M675?
I would appreciate getting Xconfig for this thing. So far
it works with generic LCD and 1024x768. How do I get
to 1440x900?

System: 2.8 P4, 1Gb ram, Radeon 9600 with 128Mb, 60Gb hdd,
redhat enterprs


finegan 02-16-2004 07:13 PM

What's your /etc/X11/XF86Config file look like? Also, what's the video card in this kid?


Under Video or Multimedia Controller.



smtanner 02-17-2004 03:21 PM

Well I have this same laptop and have X running at the native resolution. I will post my XF86Config in a bit, I just have a few questions first.

Do you have sound working on yours. If so, what distribution, kernel version, alsa version (or are you using kernel modules), and module are you using?

Are you using acpi? If so, are you able to load the thermal-zone module without problems? Do you have sleep, suspend, etc working?

Okay here is my XF86Config. I am using SuSE 9.0 and have installed the Ati drivers version 3.7.0. I am using the rpm's which have been packaged for Suse and can be downloaded from the suse website. One caveat is that they only work at 24 bit color, I am not sure if this is true of the packages which can be downloaded from the ati website. Notice it said near the top of this file "PLEASE DO NOT EDIT THIS FILE". Well, I had to edit it since 1440x900 is not a standard resolution and is not a choice in fglrxconfig (the ati configuration tool) or the suse x-configuration tool SaX.

# /.../
# SaX generated XFree86 config file
# Created on: 2004-02-17T07:56:14-0700.
# Version: 4.7
# Contact: Marcus Schaefer <>, 2002
# Automatically generated by [ISaX] (4.7)

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"
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"

Section "ServerFlags"
Option "AllowMouseOpenFail"

Section "Module"
Load "dri"
Load "speedo"
Load "v4l"
Load "freetype"
Load "dbe"
Load "glx"
Load "type1"
Load "extmod"

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

Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Device" "/dev/input/mice"
Option "InputFashion" "Mouse"
Option "Name" "USB-Mouse;IMPS/2"
Option "Protocol" "imps/2"
Option "ZAxisMapping" "4 5"

Section "InputDevice"
Driver "synaptics"
Identifier "Mouse[3]"
Option "AccelFactor" "0.0010"
Option "Device" "/dev/psaux"
Option "Edges" "1900 5400 1800 3900"
Option "Finger" "25 30"
Option "InputFashion" "Mouse"
Option "MaxSpeed" "0.18"
Option "MaxTapMove" "220"
Option "MaxTapTime" "20"
Option "MinSpeed" "0.02"
Option "Name" "Synaptics;Touchpad"
Option "VertScrollDelta" "100"
Option "ZAxisMapping" "4 5"

Section "Monitor"
Option "CalcAlgorithm" "CheckDesktopGeometry"
DisplaySize 370 230
HorizSync 30-33
Identifier "Monitor[0]"
ModelName "Unknown"
Option "DPMS"
VendorName "Unknown"
VertRefresh 60-60
UseModes "Modes[0]"

Section "Modes"
Identifier "Modes[0]"

Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "640x480"
SubSection "Display"
Depth 16
Modes "640x480"
SubSection "Display"
Depth 24
Modes "1440x900" "1024x768" "800x600" "640x480"
SubSection "Display"
Depth 32
Modes "640x480"
SubSection "Display"
Depth 8
Modes "640x480"
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"

Section "Device"
BoardName "RV350 NP"
BusID "1:0:0"
Driver "fglrx"
Identifier "Device[0]"
Screen 0
VendorName "ATI"

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

Section "DRI"
Group "video"
Mode 0660

kojote 02-19-2004 09:56 AM

Im using an M675 too, and Fedora Core1...only thing i cant get working is the sound...did you have any luck?

smtanner 02-19-2004 10:19 AM

I do not have the sound card working yet. All I can say is it is detected as an Intel 82801EB AC'97 audio controller. The documentation for the laptop claims it is a "SigmaTel Soft Audio 6-Channel AC97 rev 2.3 codec (STAC9758)".

You say this is the only thing you don't have working? Then perhaps you could answer my questions in my previous post concerning ACPI.

kojote 02-19-2004 10:21 AM

My bad, I shoulda said the only thing I care about thats not

smtanner 02-20-2004 08:46 AM

Ok, strange. If you plug external speakers into the microphone jack, you will have sound. The controller is supposed to be able to map the jacks to different functions. Seem the linux drivers is mapping the microphone jack to audio out. Now just how to get the internal speakers to work.

jawest12 02-20-2004 09:18 AM

Do any of you have tap to click working on the touch pad?

smtanner 02-21-2004 10:41 AM

I have tap click working on mine with the synaptics driver. You can see my config a few posts back. That config will also enable virtual scrolling. I have no advice on how to install the synaptics driver because Suse did it automatically for me.

Do you have the internal speakers working?

kevinmack106 03-09-2004 02:43 AM

sound on gateway m675
I've managed to coax sound from my M675's speakers!
The audio chip is a Sigmatel STAC9758, the manufacturer was nice enough to email me the datasheet PDF on request, it may be on Sigmatel's web site by now.
I'm not much of a programmer, but using the datasheet and adding about 10 lines to the ALSA AC97 driver code now allows me to listen to music and play movies under Linux on the M675!

smtanner 03-09-2004 10:35 AM

Is that using the internal speakers? Does your speaker jack work? I have sound if I plug external speakers in the mic jack but from nothing else. Hopefully you will submit your solution to the alsa code writers so others can use it.

kevinmack106 03-09-2004 08:27 PM

sound from the M675's speakers
Yes, this is from the internal speakers. I'll do some more testing and see if the microphone, headphone and line-out jacks work and I'll be sure to submit my patch to the alsa-devel list.

kevinmack106 03-14-2004 02:42 AM

sound on Gateway M675
Here's my post to the alsa-devel mailing list:

Here's a quick and dirty patch that's given me basic sound from
my Gateway M675 notebook (Sigmatel 9758 AC97 codec).

1) This probably won't work on other systems with this chip as
they may be connected differently.
2) Plugging in headphones or external speakers doesn't turn off
the internal speakers with this patch.

diff -NaurP ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_codec.c alsa-kernel/pci/ac97/ac97_codec.c
--- ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_codec.c 2004-02-20 08:44:48.000000000 -0600
+++ alsa-kernel/pci/ac97/ac97_codec.c 2004-03-09 21:30:41.000000000 -0600
@@ -173,6 +173,7 @@
{ 0x83847650, 0xffffffff, "STAC9750/51", NULL, NULL }, // patch?
{ 0x83847652, 0xffffffff, "STAC9752/53", NULL, NULL }, // patch?
{ 0x83847656, 0xffffffff, "STAC9756/57", patch_sigmatel_stac9756, NULL },
+{ 0x83847658, 0xffffffff, "STAC9758/59", patch_sigmatel_stac9758, NULL },
{ 0x83847666, 0xffffffff, "STAC9766/67", NULL, NULL }, // patch?
{ 0, 0, NULL, NULL, NULL }
diff -NaurP ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_patch.c alsa-kernel/pci/ac97/ac97_patch.c
--- ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_patch.c 2004-02-11 13:41:18.000000000 -0600
+++ alsa-kernel/pci/ac97/ac97_patch.c 2004-03-11 19:15:33.000000000 -0600
@@ -441,6 +441,21 @@
return 0;

+int patch_sigmatel_stac9758(ac97_t * ac97)
+ // patch for SigmaTel
+ ac97->build_ops = &patch_sigmatel_stac9700_ops;
+ // turn on stereo speaker, headphone and line-out
+ snd_ac97_write_cache(ac97, AC97_STAC9758_OUTPUT_SELECT, 0x9040);
+ // headphone select and boost
+ snd_ac97_write_cache(ac97, AC97_STAC9758_IO_MISC, 0x2102);
+ // enable mic
+ snd_ac97_write_cache(ac97, AC97_STAC9758_INPUT_SELECT, 0x0203);
+ // enable stereo mic
+ snd_ac97_write_cache(ac97, AC97_STAC9758_VARIOUS, 0x0001);
+ return 0;
static const snd_kcontrol_new_t snd_ac97_cirrus_controls_spdif[2] = {
diff -NaurP ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_patch.h alsa-kernel/pci/ac97/ac97_patch.h
--- ../alsa-driver-1.0.3/alsa-kernel/pci/ac97/ac97_patch.h 2004-02-11 06:14:40.000000000 -0600
+++ alsa-kernel/pci/ac97/ac97_patch.h 2004-03-11 19:12:12.000000000 -0600
@@ -22,6 +22,11 @@

+#define AC97_STAC9758_OUTPUT_SELECT 0x64
+#define AC97_STAC9758_INPUT_SELECT 0x66
+#define AC97_STAC9758_IO_MISC 0x68
+#define AC97_STAC9758_VARIOUS 0x72
int patch_yamaha_ymf753(ac97_t * ac97);
int patch_wolfson00(ac97_t * ac97);
int patch_wolfson03(ac97_t * ac97);
@@ -34,6 +39,7 @@
int patch_sigmatel_stac9721(ac97_t * ac97);
int patch_sigmatel_stac9744(ac97_t * ac97);
int patch_sigmatel_stac9756(ac97_t * ac97);
+int patch_sigmatel_stac9758(ac97_t * ac97);
int patch_cirrus_cs4299(ac97_t * ac97);
int patch_cirrus_spdif(ac97_t * ac97);
int patch_conexant(ac97_t * ac97);

mikesatregis 03-31-2004 04:20 PM

Hi -

Where does that audio driver code go? I am also having trouble with sound on my new m675....

I finally got video working in the correct mode (with the above pointers :) )but with no 3D accel - not that it matters all that much.

Thanks in advance!

kevinmack106 04-01-2004 12:29 AM

The patch was for alsa-driver 1.0.3. If you're not familiar with applying patches, it may be easier for you to install a binary package, such as an RPM. The patch is now included in the alsa-driver starting with 1.0.4rc1 and the kernel starting from 2.6.5rc1. If can't find a binary package or don't want to upgrade your kernel and you're familiar with installing alsa-driver from source, you can get the 1.0.4rc source tar-ball or grab the latest CVS snapshot. Unpack the sources, change to the source directory, then 'configure;make;make install'.

Here's my /etc/modules.conf:
alias char-major-14 soundcore
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-midi

For 3D video acceleration, ATI has released drivers for XFree86 4.3. Look on their site for a package called fglrx-4.3.0-3.7.6.i386.rpm or something like that.

All times are GMT -5. The time now is 05:21 AM.