FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-24-2012, 01:48 PM
Colin Law
 
Default UEFI BIOS and resume/suspend

I have a new PC Specialist Genesys IV laptop, which reports itself as
a Clevo W240EU/W250EUQ/W270EUQ. This has a UEFI bios. I have
installed Ubuntu quantal and it is basically running well. One issue
I have is to do with suspend/resume. I can suspend by closing the lid
or choosing the action from the indicator and then resume by opening
the lid or hitting the power button and all is well. The problem is
that, having suspended, if I move the mouse or hit a key on the
external keyboard then it resumes, which is obviously a Bad Thing.

I thought there might be something in the BIOS settings to control
this but apparently not. I am wondering whether it is up to the OS to
control it.

Any ideas anyone?

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-24-2012, 02:36 PM
Steve Flynn
 
Default UEFI BIOS and resume/suspend

On 24 August 2012 14:48, Colin Law <clanlaw@googlemail.com> wrote:

> I thought there might be something in the BIOS settings to control
> this but apparently not. I am wondering whether it is up to the OS to
> control it.
>
> Any ideas anyone?

You've disabled all "Wake on keyboard", "Wake on Lan", etc. options in the BIOS?

--
Steve

When one person suffers from a delusion it is insanity. When many
people suffer from a delusion it is called religion.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-24-2012, 02:54 PM
Colin Law
 
Default UEFI BIOS and resume/suspend

On 24 August 2012 15:36, Steve Flynn <anothermindbomb@gmail.com> wrote:
> On 24 August 2012 14:48, Colin Law <clanlaw@googlemail.com> wrote:
>
>> I thought there might be something in the BIOS settings to control
>> this but apparently not. I am wondering whether it is up to the OS to
>> control it.
>>
>> Any ideas anyone?
>
> You've disabled all "Wake on keyboard", "Wake on Lan", etc. options in the BIOS?

There are no such options, nor anything similar. Not that I can see anyway.

Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-24-2012, 04:26 PM
Colin Law
 
Default UEFI BIOS and resume/suspend

On 24 August 2012 15:54, Colin Law <clanlaw@googlemail.com> wrote:
> On 24 August 2012 15:36, Steve Flynn <anothermindbomb@gmail.com> wrote:
>> On 24 August 2012 14:48, Colin Law <clanlaw@googlemail.com> wrote:
>>
>>> I thought there might be something in the BIOS settings to control
>>> this but apparently not. I am wondering whether it is up to the OS to
>>> control it.
>>>
>>> Any ideas anyone?
>>
>> You've disabled all "Wake on keyboard", "Wake on Lan", etc. options in the BIOS?
>
> There are no such options, nor anything similar. Not that I can see anyway.

I have found this link which seems to be getting me on the right track [1]

If I write disabled to the file
/sys/devices/pci0000:00/0000:00:1a.0/power/wakeup and then suspend the
keyboard no longer triggers a resume. I got the device code by
unplugging and reinserting the keyboard and running dmesg.
Unfortunately when I power cycle it gets set back to enabled, so there
must be something writing to it at boot. No idea what at the moment
though.

[1] http://bernaerts.dyndns.org/linux/220-ubuntu-resume-usb-hid

Colin

>
> Colin

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-24-2012, 09:09 PM
Karl Auer
 
Default UEFI BIOS and resume/suspend

On Fri, 2012-08-24 at 17:26 +0100, Colin Law wrote:
> If I write disabled to the file
> /sys/devices/pci0000:00/0000:00:1a.0/power/wakeup and then suspend the
> keyboard no longer triggers a resume. I got the device code by
> unplugging and reinserting the keyboard and running dmesg.
> Unfortunately when I power cycle it gets set back to enabled, so there
> must be something writing to it at boot. No idea what at the moment
> though.

The right way to manipulate the /proc filesystem is to use the sysctl
program. See "man sysctl".

The /proc filesystem is virtual; it's not on disk, so all your changes
will vanish on reboot.

To make desired changes permanent, edit /etc/sysctl.conf, or create a
new entry in /etc/sysctl.d (read the README there first).

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer@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


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-25-2012, 08:33 AM
Colin Law
 
Default UEFI BIOS and resume/suspend

On 24 August 2012 22:09, Karl Auer <kauer@biplane.com.au> wrote:
> On Fri, 2012-08-24 at 17:26 +0100, Colin Law wrote:
>> If I write disabled to the file
>> /sys/devices/pci0000:00/0000:00:1a.0/power/wakeup and then suspend the
>> keyboard no longer triggers a resume. I got the device code by
>> unplugging and reinserting the keyboard and running dmesg.
>> Unfortunately when I power cycle it gets set back to enabled, so there
>> must be something writing to it at boot. No idea what at the moment
>> though.
>
> The right way to manipulate the /proc filesystem is to use the sysctl
> program. See "man sysctl".
>
> The /proc filesystem is virtual; it's not on disk, so all your changes
> will vanish on reboot.

Hi Karl, thanks for the suggestion, I can't work out (even with
google's help) how to use sysctl to access /sys/devices. Some links
suggested that I should be able to use devices.pci000.... but when I
try I get

$ 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.

Colin


>
> To make desired changes permanent, edit /etc/sysctl.conf, or create a
> new entry in /etc/sysctl.d (read the README there first).
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer@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
>
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-25-2012, 09:33 AM
Tom H
 
Default UEFI BIOS and resume/suspend

On Sat, Aug 25, 2012 at 4:33 AM, Colin Law <clanlaw@googlemail.com> wrote:
> On 24 August 2012 22:09, Karl Auer <kauer@biplane.com.au> wrote:
>> On Fri, 2012-08-24 at 17:26 +0100, Colin Law wrote:
>>>
>>> If I write disabled to the file
>>> /sys/devices/pci0000:00/0000:00:1a.0/power/wakeup and then suspend the
>>> keyboard no longer triggers a resume. I got the device code by
>>> unplugging and reinserting the keyboard and running dmesg.
>>> Unfortunately when I power cycle it gets set back to enabled, so there
>>> must be something writing to it at boot. No idea what at the moment
>>> though.
>>
>> The right way to manipulate the /proc filesystem is to use the sysctl
>> program. See "man sysctl".
>
> Hi Karl, thanks for the suggestion, I can't work out (even with
> google's help) how to use sysctl to access /sys/devices. Some links
> suggested that I should be able to use devices.pci000.... but when I
> try I get
>
> $ 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.

You'll have to use either "/etc/rc.local" or udev to set that value.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-25-2012, 10:02 AM
Karl Auer
 
Default UEFI BIOS and resume/suspend

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@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


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-25-2012, 10:41 AM
Colin Law
 
Default UEFI BIOS and resume/suspend

On 25 August 2012 11:02, Karl Auer <kauer@biplane.com.au> wrote:
> 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.

OK, thanks. Thanks to Tom also

Colin

>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
> Karl Auer (kauer@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
>
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-26-2012, 01:53 PM
Shentino
 
Default UEFI BIOS and resume/suspend

Doesn't suspend/resume save stuff like that?

On Sat, Aug 25, 2012 at 3:41 AM, Colin Law <clanlaw@googlemail.com> wrote:
> On 25 August 2012 11:02, Karl Auer <kauer@biplane.com.au> wrote:
>> 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.
>
> OK, thanks. Thanks to Tom also
>
> Colin
>
>>
>> Regards, K.
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
>> Karl Auer (kauer@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
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users@lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 02:52 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org