sleep mode on laptop after closing the lid

Forum Forums New users New Users and General Questions sleep mode on laptop after closing the lid

  • This topic has 5 replies, 3 voices, and was last updated Jul 5-4:34 pm by BobC.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38519
    Member
    drinkWine

    How to setup Antix for going to sleeping mode after closing the lid? it`s not working by default
    I found Pm-utils, but it hard to understand, maybe some easiest way ? just need sleep mode or suspend

    inxi -Fxx
    System:    Host: antix1 Kernel: 4.9.212-antix.1-amd64-smp x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: IceWM 1.6.6 dm: SLiM 
               Distro: antiX-19.2.1_x64-base Hannie Schaft 29 March 2020 base: Debian GNU/Linux 10 (buster) 
    Machine:   Type: Laptop System: ASUSTeK product: K54L v: 1.0 serial: BBN0AS238812457 
               Mobo: ASUSTeK model: K54L v: 1.0 serial: BSN12345678901234567 BIOS: American Megatrends v: K54L.208 
               date: 09/26/2011 
    Battery:   ID-1: BAT0 charge: 23.9 Wh condition: 26.4/37.8 Wh (70%) volts: 16.5/14.4 model: ASUSTek K53--27 serial:   
               status: Charging 
    CPU:       Topology: Dual Core model: Intel Celeron B800 bits: 64 type: MCP arch: Sandy Bridge rev: 7 L1 cache: 32 KiB 
               L2 cache: 2048 KiB 
               flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 5986 
               Speed: 800 MHz min/max: 800/1500 MHz Core speeds (MHz): 1: 800 2: 800 
    Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: ASUSTeK driver: i915 v: kernel 
               bus ID: 00:02.0 chip ID: 8086:0106 
               Display: server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1366x768~60Hz 
               OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 18.3.6 compat-v: 3.0 direct render: Yes 
    Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
               bus ID: 00:1b.0 chip ID: 8086:1c20 
               Sound Server: ALSA v: k4.9.212-antix.1-amd64-smp 
    Network:   Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter vendor: Foxconn driver: ath9k v: kernel port: e040 
               bus ID: 02:00.0 chip ID: 168c:002b 
               IF: wlan0 state: up mac: 60:d8:19:0e:04:b5 
               Device-2: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet vendor: ASUSTeK driver: atl1c v: 1.0.1.1-NAPI port: a000 
               bus ID: 04:00.0 chip ID: 1969:1083 
               IF: eth0 state: down mac: 54:04:a6:3b:ac:da 
               Device-3: Qualcomm Atheros AR3011 Bluetooth type: USB driver: btusb bus ID: 1-1.1:5 chip ID: 0cf3:3005 
    Drives:    Local Storage: total: 298.09 GiB used: 20.41 GiB (6.8%) 
               ID-1: /dev/sda vendor: Seagate model: ST9320325AS size: 298.09 GiB speed: 3.0 Gb/s serial: S2W4PHZ4 
    Partition: ID-1: / size: 122.61 GiB used: 20.41 GiB (16.6%) fs: ext4 dev: /dev/sda6 
    Sensors:   System Temperatures: cpu: 53.0 C mobo: N/A 
               Fan Speeds (RPM): cpu: 2100 
    Info:      Processes: 160 Uptime: 2h 09m Memory: 3.77 GiB used: 769.3 MiB (19.9%) Init: SysVinit v: 2.93 runlevel: 5 
               default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 running in: roxterm inxi: 3.0.36 
    
    #38541
    Moderator
    BobC
    Helpful
    Up
    0

    I see nobody else replied. Have you tried Gnome Power Manager or XFCE Power Manager? Both are in the repos. I would suggest investigating those to see if they have the control you are looking for. If so, I’d try one, and if it doesn’t work, uninstall it and try the other. After you install them you have to configure them. I’m not sure if a reboot would be needed or not.

    #38546
    Member
    Xecure
    Helpful
    Up
    0

    Distro: antiX-19.2.1_x64-base

    You need acpi-support package and activate lid sleep.

    sudo apt update && sudo apt install acpi-support

    Then edit the /etc/default/acpi-support file with root privileges. Example:
    sudo geany /etc/default/acpi-support

    And search for the line #LID_SLEEP=true and uncomment it. It should look like:
    LID_SLEEP=true

    You don’t even need to reboot to see this work. Close the lid.

    #38563
    Moderator
    BobC
    Helpful
    Up
    0

    That’s better than my solution. The power managers use memory to keep running.

    Question: Why isn’t that builtin to antiX? If it would cause problems for some machines, I guess not.

    #38566
    Member
    Xecure
    Helpful
    Up
    0

    Now it is only included in antix 19.x FULL, but I think it was also included in antiX 17 base. As packages grow in sze year by year, some things “have to go” to keep the 700MB size of the ISO.

    That is one of the reasons anticapitalista is questioning keeping base “CD size”.

    #38568
    Moderator
    BobC
    Helpful
    Up
    0

    I see. I can’t complain about that. Thanks for the responses.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.