Tagged: lid closing sleep
- This topic has 14 replies, 4 voices, and was last updated Mar 18-1:31 pm by Robin.
-
AuthorPosts
-
March 12, 2021 at 8:13 pm #55657Member
anteeks
Hi,
I am a new antiX user and I’ve just installed antiX 19.3 on my old HP ProBook.
I am testing the new system and I am struggling to find any option to disable the Lid sleep.I couldn’t find any settings in Control Centre to do this and I also tried to modify
/etc/default/acpi-support by setting:
# Uncomment this to enable ACPI sleep when the lid screen is closed.
LID_SLEEP=false
But it still does not work.I am wondering if I can get any help from forum pros?
Thanks!
March 12, 2021 at 11:17 pm #55661MemberRobin
::Hi,
you’re welcome.Maybe the sleep option defaults to forced sleep on closing the lid in your BIOS accidentally? Don’t know whether your laptop provides this feature in BIOS setup. I’m not a “pro” đ
Windows is like a submarine. Open a window and serious problems will start.
March 13, 2021 at 2:13 am #55671Anonymous
::try this
sudo sed -i 's/^action=/#action=/' /etc/acpi/events/lidbtnA more surgical approach might be achieved (idunno) by editing /etc/acpi/events/lidbtn
(maybe instead of COMPLETELY ignoring, you want to at least blank the display upon lid closure)March 13, 2021 at 3:17 pm #55702Member
Xecure
::Could this be another case of elogind taking control over acpi events or am I trying to find blame when there are no reasons for it?
Using the /etc/default/acpi-support modification mentioned by anteeks has always worked for me, so not sure what could be the reason for this particular case.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 13, 2021 at 6:07 pm #55716Memberanteeks
::I tried to comment out “action line but without luck. The laptop still sleeps after lid close đ
~ $ cat /etc/acpi/events/lidbtn
# /etc/acpi/events/lidbtn
# Called when the user closes or opens the lidevent=button[ /]lid
#action=/etc/acpi/lid.shMarch 13, 2021 at 6:11 pm #55717Memberanteeks
::y
Thanks Xecure!
This is my acpi-support. Am I missing anything?~ $ cat /etc/default/acpi-support # # Configuration file for the acpi-support package # # # The acpi-support package is intended as "glue" to make special functions of # laptops work. Specifically, it translates special function keys for some # laptop models into actions or generic function key presses. # # # Suspend/hibernate method # ------------------------ # # When gnome or kde power management daemons are running, acpi-support will # translate the suspend and hibernate keys of laptops into special "suspend" # and "hibernate" keys that these daemons handle. # # Only in situations where there is no power management daemon # running, acpi-support needs to perform suspend/hibernate in some other way. # Beginning with version 0.122-1 acpi-support solely uses pm-utils then. # Comment the next line to disable ACPI suspend to RAM ACPI_SLEEP=true # Comment the next line to disable suspend to disk ACPI_HIBERNATE=true # Use Radeontool to switch the screen off? Seems to be needed on some machines # RADEON_LIGHT=true # Comment this out to disable screen locking on resume LOCK_SCREEN=true # Uncomment this to enable ACPI sleep when the lid screen is closed. LID_SLEEP=false # Uncomment this to shutdown the system if ACPI sleep has not been possible # upon lid closure. Has no effect if LID_SLEEP is not set. #LID_SHUTDOWN=true # On some systems pressing the wireless button only results in an event that we # handle, but not in some hardware enforced action. On these systems we are # free to choose whether or not we cycle through "Both on, Both off, Wireless # only, Bluetooth only" as we used to do, or if we just do "Both on, Both off" # as the hardware kill switch does on most systems. # # For compatibility reasons with older version the larger cycle is the default. # Enable this to to have both in switched on and off simultaniously. #WIRELESS_BLUETOOTH_SYNC=true # Choose the method used to switch off/on the display. Available options are # "xset", "xrandr" and "vbetool". DISPLAY_DPMS=xset # xrandr needs the output device to be named XRANDR_OUTPUT=LVDS # vbetool can switch off/on the display even if no user is logged in. However, # there are systems that do not reset the display when coming out of suspend, # so that the screen remains dark. Enable this option to switch off the display # even if no one is logged in. #DISPLAY_DPMS_NO_USER=trueMarch 13, 2021 at 6:29 pm #55718Memberanteeks
::@Robin
Thanks! But I couldn’t find the lid close action option in BIOS on this old laptop đMarch 14, 2021 at 2:11 pm #55752Member
Xecure
::@anteeks
I see no problem in the acpi-support defaults file. I will try experiment later today to see if there are other ways to disable to closed-lid behavior.There have been other posts related to this issue, but most of them were related to suspension errors or lid-switch (like this thread). I will check on my laptop when I have time.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 14, 2021 at 7:32 pm #55767Member
Xecure
::I hadn’t tested this for a long time, and now I know /etc/default/acpi-support no longer manages all power events. Seems that elogind, inheriting systemd’s naughty behavior, is now in control of more things that shouldn’t be in its plate.
Anyway, the solution I found is to edit elogind configuration
sudo geany /etc/elogind/logind.conf
search for the commented line containing HandleLidSwitch=suspend, un-comment it and change it to ignore, so it looks like:
HandleLidSwitch=ignore
Save the file, reboot and see if now the laptop doesn’t suspend when closing the lid.Let us know how it goes. If it also worked for you, I will update my personal notes and recommend this thread to others in the future.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 16, 2021 at 1:01 am #55847Memberanteeks
::I hadnât tested this for a long time, and now I know /etc/default/acpi-support no longer manages all power events. Seems that elogind, inheriting systemdâs naughty behavior, is now in control of more things that shouldnât be in its plate.
Anyway, the solution I found is to edit elogind configuration
sudo geany /etc/elogind/logind.conf
search for the commented line containing HandleLidSwitch=suspend, un-comment it and change it to ignore, so it looks like:
HandleLidSwitch=ignore
Save the file, reboot and see if now the laptop doesnât suspend when closing the lid.Let us know how it goes. If it also worked for you, I will update my personal notes and recommend this thread to others in the future.
That is awesome! It works! Thanks a lot!
But I found a new minor issue. After I re-open the laptop lid, the cursor disappears. The mouse is still functional. When I hold left button and draw box on the desktop, I can see the blue box. But no cursor. It is almost like cursor becomes transparent.
The only workaround I figure out so far is to press Ctrl-Alt-Backspace to kill X and re-login.- This reply was modified 2 years, 1 month ago by anteeks.
March 16, 2021 at 2:03 pm #55853Member
Xecure
::But I found a new minor issue. After I re-open the laptop lid, the cursor disappears. The mouse is still functional.
I had that happen to me some time ago. I found that slightly increasing the cursor size using the Mouse Configuration program, as I mentioned in this other forum answer.
If it is only the cursor disappearing, using the Mouse Configuration to increase the cursor size (even if just a little bit) may help avoid this from happening in the future.
(Control Centre > Hardware > Mouse Configuration), Enable on startup (switch at the bottom) and slightly increase the cursor size in pixels. Save and this should fix the disappearing cursor problem on next reboot.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 16, 2021 at 10:24 pm #55866Memberanteeks
::(Control Centre > Hardware > Mouse Configuration), Enable on startup (switch at the bottom) and slightly increase the cursor size in pixels. Save and this should fix the disappearing cursor problem on next reboot.
It did changed the cursor size, but the cursor disappear after lid opening issue still persists.
PS: each time I open the “Control Centre > Hardware > Mouse Configuration”, I see the “Enable on startup” switch at OFF position. I assume it works, since I noticed my cursor is larger after reboot.@Xecure, did you also have the cursor disappearing issue after you opened the lid?
March 17, 2021 at 6:47 pm #55906Member
Xecure
::@Xecure, did you also have the cursor disappearing issue after you opened the lid?
It happen to me on late antiX 17.4 or early antiX19 on live USB, when I had the laptop always connected to a monitor, and closing the lid to suspend and then waking it up resulted in an invisible mouse cursor. Increasing the cursor size slightly made it no longer disappear. Also, doing Control+Alt+F1 to enter tty1 and then Control+Alt+F7 to return to the graphic environment would also make the cursor reappear.
Using the solution I described above for stopping the suspension behavior when the lid closes using elogind doesn’t make my cursor disappear. I think it doesn’t even blank the screen, so it should affect anything X11 related. If someone else could check with their machine, maybe we could find some relation between a kernel version or maybe a specific driver that doesn’t behave as intended. I can tell you that, on my particular laptop, closing and opening the lid with the change I explained above to elogind doesn’t affect anything, not even the mouse cursor.
Can someone else check it out?
For now, try doing Control+Alt+F1 to enter tty1 and then Control+Alt+F7 to return to the graphic environment instead of stopping X to see if the mouse cursor returns.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 18, 2021 at 12:23 am #55938Memberanteeks
::try doing Control+Alt+F1 to enter tty1 and then Control+Alt+F7 to return to the graphic environment instead of stopping X
Very nice trick! It always works after the switch =)
This can be a temporary workaround! Thanks!March 18, 2021 at 1:31 pm #55952MemberRobin
::Another workaround:
Even if mouse pointer was not visible, one could get main menu by klicking right mouse button somewhere. When very carefully moving the mouse down blindly you would be able to toggle its focus to one of the menue entries â and right after clicking it the program (e.g. âterminalâ) would open, which brings mouse pointer back to visibility immediately every single time.
@Xecure: only after installing original nvidia drivers this behaviour stopped. Refer to the quoted post for some information. I suspect this bug to be related to ânoveauâ driver. Different kernels didn’t have any effect on this back then.
Windows is like a submarine. Open a window and serious problems will start.
-
AuthorPosts
- You must be logged in to reply to this topic.