Posts: 4
Nordlicht
Joined: 28 Jul 2014
#1
Hi Forum and Hello from germany

Got a eeepc with antiX-13 and

Code: Select all

Linux eeepc 3.7.10-antix.5-486-smp #2 SMP Tue Oct 15 20:58:22 EEST 2013 i686 GNU/Linux
with openbox and based on testing.
I configured xfce4-power-manager to do nothing when on ac and the lid gets closed -
but it does a suspend to ram!
Who is doing that?

Code: Select all

cat .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml 
show's

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
  <property name="xfce4-power-manager" type="empty">
    <property name="power-button-action" type="uint" value="4"/>
    <property name="show-tray-icon" type="uint" value="3"/>
    <property name="hibernate-button-action" type="uint" value="2"/>
    <property name="sleep-button-action" type="uint" value="1"/>
    <property name="inactivity-on-ac" type="uint" value="14"/>
    <property name="brightness-on-ac" type="uint" value="120"/>
    <property name="critical-power-action" type="uint" value="4"/>
    <property name="lid-action-on-battery" type="uint" value="2"/>
    <property name="inactivity-on-battery" type="uint" value="15"/>
    <property name="brightness-on-battery" type="uint" value="120"/>
    <property name="dpms-on-battery-sleep" type="uint" value="15"/>
    <property name="dpms-on-battery-off" type="uint" value="20"/>
    <property name="critical-power-level" type="uint" value="5"/>
    <property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
    <property name="lid-action-on-ac" type="uint" value="0"/>
  </property>
</channel>
According to the kernel log the suspend is done by pm!

Code: Select all

[..]
PM: Syncing filesystems ... done.
Jul 28 22:18:24 eeepc kernel: [  645.564748] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jul 28 22:18:24 eeepc kernel: [  645.580317] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Jul 28 22:18:24 eeepc kernel: [  645.596394] Suspending console(s) (use no_console_suspend to debug)
Jul 28 22:18:24 eeepc kernel: [  645.597204] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jul 28 22:18:24 eeepc kernel: [  645.597473] sd 0:0:0:0: [sda] Stopping disk
Jul 28 22:18:24 eeepc kernel: [  645.598963] option1 ttyUSB0: option_instat_callback: error -2
Jul 28 22:18:24 eeepc kernel: [  645.625149] ACPI handle has no context!
Jul 28 22:18:24 eeepc kernel: [  645.625167] ACPI handle has no context!
Jul 28 22:18:24 eeepc kernel: [  646.220232] PM: suspend of devices complete after 623.573 msecs
Jul 28 22:18:24 eeepc kernel: [  646.220632] PM: late suspend of devices complete after 0.390 msecs
Jul 28 22:18:24 eeepc kernel: [  646.252376] PM: noirq suspend of devices complete after 31.735 msecs
Jul 28 22:18:24 eeepc kernel: [  646.252426] ACPI: Preparing to enter system sleep state S3
Jul 28 22:18:24 eeepc kernel: [  646.278845] PM: Saving platform NVS memory
Jul 28 22:18:24 eeepc kernel: [  646.279899] Disabling non-boot CPUs ...
Jul 28 22:18:24 eeepc kernel: [  646.384033] smpboot: CPU 1 is now offline
[..]
But why?

Anyone ?
Last edited by Nordlicht on 01 Aug 2014, 10:06, edited 1 time in total.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
have you made any changes to / etc/default/acpi-support? There is a switch in the file for the lid/sleep function that will take precedence over anything else.
Posts: 4
Nordlicht
Joined: 28 Jul 2014
#3
In / etc/default/acpi-support is everything deactivated!

I checked BIOS - nothing
I checked default xfce4 settings in / etc/xdg - nothing

who is doing this suspend to ram ?
Posts: 23
chatan
Joined: 14 Jul 2012
#4
I'm by no means an expert but on my EEE PC 900 I had to edit my / etc/acpi/lid.sh file get the lid to do what I wanted... but my case was independent of the power cord status, so not sure if this helps you.
Cheers
Posts: 4
Nordlicht
Joined: 28 Jul 2014
#5
Hi @all and thanks for you help....
- it is still suspending to ram, when I close the lid.
__{{emoticon}}__
I changed (added) to lid.sh in second line

Code: Select all

exit 0
so the rest of the script will not take affect! Still suspending!

__{{emoticon}}__ __{{emoticon}}__ __{{emoticon}}__

Anyone any idea?
Posts: 4
Nordlicht
Joined: 28 Jul 2014
#6
Hi @ all

I changed the action from lidswitch to ignore in / etc/systemd/logind.conf.

That's it!

Thanks for your help!