Re: converting appletouch to usb autosuspend...
On Monday 14 May 2007 06:50:39 Oliver Neukum wrote: > Am Montag, 14. Mai 2007 02:53 schrieb Alistair John Strachan: > > > What did you use instead of hci_usb then ? usbkbd ? This won't give you > > > the special keys etc... > > > > Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's > > got nothing to do with the keyboard. I unloaded both appletouch AND > > hci_usb. > > If you want large power savings from USB autosuspend, all > loaded drivers must support autosuspend. The HCD can suspend > only if all connected devices are suspended. > Are you willing to test patches for HID & the new last_busy based > usb core infrastructure? Of course. -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
Am Samstag, 12. Mai 2007 23:40 schrieb Jiri Kosina: > Oliver, do you have any update please? Not yet. You can have them tomorrow. Regards Oliver - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
Am Samstag, 12. Mai 2007 23:40 schrieb Jiri Kosina: Oliver, do you have any update please? Not yet. You can have them tomorrow. Regards Oliver - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Monday 14 May 2007 06:50:39 Oliver Neukum wrote: Am Montag, 14. Mai 2007 02:53 schrieb Alistair John Strachan: What did you use instead of hci_usb then ? usbkbd ? This won't give you the special keys etc... Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's got nothing to do with the keyboard. I unloaded both appletouch AND hci_usb. If you want large power savings from USB autosuspend, all loaded drivers must support autosuspend. The HCD can suspend only if all connected devices are suspended. Are you willing to test patches for HID the new last_busy based usb core infrastructure? Of course. -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
Am Montag, 14. Mai 2007 02:53 schrieb Alistair John Strachan: > > What did you use instead of hci_usb then ? usbkbd ? This won't give you > > the special keys etc... > > Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's got > nothing to do with the keyboard. I unloaded both appletouch AND hci_usb. If you want large power savings from USB autosuspend, all loaded drivers must support autosuspend. The HCD can suspend only if all connected devices are suspended. Are you willing to test patches for HID & the new last_busy based usb core infrastructure? Regards Oliver - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Monday 14 May 2007 01:46:10 Soeren Sonnenburg wrote: > On Sat, 2007-05-12 at 22:47 +0100, Alistair John Strachan wrote: > > On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: > > > Dear all, > > [...] > > > > While we are at it usb related powerhogs on this macbook pro are > > > uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) > > > too... > > > > I've found that hci_usb also hogs power on the Macbook; blacklisting this > > module cuts down HZ considerably. I also found appletouch consumed ticks, > > I guess without loading appletouch ? Then there really is something in > there that needs to be fixed.. > > > just as you did. > > What did you use instead of hci_usb then ? usbkbd ? This won't give you > the special keys etc... Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's got nothing to do with the keyboard. I unloaded both appletouch AND hci_usb. > > uhci_hcd then drops to noise; my Macbook's sitting on 10W with the > > backlight on minimum, which is about what it can manage in OS X on > > maximum life settings. > > Thats quite some improvement... Yes indeed. The only thing left to improve, as I understand it, is enabling the C4/C4e power states available on the Core 2 Duo, which don't currently seem to be utilised by Linux. I notice, however, that the screenshot on the Intel Powertop page does seem to have these states available? -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Sat, 2007-05-12 at 22:47 +0100, Alistair John Strachan wrote: > On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: > > Dear all, [...] > > While we are at it usb related powerhogs on this macbook pro are > > uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) > > too... > > I've found that hci_usb also hogs power on the Macbook; blacklisting this > module cuts down HZ considerably. I also found appletouch consumed ticks, I guess without loading appletouch ? Then there really is something in there that needs to be fixed.. > just as you did. What did you use instead of hci_usb then ? usbkbd ? This won't give you the special keys etc... > uhci_hcd then drops to noise; my Macbook's sitting on 10W with the backlight > on minimum, which is about what it can manage in OS X on maximum life > settings. Thats quite some improvement... Soeren. -- Sometimes, there's a moment as you're waking, when you become aware of the real world around you, but you're still dreaming. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Sat, 2007-05-12 at 22:47 +0100, Alistair John Strachan wrote: On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: Dear all, [...] While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... I've found that hci_usb also hogs power on the Macbook; blacklisting this module cuts down HZ considerably. I also found appletouch consumed ticks, I guess without loading appletouch ? Then there really is something in there that needs to be fixed.. just as you did. What did you use instead of hci_usb then ? usbkbd ? This won't give you the special keys etc... uhci_hcd then drops to noise; my Macbook's sitting on 10W with the backlight on minimum, which is about what it can manage in OS X on maximum life settings. Thats quite some improvement... Soeren. -- Sometimes, there's a moment as you're waking, when you become aware of the real world around you, but you're still dreaming. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Monday 14 May 2007 01:46:10 Soeren Sonnenburg wrote: On Sat, 2007-05-12 at 22:47 +0100, Alistair John Strachan wrote: On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: Dear all, [...] While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... I've found that hci_usb also hogs power on the Macbook; blacklisting this module cuts down HZ considerably. I also found appletouch consumed ticks, I guess without loading appletouch ? Then there really is something in there that needs to be fixed.. just as you did. What did you use instead of hci_usb then ? usbkbd ? This won't give you the special keys etc... Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's got nothing to do with the keyboard. I unloaded both appletouch AND hci_usb. uhci_hcd then drops to noise; my Macbook's sitting on 10W with the backlight on minimum, which is about what it can manage in OS X on maximum life settings. Thats quite some improvement... Yes indeed. The only thing left to improve, as I understand it, is enabling the C4/C4e power states available on the Core 2 Duo, which don't currently seem to be utilised by Linux. I notice, however, that the screenshot on the Intel Powertop page does seem to have these states available? -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
Am Montag, 14. Mai 2007 02:53 schrieb Alistair John Strachan: What did you use instead of hci_usb then ? usbkbd ? This won't give you the special keys etc... Sorry, I wasn't clear. hci_usb is actually part of the BlueZ stack, it's got nothing to do with the keyboard. I unloaded both appletouch AND hci_usb. If you want large power savings from USB autosuspend, all loaded drivers must support autosuspend. The HCD can suspend only if all connected devices are suspended. Are you willing to test patches for HID the new last_busy based usb core infrastructure? Regards Oliver - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: > Dear all, > > I've realized using the great powertop ( http://www.linuxpowertop.org/ ) > that loading the appletouch driver (and touching it once) makes consumes > about 0.3 W even when not touching the pad. As rmmod'ing appletouch > fixes this I wonder why the driver does not do this alone. So my > question is what does one have to do to convert a driver (such as > appletouch) to make use of usb autosuspend except for > > .supports_autosuspend = 1 > > ... > > While we are at it usb related powerhogs on this macbook pro are > uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) > too... I've found that hci_usb also hogs power on the Macbook; blacklisting this module cuts down HZ considerably. I also found appletouch consumed ticks, just as you did. uhci_hcd then drops to noise; my Macbook's sitting on 10W with the backlight on minimum, which is about what it can manage in OS X on maximum life settings. -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
On Sat, 12 May 2007, Alan Stern wrote: > > While we are at it usb related powerhogs on this macbook pro are > > uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) > > too... > They would use less power if the UHCI host controller were suspended. > But obviously it cannot be suspended while devices attached to it (such > as the USB keyboard and the appletouch device) remain active. A sidenote for completness, when this has been mentioned: Oliver has been working on autosuspend support for HID devices, he sent me some (yet incomplete) patches some time ago. So autosuspending of USB keyboards/mice/etc. is being worked on. Oliver, do you have any update please? Thanks, -- Jiri Kosina - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
On Sat, 12 May 2007, Soeren Sonnenburg wrote: > Dear all, > > I've realized using the great powertop ( http://www.linuxpowertop.org/ ) > that loading the appletouch driver (and touching it once) makes consumes > about 0.3 W even when not touching the pad. As rmmod'ing appletouch > fixes this I wonder why the driver does not do this alone. So my > question is what does one have to do to convert a driver (such as > appletouch) to make use of usb autosuspend except for > > .supports_autosuspend = 1 One has to add appropriate calls to usb_autopm_get_interface() and usb_autopm_put_interface(), or equally well, to usb_autopm_enable() and usb_autopm_disable(). One might also need to set intf->needs_remote_wakeup to 1 in the probe routine. > While we are at it usb related powerhogs on this macbook pro are > uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) > too... They would use less power if the UHCI host controller were suspended. But obviously it cannot be suspended while devices attached to it (such as the USB keyboard and the appletouch device) remain active. Alan Stern - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
converting appletouch to usb autosuspend...
Dear all, I've realized using the great powertop ( http://www.linuxpowertop.org/ ) that loading the appletouch driver (and touching it once) makes consumes about 0.3 W even when not touching the pad. As rmmod'ing appletouch fixes this I wonder why the driver does not do this alone. So my question is what does one have to do to convert a driver (such as appletouch) to make use of usb autosuspend except for .supports_autosuspend = 1 ... While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... Soeren. -- Sometimes, there's a moment as you're waking, when you become aware of the real world around you, but you're still dreaming. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
converting appletouch to usb autosuspend...
Dear all, I've realized using the great powertop ( http://www.linuxpowertop.org/ ) that loading the appletouch driver (and touching it once) makes consumes about 0.3 W even when not touching the pad. As rmmod'ing appletouch fixes this I wonder why the driver does not do this alone. So my question is what does one have to do to convert a driver (such as appletouch) to make use of usb autosuspend except for .supports_autosuspend = 1 ... While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... Soeren. -- Sometimes, there's a moment as you're waking, when you become aware of the real world around you, but you're still dreaming. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
On Sat, 12 May 2007, Soeren Sonnenburg wrote: Dear all, I've realized using the great powertop ( http://www.linuxpowertop.org/ ) that loading the appletouch driver (and touching it once) makes consumes about 0.3 W even when not touching the pad. As rmmod'ing appletouch fixes this I wonder why the driver does not do this alone. So my question is what does one have to do to convert a driver (such as appletouch) to make use of usb autosuspend except for .supports_autosuspend = 1 One has to add appropriate calls to usb_autopm_get_interface() and usb_autopm_put_interface(), or equally well, to usb_autopm_enable() and usb_autopm_disable(). One might also need to set intf-needs_remote_wakeup to 1 in the probe routine. While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... They would use less power if the UHCI host controller were suspended. But obviously it cannot be suspended while devices attached to it (such as the USB keyboard and the appletouch device) remain active. Alan Stern - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [linux-usb-devel] converting appletouch to usb autosuspend...
On Sat, 12 May 2007, Alan Stern wrote: While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... They would use less power if the UHCI host controller were suspended. But obviously it cannot be suspended while devices attached to it (such as the USB keyboard and the appletouch device) remain active. A sidenote for completness, when this has been mentioned: Oliver has been working on autosuspend support for HID devices, he sent me some (yet incomplete) patches some time ago. So autosuspending of USB keyboards/mice/etc. is being worked on. Oliver, do you have any update please? Thanks, -- Jiri Kosina - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: converting appletouch to usb autosuspend...
On Saturday 12 May 2007 19:51:26 Soeren Sonnenburg wrote: Dear all, I've realized using the great powertop ( http://www.linuxpowertop.org/ ) that loading the appletouch driver (and touching it once) makes consumes about 0.3 W even when not touching the pad. As rmmod'ing appletouch fixes this I wonder why the driver does not do this alone. So my question is what does one have to do to convert a driver (such as appletouch) to make use of usb autosuspend except for .supports_autosuspend = 1 ... While we are at it usb related powerhogs on this macbook pro are uhci_hcd (usb keyboard) and usb_hcd_poll_rh_status (rh_timer_func) too... I've found that hci_usb also hogs power on the Macbook; blacklisting this module cuts down HZ considerably. I also found appletouch consumed ticks, just as you did. uhci_hcd then drops to noise; my Macbook's sitting on 10W with the backlight on minimum, which is about what it can manage in OS X on maximum life settings. -- Cheers, Alistair. Final year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/