LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-13-2004, 07:50 PM   #1
Klypin
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
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

Thanks
 
Old 02-16-2004, 07:13 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

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

/sbin/lspci

Under Video or Multimedia Controller.

Cheers

Finegan
 
Old 02-17-2004, 03:21 PM   #3
smtanner
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
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 <sax@suse.de>, 2002
#
# Automatically generated by [ISaX] (4.7)
# 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"
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"
EndSection

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

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


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

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


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


Section "Modes"
Identifier "Modes[0]"
EndSection


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


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


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

Section "DRI"
Group "video"
Mode 0660
EndSection
 
Old 02-19-2004, 09:56 AM   #4
kojote
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
Sound???

Im using an M675 too, and Fedora Core1...only thing i cant get working is the sound...did you have any luck?
 
Old 02-19-2004, 10:19 AM   #5
smtanner
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
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.
 
Old 02-19-2004, 10:21 AM   #6
kojote
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
My bad, I shoulda said the only thing I care about thats not working...lol
 
Old 02-20-2004, 08:46 AM   #7
smtanner
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
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.
 
Old 02-20-2004, 09:18 AM   #8
jawest12
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
Do any of you have tap to click working on the touch pad?
 
Old 02-21-2004, 10:41 AM   #9
smtanner
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
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?

Last edited by smtanner; 02-21-2004 at 10:42 AM.
 
Old 03-09-2004, 02:43 AM   #10
kevinmack106
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Smile 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!
 
Old 03-09-2004, 10:35 AM   #11
smtanner
LQ Newbie
 
Registered: Feb 2004
Posts: 15

Rep: Reputation: 0
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.
 
Old 03-09-2004, 08:27 PM   #12
kevinmack106
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Smile 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.
 
Old 03-14-2004, 02:42 AM   #13
kevinmack106
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Smile 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).

Disclaimers:
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] = {
AC97_SINGLE(SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH), AC97_CSR_SPDIF, 15, 1, 0),
AC97_SINGLE(SNDRV_CTL_NAME_IEC958("",PLAYBACK,NONE) "AC97-SPSA", AC97_CSR_ACMODE, 0, 3, 0)
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);
 
Old 03-31-2004, 04:20 PM   #14
mikesatregis
LQ Newbie
 
Registered: Mar 2004
Distribution: Red Hat Enterprise AS
Posts: 2

Rep: Reputation: 0
Smile Sound

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!
-Mike
 
Old 04-01-2004, 12:29 AM   #15
kevinmack106
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Smile Sound

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gateway M675 ACPI cup0spam Linux - Laptop and Netbook 3 10-15-2005 10:26 PM
Installed Fedora Core-Red Hat Gateway M675 Laptop VegenZ Linux - Networking 1 04-04-2005 12:41 AM
Gateway M675 laptop Some One PLEASE HELP aeguy156 Linux - Hardware 0 08-30-2004 04:39 PM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
suse 9 on gateway m675 cannot login hubono Linux - Laptop and Netbook 4 04-19-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration