IPnom Home • Manuals • FreeBSD

 FreeBSD Man Pages

Man Sections:Commands (1)System Calls (2)Library Functions (3)Device Drivers (4)File Formats (5)Miscellaneous (7)System Utilities (8)
Keyword Live Search (10 results max):
 Type in part of a command in the search box.
 
Index:
  CPU_ELAN(4)
  CPU_SOEKRIS(4)
  aac(4)
  acd(4)
  acpi(4)
  acpi_asus(4)
  acpi_panasonic(4)
  acpi_thermal(4)
  acpi_toshiba(4)
  acpi_video(4)
  ad(4)
  adv(4)
  adw(4)
  afd(4)
  agp(4)
  agpgart(4)
  aha(4)
  ahb(4)
  ahc(4)
  ahd(4)
  aic(4)
  aio(4)
  alpm(4)
  altq(4)
  amd(4)
  amdpm(4)
  amr(4)
  an(4)
  apm(4)
  ar(4)
  arcmsr(4)
  arl(4)
  arp(4)
  asr(4)
  ast(4)
  ata(4)
  atapicam(4)
  ath(4)
  ath_hal(4)
  atkbd(4)
  atkbdc(4)
  aue(4)
  awi(4)
  axe(4)
  bfe(4)
  bge(4)
  bktr(4)
  blackhole(4)
  bpf(4)
  bridge(4)
  brooktree(4)
  bt(4)
  cam(4)
  card(4)
  cardbus(4)
  carp(4)
  cbb(4)
  ccd(4)
  cd(4)
  cdce(4)
  ch(4)
  ciss(4)
  cm(4)
  cnw(4)
  cp(4)
  cpufreq(4)
  crypto(4)
  cryptodev(4)
  cs(4)
  ct(4)
  ctau(4)
  cue(4)
  cx(4)
  cy(4)
  da(4)
  dc(4)
  dcons(4)
  dcons_crom(4)
  ddb(4)
  de(4)
  devctl(4)
  digi(4)
  disc(4)
  divert(4)
  dpt(4)
  dummynet(4)
  ed(4)
  ef(4)
  ehci(4)
  el(4)
  em(4)
  en(4)
  ep(4)
  esp(4)
  ex(4)
  exca(4)
  faith(4)
  fast_ipsec(4)
  fatm(4)
  fd(4)
  fdc(4)
  fe(4)
  fea(4)
  firewire(4)
  fla(4)
  fpa(4)
  fwe(4)
  fwip(4)
  fwohci(4)
  fxp(4)
  gbde(4)
  gdb(4)
  gem(4)
  geom(4)
  gif(4)
  gre(4)
  gx(4)
  harp(4)
  hatm(4)
  hfa(4)
  hifn(4)
  hme(4)
  hptmv(4)
  i4b(4)
  i4bcapi(4)
  i4bctl(4)
  i4bing(4)
  i4bipr(4)
  i4bisppp(4)
  i4bq921(4)
  i4bq931(4)
  i4brbch(4)
  i4btel(4)
  i4btrc(4)
  iavc(4)
  ichsmb(4)
  ichwd(4)
  icmp(4)
  icmp6(4)
  ida(4)
  idt(4)
  ie(4)
  ieee80211(4)
  if_an(4)
  if_aue(4)
  if_awi(4)
  if_axe(4)
  if_bfe(4)
  if_bge(4)
  if_cue(4)
  if_dc(4)
  if_de(4)
  if_disc(4)
  if_ed(4)
  if_ef(4)
  if_em(4)
  if_en(4)
  if_faith(4)
  if_fatm(4)
  if_fwe(4)
  if_fwip(4)
  if_fxp(4)
  if_gem(4)
  if_gif(4)
  if_gre(4)
  if_gx(4)
  if_hatm(4)
  if_hme(4)
  if_idt(4)
  if_kue(4)
  if_lge(4)
  if_my(4)
  if_ndis(4)
  if_nge(4)
  if_oltr(4)
  if_patm(4)
  if_pcn(4)
  if_ppp(4)
  if_re(4)
  if_rl(4)
  if_rue(4)
  if_sbni(4)
  if_sbsh(4)
  if_sf(4)
  if_sis(4)
  if_sk(4)
  if_sl(4)
  if_sn(4)
  if_ste(4)
  if_stf(4)
  if_tap(4)
  if_ti(4)
  if_tl(4)
  if_tun(4)
  if_tx(4)
  if_txp(4)
  if_udav(4)
  if_vge(4)
  if_vlan(4)
  if_vr(4)
  if_wb(4)
  if_wi(4)
  if_xe(4)
  if_xl(4)
  ifmib(4)
  ifpi(4)
  ifpi2(4)
  ifpnp(4)
  ihfc(4)
  iic(4)
  iicbb(4)
  iicbus(4)
  iicsmb(4)
  iir(4)
  imm(4)
  inet(4)
  inet6(4)
  intpm(4)
  intro(4)
  io(4)
  ip(4)
  ip6(4)
  ipaccounting(4)
  ipacct(4)
  ipf(4)
  ipfirewall(4)
  ipfw(4)
  ipl(4)
  ipnat(4)
  ips(4)
  ipsec(4)
  isic(4)
  isp(4)
  ispfw(4)
  itjc(4)
  iwic(4)
  ixgb(4)
  joy(4)
  kame(4)
  keyboard(4)
  kld(4)
  kmem(4)
  ktr(4)
  kue(4)
  led(4)
  lge(4)
  linux(4)
  lnc(4)
  lo(4)
  longrun(4)
  loop(4)
  lp(4)
  lpbb(4)
  lpt(4)
  mac(4)
  mac_biba(4)
  mac_bsdextended(4)
  mac_ifoff(4)
  mac_lomac(4)
  mac_mls(4)
  mac_none(4)
  mac_partition(4)
  mac_portacl(4)
  mac_seeotheruids(4)
  mac_stub(4)
  mac_test(4)
  mcd(4)
  md(4)
  mem(4)
  meteor(4)
  miibus(4)
  mlx(4)
  mly(4)
  mouse(4)
  mpt(4)
  mse(4)
  mtio(4)
  multicast(4)
  my(4)
  natm(4)
  natmip(4)
  ncr(4)
  ncv(4)
  ndis(4)
  net(4)
  netgraph(4)
  netintro(4)
  networking(4)
  ng_UI(4)
  ng_async(4)
  ng_atm(4)
  ng_atmllc(4)
  ng_atmpif(4)
  ng_bluetooth(4)
  ng_bpf(4)
  ng_bridge(4)
  ng_bt3c(4)
  ng_btsocket(4)
  ng_ccatm(4)
  ng_cisco(4)
  ng_device(4)
  ng_echo(4)
  ng_eiface(4)
  ng_etf(4)
  ng_ether(4)
  ng_fec(4)
  ng_frame_relay(4)
  ng_gif(4)
  ng_gif_demux(4)
  ng_h4(4)
  ng_hci(4)
  ng_hole(4)
  ng_hub(4)
  ng_iface(4)
  ng_ip_input(4)
  ng_ksocket(4)
  ng_l2cap(4)
  ng_l2tp(4)
  ng_lmi(4)
  ng_mppc(4)
  ng_netflow(4)
  ng_one2many(4)
  ng_ppp(4)
  ng_pppoe(4)
  ng_pptpgre(4)
  ng_rfc1490(4)
  ng_socket(4)
  ng_split(4)
  ng_sppp(4)
  ng_sscfu(4)
  ng_sscop(4)
  ng_tee(4)
  ng_tty(4)
  ng_ubt(4)
  ng_uni(4)
  ng_vjc(4)
  ng_vlan(4)
  nge(4)
  nmdm(4)
  npx(4)
  nsp(4)
  null(4)
  ohci(4)
  oldcard(4)
  oltr(4)
  opie(4)
  orm(4)
  pae(4)
  pass(4)
  patm(4)
  pccard(4)
  pccbb(4)
  pcf(4)
  pci(4)
  pcic(4)
  pcm(4)
  pcn(4)
  pcvt(4)
  perfmon(4)
  pf(4)
  pflog(4)
  pfsync(4)
  pim(4)
  plip(4)
  pnp(4)
  pnpbios(4)
  polling(4)
  ppbus(4)
  ppc(4)
  ppi(4)
  ppp(4)
  psm(4)
  pst(4)
  pt(4)
  pty(4)
  puc(4)
  random(4)
  rawip(4)
  ray(4)
  rc(4)
  re(4)
  rl(4)
  rndtest(4)
  route(4)
  rp(4)
  rue(4)
  sa(4)
  sab(4)
  safe(4)
  sbni(4)
  sbp(4)
  sbp_targ(4)
  sbsh(4)
  sc(4)
  scbus(4)
  scd(4)
  sched_4bsd(4)
  sched_ule(4)
  screen(4)
  screensaver(4)
  scsi(4)
  sem(4)
  ses(4)
  sf(4)
  si(4)
  sio(4)
  sis(4)
  sk(4)
  skey(4)
  sl(4)
  smapi(4)
  smb(4)
  smbus(4)
  smp(4)
  sn(4)
  snc(4)
  snd(4)
  snd_ad1816(4)
  snd_als4000(4)
  snd_cmi(4)
  snd_cs4281(4)
  snd_csa(4)
  snd_ds1(4)
  snd_emu10k1(4)
  snd_es137x(4)
  snd_ess(4)
  snd_fm801(4)
  snd_gusc(4)
  snd_ich(4)
  snd_maestro(4)
  snd_maestro3(4)
  snd_neomagic(4)
  snd_sbc(4)
  snd_solo(4)
  snd_uaudio(4)
  snd_via8233(4)
  snd_via82c686(4)
  snd_vibes(4)
  snp(4)
  sound(4)
  speaker(4)
  spic(4)
  spkr(4)
  splash(4)
  sppp(4)
  sr(4)
  stderr(4)
  stdin(4)
  stdout(4)
  ste(4)
  stf(4)
  stg(4)
  streams(4)
  svr4(4)
  sym(4)
  syncache(4)
  syncer(4)
  syncookies(4)
  syscons(4)
  sysmouse(4)
  tap(4)
  targ(4)
  tcp(4)
  tdfx(4)
  termios(4)
  ti(4)
  tl(4)
  trm(4)
  ttcp(4)
  tty(4)
  tun(4)
  twa(4)
  twe(4)
  tx(4)
  txp(4)
  uart(4)
  ubsa(4)
  ubsec(4)
  ubser(4)
  ubtbcmfw(4)
  ucom(4)
  udav(4)
  udbp(4)
  udp(4)
  ufm(4)
  uftdi(4)
  ugen(4)
  uhci(4)
  uhid(4)
  uhidev(4)
  ukbd(4)
  ulpt(4)
  umass(4)
  umct(4)
  umodem(4)
  ums(4)
  unix(4)
  uplcom(4)
  urio(4)
  usb(4)
  uscanner(4)
  utopia(4)
  uvisor(4)
  uvscom(4)
  vga(4)
  vge(4)
  viapm(4)
  vinum(4)
  vinumdebug(4)
  vlan(4)
  vn(4)
  vpd(4)
  vpo(4)
  vr(4)
  vt(4)
  vx(4)
  watchdog(4)
  wb(4)
  wd(4)
  wdc(4)
  wi(4)
  witness(4)
  wl(4)
  wlan(4)
  worm(4)
  xe(4)
  xl(4)
  xpt(4)
  zero(4)

psm(4)

NAME

     psm -- PS/2 mouse style pointing device driver


SYNOPSIS

     options KBD_RESETDELAY=N
     options KBD_MAXWAIT=N
     options PSM_DEBUG=N
     options KBDIO_DEBUG=N
     device psm

     In /boot/device.hints:
     hint.psm.0.at="atkbdc"
     hint.psm.0.irq="12"


DESCRIPTION

     The psm driver provides support for the PS/2 mouse style pointing device.
     Currently there can be only one psm device node in the system.  As the
     PS/2 mouse port is located at the auxiliary port of the keyboard con-
     troller, the keyboard controller driver, atkbdc, must also be configured
     in the kernel.  Note that there is currently no provision of changing the
     irq number.

     Basic PS/2 style pointing device has two or three buttons.  Some devices
     may have a roller or a wheel and/or additional buttons.

   Device Resolution
     The PS/2 style pointing device usually has several grades of resolution,
     that is, sensitivity of movement.	They are typically 25, 50, 100 and 200
     pulse per inch.  Some devices may have finer resolution.  The current
     resolution can be changed at runtime.  The psm driver allows the user to
     initially set the resolution via the driver flag (see DRIVER
     CONFIGURATION) or change it later via the ioctl(2) command MOUSE_SETMODE
     (see IOCTLS).

   Report Rate
     Frequency, or report rate, at which the device sends movement and button
     state reports to the host system is also configurable.  The PS/2 style
     pointing device typically supports 10, 20, 40, 60, 80, 100 and 200
     reports per second.  60 or 100 appears to be the default value for many
     devices.  Note that when there is no movement and no button has changed
     its state, the device won't send anything to the host system.  The report
     rate can be changed via an ioctl call.

   Operation Levels
     The psm driver has three levels of operation.  The current operation
     level can be set via an ioctl call.

     At the level zero the basic support is provided; the device driver will
     report horizontal and vertical movement of the attached device and state
     of up to three buttons.  The movement and status are encoded in a series
     of fixed-length data packets (see Data Packet Format).  This is the
     default level of operation and the driver is initially at this level when
     opened by the user program.

     The operation level one, the `extended' level, supports a roller (or
     wheel), if any, and up to 11 buttons.  The movement of the roller is
     reported as movement along the Z axis.  8 byte data packets are sent to

   Data Packet Format
     Data packets read from the psm driver are formatted differently at each
     operation level.

     A data packet from the PS/2 mouse style pointing device is three bytes
     long at the operation level zero:

     Byte 1
	     bit 7  One indicates overflow in the vertical movement count.
	     bit 6  One indicates overflow in the horizontal movement count.
	     bit 5  Set if the vertical movement count is negative.
	     bit 4  Set if the horizontal movement count is negative.
	     bit 3  Always one.
	     bit 2  Middle button status; set if pressed.  For devices without
		    the middle button, this bit is always zero.
	     bit 1  Right button status; set if pressed.
	     bit 0  Left button status; set if pressed.
     Byte 2  Horizontal movement count in two's complement; -256 through 255.
	     Note that the sign bit is in the first byte.
     Byte 3  Vertical movement count in two's complement; -256 through 255.
	     Note that the sign bit is in the first byte.

     At the level one, a data packet is encoded in the standard format
     MOUSE_PROTO_SYSMOUSE as defined in mouse(4).

     At the level two, native level, there is no standard on the size and for-
     mat of the data packet.

   Acceleration
     The psm driver can somewhat `accelerate' the movement of the pointing
     device.  The faster you move the device, the further the pointer travels
     on the screen.  The driver has an internal variable which governs the
     effect of the acceleration.  Its value can be modified via the driver
     flag or via an ioctl call.

   Device Number
     The minor device number of the psm is made up of:

	   minor = (`unit' << 1) | `non-blocking'

     where `unit' is the device number (usually 0) and the `non-blocking' bit
     is set to indicate ``don't block waiting for mouse input, return immedi-
     ately''.  The `non-blocking' bit should be set for XFree86, therefore the
     minor device number usually used for XFree86 is 1.  See FILES for device
     node names.


DRIVER CONFIGURATION

   Kernel Configuration Options
     There are following kernel configuration options to control the psm
     driver.  They may be set in the kernel configuration file (see
     config(8)).

     KBD_RESETDELAY=X, KBD_MAXWAIT=Y
	    The psm driver will attempt to reset the pointing device during
	    the boot process.  It sometimes takes a long while before the
	    device will respond after reset.  These options control how long
	    the driver should wait before it eventually gives up waiting.  The
	    driver will wait X * Y msecs at most.  If the driver seems unable
     The psm driver accepts the following driver flags.  Set them in
     /boot/device.hints (see EXAMPLES below).

     bit 0..3 RESOLUTION
	    This flag specifies the resolution of the pointing device.	It
	    must be zero through four.	The greater the value is, the finer
	    resolution the device will select.	Actual resolution selected by
	    this field varies according to the model of the device.  Typical
	    resolutions are:

	    1 (low)	       25 pulse per inch (ppi)
	    2 (medium low)     50 ppi
	    3 (medium high)    100 ppi
	    4 (high)	       200 ppi

	    Leaving this flag zero will selects the default resolution for the
	    device (whatever it is).

     bit 4..7 ACCELERATION
	    This flag controls the amount of acceleration effect.  The smaller
	    the value of this flag is, more sensitive the movement becomes.
	    The minimum value allowed, thus the value for the most sensitive
	    setting, is one.  Setting this flag to zero will completely dis-
	    ables the acceleration effect.

     bit 8 NOCHECKSYNC
	    The psm driver tries to detect the first byte of the data packet
	    by checking the bit pattern of that byte.  Although this method
	    should work with most PS/2 pointing devices, it may interfere with
	    some devices which are not so compatible with known devices.  If
	    you think your pointing device is not functioning as expected, and
	    the kernel frequently prints the following message to the console,

		  psmintr: out of sync (xxxx != yyyy).

	    set this flag to disable synchronization check and see if it
	    helps.

     bit 9 NOIDPROBE
	    The psm driver will not try to identify the model of the pointing
	    device and will not carry out model-specific initialization.  The
	    device should always act like a standard PS/2 mouse without such
	    initialization.  Extra features, such as wheels and additional
	    buttons, won't be recognized by the psm driver.

     bit 10 NORESET
	    When this flag is set, the psm driver won't reset the pointing
	    device when initializing the device.  If the FreeBSD kernel is
	    started after another OS has run, the pointing device will inherit
	    settings from the previous OS.  However, because there is no way
	    for the psm driver to know the settings, the device and the driver
	    may not work correctly.  The flag should never be necessary under
	    normal circumstances.

     bit 11 FORCETAP
	    Some pad devices report as if the fourth button is pressed when
	    the user `taps' the surface of the device (see CAVEATS).  This
	    flag will make the psm driver assume that the device behaves this
     bit 13 HOOKRESUME
	    The built-in PS/2 pointing device of some laptop computers is
	    somehow not operable immediately after the system `resumes' from
	    the power saving mode, though it will eventually become available.
	    There are reports that stimulating the device by performing I/O
	    will help waking up the device quickly.  This flag will enable a
	    piece of code in the psm driver to hook the `resume' event and
	    exercise some harmless I/O operations on the device.

     bit 14 INITAFTERSUSPEND
	    This flag adds more drastic action for the above problem.  It will
	    cause the psm driver to reset and re-initialize the pointing
	    device after the `resume' event.  It has no effect unless the
	    HOOKRESUME flag is set as well.


TUNABLES

     Extended support for Synaptics touchpads can be enabled by setting
     hw.psm.synaptics_support to 1 at boot-time.  This will enable psm to han-
     dle packets from guest devices (sticks) and extra buttons.


IOCTLS

     There are a few ioctl(2) commands for mouse drivers.  These commands and
     related structures and constants are defined in <sys/mouse.h>.  General
     description of the commands is given in mouse(4).	This section explains
     the features specific to the psm driver.

     MOUSE_GETLEVEL int *level
     MOUSE_SETLEVEL int *level
	    These commands manipulate the operation level of the psm driver.

     MOUSE_GETHWINFO mousehw_t *hw
	    Returns the hardware information of the attached device in the
	    following structure.

	    typedef struct mousehw {
		int buttons;	/* number of buttons */
		int iftype;	/* I/F type */
		int type;	/* mouse/track ball/pad... */
		int model;	/* I/F dependent model ID */
		int hwid;	/* I/F dependent hardware ID */
	    } mousehw_t;

	    The buttons field holds the number of buttons on the device.  The
	    psm driver currently can detect the 3 button mouse from Logitech
	    and report accordingly.  The 3 button mouse from the other manu-
	    facturer may or may not be reported correctly.  However, it will
	    not affect the operation of the driver.

	    The iftype is always MOUSE_IF_PS2.

	    The type tells the device type: MOUSE_MOUSE, MOUSE_TRACKBALL,
	    MOUSE_STICK, MOUSE_PAD, or MOUSE_UNKNOWN.  The user should not
	    heavily rely on this field, as the driver may not always, in fact
	    it is very rarely able to, identify the device type.

	    The model is always MOUSE_MODEL_GENERIC at the operation level 0.
	    It may be MOUSE_MODEL_GENERIC or one of MOUSE_MODEL_XXX constants
	    at higher operation levels.  Again the psm driver may or may not

     MOUSE_SYN_GETHWINFO synapticshw_t *synhw
	    Retrieves extra information associated with Synaptics Touchpads.
	    Only available when hw.psm.synaptics_support has been enabled.

	    typedef struct synapticshw {
		int infoMajor;	    /* major hardware revision */
		int infoMinor;	    /* minor hardware revision */
		int infoRot180;     /* touchpad is rotated */
		int infoPortrait;   /* touchpad is a portrait */
		int infoSensor;     /* sensor model */
		int infoHardware;   /* hardware model */
		int infoNewAbs;     /* supports the newabs format */
		int capPen;	    /* can detect a pen */
		int infoSimpleC;    /* supports simple commands */
		int infoGeometry;   /* touchpad dimensions */
		int capExtended;    /* supports extended packets */
		int capSleep;	    /* can be suspended/resumed */
		int capFourButtons; /* has four buttons */
		int capMultiFinger; /* can detect multiple fingers */
		int capPalmDetect;  /* can detect a palm */
		int capPassthrough; /* can passthrough guest packets */
	    } synapticshw_t;

	    See the Synaptics TouchPad Interfacing Guide for more information
	    about the fields in this structure.

     MOUSE_GETMODE mousemode_t *mode
	    The command gets the current operation parameters of the mouse
	    driver.

	    typedef struct mousemode {
		int protocol;	 /* MOUSE_PROTO_XXX */
		int rate;	 /* report rate (per sec), -1 if unknown */
		int resolution;  /* MOUSE_RES_XXX, -1 if unknown */
		int accelfactor; /* acceleration factor */
		int level;	 /* driver operation level */
		int packetsize;  /* the length of the data packet */
		unsigned char syncmask[2]; /* sync. bits */
	    } mousemode_t;

	    The protocol is MOUSE_PROTO_PS2 at the operation level zero and
	    two.  MOUSE_PROTO_SYSMOUSE at the operation level one.

	    The rate is the status report rate (reports/sec) at which the
	    device will send movement report to the host computer.  Typical
	    supported values are 10, 20, 40, 60, 80, 100 and 200.  Some mice
	    may accept other arbitrary values too.

	    The resolution of the pointing device must be one of MOUSE_RES_XXX
	    constants or a positive value.  The greater the value is, the
	    finer resolution the mouse will select.  Actual resolution
	    selected by the MOUSE_RES_XXX constant varies according to the
	    model of mouse.  Typical resolutions are:

	    MOUSE_RES_LOW	    25 ppi
	    MOUSE_RES_MEDIUMLOW     50 ppi
	    MOUSE_RES_MEDIUMHIGH    100 ppi
	    device.

	    level 0    3 bytes
	    level 1    8 bytes
	    level 2    Depends on the model of the device

	    The array syncmask holds a bit mask and pattern to detect the
	    first byte of the data packet.  syncmask[0] is the bit mask to be
	    ANDed with a byte.	If the result is equal to syncmask[1], the
	    byte is likely to be the first byte of the data packet.  Note that
	    this detection method is not 100% reliable, thus, should be taken
	    only as an advisory measure.

     MOUSE_SETMODE mousemode_t *mode
	    The command changes the current operation parameters of the mouse
	    driver as specified in mode.  Only rate, resolution, level and
	    accelfactor may be modifiable.  Setting values in the other field
	    does not generate error and has no effect.

	    If you do not want to change the current setting of a field, put
	    -1 there.  You may also put zero in resolution and rate, and the
	    default value for the fields will be selected.

     MOUSE_READDATA mousedata_t *data
     MOUSE_READSTATE mousedata_t *state
	    These commands are not currently supported by the psm driver.

     MOUSE_GETSTATUS mousestatus_t *status
	    The command returns the current state of buttons and movement
	    counts as described in mouse(4).


FILES

     /dev/psm0	 `non-blocking' device node
     /dev/bpsm0  `blocking' device node under devfs.


EXAMPLES

     In order to install the psm driver, you need to add

	   device atkbdc
	   device psm

     to your kernel configuration file, and put the following lines to
     /boot/device.hints.

	   hint.atkbdc.0.at="isa"
	   hint.atkbdc.0.port="0x060"
	   hint.psm.0.at="atkbdc"
	   hint.psm.0.irq="12"

     If you add the following statement to /boot/device.hints,

	   hint.psm.0.flags="0x2000"

     you will add the optional code to stimulate the pointing device after the
     `resume' event.

	   hint.psm.0.flags="0x24"


     where X the device ID code returned by the found pointing device.	See
     MOUSE_GETINFO for known IDs.

     At debug level 1 more information will be logged while the driver probes
     the auxiliary port (mouse port).  Messages are logged with the LOG_KERN
     facility at the LOG_DEBUG level (see syslogd(8)).

	   psm0: current command byte:xxxx
	   kbdio: TEST_AUX_PORT status:0000
	   kbdio: RESET_AUX return code:00fa
	   kbdio: RESET_AUX status:00aa
	   kbdio: RESET_AUX ID:0000
	   [...]
	   psm: status 00 02 64
	   psm0 irq 12 on isa
	   psm0: model AAAA, device ID X, N buttons
	   psm0: config:00000www, flags:0000uuuu, packet size:M
	   psm0: syncmask:xx, syncbits:yy

     The first line shows the command byte value of the keyboard controller
     just before the auxiliary port is probed.	It usually is 4D, 45, 47 or
     65, depending on how the motherboard BIOS initialized the keyboard con-
     troller upon power-up.

     The second line shows the result of the keyboard controller's test on the
     auxiliary port interface, with zero indicating no error; note that some
     controllers report no error even if the port does not exist in the sys-
     tem, however.

     The third through fifth lines show the reset status of the pointing
     device.  The functioning device should return the sequence of FA AA <ID>.
     The ID code is described above.

     The seventh line shows the current hardware settings.  These bytes are
     formatted as follows:

     Byte 1
	     bit 7  Reserved.
	     bit 6  0 - stream mode, 1 - remote mode.  In the stream mode, the
		    pointing device sends the device status whenever its state
		    changes.  In the remote mode, the host computer must
		    request the status to be sent.  The psm driver puts the
		    device in the stream mode.
	     bit 5  Set if the pointing device is currently enabled.  Other-
		    wise zero.
	     bit 4  0 - 1:1 scaling, 1 - 2:1 scaling.  1:1 scaling is the
		    default.
	     bit 3  Reserved.
	     bit 2  Left button status; set if pressed.
	     bit 1  Middle button status; set if pressed.
	     bit 0  Right button status; set if pressed.
     Byte 2
	     bit 7    Reserved.
	     bit 6..0
		      Resolution code: zero through three.  Actual resolution
		      for the resolution code varies from one device to
		      another.

     At debug level 2, much more detailed information is logged.


CAVEATS

     Many pad devices behave as if the first (left) button were pressed if the
     user `taps' the surface of the pad.  In contrast, some pad products, e.g.
     some versions of ALPS GlidePoint and Interlink VersaPad, treat the tap-
     ping action as fourth button events.

     It is reported that Interlink VersaPad requires both HOOKRESUME and
     INITAFTERSUSPEND flags in order to recover from suspended state.  These
     flags are automatically set when VersaPad is detected by the psm driver.

     Some PS/2 mouse models from MouseSystems require to be put in the high
     resolution mode to work properly.	Use the driver flag to set resolution.

     There is not a guaranteed way to re-synchronize with the first byte of
     the packet once we are out of synchronization with the data stream.  How-
     ever, if you are using the XFree86 server and experiencing the problem,
     you may be able to make the X server synchronize with the mouse by
     switching away to a virtual terminal and getting back to the X server,
     unless the X server is accessing the mouse via moused(8).	Clicking any
     button without moving the mouse may also work.


BUGS

     The ioctl command MOUSEIOCREAD has been removed.  It was never functional
     anyway.

     Enabling the extended support for Synaptics touchpads has been reported
     to cause problems with responsivity on some (newer) models of Synaptics
     hardware, particularly those with guest devices.


SEE ALSO

     ioctl(2), syslog(3), atkbdc(4), mouse(4), mse(4), sysmouse(4), moused(8),
     syslogd(8)

     Synaptics TouchPad Interfacing Guide, http://www.synaptics.com/.


AUTHORS

     The psm driver is based on the work done by quite a number of people,
     including Eric Forsberg, Sandi Donno, Rick Macklem, Andrew Herbert,
     Charles Hannum, Shoji Yuen and Kazutaka Yokota to name the few.

     This manual page was written by Kazutaka Yokota <yokota@FreeBSD.org>.

FreeBSD 5.4		      September 29, 2004		   FreeBSD 5.4

SPONSORED LINKS




Man(1) output converted with man2html , sed , awk