Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: OpenSuSE 12.2 suspend?/hibernate? me and undesired poweroff triggerARRRGH!

  1. #1

    Default OpenSuSE 12.2 suspend?/hibernate? me and undesired poweroff triggerARRRGH!

    Hello. I'm not so sure this is the place for this. BUT if there IS a way
    to stop it from happening again I'd very much like to know, so this is a
    help request. The trouble is I'm not sure what part of OpenSuSE I want to
    do something about. So I don't have a clue how to ask without it sounding
    like a rant... Best thing I can think to do is to ask a few wild questions,
    and then follow them with an explanation of where the questions are coming from.

    There are some "features" I'd like to disable. But I'm afraid that they may
    be too deeply integrated to do so without breaking too many things.
    Still...

    Is there a safe way to totally disable the suspend function?
    Is there a safe way to totally disable the hibernate function?
    Is there a way to disable the one touch powerdown function that occurs if
    the power button is bumped while in a hibernate/suspend or other power-saving
    mode {see below}????

    I've no objection to the hard drive spinning down when not in use for
    awhile. Likewise I don't mind the screen going to a blank powersaving mode.
    {With certain previsions that is} I wouldn't mind the processor(s) going to a
    powersaveing mode either. But I never want to wait while the system has to
    reload itself back into ram unless it needs to reboot {IE I get to choose
    what OS I'm booting from grub} and NOTHING should ever expect to find it's
    system state in the swap partition on boot, as I probably have used another
    distro since last booting this one...

    There exists a powersaving mode that may be a form of suspend or hibernate
    for all I know. {Since I never use either function I don't know how to
    identify them by their behavior...} But in any case, On my laptop there
    are three visual clues to it's running state that I NEVER want disabled.
    On the front edge. {visible even when the laptop is closed} there exist two
    lights. One indicates that the ac power is on. And by color, indicates if
    the battery has a full charge, or is actively charging. The other indicates
    the laptop is on. Likewise, when the laptop is open, there is a ring shaped
    light outlining the powerbutton when the laptop is on.

    When I'm in the Livingroom and doing something with the laptop, I sometimes
    get complaints from my lady who doesn't want to share my attention with it.
    So I flip the lid closed, and slide the laptop out of the way. Hoping that
    I'll be able to remember what I was doing later on after she goes to bed.

    But it sometimes happens, as I slide the laptop over, that the power chord
    gets partially unplugged. And if "later on" is after the battery runs down,
    the laptop will be cold and dark. So when my lady asks me if I could login
    and check her bank balance, and I find no visual indication that it's
    still running (all indicator lights are out) My first instinct is to
    properly re-seat the power chord and turn it back on. {If I don't have time
    for fsck, then I'd simply select one of the other installed distros.}

    So there I was thinking about all the files I'd had open in non-gui
    editors. And that the changes to some of them would not be recoverable.
    But in fact they hadn't been lost until I jabbed at the powerbutton and saw
    a text mode dialog that said something about poweroff {or did it say powerdown}
    having been requested. There was no way to stop it...

    A LONG time ago (when I still ran dos as a primary OS) I was irritated that
    the PC manufacturers replaced the hard power switch with a logic switch
    that needed to be held down for a few seconds to force an immediate
    poweroff state. But over the years I've gotten used to the idea that a
    single short jab at the power button had no effect on a running system.

    So like I said, can I disable suspend/hibernate functions? Can I stop
    whatever it was from turning off the lights that would have had me first
    running my finger across the touchpad, and then pressing the shift key,
    followed by the enter key. Then holding {ctrl}+{alt} down while I tried a
    few {F-keys} etc???

    And if I can't stop/disable any of that, can I stop it from beginning a
    power off sequence when the power button is briefly pushed???

    And finally, if the answer to any of the above is "yes"... Then How???

    --
    JtWdyP



  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,742

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired poweroff triggerARRRGH!

    On 2012-10-31 04:44, JtWdyP wrote:
    > Is there a safe way to totally disable the suspend function?
    > Is there a safe way to totally disable the hibernate function?


    Reading later, what you want to avoid is automatic hibernation/suspend when you close the lid - but
    that is also a security feature (battery rundown). Well, you simply configure it in the desktop of
    your choice. You have to say which and version. Watch out, your laptop may overheat in that position.

    However, there is a method to make hibernation/suspend abort once initiated.

    > Is there a way to disable the one touch powerdown function that occurs if
    > the power button is bumped while in a hibernate/suspend or other power-saving
    > mode {see below}????


    No idea what is that.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  3. #3

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired powerofftrigger ARRRGH!


    It would appear that on Oct 31, Carlos E. R. did say:

    > On 2012-10-31 04:44, JtWdyP wrote:
    > > Is there a safe way to totally disable the suspend function?
    > > Is there a safe way to totally disable the hibernate function?

    >
    > Reading later, what you want to avoid is automatic hibernation/suspend when you close the lid - but
    > that is also a security feature (battery rundown). Well, you simply configure it in the desktop of
    > your choice. You have to say which and version. Watch out, your laptop may overheat in that position.


    Yeah, it must be something like that. But it doesn't happen when I close the
    lid. At least not right away. This is more like some screen saver timeout.
    Except I haven't installed one.
    My desktop of choice is E17. In which I've just spent some time browsing through the
    the configuration utility. The closest things I could find was a setting for
    screen blanking, which isn't enabled: http://tinypic.com/r/b3ttg8/6 and a
    confusing power management setting: http://tinypic.com/r/bz41/6 Which I don't
    have a clue how it's used. Then it occurred to me that maybe it was an KDE
    setting. I mean even though I don't actually ever use it, it was featured on
    the 12.2 installation disk. So I thought I better look in the KDE System
    Settings. But when I tried to check it's power management settings I got this
    error: http://tinypic.com/r/2aexmh4/6 which suggests that kde isn't doing
    this.

    I did find an acpi bindings setting screen. But it only has one reference
    to the laptop's lid: http://tinypic.com/r/28ahswi/6 but if that were being
    triggered by closing the lid, the suspend operation should happen right away.
    (but it doesn't!)

    > However, there is a method to make hibernation/suspend abort once initiated.


    What method?

    I never see it begin to "suspend", BTW. By the time I find out, it's already a done deal...

    > > Is there a way to disable the one touch powerdown function that occurs if
    > > the power button is bumped while in a hibernate/suspend or other power-saving
    > > mode {see below}????

    >
    > No idea what is that.


    I did some empirical testing, and found that the laptop didn't need to be
    suspended for the "onetouch" {IE pushing the power button once} to initiate
    the powerdown. I never set any keyboard binding to do that without confirmation.
    And even the poweroff {WITH confirmation} I set to a chorded key binding that
    would be hard to do by mistake. {ctrl}+{alt}+{win}+{del} There was an acpi
    binding for the power button. Which was set by default to power off now. But
    when I changed it to point at the System Control menu {which can be
    canceled...) http://tinypic.com/r/6ekmdy/6 Now a single push on the power
    button does in fact flash an image of the system control menu on the screen,
    but it doesn't wait before something starts a power off sequence. Making me
    think there must be somewhere else in OpenSuSE 12.2, another binding of some
    kind.

    I did look in the kde system settings keyboard shortcut settings. But I
    couldn't find anything bound to the power button...
    {sigh}

    --
    JtWdyP


  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,742

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired poweroff triggerARRRGH!

    On 2012-10-31 19:41, JtWdyP wrote:

    >> However, there is a method to make hibernation/suspend abort once initiated.

    >
    > What method?


    I'm creating this on the fly, check it before use!.

    Code:
    /etc/pm/sleep.d/5inhibit:
    
    #!/bin/bash
    
    .. /usr/lib/pm-utils/functions
    
    RETVAL=0
    
    case "$1" in
    hibernate|suspend)
    RETVAL=1
    #This does not abort.
    touch $INHIBIT
    #This does.
    MESSAGE="Aborting hibernation"
    /bin/logger -t pm-utils -p syslog.warn $MESSAGE
    echo -e "$MESSAGE\r" > /dev/tty0
    echo "$MESSAGE  Touched $INHIBIT"
    ;;
    thaw|resume)
    ;;
    *)
    ;;
    esac
    exit $RETVAL
    
    # Idea for $INHIBIT in /usr/lib/pm-utils/sleep.d/30s2disk-check

    I have no idea what the caller software will do when hibernation aborts...


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  5. #5

    Default Update: OpenSuSE 12.2 suspend?/hibernate? me and undesired powerofftrigger ARRRGH!


    It would appear that on Oct 31, JtWdyP did say:

    > I did some empirical testing, and found that the laptop didn't need to be
    > suspended for the "onetouch" {IE pushing the power button once} to initiate
    > the powerdown. I never set any keyboard binding to do that without confirmation.
    > And even the poweroff {WITH confirmation} I set to a chorded key binding that
    > would be hard to do by mistake. {ctrl}+{alt}+{win}+{del} There was an acpi
    > binding for the power button. Which was set by default to power off now. But
    > when I changed it to point at the System Control menu {which can be
    > canceled...) http://tinypic.com/r/6ekmdy/6 Now a single push on the power
    > button does in fact flash an image of the system control menu on the screen,
    > but it doesn't wait before something starts a power off sequence. Making me
    > think there must be somewhere else in OpenSuSE 12.2, another binding of some
    > kind.
    >
    > I did look in the kde system settings keyboard shortcut settings. But I
    > couldn't find anything bound to the power button...
    > {sigh}


    I did some more empirical testing... And I no longer believe that *_ANY_*
    "Desktop Environment" nor in fact anything dependent on Xis responsible for
    this keybinding...

    I booted to runlevel 3 {via grub: using the "3" kernel option} So there wasn't
    even an Display Manager running... I logged in as regular user. and as soon as
    I had a bash prompt, I gave the power button a little push. And the poweroff
    cycle began...

    After that, I rebooted and experimented with the suspend and hibernate choices
    in E17's system menu. Hibernate did not seem to work. But suspend did. And when
    I suspended the system that way I noticed a couple of difference from the
    suspend-like state that I described in the beginning of this thread...

    It would appear that on Oct 31, Carlos E. R. did say:

    > On 2012-10-31 04:44, JtWdyP wrote:
    > > Is there a safe way to totally disable the suspend function?
    > > Is there a safe way to totally disable the hibernate function?

    >
    > Reading later, what you want to avoid is automatic hibernation/suspend when
    > you close the lid - but that is also a security feature (battery rundown).


    In my description *_ALL_* indicator lights were off Including the ac line
    power/battery charging indicator were all gone dark. Thinking that the ac power
    had been disconnected and the battery ran down I hadn't tried anything else
    except to replug the ac adapter, and press the power button, which was when I
    discovered that pressing the power (logic) button would trigger a powerdown.

    Well the differences I noticed when I manually selected suspend were:

    1) the ac power indicator light stayed on.

    I then tried a sequence of several things to wake it back up but nothing
    worked until:

    2) the same push of the power button that triggers powerdown when the system
    is running was in fact the only thing that would wake it up from the manually
    activated "suspend"...

    If the power button is how I'm supposed to wake a suspended session, it
    shouldn't be a hotkey for poweroff, should it?

    --
    JtWdyP


  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    16,410
    Blog Entries
    14

    Default Re: Update: OpenSuSE 12.2 suspend?/hibernate? me and undesiredpoweroff trigger ARRRGH!

    On Wed 31 Oct 2012 09:58:10 PM CDT, JtWdyP wrote:

    <snip>
    If the power button is how I'm supposed to wake a suspended session, it
    shouldn't be a hotkey for poweroff, should it?
    Hi
    What are the BIOS settings?

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 2 days 23:02, 4 users, load average: 0.06, 0.05, 0.05
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,742

    Default Re: Update: OpenSuSE 12.2 suspend?/hibernate? me and undesired powerofftrigger ARRRGH!

    On 2012-10-31 22:58, JtWdyP wrote:

    > I booted to runlevel 3 {via grub: using the "3" kernel option} So there wasn't
    > even an Display Manager running... I logged in as regular user. and as soon as
    > I had a bash prompt, I gave the power button a little push. And the poweroff
    > cycle began...


    Yes, with systemv this was controlled directly in inittab. Mmm... I
    thought so, but I can not find the setting in my 11.4. There is the one
    for ctrl-alt-del.


    > 2) the same push of the power button that triggers powerdown when the system
    > is running was in fact the only thing that would wake it up from the manually
    > activated "suspend"...


    The wakeup is controlled by the bios, and sometimes you can choose the
    button or the action.

    When I press that button in my 11.4 with gnome I get a menu asking what
    I want to do (reboot, halt, hibernate, suspend). So at that moment the
    OS has control of the button.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  8. #8

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired powerofftrigger ARRRGH!


    It would appear that on Oct 31, malcolmlewis did say:

    > On Wed 31 Oct 2012 09:58:10 PM CDT, JtWdyP wrote:
    > > <snip>
    > > If the power button is how I'm supposed to wake a suspended session, it
    > > shouldn't be a hotkey for poweroff, should it?

    > Hi
    > What are the BIOS settings?


    Hi

    Thanks for responding. I'm not sure what in the bios could have an effect on
    this, So I'll **manually quote most everything.

    **meaning using a pen to scribble stuff on paper while looking at the
    bios screen. Please forgive any miss-spelled options.

    Code:
    First it's Phoenix Bios ver 84.05
    CPU 	AMD Turion 64 x2 mobile tech tl-50
    speed	1600 MHz
    cache	512 KB
    
    memory:
    total	1024MB
    slot1	512MB
    slot2	512MB
    video	128MB
    
    Legacy usb support	enabled
    large disk access	dos
    autodim			enabled
    battery auto learn	disabled
    display selection	lcd + crt
    quiet boot mode		enabled
    local bus ide adaptor	enabled
    internal lan		enabled
    wireless lan		disabled
    I hope something in that means something?
    You don't really need the boot order do you?
    Or the details of how it lists the existence of a bios password?

    If there is any better system information extractable from the bash command
    line, just tell me what the command looks like, and I'll paste in the results.

    But I'm curious, if you press the power button on your machine while opensuse 12.2
    is running {in native mode, that is not in a VM} and while not suspended, does
    it power down???

    And if you suspend opensuse 12.2 {in native mode} on your machine, is it the
    power button you need to press to wake the system back up???

    --
    JtWdyP


  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    16,410
    Blog Entries
    14

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired powerofftrigger ARRRGH!

    On Thu 01 Nov 2012 12:42:23 AM CDT, JtWdyP wrote:


    It would appear that on Oct 31, malcolmlewis did say:

    > On Wed 31 Oct 2012 09:58:10 PM CDT, JtWdyP wrote:
    > > <snip>
    > > If the power button is how I'm supposed to wake a suspended
    > > session, it shouldn't be a hotkey for poweroff, should it?

    > Hi
    > What are the BIOS settings?


    Hi

    Thanks for responding. I'm not sure what in the bios could have an
    effect on this, So I'll **manually quote most everything.

    **meaning using a pen to scribble stuff on paper while looking
    at the bios screen. Please forgive any miss-spelled options.

    Code:
    First it's Phoenix Bios ver 84.05
    CPU 	AMD Turion 64 x2 mobile tech tl-50
    speed	1600 MHz
    cache	512 KB
    
    memory:
    total	1024MB
    slot1	512MB
    slot2	512MB
    video	128MB
    
    Legacy usb support	enabled
    large disk access	dos
    autodim			enabled
    battery auto learn	disabled
    display selection	lcd + crt
    quiet boot mode		enabled
    local bus ide adaptor	enabled
    internal lan		enabled
    wireless lan		disabled
    I hope something in that means something?
    You don't really need the boot order do you?
    Or the details of how it lists the existence of a bios password?

    If there is any better system information extractable from the bash
    command line, just tell me what the command looks like, and I'll paste
    in the results.

    But I'm curious, if you press the power button on your machine while
    opensuse 12.2 is running {in native mode, that is not in a VM} and
    while not suspended, does it power down???

    And if you suspend opensuse 12.2 {in native mode} on your machine, is
    it the power button you need to press to wake the system back up???

    Hi
    So there is no 'Power' tab, where you can check the acpi info? If not
    if you run as root user;
    Code:
    dmidecode --type bios
    Do you see "ACPI is supported" I have this notebook going to sleep when
    I shut the lid and then start back up when I open the lid. Else a quick
    press on the power button to sleep and wake up...

    You should see an acpi event in the output from dmesg like;
    Code:
    ACPI: Preparing to enter system sleep state S3
    That's assuming the state can be configured in your bios....

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 3 days 1:40, 4 users, load average: 0.02, 0.21, 0.20
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,742

    Default Re: OpenSuSE 12.2 suspend?/hibernate? me and undesired poweroff triggerARRRGH!

    On 2012-11-01 01:42, JtWdyP wrote:
    > Thanks for responding. I'm not sure what in the bios could have an effect on
    > this,


    Well, I told you that the behavior of the power button is controlled in
    the BIOS, to some extent. Some bios say nothing, but if they do, they
    clearly say something about the main switch.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •