LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 05-19-2010, 12:19 PM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Rep: Reputation: 16
usb power management (suspend) gone in 2.6.34?!


Hi, the entries in /sys/bus/usb/devices/.../power that permitted me to set the suspend options, like power/level and power/autosuspend, seem to be gone in 2.6.34. Any hints where I can find them? It seems like they SHOULD be there, according to Documentation/usb/power-management.txt in the kernel source tree.
 
Old 05-19-2010, 05:05 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Did you enable USB selective suspend/resume and wakeup?

Last edited by serafean; 05-19-2010 at 05:08 PM.
 
Old 05-20-2010, 01:43 AM   #3
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by serafean View Post
Did you enable USB selective suspend/resume and wakeup?
When I checked the configuration, which was generated from a 2.6.33.3 kernel configuration (where the USB suspend option WAS enabled), it seems that those options were not available any more. When I searched for USB_SUSPEND in menuconfig the help text said that this options now is dependent on PM_RUNTIME, which it wasn't before this kernel. According to http://comments.gmane.org/gmane.linu...general/30876:
Quote:
we make USB_SUSPEND depend on PM_RUNTIME instead of CONFIG_PM
I enabled that option, and then USB_SUSPEND was available again in the configuration. I haven't tried to compile with this new configuration yet, will get back later. By the way, since I didn't have PM_RUNTIME enabled before this kernel (I didn't feel the need for it), did I miss any other power saving features? I don't know if 'SATA Aggressive Link Power Management' is dependent on this, for example.
 
Old 05-20-2010, 11:05 AM   #4
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Olaus View Post
When I searched for USB_SUSPEND in menuconfig the help text said that this options now is dependent on PM_RUNTIME, which it wasn't before this kernel config.
I enabled that option, and then USB_SUSPEND was available again in the configuration. I haven't tried to compile with this new configuration yet, will get back later.
Compilation and suspending worked like a charm with PM_RUNTIME enabled. Case closed. I think that the 'make silentoldconfig' command should have fixed this, though.
 
Old 05-21-2010, 04:33 AM   #5
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Did a bit more reading (kernelnewbies.org) and found that this new dependency might be a consequence of asynchronous suspending (all buses : SATA,SCSI, USB...). just a thought added for completeness.
 
Old 05-21-2010, 03:00 PM   #6
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.1 multilib
Posts: 112

Original Poster
Rep: Reputation: 16
A warning: According to http://permalink.gmane.org/gmane.lin....general/29764 the new control attribute under the power directory is supposed to act as the level attribute (which will be deprecated next year), BUT when I changed "level" to "control" in my rc.local, as in
Code:
echo -n "auto" > /sys/bus/usb/devices/2-8/power/control
the unit did not autosuspend. I had to replace control with level again in order for autosuspend to work. Obviously this is a bug?
 
Old 02-09-2011, 06:17 AM   #7
kebabbrullen
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Question USB power suspend problems in 2.6.37

I used to be able to suspend with my previous kernels that was older than 2.6.33.
My new kernel IS compiled with USB_SUSPEND support but I still have problems.
When I do "echo -n suspend > control" (or > level) I get this error message:

-su: echo: write error: Invalid argument

(I can echo "on" and "auto" to control without problems)

My current kernel is 2.6.37 but I have the same problem in 2.6.35 and the computer is a Hewlett-Packard -HP Compaq 8000 Elite.

Anyone has any suggestions?

Last edited by kebabbrullen; 02-09-2011 at 06:18 AM.
 
Old 02-10-2011, 10:15 AM   #8
kebabbrullen
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Posting new thread for this as its marked as solved.


Quote:
Originally Posted by kebabbrullen View Post
I used to be able to suspend with my previous kernels that was older than 2.6.33.
My new kernel IS compiled with USB_SUSPEND support but I still have problems.
When I do "echo -n suspend > control" (or > level) I get this error message:

-su: echo: write error: Invalid argument

(I can echo "on" and "auto" to control without problems)

My current kernel is 2.6.37 but I have the same problem in 2.6.35 and the computer is a Hewlett-Packard -HP Compaq 8000 Elite.

Anyone has any suggestions?
 
  


Reply

Tags
kernel, suspend, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to suspend power on a particular usb port of laptop ? @mi|- Linux - Laptop and Netbook 3 04-21-2010 03:53 AM
Disabling USB power management for external HD Gallifrey Linux - Hardware 2 03-12-2010 11:02 AM
USB power management? Want to charge my mobile/cell/handy phone with USB port. icy-flame Linux - General 1 05-23-2009 06:01 PM
KDE4 Power Management constantly wants to suspend laptop ph73nt Linux - Laptop and Netbook 0 03-16-2009 02:54 PM
A question about power management of usb smhs Linux - Hardware 2 08-29-2005 01:21 AM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration