Skip to content

u/khordes

In this archive from Feb 2016 to Feb 2017

2
posts
11
comments
0
media
182
score

I can't take credit for building it from scratch...it's an assembly of lots of different pieces I found over time, took a few weeks to find the time to get all the pieces together and make sure I was happy with the simple colors (tried some crazy color schemes at first, but simpler ended up being better).

1 points

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

So have you tried checking your acpi wakeup setting for that USB device?

cat /proc/acpi/wakeup     

Try disabling any of the resulting list that could link to the USB device...for example, on my system, from the above I get:

HUB0	  S5	*disabled  pci:0000:00:10.0
XVRA	  S5	*disabled  pci:0000:00:03.0
XVRB	  S5	*disabled
XVRC	  S5	*disabled
XVRD	  S5	*disabled  pci:0000:00:07.0
UAR1	  S5	*disabled  pnp:00:03
PS2M	  S4	*disabled
PS2K	  S4	*disabled
USB0	  S4	*disabled  pci:0000:00:0b.0
USB2	  S4	*disabled  pci:0000:00:0b.1
AZAD	  S5	*disabled
MMAC	  S5	*enabled   pci:0000:00:14.0
MMCI	  S5	*disabled

I disable both USB entries (they'll show enabled versus disabled), using (for example):

sudo /bin/sh -c 'echo USB2 > /proc/acpi/wakeup'

That toggles the status between enabled/disabled. Once you figure out which device needs to be disabled, just google how to set it at every boot so you don't have to run it manually after a restart.

1 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

End of this list.

Back to top

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.