Bug 17926

Summary: psm device problems with apm resume
Product: Base System Reporter: Patrik Sundberg <ps>
Component: i386Assignee: yokota <yokota>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   

Description Patrik Sundberg 2000-04-11 13:30:01 UTC
	After an apm resume I always get this message:
	Apr 11 13:38:10 radiac /kernel: psmintr: out of sync (0080 != 0000).
	
	and I have to restart moused in order to get my mouse working
	again.

Fix: 

unknown..
How-To-Repeat: 
	use a ps/2 mouse with moused - let your computer go to standby
	or suspended mode and then resume.
Comment 1 Sheldon Hearn 2000-04-11 14:25:00 UTC
On Tue, 11 Apr 2000 14:25:13 +0200, Patrik Sundberg wrote:

> >Number:         17926
> >Category:       i386
> >Synopsis:       psm device problems with apm resume

Hi gentlemen,

Could either of you take a look at this?  I haven't assigned the PR,
since I'm uncertain which of the two of you is best qualified to look at
it. :-)

> >Description:
> 
> 	After an apm resume I always get this message:
> 	Apr 11 13:38:10 radiac /kernel: psmintr: out of sync (0080 != 0000).
> 	
> 	and I have to restart moused in order to get my mouse working
> 	again.
> 
> >How-To-Repeat:
> 
> 	use a ps/2 mouse with moused - let your computer go to standby
> 	or suspended mode and then resume.

Ciao,
Sheldon.
Comment 2 Warner Losh 2000-04-11 16:54:23 UTC
In message <7959.955459500@axl.ops.uunet.co.za> Sheldon Hearn writes:
: Could either of you take a look at this?  I haven't assigned the PR,
: since I'm uncertain which of the two of you is best qualified to look at
: it. :-)

This is a case of the psm device not coming back on reset.  yokota-san
likely is best to look at it.  Likely all that is needed is to make
the reset on resume default.

Warner
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-04-12 09:06:14 UTC
Responsible Changed
From-To: freebsd-bugs->yokota

Warner reckons that Kazu might be able to tackle this one. 

Comment 4 yokota 2000-04-17 09:38:06 UTC
>>Number:         17926
>>Category:       i386
>>Synopsis:       psm device problems with apm resume
[...]
>>Release:        FreeBSD 4.0-STABLE i386
>>Organization:
>none
>>Environment:
>
>	FreeBSD radiac.mine.nu 4.0-STABLE FreeBSD 4.0-STABLE #9: Sat Apr 1
>	05:43:35 CEST 2000 root@radiac.mine.nu:/usr/src/sys/compile/RADIAC i386
>
>>Description:
>
>	After an apm resume I always get this message:
>	Apr 11 13:38:10 radiac /kernel: psmintr: out of sync (0080 != 0000).

We need some more information.  Please describe your hardware
environment: motherboard, cpu, chip set (if known), mouse model (and
model number if you can find), etc.

Also, please boot the kernel with the verbose flag (type "boot -v" at
the loader prompt), and send us /var/log/dmesg.out for inspection.

>	and I have to restart moused in order to get my mouse working
>	again.

Is the above error message generated only once after the resume
event, or you see the message over and over again?

Does it go away after you restart moused?

Kazu
Comment 5 Matthew N. Dodd freebsd_committer freebsd_triage 2003-06-22 07:58:47 UTC
State Changed
From-To: open->closed

Try the following kernel options: 
options         PSM_HOOKRESUME 
options         PSM_RESETAFTERSUSPEND 

or the HOOKRESUME, INITAFTERSUSPEND driver flags.