Brief Report: IBM/Lenovo z60t notebook with FreeBSD

Robert Watson rwatson at FreeBSD.org
Sat Dec 3 04:00:46 PST 2005


On Sat, 3 Dec 2005, Luigi Rizzo wrote:

> from the description you give, the process looks very similar to what i 
> did for my Dell Latitude X1, similar features except for a 12.1" screen, 
> no fingerprint, and intel2200 instead of atheros card. The output of 
> pciconf -lv is attached.
>
> just for the records, i have 6.0 installed here, the screen needed 
> tweaking through a port called 915resolution to install a 1280x768 vesa 
> mode, and /dev/agp is not recognised so i cannot e.g. do mplayer full 
> screen using hw acceleration. if you have patches for agp_*.c for that, 
> I would be happy to see them and try to backport, because i see more and 
> more people with 915-based laptops in the need for them.

I checked the commit logs, and it looks like Eric merged the necessary 
changes to HEAD last night.  With the changes, AGP attaches, the i915 drm 
module is built by default, loads, and works.  Scott mentioned a couple of 
days ago that he'd like to see the DRM update merged to RELENG_6 for 6.1, 
but I suspect there are enough nits still there to not want to do that 
entire backport immediately.  On the other hand, I'd think the AGP changes 
can be merged without much risk?  AGP without DRM is still quite useful 
:-).

> Audio works fine with (basically) the latest snap from Ariff, although 
> it was recognised already by the stock driver.
>
> iwi mostly works except that wpa_supplicant seems to make the interface 
> unable to communicate until the next revoot.
>
> bluetooth works (i used it once following the instructions).

I probably need a fresh kernel and to figure out how to configure 
bluetooth sometime. :-)

> suspend/resume does not work well. actually, one issue is that the 
> screen goes off when you close the lid and even though the rest of the 
> system seems to be somwehat alive, i cannot see anything.

I noticed that with the z60t, there is an ACPI nit with the lid switch -- 
whenever I partially close the lid, I get the following message:

   acpi_bus_number: can't get _ADR

I tried the IBM updater under XP and didn't get any updates, so if this is 
a BIOS bug then there isn't a fix yet (I guess).

Robert N M Watson

>
> 	cheers
> 	luigi
>
>
>
>> installed FreeBSD on it.  Throughout, I found the
>> http://www.thinkwiki.org/ site useful.
>>
>> After chatting with Bjoern Zeeb <bz>, I concluded that I would leave XP on
>> the notebook, as well as the IBM maintenance partition.  The advantage to
>> keeping these around is that it makes it possible to pick up useful things
>> like BIOS updates, and possibly makes getting support easier when things
>> go horribly wrong (hasn't happened yet).  I successfully booted the 6.0
>> release CD and used the livecd along with ntfsprogs to resize the
>> partition.  Suggestion: we should include the ntfsprogs package on the
>> install CD, even if we don't provide any UI for it.  After a bit of
>> cylinder math, I appear to have both reduced the ntfs partition to a much
>> smaller size, and not corrupted it.  One annoying nit I ran into was that
>> when fdisk complained about my not ending a slice on a cylinder boundary
>> and offered to correct it for me, it rounded down rather than up: this is
>> fine if you have nothing in the slice, but I think I'll be patching it to
>> ask if you want to round down or up.
>>
>> FreeBSD 6.0 installed without a hitch, and was up and running quickly.
>> Immediately, I ran into two problems (with four parts):
>>
>> (1) The current kernel AGP parts don't support the Intel 915gm chipset.
>> (2) X.org 6.8.2 used the VESA video mode 1024x768.
>> (3) The committed i915 DRM parts don't work.
>> (4) When I loaded the if_ath driver to use the wireless, I got an NMI
>>      and panic.
>>
>> Over the last two days, I've worked with Eric Anholt and Sam Leffler to
>> try and track down the sources of these problems, and I'm pleased to
>> report both are now resolved (when running with their patches).
>>
>> In order to get the X11 bits working, I updated to 7-CURRENT, and applied
>> a set of patches provided by Eric over the latest DRM drop he committed a
>> few days ago.  I believe he has now committed those patches, and if not,
>> will do so shortly.  I updated to xorg-server-snap, which provides the
>> X.org 7 release candidate server.  If you're reading this after X.org 7
>> comes out, I imagine it should "just work".  If it's in the next few
>> weeks, make sure you're running 7-CURRENT and using the xorg-server-snap
>> server -- you can use the rest of the 6.8.2 X.org parts with this with no
>> problem (libraries, clients, and so on).  If you're running 6.x and the
>> above hasn't yet been MFC'd, you'll need to get patches for the backport
>> of the AGP and DRM changes.  I'm pleased to report DRM also appeared to
>> work fine with Eric's patches, and glxgears spins away happily.
>>
>> I was able to get the atheros card working with the NDIS Project Evil
>> magic.  You can find the AR5211.SYS and NET5211.INF files on the Windows
>> partition (I mounted the partition using ntfs support in FreeBSD without a
>> hitch to copy them over).  I had to tweak the INF file so that it could be
>> parsed by ndisgen to comment out the following two lines:
>>
>>    [5211.reg.security]
>>    "D:ARAI(A;;GA;;;BA)(A;;GA;;;SY)(A;CI;GA;;;IO)
>>
>> However, I was unable to get the card to go into both 802.11b mode and ad
>> hoc mode at the same time.  I need to send Bill Paul a useful report,
>> although possibly once I'm back from travel.
>>
>> After chatting with Sam Leffler, and being a bit puzzled about the exact
>> failure mode I was seeing, we concluded I should apply his most recent
>> atheros and 802.11 patches, and update to the latest HAL.  Once I did
>> this, all was well.  I don't know what Sam's plans for merging these is,
>> but they're what you need.  I did not try the new HAL with the old 802.11
>> code and driver.
>>
>> At the end of the day, I have most things working with this notebook
>> except for the following:
>>
>> - The Ricoh SD card reader is unsupported.  Google suggests that Linux
>>    also doesn't support it, and that although there's a reverse engineering
>>    effort going on, it has made limited progress.  They're looking for
>>    volunteers if anyone is interested in learning about reverse
>>    engineering.
>>
>> - I don't yet have the sound driver attaching.  Not really something I
>>    know much about -- it could be an existing driver would work if I
>>    tweaked the PCI IDs, or not.  The card is described in pciconf -lv as
>>    "82801FB/FR/FW/FRW Intel High DefiNition Audio Controller", class
>>    0x040300, card 0x05b71014, chip 0x26688086, rev 0x03.
>>
>> - The fingerprint scanner attaches as ugen0.  I haven't googled around yet
>>    to see what I can learn.
>>
>> - Suspend/resume was pretty sad, I don't advise trying it.  I may get a
>>    chance to investigate this more while on travel over the next few weeks.
>>
>> BTW, just so there's no confusion: the 14" version of this notebook is
>> actually the 15" notebook but with a smaller panel.  The case is
>> apparently identical, so if you buy the 14" one, make sure it's not under
>> the assumption it will be smaller than the 15" one, because it won't be
>> :-).
>>
>> Robert N M Watson
>> _______________________________________________
>> freebsd-current at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>


More information about the freebsd-current mailing list