* turning off individual devices @ 2004-03-05 22:21 Keld Jørn Simonsen 2004-03-06 4:21 ` Dino Klein 0 siblings, 1 reply; 4+ messages in thread From: Keld Jørn Simonsen @ 2004-03-05 22:21 UTC (permalink / raw) To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f I try to turn off individual devices by saying echo -n 4 > /sys/devices/pci0000:00/0000:00:1f.6/detach_state But it seems that nothing happens. Am I missing something? Kernel 2.6.3 Keld ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: turning off individual devices 2004-03-05 22:21 turning off individual devices Keld Jørn Simonsen @ 2004-03-06 4:21 ` Dino Klein [not found] ` <Law11-OE414phnpK9h70002b8bd-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Dino Klein @ 2004-03-06 4:21 UTC (permalink / raw) To: Keld Jørn Simonsen, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f check kernel/Documentation/power/devices.txt the value there indicates in which state to put the device after the driver detaches from it. ----- Original Message ----- From: "Keld Jørn Simonsen" <keld-6PR53cSIHaE@public.gmane.org> To: <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Sent: Friday, March 05, 2004 5:21 PM Subject: [ACPI] turning off individual devices > I try to turn off individual devices by saying > > echo -n 4 > /sys/devices/pci0000:00/0000:00:1f.6/detach_state > > But it seems that nothing happens. Am I missing something? > Kernel 2.6.3 > > Keld > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Acpi-devel mailing list > Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/acpi-devel > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <Law11-OE414phnpK9h70002b8bd-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>]
* Re: turning off individual devices [not found] ` <Law11-OE414phnpK9h70002b8bd-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> @ 2004-03-07 9:06 ` Keld Jørn Simonsen 2004-03-07 17:14 ` Dino Klein 0 siblings, 1 reply; 4+ messages in thread From: Keld Jørn Simonsen @ 2004-03-07 9:06 UTC (permalink / raw) To: Dino Klein Cc: Keld Jørn Simonsen, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Fri, Mar 05, 2004 at 11:21:37PM -0500, Dino Klein wrote: > check kernel/Documentation/power/devices.txt > the value there indicates in which state to put the device after the driver detaches from it. Yes, I did read that document before posting. That document says that: A value of 4 indicates that the device should be shutdown, so ->shutdown() will be called for that device. But it does not seem to have an effect. And I do not seem to have a driver running for that device. But does that matter whether the device is in use or not? Or should there be an error message if the device is in use? > ----- Original Message ----- > From: "Keld Jørn Simonsen" <keld-6PR53cSIHaE@public.gmane.org> > To: <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> > Sent: Friday, March 05, 2004 5:21 PM > Subject: [ACPI] turning off individual devices > > > > I try to turn off individual devices by saying > > > > echo -n 4 > /sys/devices/pci0000:00/0000:00:1f.6/detach_state > > > > But it seems that nothing happens. Am I missing something? > > Kernel 2.6.3 > > > > Keld ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: turning off individual devices 2004-03-07 9:06 ` Keld Jørn Simonsen @ 2004-03-07 17:14 ` Dino Klein 0 siblings, 0 replies; 4+ messages in thread From: Dino Klein @ 2004-03-07 17:14 UTC (permalink / raw) To: Keld Jørn Simonsen; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f As I said, according to the docs "detach_state" is the state in which to put the device after you "rmmod" its driver, so I wouldn't expect any immediate results when you put any value into it. Also, you might want to take a look at a posting I just did to the kernel list, titled "PCI, PM, & sysfs interaction", which is the result of playing around with "/sys/..../power/state", trying to get my NIC into D1/D2/D3. The conclusions from my experiment is that it is rather broken. ----- Original Message ----- From: "Keld Jørn Simonsen" <keld-6PR53cSIHaE@public.gmane.org> To: "Dino Klein" <dinoklein-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> Cc: "Keld Jørn Simonsen" <keld-6PR53cSIHaE@public.gmane.org>; <acpi-devel@lists.sourceforge.net> Sent: Sunday, March 07, 2004 4:06 AM Subject: Re: [ACPI] turning off individual devices On Fri, Mar 05, 2004 at 11:21:37PM -0500, Dino Klein wrote: > check kernel/Documentation/power/devices.txt > the value there indicates in which state to put the device after the driver detaches from it. Yes, I did read that document before posting. That document says that: A value of 4 indicates that the device should be shutdown, so ->shutdown() will be called for that device. But it does not seem to have an effect. And I do not seem to have a driver running for that device. But does that matter whether the device is in use or not? Or should there be an error message if the device is in use? > ----- Original Message ----- > From: "Keld Jørn Simonsen" <keld-6PR53cSIHaE@public.gmane.org> > To: <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> > Sent: Friday, March 05, 2004 5:21 PM > Subject: [ACPI] turning off individual devices > > > > I try to turn off individual devices by saying > > > > echo -n 4 > /sys/devices/pci0000:00/0000:00:1f.6/detach_state > > > > But it seems that nothing happens. Am I missing something? > > Kernel 2.6.3 > > > > Keld ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-03-07 17:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-05 22:21 turning off individual devices Keld Jørn Simonsen
2004-03-06 4:21 ` Dino Klein
[not found] ` <Law11-OE414phnpK9h70002b8bd-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
2004-03-07 9:06 ` Keld Jørn Simonsen
2004-03-07 17:14 ` Dino Klein
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox