[ / / / / / / / / / / / / / ] [ dir / 4am / cyber / film / imouto / just / loomis / stol / strek ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): beb4c32d1b5de78⋯.png (84.44 KB, 960x529, 960:529, tuxSleep.png) (h) (u)

[–]

 No.822740>>822855 >>822873 >>822914 >>823001 >>823068 >>823137 >>823434 >>823681 >>824444 >>824610 [Watch Thread][Show All Posts]

1. Your hardware (CPU, mobo, laptop model if applicable)

2. Does Linux suspend mode work on your hardware?

I'm sick and tired of this shit. I either have to shut my computers all the way down, or keep them turned completely on. My old Intel and AMD hardware both give me this problem. I'm thinking of buying a Ryzen CPU+mobo, but I'd like to get one that actually supports this feature in Linux if such a thing exists.

 No.822743>>822767

Sleep/hibernate works fine in linux as long as you use fully FOSS components like a thinkpad x200. Stop being such a nigger OP.


 No.822762>>822766

Do more research.


 No.822766>>824531

>>822762

The info on this topic is very sparse. Most people who run Linux are just happy that the shit boots up and runs (pretty much a given these days), and never even think of reporting whether suspend mode works.


 No.822767>>822811

>>822743

>fully FOSS components

>thinkpad x200

You're a delusional cuck if you think any commercially-available hardware is "fully FOSS"


 No.822811>>822997 >>823059

>>822767

Libreboot, and even a Russian re-implementation of the EC is available. Fuck off officer FUD


 No.822848

>using Linux

just install Microsoft Windows if you want hibernation to work


 No.822855

>>822740 (OP)

They can't even get hibernate working on popular i3/i5 chips, you think Ryzen stands any chance?


 No.822873

>>822740 (OP)

use systemd wew

>systemd was planned by microsoft to implement features on windows that should werk

>task scheduler, services, hibernate, encrption, stuff made simple

Problem is youll likely end up in data corruption with linux file systems so you have to shutdown every once in a while


 No.822902

My x220 works with both, and my desktop works for sleep and maybe hibernation (I never use it on either).

I did see a PC that crashed when you tried to hibernate and wouldn't wake up from sleep, don't know what that was about.


 No.822914

>>822740 (OP)

One of the reasons I'm so happy with the Void is the hibernation.

It's just a small script:


#!/bin/sh
# zzz - really simple suspend script

USAGE="Usage: ${0##*/} [-nSzZR]
-n dry run (sleep for 5s instead of suspend/hibernate)
-S Low-power idle (ACPI S0)
-z suspend to RAM (ACPI S3) [DEFAULT for zzz(8)]
-Z hibernate to disk & power off (ACPI S4) [DEFAULT for ZZZ(8)]
-R hibernate to disk & reboot
-H hibernate to disk & suspend (aka suspend-hybrid)"

fail() { echo ${0##*/}: 1>&2 "$*"; exit 1; }

export ZZZ_MODE=suspend
export ZZZ_HIBERNATE_MODE=platform

case "$0" in
*ZZZ) ZZZ_MODE=hibernate;;
esac

while getopts hnSzHRZ opt; do
case "$opt" in
n) ZZZ_MODE=noop;;
S) ZZZ_MODE=standby;;
z) ZZZ_MODE=suspend;;
Z) ZZZ_MODE=hibernate;;
R) ZZZ_MODE=hibernate; ZZZ_HIBERNATE_MODE=reboot;;
H) ZZZ_MODE=hibernate; ZZZ_HIBERNATE_MODE=suspend;;
[h?]) fail "$USAGE";;
esac
done
shift $((OPTIND-1))

case "$ZZZ_MODE" in
suspend) grep -q mem /sys/power/state || fail "suspend not supported";;
hibernate) grep -q disk /sys/power/state || fail "hibernate not supported";;
esac

test -w /sys/power/state || fail "sleep permission denied"

(
flock -n 9 || fail "another instance of zzz is running"

printf "Zzzz... "

for hook in /etc/zzz.d/suspend/*; do
[ -x "$hook" ] && "$hook"
done

case "$ZZZ_MODE" in
standby) printf freeze >/sys/power/state || fail "standby failed";;
suspend) printf mem >/sys/power/state || fail "suspend failed";;
hibernate)
echo $ZZZ_HIBERNATE_MODE >/sys/power/disk
printf disk >/sys/power/state || fail "hibernate failed";;
noop) sleep 5;;
esac

for hook in /etc/zzz.d/resume/*; do
[ -x "$hook" ] && "$hook"
done

echo "yawn."
) 9</sys/power


 No.822954>>823063

Yes:

>HP Spectre x360

>Dell XPS 13

>anything System76 (obv.)

>you might also like puri.sm

No:

>everything fucking else

Buy known-good stuff online, or go to a store and make sure there's not a single Broadcom chip in anything bought new. Broadcom is what Theo de Raadt warned us of: an OEM-friendly early-to-market company that does it at the cost of doing it in badly, in software that then needs firmware updates to actually work properly.


 No.822961>>823063 >>823714

File (hide): 683d123e8dd78ad⋯.jpg (127.15 KB, 428x600, 107:150, 42233472_m.jpg) (h) (u)

Some HP 15" with an A10 9600p, R7m 340, 8GB DDR4, 2TB seagate HDD and a shit 768p TN screen

Just werks out of the box on KDE Neon, Solus and just about every other distro I tried so far


 No.822997>>823043 >>823060

>>822811

>what is backdoored firmware

>what is management engine

>what is System Management Mode

You're fucked with x86, it's inherently backdoored.


 No.822998

On topic: gonna try Debian on my ThinkPad X31 soon-ish, making a USB stick for it atm.


 No.823001>>823063

>>822740 (OP)

Has worked fine on 2 Dell Inspirons for me, with both i5 and i7.


 No.823032

I've never had any issues with sleep on my systems, most OSes got that together awhile ago


 No.823043>>823062

>>822997

>what is management engine

Intel ME is wiped completely off with libreboot being flashed externally. What are you on about.


 No.823059

>>822811

That's nice and all, and it IS an improvement, but it's not "Fully FOSS components."


 No.823060>>823127

>>822997

>inherently backdoored

>inherently

I don't think you know the definition of the word "inherent".


 No.823062

>>823043

Libreboot doesn't support any systems with ME. It's one of the main reasons it's stuck on ancient hardware.

Maybe this will change soon, people have supposedly found a vuln to run user code on ME.


 No.823063>>824577

>>822954

>>HP Spectre x360

>>Dell XPS 13

>>822961

>Some HP 15" with an A10 9600p, R7m 340, 8GB DDR4, 2TB seagate

>>823001

>Has worked fine on 2 Dell Inspirons for me, with both i5 and i7.

Seems like HP and Dell are more reliable than modern Thinkpads, at least from my experience. I have a Thinkpad with a 4th gen i5, and suspend is fucked. However, apparently Haswell specifically had a suspend bug.

https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Instantaneous_wakeups_from_suspend


 No.823065

I have a Haswell / GTX750ti with proprietary drivers installed. I've never had issues with the Nvidia hardware, but a couple of times when using Haswell GPU I've had to Ctrl+Alt+F3 and kill lightdm to get control back. If you're on a desktop machine, you can just disable sleep suspend and hibernate.

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target


 No.823068

File (hide): 75724be8c11cc16⋯.png (315.51 KB, 1000x847, 1000:847, ClipboardImage.png) (h) (u)

>>822740 (OP)

Works for me. I'm using a standard Dell Latitude E6530 (you can google the specs)

And I installed Manjaro linux on it.


 No.823095>>823100 >>823714

I second this. I want to hibernate and reboot into win10 for vidyagames. Then come back to where I left off.

I just wonder if having FDE encryption will throw a monkey wrench into these plans.


 No.823100>>823126

>>823095

> I want to hibernate and reboot into win10 for vidyagames. Then come back to where I left off.

What the fuck?


 No.823126>>823131 >>823162

>>823100

Hibernate Loonix, restart into Win10 for gamezz, done with games? shutdown Win10, resume Loonix.


 No.823127

>>823060

Blame (((them))) for inherently backdooring x86.


 No.823131

>>823126

Do you change boot sequence in between or can you set the some BIOS to always ask what to boot from?


 No.823137

>>822740 (OP)

try in terminal:

pm-suspend

sometimes with gnome the ui breaks and suspend, shutdown, restart don't work.


 No.823152>>823714

Hibernating is for faggots tbqh


 No.823153

KVM, run Windows with the beefy GPU, use Linux simultaneously.


 No.823162

>>823126

that's never how hibernate works dumbass


 No.823166>>823382

My X230 worked with everything out of the box, from the suspend to the fingerprint reader.


 No.823355

systemctl suspend


 No.823379>>823714

>hibernating a FDE sytem

Enjoy your exposed swap partition with all keys, cucks.


 No.823382

>>823166

There are many driver writers for Linux that are also fans of the Thinkpad. This is the reason why Thinkpads are well supported in Linux.


 No.823434

>>822740 (OP)

Yes. I haven't encountered an issue in a decade.

Well I did have a winxp BSOD on hibernate if that counts?


 No.823681

>>822740 (OP)

Yes, on Lenovo Yoga 300. It's some Bay Trail, I can dump lspci if you care.

Actually, for a while I haven't used a laptop where suspend/resume failed.


 No.823714>>823794

>>822961

<Some HP 15" with an A10 9600p, R7m 340, 8GB DDR4, 2TB seagate HDD and a shit 768p TN screen

>that specs

>that nigger 16:9 768p TN screen

>>823095

>I second this. I want to hibernate and reboot into win10 for vidyagames. Then come back to where I left off.

I am afraid that won't be possible. When I hibernate my Microsoft Windows, then start PC, it unhibernates Microsoft Windows, I don't have OS choice. I would need to shutdown and boot to see OS choice.

>>823152

>Hibernating is for faggots tbqh

hibernating is for superior people that care about productivity. you are not one of them.

>>823379

>hibernating a FDE sytem

>Enjoy your exposed swap partition with all keys, cucks.

that's bullshit

FDE = Full Disk Encryption. that includes swap.

Especially on Microsoft Windows, as it keeps swap on system partition. Stupid Linux has separate swap partition, but that's because it's inferior to Microsoft's product.


 No.823715

Laptop, Dell Vostro 1520: suspend just werks; both under Windows XP and 7 as well as Linux (any kernel >=3)

Hibernation "works" as well, but takes forever to restore from on both OSs.

Self build desktop with Phenom II X6 CPU : suspend just werks, though Windows sometimes decides to wake up in the middle of the night. Hibernate on Linux doesn't work, the monitor gets turned off, then immediately back on, and I'm back at the login screen.

On Windows, Hibernate just crashes the system (monitor off, computer still running, doesn't accept ANY input whatsoever, have to hard reset)

So, suspend good, hibernate crap, regardless of the OS.


 No.823794

>>823714

Linux allows you to keep swap in file.

With basic secure FDE your swap is encrypted with random key on every boot and key is erased on power off, with hibernate you choose to keep this key persistent. It's not secure though since if attacker accidentally decrypts your file system, xe will also get access to random struff in your ram moments before suspend. However, I suppose, you can save random swap key on an external drive alongside with general encrypted partition key and have more security overall.


 No.823857

Works fine for me, used to screw up network manager a while back but it stopped doing that months ago


 No.824444

>>822740 (OP)

I never had problems with sleep or hibernation under Linux until Debian switched to systemd, then hibernation stopped working.

I said 'fuck this' and moved to Devuan and now it works again.


 No.824475

File (hide): 23218883dc4f8cf⋯.png (16.64 KB, 800x687, 800:687, works on my machine.png) (h) (u)


 No.824531

>>822766

>The info on this topic is very sparse

If you're using systemd, check this out:

https://wiki.archlinux.org/index.php/Power_management#Power_management_with_systemd

I set up my hibernation flawlessly with info from here. And this is on a shitty HP not-free-software-friendly laptop


 No.824561

File (hide): f5d7772026ce962⋯.jpg (14.31 KB, 256x304, 16:19, after-dark-box.jpg) (h) (u)

Slightly off-topic, how can I make display sleep/screensaver work properly?

Desired behavior:

>display goes to sleep when computer isn't used, stays awake when playing video

Actual behavior:

>display usually stays on when computer isn't used for hours, sometimes without even the screensaver working. Almost always goes to sleep right on time when playing video, even when played in a dedicated program like SMPlayer or VLC rather than a web browser, even when fullscreen.


 No.824577

>>823063

Don't ever touch HP hardware, be it a prebuilt or a printer.

Out of the big names there's not a single worse manufacturer than them.


 No.824610

>>822740 (OP)

Mobo: ASUS M5A99FX PRO R2.0

CPU: FX-8320

GPU: GTX 970

Sound card: Asus Xonar DSX

It all works after suspend: Video, audio, everything. Audio functionality also restored just fine with the onboard.

As for laptops:

Lenovo Y50 4k (last model with 860M).

It jest werks.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
48 replies | 5 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / 4am / cyber / film / imouto / just / loomis / stol / strek ][ watchlist ]