Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Powering down the USB controller
Date: Thu, 03 Jan 2013 23:05:59
Message-Id: CAEH5T2MmK2w=zTsmGt+hmbLoe2QqM5Mb2heaS6rdAku+OnOPdg@mail.gmail.com
In Reply to: [gentoo-user] Powering down the USB controller by Grant
1 On Fri, Dec 28, 2012 at 10:45 PM, Grant <emailgrant@×××××.com> wrote:
2 > I'm trying to get a USB sound card to behave in a certain way which
3 > requires it to think the computer has gone to sleep. I'm told the
4 > specific signal the sound card looks for is if the USB controller has
5 > been physically powered down. Should I unload a kernel module to
6 > accomplish this, or do I need to actually put the computer into sleep
7 > mode?
8
9 I don't think you can turn USB port off, at best you can suspend it,
10 which is not truly 100% powered-down. I think you might be able to
11 power off an entire hub (and never power it back on again until
12 reboot) but I'm not sure if that will be any better than just
13 unplugging the cable. You might be able to build some kind of simple
14 USB on/off switch. :)
15
16 Check out /sys/bus/usb/devices/[yourdevice]/power/level for current
17 status and you can echo different commands to that same file to
18 attempt to change its status. Check out the power management settings
19 and documentation in the linux kernel for your options.

Replies

Subject Author
Re: [gentoo-user] Powering down the USB controller Grant <emailgrant@×××××.com>