how to circumvent suspend on xenial

Asked by aaron

my system can't suspend properly, probably due to unsupported graphics card.. so i'd like to disable it. this is for when the lid closes or in other cases, a wrapper that circumvents the suspend code would suffice as well. it just goes to a black screen and cannot be set back..

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
aaron
Solved:
Last query:
Last reply:
Revision history for this message
aaron (themightyspringwater) said :
#1

    I got a hint here: http://askubuntu.com/a/518825/34298

    The script you want to call when the lid opens or closes has to be stored
    in /etc/acpi/lid.sh.

    Then there has to be created the correct file /etc/acpi/events/lm_lid with the content as follows:

    event=button/lid.*
    action=/etc/acpi/lid.sh

    Reboot your system to let this take effect. Or maybe it is enough to restart your ACPI using

    sudo /etc/init.d/acpid restart

Revision history for this message
aaron (themightyspringwater) said :
#2

ive read the linux suspend functions are experimental at best.. I believe this is the doing of microsoft mostly. I recommend other research and pool your collective efforts to prioritize this, it is the heart of the beast and is related to acpi standards that were created by microsoft, the last comment may be a link to an existing bug.. but my knowledge is weak. The user inputs and preferences do not map to anything that controls the function of suspend.. I read this in the paper about the open source implementation of acpi.. dont be daunted by the cryptic acronyms and language when you try to fix this bug, they were meant to obfuscate the problem they created and exclude us and make the linux market shakey, unreliable and ultimately under microsofts control.

Revision history for this message
aaron (themightyspringwater) said :
#3

can someone kindly explain why there was no lid close capture event in xenial xerus? and why and who was allowed to implement such a thing? or if there is a paid position in the ubuntu development team, please consider offering it to me.

Revision history for this message
aaron (themightyspringwater) said :
#4

/boot/config-4.4.0-24-generic has a suspend configure option, i changed it to no, i think it solved this problem.