Sony laptop issues...

Vladimir Grebenschikov vova at fbsd.ru
Thu Jan 27 00:59:11 PST 2005


В вт, 25/01/2005 в 19:48 +0000, Digital Brain пишет:
> Hello,
> 
> I have recently installed FreeBSD 5.3-RELEASE on my Sony laptop (and would 
> not like to go back to Linux). Most of the things are working, including 
> ACPI (mostly), pcmcia cards, usb ports. However, there were some issues --
> 
> 1. Sound  (Intel Integrated Sound, using "pcm" driver)
> ------------------------------------------------------------------------------------
> 
> --> 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="yes"  in /boot/loader.conf - it is enough.

> ---
> $ dmesg | grep pcm0
> 
> pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem 
> 0xd0000800-0xd00008ff,0xd0000c00-0xd0000dff irq 9 at device 31.5 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <Analog Devices AD1981B AC97 Codec>
> 
> ---
> $ pciconf -lv        // output for audio
> 
> pcm0 at pci0:31:5:	class=0x040100 card=0x8197104d chip=0x24c58086 rev=0x03 
> hdr=0x00
>     vendor   = 'Intel Corporation'
>     device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller'
>     class    = multimedia
>     subclass = audio
> ---
> $ cat /dev/sndstat
> 
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <Intel ICH4 (82801DB)> at io 0x1c00, 0x18c0 irq 9 bufsz 16384  
> (1p/1r/4v channels duplex default)
> ---
> 
> I believe all the required dev's are already there (e.g. /dev/.. audio..., 
> dsp..., mixer).
> 
> Q: How can I get this to work? It does work in Linux, only thing is, I had 
> to mute the "External Amplifier" to hear anything (using alsamixer). Maybe 
> some kind of "hint"
> to append in /boot/device.hints?

# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH4 (82801DB)> 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 ? 
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
#

> 
> 2. Intel 2200BG integrated WIFI
> -------------------------------------------------
> 
> I know there is a native ipw driver for *BSD, and also ndiswrapper, but I 
> didn't try either yet.
> 
> Q: Which one do you recommend / gets most of the features to work OK (i.e. 
> AP scanning)?
> 
> Just want to make sure before messing up the whole system.

yes, you have two options here 
  - 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 
    into /sys/modules/if_ndis/

  - use native iwi driver from http://damien.bergamini.free.fr/ipw/ 
    (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)
> -------------------------------------------------------------------
> 
> Since I have an ATI Mobility graphics card, from the time I boot FreeBSD 
> until I start X,
> my whole display is restricted to a rectangle centered on the the screen 
> (not full screen). I know there are some issues with ATI cards, and that 
> there was a patch for 5.3-RELEASE. Does anyone remember the link / is this 
> fixed in -CURRENT?
> 
> Btw, I already have  "option VESA" in the kernel config.
> Q: Does the patch fix the problem without further ado?
> 
> 
> (*not directly related to laptop, but _really important_ now... I'm a 
> 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=71142 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)
> --------------------------------------------------------
> 
> I have installed the latest hpijs drivers and also CUPS. Plus, I downloaded 
> a PPD file
> from (www.linuxprinting.org) and placed it in /usr/local/share/cups/model/. 
> Following the
> same procedure (as I did in Linux, and got it working...) using the 
> web-interface,
> I set the device as "USB Device #1", then selected my printer model from the 
> next screen.
> 
> Q: How do I get it to print even the test page? When I hit the button to 
> print a test page,
> it says "job submitted" etc, but the printer doesn't do anything. When I 
> 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=yes.

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.
> 
> Jan 25 19:08:48 brainx kernel: ulpt0: hp psc 1300 series, rev 2.00/1.00, 
> 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, 
> 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: <HP  1.00> Removable Direct Access 
> 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 
> READY, Medium not present
> Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 
> 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 
> Status Error
> Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check 
> 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: 
> 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 
> Status Error
> Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check 
> 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: 
> 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 
> Status Error
> Jan 25 19:08:48 brainx kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check 
> 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
> 
> Finally,
> Q: Does this have anything to do with the fact that the printer is not 
> 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 msdosfs /dev/da0 /mnt)

-- 
Vladimir B. Grebenchikov
vova at fbsd.ru


More information about the freebsd-mobile mailing list