Re: PS/2 Mouse Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i am not an expert for ps2 mouse,but i find a article about it.
http://www.computer-engineering.org/ps2mouse/

note:
there is a conclusion about command set "
Command Set:

The following is the set of command accepted by the standard PS/2
mouse.  If the mouse is in Stream mode, the host should disable data
reporting (command F5h) before sending any other commands.
"

IMO, i think before u set your sample rate,u need firstly disable data
reporting.

So i think your operation sequence maybe has some problem.

BRs,

Lin

2009/7/21 Yousef Alhashemi <yousef.alhashemi@xxxxxxxxx>:
> Hello again,
>
> I'm sorry to post about this again, but I didn't get any response last time
> and I'm just wondering if anyone can explain this behavior for me. Shouldn't
> changing psmouse_rate change the frequency at which the mouse polling
> routines (or whatever) get data from the mouse?
>
> Thanks,
> Yousef
>
>
> 2009/4/25 Yousef Alhashemi <yousef.alhashemi@xxxxxxxxx>
>
>> Hello list,
>>
>> So I'm messing around with the PS/2 mouse driver
>> (drivers/input/mouse/psmouse-base.c), and I'm wondering what the
>> psmouse_rate variable is for. From the source file itself, the rate
>> parameter of the module is described as "Report rate, in reports per
>> second". The description is pretty straightforward, but I'm asking because
>> when I changed that value to 1 (i.e. the mouse is now supposed to report
>> changes in state every one second), the mouse was still very responsive (and
>> the cursor location was updated immediately as opposed to updating every
>> full second as I was expecting). In other words, changing psmouse_rate from
>> 100 to 1 didn't seem to have any effects on the "report rate" (if my
>> understanding of "report rate" is correct).
>>
>> Thanks,
>> Yousef
>>
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux