From owner-freebsd-mobile@FreeBSD.ORG Thu Jan 27 08:59:11 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 413C316A4CE for ; Thu, 27 Jan 2005 08:59:11 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65F8A43D39 for ; Thu, 27 Jan 2005 08:59:08 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.43 (FreeBSD)) id 1Cu5UW-000JZq-OI; Thu, 27 Jan 2005 11:59:05 +0300 From: Vladimir Grebenschikov To: Digital Brain In-Reply-To: References: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 27 Jan 2005 11:59:02 +0300 Message-Id: <1106816342.1063.33.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-mobile Subject: Re: Sony laptop issues... X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 08:59:11 -0000 =F7 =D7=D4, 25/01/2005 =D7 19:48 +0000, Digital Brain =D0=C9=DB=C5=D4: > Hello, >=20 > I have recently installed FreeBSD 5.3-RELEASE on my Sony laptop (and woul= d=20 > not like to go back to Linux). Most of the things are working, including=20 > ACPI (mostly), pcmcia cards, usb ports. However, there were some issues -= - >=20 > 1. Sound (Intel Integrated Sound, using "pcm" driver) > -------------------------------------------------------------------------= ----------- >=20 > --> added: > device sound > device snd_ich > to custom-built kernel. Hm, today I think much easy to use modules for drivers, I have snd_ich_load=3D"yes" in /boot/loader.conf - it is enough. > --- > $ dmesg | grep pcm0 >=20 > pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff mem=20 > 0xd0000800-0xd00008ff,0xd0000c00-0xd0000dff irq 9 at device 31.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: >=20 > --- > $ pciconf -lv // output for audio >=20 > pcm0@pci0:31:5: class=3D0x040100 card=3D0x8197104d chip=3D0x24c58086 rev= =3D0x03=20 > hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Contro= ller' > class =3D multimedia > subclass =3D audio > --- > $ cat /dev/sndstat >=20 > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x1c00, 0x18c0 irq 9 bufsz 16384 =20 > (1p/1r/4v channels duplex default) > --- >=20 > I believe all the required dev's are already there (e.g. /dev/.. audio...= ,=20 > dsp..., mixer). >=20 > Q: How can I get this to work? It does work in Linux, only thing is, I ha= d=20 > to mute the "External Amplifier" to hear anything (using alsamixer). Mayb= e=20 > some kind of "hint" > to append in /boot/device.hints? # cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x1c00, 0x18c0 irq 9 bufsz 16384 kld snd= _ich (1p/1r/0v channels duplex default) # No problems for me, it just works. How you find that it does not work ? What you have tested ?=20 Probably you have volume 0 ? what shown by mixer utility ? # mixer Mixer vol is currently set to 30:30 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer line1 is currently set to 75:75 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 75:75 Recording source: mic # >=20 > 2. Intel 2200BG integrated WIFI > ------------------------------------------------- >=20 > I know there is a native ipw driver for *BSD, and also ndiswrapper, but I= =20 > didn't try either yet. >=20 > Q: Which one do you recommend / gets most of the features to work OK (i.e= .=20 > AP scanning)? >=20 > Just want to make sure before messing up the whole system. yes, you have two options here=20 - use ndis wrapper (project evil) ndis.ko and if_ndis.ko, man if_ndis for details, you need get files w22n51.INF w22n51.sys from win and put them=20 into /sys/modules/if_ndis/ - use native iwi driver from http://damien.bergamini.free.fr/ipw/=20 (commiters, please import it into tree) I prefer iwi driver - it is much more stable for me now (but I use 6-CURRENT), before I have used ndisulator. > 3. Display (preferred 1280x800 resolution) > ------------------------------------------------------------------- >=20 > Since I have an ATI Mobility graphics card, from the time I boot FreeBSD=20 > until I start X, > my whole display is restricted to a rectangle centered on the the screen=20 > (not full screen). I know there are some issues with ATI cards, and that=20 > there was a patch for 5.3-RELEASE. Does anyone remember the link / is thi= s=20 > fixed in -CURRENT? >=20 > Btw, I already have "option VESA" in the kernel config. > Q: Does the patch fix the problem without further ado? >=20 >=20 > (*not directly related to laptop, but _really important_ now... I'm a=20 > student, damn) First option, you can ask your notebook to scale text console to full-screen (I've used Fn-F for Sony VAIO z505S, not sure about another models) Second option, you can use pixel-mode console to get much better text resolution (I have 175 cols x 64 rows for 1400x1050 LCD) You need patch from http://www.freebsd.org/cgi/query-pr.cgi?pr=3D71142 or upgrade to recent 6-CURRENT. In this case you need SC_PIXEL_MODE and VESA kernel option and configure mode with something like 'vidcontrol MODE_322'. > 4. HP psc 1300 printer (USB Printer) > -------------------------------------------------------- >=20 > I have installed the latest hpijs drivers and also CUPS. Plus, I download= ed=20 > a PPD file > from (www.linuxprinting.org) and placed it in /usr/local/share/cups/model= /.=20 > Following the > same procedure (as I did in Linux, and got it working...) using the=20 > web-interface, > I set the device as "USB Device #1", then selected my printer model from = the=20 > next screen. >=20 > Q: How do I get it to print even the test page? When I hit the button to=20 > print a test page, > it says "job submitted" etc, but the printer doesn't do anything. When I=20 > check in "Jobs" it says that XYZ job aborted. There are many ways to configure printer. First, you can check whether prnter connected through USB by cat /etc/protocols > /dev/ulpt0 (or like). Then you need configure some print spooler, cups for example. I do not like to install drivers manually from linuxprinting.org, often there is good driver in gimp-print port, but it should be built with WITH_CUPS=3Dyes. Then follow normal cups procedure for printer configuration and print testpage. > Here's what I get from /var/log/messages, the time I plug the printer in. >=20 > Jan 25 19:08:48 brainx kernel: ulpt0: hp psc 1300 series, rev 2.00/1.00,=20 > addr 2, iclass 255/204 > Jan 25 19:08:48 brainx kernel: ulpt0: using bi-directional mode > Jan 25 19:08:48 brainx kernel: umass0: hp psc 1300 series, rev 2.00/1.00,= =20 > addr 2 > Jan 25 19:08:48 brainx kernel: da0 at umass-sim0 bus 0 target 0 lun 0 > Jan 25 19:08:48 brainx kernel: da0: Removable Direct Access=20 > SCSI-2 device > Jan 25 19:08:48 brainx kernel: da0: 1.000MB/s transfers > Jan 25 19:08:48 brainx kernel: da0: Attempt to query device size failed: = NOT=20 > READY, Medium not present > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB= :=20 > 25 0 0 0 0 0 0 0 0 0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI=20 > Status Error > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check= =20 > Condition > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Medium not present > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Unretryable error > Jan 25 19:08:48 brainx kernel: Opened disk da0 -> 6 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB= :=20 > 25 0 0 0 0 0 0 0 0 0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI=20 > Status Error > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check= =20 > Condition > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Medium not present > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Unretryable error > Jan 25 19:08:48 brainx kernel: Opened disk da0 -> 6 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB= :=20 > 25 0 0 0 0 0 0 0 0 0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI=20 > Status Error > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check= =20 > Condition > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Medium not present > Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): Unretryable error > Jan 25 19:08:48 brainx kernel: Opened disk da0 -> 6 >=20 > Finally, > Q: Does this have anything to do with the fact that the printer is not=20 > working? looks like umass0 is related to printer's card reader. (Probably, You can put card into printer and then read it with mount -t msd= osfs /dev/da0 /mnt) --=20 Vladimir B. Grebenchikov vova@fbsd.ru