Skip to content

u/khordes

In this archive from Feb 2016 to Feb 2017

2
posts
11
comments
0
media
182
score

Top posts

Suspend to Ram would randomly freeze the computer until I did this one weird trick (seriously)

So after much random google searching (and ~2 months of tearing my hair out) I solved my suspend to ram issue in Arch by turning off pm async (which I gather, when on, tries to suspend devices asynchronously)...so by turning it off I can suspend 100% of the time reliably. The command: sudo /bin/sh -...

114 points15 comments
Open on Reddit

XCOM 2 Crash when starting....

Hi, [Solved] [edit]: I had OpenVPN running (AirVPN provider) and turning that off solved it as @FaidenXL suggested. Thanks!! I've been trying all day to get XCOM 2 to run and have worked through a few missing libraries and finally got past those. What I'm left with is the following output: /XCOM2: /...

3 points5 comments
Open on Reddit

Top comments

Here's mine:

PS1="┌─[\`if [ \$? = 0 ]; then echo \[\e[32m\]✔\[\e[0m\]; else echo \[\e[31m\]✘\[\e[0m\]; fi\`]───[\[\e[01;49;39m\]\u\[\e[00m\]\[\e[01;49;39m\]@\H\[\e[00m\]]───[\[\e[1;49;34m\]\W\[\e[0m\]]───[\[\e[1;49;39m\]\$(ls | wc -l) files, \$(ls -lah | grep -m 1 total | sed 's/total //')\[\e[0m\]]\n└───▶ "

Screenshot

40 points

I should add that I made this a systemd service and have it run at boot time now:

#copy to /etc/systemd/system/disable-async-power-management.service

[Unit]
Description=Disable asynchronous power management
DefaultDependencies=no
OnFailure=emergency.target
 
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 0 > /sys/power/pm_async"
RemainAfterExit=yes
 
[Install]
RequiredBy=sysinit.target
6 points

It seemed totally random....I could do it 6 times in a row on a reboot...but if I starting doing normal operations on it, open web browser, launch steam, launch a game (I never figured out it exactly what triggered it) then tried to suspend, it would hang. If it managed to turn off it would always come out of suspend ok.

I may give the GPU a check :-)

Edited: I should also mention that the problem never happened when I tried it with Ubuntu (it took forever to actually suspend, but never hung). It happened with LTS Kernel and Standard (only ones I keep on my system).

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.