Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Intel 4965AGN WiFi card (802.11n)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Thu May 22, 2008 9:50 pm    Post subject: [SOLVED] Intel 4965AGN WiFi card (802.11n) Reply with quote

I just ordered a new ThinkPad T61 with a 4965AGN wifi card. A little research suggets that there are drivers available for that wifi card, but I'm a little less than clear on the specifics. Can anyone help me out with this?

Thanks. :)
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen


Last edited by nonhuman on Fri May 30, 2008 4:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Fri May 23, 2008 12:08 am    Post subject: Reply with quote

Code:
Device Drivers --->
        [*] Network device support --->
                Wireless LAN --->
                        [*]     Wireless LAN (IEEE 802.11)                           
                           <M>     Intel Wireless WiFi 4965AGN

You should compile it as a module, it still has some bugs, so you will be able to reset the driver by reloading it.

You'll also need the microcode:
Code:
emerge net-wireless/iwl4965-ucode


There are lots of useful info about this laptop on this page: http://gentoo-wiki.com/HARDWARE_Lenovo_Thinkpad_T61 :)
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri May 23, 2008 12:46 am    Post subject: Reply with quote

When the driver works, it works well. It's not quite up to 802.11n speeds (I get 3.5MB/s), but it is decent.

On the other hand, I've had non-stop problems that require unloading and reloading the driver....
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Fri May 23, 2008 3:17 am    Post subject: Reply with quote

Interesting. Am I going to regret having gotten the agn card instead of the abg one?
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Fri May 23, 2008 9:35 pm    Post subject: Reply with quote

Well, maybe you'll have problems when trying to associate to an AP or when the AP is not very stable. The main issues with this driver are at the time it connects to the AP.

But when associated, this card is great: very stable connections (at least if you didn't messed up the config like the Ubuntu devs), and a great range.
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri May 23, 2008 9:44 pm    Post subject: Reply with quote

No, you won't regret it. Full 802.11n connections are not far away. The driver is still be ironed out, but it's good.

Put a script called restartwireless or something like that in your /usr/bin with the following:
Code:
#!/bin/bash
rmmod iwl4965
rmmod iwlcore   #you may not need this line
rmmod mac80211
sleep 2
modprobe iwl4965


On the latest zen-sources kernel (2.6.26-rc3), there's an option to have the wireless led blink on transmission. That's mostly annoying, but very useful to see when your connection has dropped. If you feel like investigating further, you could probably link the dropped connection to that script with something hackish...
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Fri May 23, 2008 10:31 pm    Post subject: Reply with quote

Sweet, good to know. Now I'm really looking forward to it getting here.

Sadly, Lenovo's estimated shipping date is the 11th... Good thing I got the 2-day shipping...
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Fri May 23, 2008 11:10 pm    Post subject: Reply with quote

my shipping date was May 31st, but I got the computer about a week ago :)
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Fri May 23, 2008 11:27 pm    Post subject: Reply with quote

Nice.
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Sat May 24, 2008 3:30 pm    Post subject: Reply with quote

I have the same laptop with the same wireless card. It works very well for me I have no problems. The only problems I have are with my universities wireless network. I'm running 2.6.25-gentoo-r4 with ~amd64.
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sat May 24, 2008 7:11 pm    Post subject: Reply with quote

nukem996 wrote:
I have the same laptop with the same wireless card. It works very well for me I have no problems. The only problems I have are with my universities wireless network. I'm running 2.6.25-gentoo-r4 with ~amd64.


Cool, good to hear. Any tips for the kernel conf et al?
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Sat May 24, 2008 11:03 pm    Post subject: Reply with quote

nonhuman wrote:
nukem996 wrote:
I have the same laptop with the same wireless card. It works very well for me I have no problems. The only problems I have are with my universities wireless network. I'm running 2.6.25-gentoo-r4 with ~amd64.


Cool, good to hear. Any tips for the kernel conf et al?


If you got the fingerprint reader you need uinput enabled, if you want hdaps don't use the in kernel driver just emerge tp_smapi, finally while you should enable acpi_thinkpad I did not enable video control in that, it seems to work fine through the nvidia drivers.

Also I forgot the mention I have yet to use this on anything but 802.11g networks. I'm looking into get an n router but I haven't found a good one yet.
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sun May 25, 2008 2:55 pm    Post subject: Reply with quote

nukem996 wrote:
nonhuman wrote:
nukem996 wrote:
I have the same laptop with the same wireless card. It works very well for me I have no problems. The only problems I have are with my universities wireless network. I'm running 2.6.25-gentoo-r4 with ~amd64.


Cool, good to hear. Any tips for the kernel conf et al?


If you got the fingerprint reader you need uinput enabled, if you want hdaps don't use the in kernel driver just emerge tp_smapi, finally while you should enable acpi_thinkpad I did not enable video control in that, it seems to work fine through the nvidia drivers.

Also I forgot the mention I have yet to use this on anything but 802.11g networks. I'm looking into get an n router but I haven't found a good one yet.


Good to know. I've got both an n and b/g router going so I don't have to compromise on the network speeds for my n enabled computer(s), so I should be fine either way (thought it would be nice to use it with my n network).

Also, it shipped yesterday! :) Assuming Monday doesn't count as a business day because of the holiday, it should arrive on Wednesday.[/glep]
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Sun May 25, 2008 11:02 pm    Post subject: Reply with quote

termite wrote:
On the latest zen-sources kernel (2.6.26-rc3), there's an option to have the wireless led blink on transmission. That's mostly annoying, but very useful to see when your connection has dropped. If you feel like investigating further, you could probably link the dropped connection to that script with something hackish...


I'm probably going to be using the zen-sources anyway because I want to play with btrfs, Reiser4, and ext4, so maybe I will see if I can do something about automatically running the script on a dropped connection.

Damn, I've spent the past two days looking into all the different fun things I can play with, and now I can't wait for the ThinkPad to get here so I can actually get out all the new toys. I haven't run Gentoo in about two years since I sold my old ThinkPad, and I'm really starting to jones for some Linux hacking. All my other hardware is Apple, I need to leave the iMac running OS X for the wife, and as much as I love my MacBook (soon to be my wife's), I just can't stand using anything other than OS X with only one mouse button (unless I'm just dumb and haven't been configuring the synaptics drivers properly, which is entirely possible because I haven't really tried that hard since it was in Ubuntu which I hate, but was using for the easy install).

Speaking of zen-sources, is the list of current patches on the Gentoo wiki (http://gentoo-wiki.com/Zen-Sources#Current_Patches) accurate? It says it's got the iwlwifi patch, but isn't that in the official kernel sources now?

(Ok, mapping ctrl-e to the GLEP tag is really starting to piss me off...)
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Mon May 26, 2008 12:13 am    Post subject: Reply with quote

No idea regarding that list of patches. There's a zen-sources thread in Unsupported Software. Ask there.

I would start with a stable kernel (gentoo-sources or tuxonice-sources), get that configured and running and then copy the .config to zen and make oldconfig. It's much easier that way. It's what I did, and I'm now running zen-sources-2.6.26_rc3. It's pretty good, but has an annoying bug with v86d/uvesafb, and hdaps/tp_smapi are dead for the moment. All those work fine with 2.6.25. I don't have a fingerprint reader, so no idea there.

If you want my .config or anything else, drop me a note here or by PM.

Enjoy :)
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Mon May 26, 2008 4:09 am    Post subject: Reply with quote

I'd love to see you .config. That would be awesome. Thanks. :)
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Mon May 26, 2008 4:27 am    Post subject: Reply with quote

Just wondering why would you want to use zen sources? My T61p comes with the Intel Core 2 Duo T9300 which has support for hardware virtualization. I'm planning on setting up kqemu when I get some time. Wouldn't that work just as well if not better?
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Mon May 26, 2008 2:18 pm    Post subject: Reply with quote

What has installing kqemu got to do with what kernel version you're using?

I think you're confusing xen with zen!
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Mon May 26, 2008 7:29 pm    Post subject: Reply with quote

termite wrote:
What has installing kqemu got to do with what kernel version you're using?

I think you're confusing xen with zen!


Your correct. I'm sorry disregard what I said.
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Wed May 28, 2008 12:31 am    Post subject: Reply with quote

Well, the ThinkPad is here, and I've currently got a working Gentoo install on it. I only just finished the install process, so I haven't really gotten around to setting anything up yet, including the wireless, but still, it's fun to have a machine running Gentoo again.

At the moment I'm using tuxonice-sources with 'safe' FSs (ext2, reiserfs, JFS). Once I've got a usable system up and running I plan on changing to zen-sources and fooling around with btrfs. Installing X right now. Then will come wireless conf.
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Wed May 28, 2008 1:55 am    Post subject: Reply with quote

Enjoy :)
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Wed May 28, 2008 2:11 am    Post subject: Reply with quote

Holy crap. It's obviously been a long time since I've compiled XOrg, that was (relatively) insanely fast!
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nonhuman
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 236
Location: Washington DC

PostPosted: Wed May 28, 2008 2:12 am    Post subject: Reply with quote

Hmm, I don't suppose anyone wants to share their xorg.conf? :)
_________________
"Ambition is a poor excuse for not having sense enough to be lazy." -Edgar Bergen
Back to top
View user's profile Send private message
nukem996
l33t
l33t


Joined: 13 Nov 2003
Posts: 776

PostPosted: Wed May 28, 2008 2:55 am    Post subject: Reply with quote

nonhuman wrote:
Hmm, I don't suppose anyone wants to share their xorg.conf? :)


I have a nvidia card, all I did was run nvidia-xconfig but here is mine

Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder26)  Thu Feb 14 18:13:41 PST 2008


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "TouchPad"
    InputDevice    "TrackPoint" "CorePointer"
EndSection

Section "ServerFlags"
   Option     "off time" "10"
EndSection

Section "Files"
    RgbPath         "/usr/lib64/X11/rgb"
EndSection

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

Section "InputDevice"
    Identifier     "TouchPad"
    Driver         "synaptics"
    Option         "Device" "/dev/input/mouse0"
    Option         "Protocol" "auto-dev"
    Option         "SHMConfig" "on"
    Option         "RBCornerButton" "0"
    Option         "LBCornerButton" "0"
    Option         "LTCornerButton" "0"
    Option         "RTCornerButton" "0"
EndSection

Section "InputDevice"
    Identifier     "TrackPoint"
    Driver         "mouse"
    Option         "Device" "/dev/input/mouse1"
    Option         "SendCoreEvents"
    Option         "Emulate3Buttons" "no"
    Option         "Protocol"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "RenderAccel" "True"
    Option         "AllowGLXWithComposite" "True"
    Option         "AllowDDCCI" "True"
    Option         "LoadKernelModule" "True"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection
Back to top
View user's profile Send private message
termite
Guru
Guru


Joined: 06 May 2007
Posts: 466

PostPosted: Wed May 28, 2008 12:34 pm    Post subject: Reply with quote

Intel card, with DRI and all (compiz works):
Code:
Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "CorePointer"
   InputDevice    "Keyboard0" "CoreKeyboard"
   Option   "AIGLX" "true"
EndSection

Section "Files"
   RgbPath      "/usr/share/X11/rgb"
   ModulePath   "/usr/lib64/xorg/modules"
    FontPath    "/usr/share/fonts/misc"
    FontPath    "/usr/share/fonts/TTF"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/share/fonts/100dpi:unscaled"
    FontPath    "/usr/share/fonts/75dpi:unscaled"
    FontPath    "/usr/share/fonts/corefonts"
    FontPath    "/usr/share/fonts/freefonts"
    FontPath    "/usr/share/fonts/terminus"
    FontPath    "/usr/share/fonts/ttf-bitstream-vera"
    FontPath    "/usr/share/fonts/unifont"
    FontPath    "/usr/local/share/fonts"
EndSection

Section "Module"
   Load  "GLcore"
   Load  "xtrap"
   Load  "dri"
   Load  "record"
   Load  "glx"
   Load  "dbe"
   Load  "extmod"
   Load  "type1"
   Load  "freetype"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
       Identifier  "UltraNav TrackPoint"
       Driver      "mouse"
       Option      "Device"            "/dev/input/mouse1"
       Option      "Protocol"            "ExplorerPS/2"
       Option      "Emulate3Buttons"     "on"
       Option      "Emulate3TimeOut"     "50"
       Option      "EmulateWheel"        "on"
       Option      "EmulateWheelTimeOut" "200"
       Option      "EmulateWheelButton"  "2"
       Option      "YAxisMapping"        "4 5"
       Option      "XAxisMapping"        "6 7"
       Option      "ZAxisMapping"        "4 5"
EndSection

Section "Monitor"
   #DisplaySize     330   210   # mm
   Identifier   "Monitor0"
   VendorName   "IBM"
   ModelName    "2887"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "CacheLines"            # <i>
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "DRI"                   # [<bool>]
        #Option     "NoDDC"                 # [<bool>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "XvMCSurfaces"          # <i>
        #Option     "PageFlip"              # [<bool>]
   Identifier  "Card0"   
   Driver      "intel"
   VendorName  "Intel Corporation"
   BoardName   "Mobile Integrated Graphics Controller"
   BusID       "PCI:0:2:0"
   Option       "DRI"   "true"
        Option       "XAANoOffscreenPixmaps" "true"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Card0"
   Monitor    "Monitor0"
   SubSection "Display"
      Viewport   0 0
      Depth     1
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     4
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     8
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     15
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     16
   EndSubSection
   SubSection "Display"
      Viewport   0 0
      Depth     24
   EndSubSection
EndSection

Section "DRI"
   Group   "video"
   Mode   0660
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection
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  Next
Page 1 of 2

 
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