Re: X Intel driver update. [TESTING NEEDED]

2011-09-14 Thread SASANO Takayoshi
Hello,

I tried with these software after replacing driver, there is no problem.

mlterm (terminal emulator)
FireFox (web browser)
mplayer (media player)
F-1 spirit remake (game uses 3D function)

Here's dmesg:

OpenBSD 5.0 (GENERIC.MP) #63: Wed Aug 17 10:14:30 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4248735744 (4051MB)
avail mem = 4121513984 (3930MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe84b0 (50 entries)
bios0: vendor Intel Corp. version TYG4110H.86A.0045.2010.0706.1910 date 07/06/
2010
bios0: Intel Corporation DG41TY
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET
acpi0: wakeup devices P0P1(S3) P0P2(S4) PS2K(S3) PS2M(S3) UAR1(S3) USB0(S3) USB1
(S3) USB2(S3) USB3(S3) EUSB(S4) P0P9(S4) P0PA(S4) P0PB(S4) P0PC(S4) P0PD(S4) P0P
E(S4) PWRB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Pentium(R) Dual-Core CPU E6700 @ 3.20GHz, 3200.34 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3
,CX16,xTPR,PDCM,XSAVE,NXE,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 266MHz

(snip)

vga1 at pci0 dev 2 function 0 Intel G41 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 4 int 16
drm0 at inteldrm0
Intel G41 Video rev 0x03 at pci0 dev 2 function 1 not configured

SASANO Takayoshi u...@mx5.nisiq.net



Ηχοσύστημα Αυτοκινήτου με Internet, iPod, ψηφιακή Tηλεόραση......

2011-09-14 Thread e-techshop.gr
Untitled

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
1.jpg]



Re: Support for ALPS touchpads

2011-09-14 Thread Alexandr Shadchin
On Tue, Sep 06, 2011 at 02:25:47PM +0200, Martin Pieuchot wrote:
 On 04/09/11(Sun) 21:36, Martin Pieuchot wrote:
  The diff below adds support for ALPS touchpads to the pms(4) driver.
  
  I'm looking for testers with or without ALPS hardware, especially if you
  have a touchpad, to be sure it doesn't break anything.
  
  Currently, ALPS DualPoint are untested and support for special buttons
  (back, forward, etc) is missing because I don't have such hardware.
  
  I use the following synaptics(4) configuration for edge scrolling and
  simple left tapping:
  
  xinput set-prop /dev/wsmouse0 Synaptics Finger 25 30 60
  xinput set-int-prop /dev/wsmouse0 Synaptics Tap Action 8 0 0 2 3 1 0 0
  xinput set-int-prop /dev/wsmouse0 Synaptics Click Action 8 1 0 0
  xinput set-int-prop /dev/wsmouse0 Synaptics Edge Scrolling 8 1 0 0
  
  
  Compared to the previous version, I left the Y-axis translation because
  it's also needed for the COMPAT mode.
 
 New version of the diff. Recent ALPS touchpads use a totally different
 protocol and are not supported.
 
 Martin
 
 Index: pms.c
 ===
 RCS file: /cvs/src/sys/dev/pckbc/pms.c,v
 retrieving revision 1.21
 diff -u -p -r1.21 pms.c
 --- pms.c 24 Aug 2011 15:34:25 -  1.21
 +++ pms.c 6 Sep 2011 09:19:24 -
 @@ -39,6 +39,14 @@
  #include dev/wscons/wsconsio.h
  #include dev/wscons/wsmousevar.h
  
 +#define DEBUG
 +
 +#ifdef DEBUG
 +#define DPRINTF(x...)do { printf(x); } while (0);
 +#else
 +#define DPRINTF(x...)
 +#endif
 +
  #define DEVNAME(sc)  ((sc)-sc_dev.dv_xname)
  
  #define WSMOUSE_BUTTON(x)(1  ((x) - 1))
 @@ -50,6 +58,7 @@ struct pms_protocol {
  #define PMS_STANDARD 0
  #define PMS_INTELLI  1
  #define PMS_SYNAPTICS2
 +#define PMS_ALPS 3
   u_int packetsize;
   int (*enable)(struct pms_softc *);
   int (*ioctl)(struct pms_softc *, u_long, caddr_t, int, struct proc *);
 @@ -78,6 +87,22 @@ struct synaptics_softc {
  #define SYNAPTICS_PRESSURE   30
  };
  
 +struct alps_softc {
 + int model;
 +#define ALPS_UNSUPPORTED (1  1)
 +#define ALPS_PASSTHROUGH (1  2)
 +
 + int min_x, min_y;
 + int max_x, max_y;
 + int old_fin;
 +
 + /* Compat mode */
 + int wsmode;
 + int old_x, old_y;
 + u_int old_buttons;
 +#define ALPS_PRESSURE40
 +};
 +
  struct pms_softc {   /* driver status information */
   struct device sc_dev;
  
 @@ -98,6 +123,7 @@ struct pms_softc { /* driver status inf
  
   const struct pms_protocol *protocol;
   struct synaptics_softc *synaptics;
 + struct alps_softc *alps;
  
   u_char packet[8];
  
 @@ -116,6 +142,20 @@ static const u_int butmap[8] = {
   WSMOUSE_BUTTON(1) | WSMOUSE_BUTTON(2) | WSMOUSE_BUTTON(3)
  };
  
 +static const struct alps_quirk {
 + int version;
 + int model;
 +} alps_quirks[] = {
 + { 0x2021, ALPS_PASSTHROUGH },
 + { 0x2221, ALPS_PASSTHROUGH },
 + { 0x, ALPS_PASSTHROUGH },
 + { 0x3222, ALPS_PASSTHROUGH },
 + { 0x5212, ALPS_PASSTHROUGH },
 + { 0x6222, ALPS_PASSTHROUGH },
 + { 0x633b, ALPS_PASSTHROUGH },
 + { 0x7326, ALPS_UNSUPPORTED },   /* XXX Uses unknown v3 protocol */
 +};

Using { 0x7326, ALPS_UNSUPPORTED } is not best idea.

Instead 
if (alps-model  ALPS_UNSUPPORTED)
use
if (alps-model == 0)
or even better
#define ALPS_UNSUPPORTED 0
...
if (alps-model == ALPS_UNSUPPORTED)

If the device is not in alps_quirks, then it will automatically be
ALPS_UNSUPPORTED. No need to register each device is not supported.

 +
  int  pmsprobe(struct device *, void *, void *);
  void pmsattach(struct device *, struct device *, void *);
  int  pmsactivate(struct device *, int);
 @@ -150,6 +190,11 @@ int  pms_sync_synaptics(struct pms_softc 
  void pms_proc_synaptics(struct pms_softc *);
  void pms_disable_synaptics(struct pms_softc *);
  
 +int  pms_enable_alps(struct pms_softc *);
 +int  pms_ioctl_alps(struct pms_softc *, u_long, caddr_t, int, struct proc *);
 +int  pms_sync_alps(struct pms_softc *, int);
 +void pms_proc_alps(struct pms_softc *);
 +
  int  synaptics_set_mode(struct pms_softc *, int);
  int  synaptics_query(struct pms_softc *, int, int *);
  int  synaptics_get_hwinfo(struct pms_softc *);
 @@ -160,6 +205,8 @@ int   synaptics_pt_ioctl(void *, u_long, c
  int  synaptics_pt_enable(void *);
  void synaptics_pt_disable(void *);
  
 +int  alps_get_hwinfo(struct pms_softc *);
 +
  struct cfattach pms_ca = {
   sizeof(struct pms_softc), pmsprobe, pmsattach, NULL,
   pmsactivate
 @@ -208,7 +255,16 @@ const struct pms_protocol pms_protocols[
   pms_sync_synaptics,
   pms_proc_synaptics,
   pms_disable_synaptics
 - }
 + },
 + /* ALPS touchpad */
 + {
 + PMS_ALPS, 6,
 + pms_enable_alps,
 + pms_ioctl_alps,
 + pms_sync_alps,
 + 

Has recibido un mensaje multimedia (MMS)

2011-09-14 Thread Mensaje
HAS RECIBIDO UN MENSAJE MULTIMEDIA (MMS)

[IMAGE]

Un amigo/a te ha enviado un mensaje multimedia a traves de nuestro portal
TIGO, el mensaje multimedia (MMS) sera borrado a los 20 dias.

DESCARGAR MENSAJE MULTIMEDIA

___Este servicio es de TIGO



Re: sbin/wsconsctl/util.c (simple diff)

2011-09-14 Thread Alexandr Shadchin
Fixed. Thank you.

On Thu, Sep 15, 2011 at 10:20 AM, patrick keshishian
sids...@boxsoft.com wrote:
 diff before and after patch for wsconsctl output:

 B keyboard.repeat.deln.default=100
 B keyboard.ledstate=0
 B keyboard.encoding=us.swapctrlcaps
 -mouse.type=unknown_15
 +mouse.type=synaptics
 B mouse.rawmode=0
 B mouse.scale=1472,5888,1408,5012,0,88,143
 B mouse1.type=usb


 Index: util.c
 ===
 RCS file: /cvs/obsd/src/sbin/wsconsctl/util.c,v
 retrieving revision 1.53
 diff -u -p util.c
 --- util.c B  B  B 2 Jul 2010 15:47:58 - B  B  B  1.53
 +++ util.c B  B  B 15 Sep 2011 04:14:21 -
 @@ -87,7 +87,8 @@ static const struct nameint mstype_tab[] = {
 B  B  B  B { WSMOUSE_TYPE_LUNA, B  B luna },
 B  B  B  B { WSMOUSE_TYPE_DOMAIN, B domain },
 B  B  B  B { WSMOUSE_TYPE_BLUETOOTH, bluetooth },
 - B  B  B  { WSMOUSE_TYPE_SUN, B  B  sun }
 + B  B  B  { WSMOUSE_TYPE_SUN, B  B  sun },
 + B  B  B  { WSMOUSE_TYPE_SYNAPTICS, B  B  B  synaptics }
 B };

 B static const struct nameint dpytype_tab[] = {



--
Alexandr Shadchin