UEFI BIOS and resume/suspend

Karl Auer kauer at biplane.com.au
Sat Aug 25 10:02:24 UTC 2012


On Sat, 2012-08-25 at 05:33 -0400, Tom H wrote:
> >> On Fri, 2012-08-24 at 17:26 +0100, Colin Law wrote:
> > $ sysctl devices.pci0000:00.0000:00:1a.0.power.wakeup
> > sysctl: cannot stat
> > /proc/sys/devices/pci0000:00/0000:00:1a/0/power/wakeup: No such file
> > or directory
> >
> > I can't find the devices hierarchy anywhere under /proc/sys.
> 
> If it doesn't exists under "/prc/sys/" it can't be modified by sysctl.

It's under /proc, not under /proc/sys so Tom H is right, sysctl is not
the right tool. Sorry about that, I didn't read carefully enough.

Look at the existing upstart scripts in /etc/init, copy one of the
simple ones to a name of your choosing, e.g colin.conf, and change it to
set that control variable you found. You don't really need a "stop"
task. Something like this (untested!):

   # colin

   description     "whatever you like"

   start on runlevel [2345]

   task

   script

   echo disabled > /sys/devices/pci0000:00/0000:00:1a.0/power/wakeup

   end script

The system will then set the variable for you by running the script on
startup.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://www.biplane.com.au/blog

GPG fingerprint: AE1D 4868 6420 AD9A A698 5251 1699 7B78 4EEE 6017
Old fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687





More information about the ubuntu-users mailing list