converting appletouch to usb autosuspend again...

Previous thread: [PATCH] kmemtrace: SLUB hooks for caller-tracking functions. by Eduard - Gabriel Munteanu on Sunday, August 24, 2008 - 10:49 am. (4 messages)

Next thread: OpenBSM format by Matteo Michelini on Sunday, August 24, 2008 - 1:41 pm. (1 message)
From: Soeren Sonnenburg
Date: Saturday, August 23, 2008 - 2:00 pm

Dear all,

I wonder whether anyone else tried to get appletouch usb autosuspend to
work. I've seen Oliver's patch but as it kept oopsing on me and I
couldn't parse the usb_mark_last_busy logic I came up with the attached
patch against (current git; at least didn't oops for me over the last
several days and suspend/resume cycles).

However things I don't understand, 

a) is autosuspend on the appletouch driver used at all (how can I find
out)

b) do I need dev->intf->needs_remote_wakeup = 1; ?

c) is line 33 in the patch safe to do ?

And while we are at it I am still seeing these X falls back to hid mouse
mode, only switching to console and back resolves this (looks like this
only worked in previous kernels as resume from s2ram took a lot longer
due to the IDE driver doing a couple of resets) - is there anything one
could do about it?

Soeren

From: Oliver Neukum
Date: Sunday, August 24, 2008 - 11:39 am

Compile your kernel with CONFIG_USB_DEBUG and autosuspend will be logged.



Post a log.

	Regards
		Oliver

--

From: Soeren Sonnenburg
Date: Thursday, August 28, 2008 - 8:41 am

Do you have an updated version of your patch that applies to

OK, indeed it never autosuspends... I guess this is this due to the
keyboard and the mice being on the same usb port and as the kbd part

Well reaching this line the touchpad is idling (hasn't been touched+no
button was pressed) - I somehow wanted to force it to suspend in this

My fault. I was still rmmod'ing appletouch before suspending. It works
perfectly + reliably the way it is.

Thanks,
Soeren
--

Previous thread: [PATCH] kmemtrace: SLUB hooks for caller-tracking functions. by Eduard - Gabriel Munteanu on Sunday, August 24, 2008 - 10:49 am. (4 messages)

Next thread: OpenBSM format by Matteo Michelini on Sunday, August 24, 2008 - 1:41 pm. (1 message)