Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dell Inspiron 8500
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Wed May 07, 2003 2:48 am    Post subject: Dell Inspiron 8500 Reply with quote

Having trouble with this new hardware? Here are some notes I've found that might help solve some problems in the short term.

1. See these GREAT sites:
http://www.ee.surrey.ac.uk/Personal/G.Wilford/Inspiron8500/
and:
http://www.garshol.priv.no/download/i8500/

Note the kernels they refer to are different than the one I'll be using, so keep that in mind.

My CFLAGS:
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -mmmx -msse -msse2 -mfpmath=sse -fprefetch-loop-arrays"

A couple of programs didn't like all these options so I tended to override this as needed with a more conservative one:
CFLAGS="-march=pentium4 -O2 -fomit-frame-pointer -mmmx -msse -mfpmath=sse"

2. emerge ac-sources
This will install the latest Alan Cox kernel (currently 2.4.21-ac1). We need some of his patches to make life easier.
- They support the IDE chipset out of the box
- Be sure to select Pentium 4
- Compile speedstep_ich in as a module
- Don't use the kernel sound driver, use ALSA
- You must use ACPI. APM is not supported on this laptop
- Leave the kernel PCMCIA unselected if you plan on using the pcmcia-cs drivers.
- Use the EHCI HCD 2.0 and UHCI (Intel PIIX4, ...) USB modules.
- Use the IEEE1394 and OHCI-1394 Firewire modules.

[only required for ac kernels pre 2.4.21-ac1]:
Patch the Speedstep file
- Copy the Speedstep patch and apply it
- Use Speedstep module (older name for speedstep_ich)

4. Patch ACPI DSDT table (for the more adventurous)
- Copy the acpi_dsdt.c file from the G.Wilford site and put it in the drivers/acpi/tables directory.
- Copy the G.Wilform Custom-DSDT.diff patch and apply it.

Note there is a problem in older ACPI code with the battery code, and will cause major system slowdowns after a short period of time if you are monitoring your remaining power. Please use the latest ACPI patches (included in the latest ac-sources). You have been warned!

I modify the kernel Makefile manually and change HOSTCFLAGS to:
HOSTCFLAGS = -Wall -Wstrict-prototypes -O3 -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -fforce-addr -falign-functions=4 -fomit-frame-pointer
and CFLAGS to:
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O3 \
-fno-strict-aliasing -fno-common -march=pentium4 -mmmx -msse \
-falign-functions=4
Build kernel and modules and reboot.

[Following step not necessary for ac-sources 2.4.21-ac4 (and possibly some of the others post ac1), as Alan merged my kernel patch into his source tree.
5. Grab the bcm4400-2.0.0 driver off G.Wilford's site, untar it, build the bcm4400.o module (I changed -O6 in the Makefile to -O3 manually, but this is automatic in gcc now I believe), and put it in /lib/modules/####/net/
Then you can add it to /etc/modules.autoload and set it up.

6. Install sound card drivers
ALSA_CARDS='intel8x0' emerge alsa-driver
emerge alsa-lib alsa-utils
Follow the steps on G.Wilford's site

7. Install video card driver and setup X
emerge nvidia-kernel
emerge nvidia-glx
Use the XF86Config off G.Wilford's site
- Comment out the DevInputMice line at the top of the file if you don't have a /dev/input/mice.
- Change the keyboard layout in the file appropriately (for me, "us")

8. Hdparm
In /etc/conf.d/hdparm, set all_args to "-d1 -u1 -c1"
Then add hdparm to the default runlevel.

If anyone is interested, I can throw up a website with some other patches I use (bootsplash, cryptoapi).

I'll try to post more as things come along. Comments appreciated!

Good luck!
int1

Edit: Added hdparm info
Edit 2: Removed some duplicate instructions in step 3
Edit 3: Modified battery warning to note it works now.
Edit 4: Fixed to note speedstep changes in latest ac kernel
Edit 5: Fixed kernel version references to 2.4.21-ac1
Edit 6: Noted bcm4400 driver merged into 2.4.21-ac4


Last edited by int1 on Wed Jul 02, 2003 2:48 am; edited 6 times in total
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Mon May 26, 2003 8:06 pm    Post subject: Reply with quote

Someone on the forum (nrl) once told me :
Quote:

You can put
Code:

CFLAGS="-[usual goes stuff here] -Os"

in /etc/make.conf
From "info gcc":
Quote:

`-Os'
Optimize for size. `-Os' enables all `-O2' optimizations that do
not typically increase code size. It also performs further
optimizations designed to reduce code size.

If you use multiple `-O' options, with or without level numbers,
the last such option is the one that is effective.


Laptops usually have hard drives with limited capacity, therefore optimizing for size isn't a bad idea.

My Inspiron 8500 is the best computer I've ever had. I mean, it's just... great. Keeps me up all night watching DVD's in my bed with my g/f :) I love it. If I had to make a choice between my i8k5 and her, I would chose........................... :roll: :oops: :twisted: :lol:
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Thu Jun 05, 2003 12:23 pm    Post subject: Reply with quote

Well, I finally have 2 questions :

How do you configure X to run in 1920x1200? It just ignores it and falls back to the next available resolution, which is a standard 1600x1200. I had to disable video extension in the bios to get a display that has a correct ratio.
Also, using either ac or gentoo-sources with the ACPI patch disables the fn+F1, F2 and F3 keys (meaning no battery information available, since I am not crazy enough to use the buggy support mentionned on G. Wilford's page). Has anyone found a work around?

Everything else works fine.
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sat Jun 07, 2003 8:09 pm    Post subject: Reply with quote

I followed the directioned, and when i compiled speedstep into i noticed the entries that werer suppose to be in /proc weren't there. So, i recompiled the kernel, but i compiled speedstep as a module instead. But when I try to load the module, I get this error....

Code:
/lib/modules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameteres, including invalid IO or IRQ parameters.
        You may find more information in syslog or the output from dmesg
/libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: insmod /libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o failed
/libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: insmod speedstep failed
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Sat Jun 07, 2003 8:54 pm    Post subject: Reply with quote

Code:
Modeline "1920x1200" 162 1920 1984 2176 2480 1200 1201 1204 1250 +hsync +vsync
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sat Jun 07, 2003 11:52 pm    Post subject: Reply with quote

Another issue i'm having is that the screen doesn't turn off when i close the lid. How do i set it up so it does this?
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sun Jun 08, 2003 3:38 pm    Post subject: Reply with quote

KeithReuters wrote:
Also, using either ac or gentoo-sources with the ACPI patch disables the fn+F1, F2 and F3 keys (meaning no battery information available, since I am not crazy enough to use the buggy support mentionned on G. Wilford's page). Has anyone found a work around?


The latest ac kernel has the newest ACPI patch which seems to fix the battery problem. I enabled Relaxed AML checking just to be safe as well....

int1
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sun Jun 08, 2003 3:39 pm    Post subject: Reply with quote

hjlane3 wrote:
I followed the directioned, and when i compiled speedstep into i noticed the entries that werer suppose to be in /proc weren't there. So, i recompiled the kernel, but i compiled speedstep as a module instead. But when I try to load the module, I get this error....

Code:
/lib/modules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameteres, including invalid IO or IRQ parameters.
        You may find more information in syslog or the output from dmesg
/libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: insmod /libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o failed
/libmodules/2.4.21-rc7-ac1/kernel/arch/i386/kernel/speedstep.o: insmod speedstep failed


Did anything show up in dmesg beyond the error above? Did the patch apply successfully? I haven't had any problems with the patch, and still use it regularly.

int1
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sun Jun 08, 2003 6:01 pm    Post subject: Reply with quote

The patch applied fine, no problems. But dmesg didn't have any output for it. :-\ I'm not too worried about this tho, I don't really have my laptop off AC power long enough to have to worry about adjusting the cpu. Another problem I have is that the screen doesn't turn off when i shut the lid. How would I get it to do this? Also, I installed i8kutils successfully and the fan adjustment and temp readings work, but for some reason i8kbuttons thinks the sound down button is being held down, which makes these buttons not usable. My wireless nic in it doesn't work. It's a truemobile 1300, which doesn't seem to be supported by linux as of yet. :-(
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Mon Jun 09, 2003 6:02 am    Post subject: Reply with quote

KeithReuters wrote:
Code:
Modeline "1920x1200" 162 1920 1984 2176 2480 1200 1201 1204 1250 +hsync +vsync


Just curious, how did you generate that mode line? If you used Colas XFree modeline gen, what values did you use?


-Thanks
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Mon Jun 09, 2003 12:07 pm    Post subject: Reply with quote

Messed around a lot until I got 1920x1200 working, then used xvidtune to generate a working and nice modeline, then added it to my /etc/X11/XF86Config file, and finally posted it here.

To turn off the screen when you close the lid, you can do this (dirty, but kinda works).
emerge acpid

/etc/acpi/events/closelid :
Code:
event=button/lid LID 00000080 *
action=/etc/acpi/sleep

Note : to get the 00...080 code, I did (before starting acpid) a "cat /proc/acpi/event" then pushed the lid button, and voilà.

/etc/acpi/sleep
Code:
beep
xset -display :0 dpms force off
echo 1 > /proc/acpi/sleep

Note: that's what I personally use. You can put whatever you want here, like actions you want the computer to perform before going to sleep.
Note2: this is a security hole. It'll work as root (I think), but to make it work as a user you need to enable network access to X.

If someone knows a better way of doing this, please post.
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Thu Jun 19, 2003 11:54 pm    Post subject: Reply with quote

KeithReuters wrote:
Messed around a lot until I got 1920x1200 working, then used xvidtune to generate a working and nice modeline, then added it to my /etc/X11/XF86Config file, and finally posted it here.

To turn off the screen when you close the lid, you can do this (dirty, but kinda works).
emerge acpid

/etc/acpi/events/closelid :
Code:
event=button/lid LID 00000080 *
action=/etc/acpi/sleep

Note : to get the 00...080 code, I did (before starting acpid) a "cat /proc/acpi/event" then pushed the lid button, and voilà.

/etc/acpi/sleep
Code:
beep
xset -display :0 dpms force off
echo 1 > /proc/acpi/sleep

Note: that's what I personally use. You can put whatever you want here, like actions you want the computer to perform before going to sleep.
Note2: this is a security hole. It'll work as root (I think), but to make it work as a user you need to enable network access to X.

If someone knows a better way of doing this, please post.


How would I set this up so that the monitor will power off when I close the lid? I know in windows the default was standby, but you can change it over to turn off display...
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Fri Jun 20, 2003 12:26 am    Post subject: Reply with quote

Ok, nm, i'm stupid i realised the xset will do it. But, taht method isn't working, the screen won't shut off when the lid is closed...
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Fri Jun 20, 2003 6:48 am    Post subject: Reply with quote

Hello,

Really? Have you started acpid? /etc/init.d/acpid.

You can either do an
xhost +localhost
as root, but BEWARE, this will give access to the X server to anyone capable of logging in to your machine, even with SSH. However, in the case of a laptop, it might not be important.

Or you can try to add the line
su [userrunningX]
before the "xset" line.

What happens when you run xset dpms force off in an xterm/eterm/konsole?

edit :
sudo -u (user) xset -display :0 force dpms off


Last edited by KeithReuters on Sat Jun 21, 2003 6:05 am; edited 1 time in total
Back to top
View user's profile Send private message
mshaneck
n00b
n00b


Joined: 29 May 2003
Posts: 10
Location: UMN

PostPosted: Sat Jun 21, 2003 3:04 am    Post subject: Reply with quote

I tried all the steps above and everything works except that when I shutdown, the power doesn't turn off and the power button no longer works, so that I can't even turn it off manually... I am using the ac sources with speedstep compiled in as a module and using acpi. I emerged acpid and have it running... Is there something I am missing?
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sat Jun 21, 2003 3:17 am    Post subject: Reply with quote

mshaneck wrote:
I tried all the steps above and everything works except that when I shutdown, the power doesn't turn off and the power button no longer works, so that I can't even turn it off manually... I am using the ac sources with speedstep compiled in as a module and using acpi. I emerged acpid and have it running... Is there something I am missing?


Are you running the speedstep-ich module? The newest ac kernel has the latest speedstep patches.

int1
Back to top
View user's profile Send private message
mshaneck
n00b
n00b


Joined: 29 May 2003
Posts: 10
Location: UMN

PostPosted: Sat Jun 21, 2003 4:12 pm    Post subject: Reply with quote

I am running the 2.4.21-rc2-ac3 kernel. I compiled Intel Speedstep (under Processor type and features -> CPU Frequency Scaling) in as a module. It doesn't load unless I apply the speedstep patch from G Wilford's site. I have the speedstep module autoloaded. I'm not sure what the speedstep-ich module is or if it is different than what I am using. The name of the module that i am loading is speedstep.o ...
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sat Jun 21, 2003 9:21 pm    Post subject: Reply with quote

Ok got the lid closing working, thanks :-)
Now, could you guys do a "hdparm -t /dev/hda" and post the output?
I get....
Code:
# hdparm -t /dev/hda
 
/dev/hda:
 Timing buffered disk reads:  64 MB in  3.35 seconds = 19.10 MB/sec

But according to http://www.ee.surrey.ac.uk/Personal/G.Wilford/Inspiron8500/#IDE_interface:_PCI_device_8086:24ca i should be getting around 28MB/s, which would explain some speed issues i've been having.... (i'm using the ac-sources 2.4.21-r2 kernel, which btw, doesn't need the patch to get speedstep working)
Back to top
View user's profile Send private message
mshaneck
n00b
n00b


Joined: 29 May 2003
Posts: 10
Location: UMN

PostPosted: Sat Jun 21, 2003 10:35 pm    Post subject: Reply with quote

I got:
Code:

# hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:  64 MB in  2.25 seconds = 28.44 MB/sec
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sat Jun 21, 2003 11:39 pm    Post subject: Reply with quote

mshaneck wrote:
I got:
Code:

# hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:  64 MB in  2.25 seconds = 28.44 MB/sec


Grrr... did you apply anypatches besides the speedstep and acpi patches?
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Sun Jun 22, 2003 9:10 am    Post subject: Reply with quote

Code:
/dev/hda:
 Timing buffered disk reads:  64 MB in  2.60 seconds = 24.62 MB/sec


It mainly depends on which HD you have. Dell ships 5400rpm and 4200rpm drives. Mine is 40Gb, 4200rpm, hence the average performance. 28/29 is what you'd expect from a 5400rpm drive.
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sun Jun 22, 2003 12:39 pm    Post subject: Reply with quote

From what I Ican tell Dell only ships the 4200rpm drives w/the 8500. But still, why am I not getting that speed ?
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Sun Jun 22, 2003 1:00 pm    Post subject: Reply with quote

Send the output of hparm -i /dev/hda
Back to top
View user's profile Send private message
hjlane3
Guru
Guru


Joined: 22 Feb 2003
Posts: 377
Location: Wilmington, DE USA

PostPosted: Sun Jun 22, 2003 1:08 pm    Post subject: Reply with quote

Code:
# hdparm -i /dev/hda
 
/dev/hda:
 
 Model=IC25N030ATCS04-0, FwRev=CA3OA72A, SerialNo=CSH305DAE4KRSB
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=1768kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=58605120
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3:  2 3 4 5
Back to top
View user's profile Send private message
KeithReuters
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 130
Location: Newport Beach, California // Grenoble, France

PostPosted: Sun Jun 22, 2003 10:11 pm    Post subject: Reply with quote

I have the hitachi one, that might explain the difference. Also, and most importantly, I have more buffer... 2048kb I believe. since hdparm benchmarks buffered access, that might be why.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum