public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Powering down the USB controller
@ 2012-12-29  4:45 Grant
  2013-01-03 23:03 ` Paul Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Grant @ 2012-12-29  4:45 UTC (permalink / raw
  To: Gentoo mailing list

I'm trying to get a USB sound card to behave in a certain way which
requires it to think the computer has gone to sleep.  I'm told the
specific signal the sound card looks for is if the USB controller has
been physically powered down.  Should I unload a kernel module to
accomplish this, or do I need to actually put the computer into sleep
mode?

- Grant


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Powering down the USB controller
  2012-12-29  4:45 [gentoo-user] Powering down the USB controller Grant
@ 2013-01-03 23:03 ` Paul Hartman
  2013-01-04  5:24   ` Grant
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Hartman @ 2013-01-03 23:03 UTC (permalink / raw
  To: gentoo-user

On Fri, Dec 28, 2012 at 10:45 PM, Grant <emailgrant@gmail.com> wrote:
> I'm trying to get a USB sound card to behave in a certain way which
> requires it to think the computer has gone to sleep.  I'm told the
> specific signal the sound card looks for is if the USB controller has
> been physically powered down.  Should I unload a kernel module to
> accomplish this, or do I need to actually put the computer into sleep
> mode?

I don't think you can turn USB port off, at best you can suspend it,
which is not truly 100% powered-down. I think you might be able to
power off an entire hub (and never power it back on again until
reboot) but I'm not sure if that will be any better than just
unplugging the cable. You might be able to build some kind of simple
USB on/off switch. :)

Check out /sys/bus/usb/devices/[yourdevice]/power/level for current
status and you can echo different commands to that same file to
attempt to change its status. Check out the power management settings
and documentation in the linux kernel for your options.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Powering down the USB controller
  2013-01-03 23:03 ` Paul Hartman
@ 2013-01-04  5:24   ` Grant
  0 siblings, 0 replies; 3+ messages in thread
From: Grant @ 2013-01-04  5:24 UTC (permalink / raw
  To: Gentoo mailing list

>> I'm trying to get a USB sound card to behave in a certain way which
>> requires it to think the computer has gone to sleep.  I'm told the
>> specific signal the sound card looks for is if the USB controller has
>> been physically powered down.  Should I unload a kernel module to
>> accomplish this, or do I need to actually put the computer into sleep
>> mode?
>
> I don't think you can turn USB port off, at best you can suspend it,
> which is not truly 100% powered-down. I think you might be able to
> power off an entire hub (and never power it back on again until
> reboot) but I'm not sure if that will be any better than just
> unplugging the cable. You might be able to build some kind of simple
> USB on/off switch. :)
>
> Check out /sys/bus/usb/devices/[yourdevice]/power/level for current
> status and you can echo different commands to that same file to
> attempt to change its status. Check out the power management settings
> and documentation in the linux kernel for your options.

Will do, thanks Paul.

- Grant


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-04  5:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-29  4:45 [gentoo-user] Powering down the USB controller Grant
2013-01-03 23:03 ` Paul Hartman
2013-01-04  5:24   ` Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox