[ltp] T21 trackpoint loses settings on suspend until reboot

Nigel Metheringham linux-thinkpad@www.bm-soft.com
28 Sep 2001 16:57:54 +0100


On Fri, 2001-09-28 at 08:34, Till.Straumann@TU-Berlin.de wrote:
> Nigel
> Strange (other people have reported T21 to work - in fact I don't know
> of any machine using a [IBM] trackpoint which does not work)...
> 
>  - does the syslog give any clues (tpf4 writes messages to syslog
>    unless -d is specified) - what messages can you find there?
>  - do you run it with SUID permission or as root?
>  - after resuming the machine - is tp4d still running (check 'ps axl')?
>  - does your kernel have APM support and is libapm installed?

Syslog:-
Sep 28 16:46:32 gaspode tp4d: Trackpoint successfully detected; firmware
secondary id: 0x0e-0x01
Sep 28 16:46:32 gaspode tp4d: Trackpoint daemon, (C) Till Straumann 2000
/ GPL (release $Name: tp4utils_1_2_beta $)
Sep 28 16:47:24 gaspode apmd[443]: System Suspend
Sep 28 16:47:40 gaspode netfs: Mounting other filesystems:  succeeded
Sep 28 16:47:45 gaspode apmd[443]: Normal Resume after 00:00:21 (100%
unknown) AC power
Sep 28 16:47:45 gaspode apmd[443]: Now using AC Power
Sep 28 16:47:45 gaspode netfs: Mounting other filesystems:  succeeded
Sep 28 16:47:46 gaspode apmd[443]: Normal Resume after 00:00:22 (100%
unknown) AC power

Its run from rc.local on boot, so as root:-
  action "Thinkpad trackpoint configuration" tp4d -Z -b -S 0xc0

It is still running after suspend/resume - strace shows it to be in a
select wait, with periodic interrupts from alarm with a few signals
played with during each cycles.

However the response of the trackpoint is rather different... and even
killing tp4d and restarting it does not fix this.

The apm library is in place - statically linked to tp4d, comes from the
RH apmd package, version 3.0final release 29.

Kernel has APM support 
	CONFIG_APM=y
	# CONFIG_APM_IGNORE_USER_SUSPEND is not set
	# CONFIG_APM_DO_ENABLE is not set
	CONFIG_APM_CPU_IDLE=y
	CONFIG_APM_DISPLAY_BLANK=y
	# CONFIG_APM_RTC_IS_GMT is not set
	CONFIG_APM_ALLOW_INTS=y
	# CONFIG_APM_REAL_MODE_POWER_OFF is not set

Kernel is 2.4.9-ac12, but I have seen this with other versions.

Thanks
	Nigel.


----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html