Skip to content

u/digital-sync

In this archive from Oct 2021 to Feb 2024

4
posts
25
comments
0
media
79
score

For laptops it's very important. I've lost count of the number of colleagues who left their laptops in a cab, or at the airport, or in a cafe/bar/pub (etc). The company doesn't care about the value of the laptop, but it does care about the information on the laptop. Imagine you lose your laptop - someone could then copy your ~/.ssh directory, your Chrome or Firefox directory etc... They would be able to open all your web pages for which you have saved your password (and set auto-login). Perhaps you've saved your online banking credentials but you have 2FA enabled - a malicious actor might then be able to order a new SIM card with the information in your emails.

For me, personally, I think it's better safe that sorry. I don't know how to enable LUKS disk encryption post installation, have never done this.

1 points

I have a Ryzen 7 6800H. With the dGPU completely powered down (so I'm only using the iGPU), power draw hovers around 16W for me too:

$ mpv --hwdec --ytdl-format="(bestvideo[height<=1080]+bestaudio)[ext=webm]/bestvideo[height<=1080]+bestaudio/best[height<=1080]/bestvideo+bestaudio/best" https://www.youtube.com/channel/UCpB27-wOnjRwUOtqQ4L3Tlw

Playing: https://www.youtube.com/channel/UCpB27-wOnjRwUOtqQ4L3Tlw/videos Playing: https://www.youtube.com/watch?v=SDmWcblzVzw (+) Video --vid=1 () (vp9 1920x1080 60.000fps) (+) Audio --aid=1 --alang=eng () (opus 2ch 48000Hz) File tags: Uploader: Joshimuz Channel_URL: https://www.youtube.com/channel/UCpB27-wOnjRwUOtqQ4L3Tlw Cannot load libcuda.so.1 Using hardware decoding (vaapi). AO: [pipewire] 48000Hz stereo 2ch floatp VO: [gpu] 1920x1080 vaapi[nv12]

If I play the video with MPV at 720p, power draw sits just under 13W.

1 points

Yes, I did. The first machine I found was the Dell Inspiron 16 Plus 7610. Unfortunately, I had to return that machine because it has a defective touchpad (a known issue with that model). I'm not sure if the latest model (the Dell Inspiron 16 Plus 7630) also has video out without having to enable the discrete GPU.

The laptop I have at the moment is the Lenovo Legion 7 gen 7 (AMD edition). The USB-4 port on this machine can be used to drive an external monitor, and it's not hardwired to the discrete GPU (so the dGPU can remain off while running an external monitor). I can get around 6 or 7 hours of "light use" from this laptop, which is perfect for my requirements. Unfortunately, I haven't figured out how to completely disable the dGPU (a Radeon RX 6700m), but it's not a big deal as it remains powered down anyway (unless I run something with DRI_PRIME=1). I can also switch to dGPU mode in the BIOS if I need to.

The Gigabyte G5 is another laptop - the only port hardwired to the dGPU is the mini-DisplayPort.

I recently ordered a Lenovo Yoga 7 gen 8 (with the Ryzen 7 7840S, and no dGPU). It hasn't arrived yet, but I'm very curious about how that's gonna run Linux, and how long the battery will last under my particular workloads :)

2 points

I have a Legion 7 gen 7 AMD (Ryzen 7 6800H, Radeon RX 6700m).

Yes, my dGPU enters a D3cold state too (so basically powers down) unless I specifically run an app with variable DRI_PRIME=1. There are programs that will automatically turn on the dGPU (for example, nvtop).

I just want to disable the dGPU completely (if it's possible). This is something I do on my Legion 5 gen 5 (AMD). It's great the way it works now, but I'd still like to be able to put the laptop into an "iGPU-only" mode.

1 points

Ah, okay - thanks for that! Yes, everything in my "tunables" tab is labelled "good". I just thought the "modprobe cpufreq_stats failed" and "glob returned GLOB_ABORTED" meant that it failed.

I fully understand that powertop is providing estimations, but so far I've been pleasantly surprised to see that those estimations are actually less than what I'm actually getting from running on battery :)

Really loving this laptop - has exceeded all my expectations (despite the fact it was designed for "gaming").

Anyway, the time for setting things up has ended, it's now time to start coding :)

Thanks for your help in this thread!

1 points

But the auto-tune is the most important

Ah, right. I ran with --calibrate, but not with --auto-tune. Trying to get --auto-tune to work seems to be quite difficult:

$ sudo powertop --auto-tune
modprobe cpufreq_stats failed
Loaded 750 prior measurements
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask 5
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask 5
Devfreq not enabled
glob returned GLOB_ABORTED
Leaving PowerTOP
$

Currently googling around for a solution...

1 points

Nooooooo! Ah well, you live and learn :D

Seriously though, thanks for the info - I won't waste any more time trying to figure out how to disable the thing.

I've had pretty good luck with the Legion line and Linux, just never gone for a Legion 7 before. I'm still gonna keep it as I can still get 7 hours out of it on a full charge (and I like everything else about this laptop - including the fact that I can use an external monitor via the USB 4 port without having to power on the dedicated GPU!).

I did order a ThinkPad T16 gen 1 AMD before I bought this thing. I cancelled the order though as it kept getting delayed (waited for 1.5 months).

2 points

Okay, I think I see what you're getting at now - I think you're referring to "Runtime D3" (RTD3) - a hardware level feature that automatically powers down the dedicated GPU if it's not in use (not required). This only works with modern CPU/GPU combinations. I would love to know if this works with dedicated AMD GPUs, or if this is just an Nvidia feature.

The reason why I have to use envycontrol on my Legion 5 is because RTD3 doesn't work on my model (for whatever reason). I've posted in the Nvidia forums, others with the same laptop have said it just doesn't work with this particular model.

I'm specifically looking for information on "AMD Advantage" laptops and GPU power management (i.e. laptops that have both an AMD CPU and dedicated AMD GPU).

Hopefully, my Legion 7 will have something similar to "Runtime D3" (RTD3). If the dedicated AMD GPU automatically powers down (or if there's an option in the BIOS to switch to "iGPU-only" mode), or if Optimus-Manager or EnvyControl work, then I'll be a happy camper.

3 points

Thanks for the info. I have a Legion 5 (5th gen, I think - has a Ryzen 7 4800H and Nvidia 1660TI). Both envycontrol and "Optimus Manager" work well with my Legion 5 - I'm able to power down the dedicated Nvidia GPU (although it requires a reboot, which is fine). When the Nvidia GPU is powered down, idle sits at around 8W. When the Nvidia GPU is powered on, idle power usage us around 17W.

Please provide more information:

  1. What model Legion do you have?
  2. Is your dedicated GPU Nvidia or AMD?
  3. Why do you suggest not installing "GPU-switching" software?
  4. What is the setting in your BIOS that makes the dedicated GPU disappear?

Thanks.

2 points

It might be slightly outside of your price range, but the Lenovo Legion 5 gen 5 (Ryzen 7 4800H) runs Linux really well. Not sure how much a secondhand one costs these days. Gamers seem to dump their "old" gaming laptops on the secondhand market within a couple of years :)

1 points

Linux can be frustrating, but I get extremely frustrated when I use Windows or Mac OS. I've been using Arch (with KDE Plasma) for quite a few years now, love it. It has been rock solid for me on my laptop(s) and desktop, even though it's a rolling release. If Linux is too frustrating for you, use something else. I've seen a lot of folks who found Linux frustrating switch to Mac OS, and they seem quite happy, so perhaps give Mac OS a shot :) Use whatever works for you!

1 points

I had the same issue since I first purchased my Ryzen 7 3900x workstation (ASUS Prime x570p mobo). Running Arch Linux. Nothing in the logs (sudden death). I found out there were a couple of solutions that prevented the random freezing:

  1. Setting the CPU Ratio in the BIOS to 36.
  2. Setting the CPU core voltage to 1.25 (something like that, can't remember the exact value).

Very recently, I upgraded the BIOS to version 4408 and then restored all BIOS settings to defaults. The only BIOS setting I changed was the one required for virtualization (VT-x, something like that).

It has been about two weeks now, and my Ryzen 9 3900x workstation has been working flawlessly - hasn't missed a beat, zero freezing. It's also running much more quietly.

I can't believe this issue has existed for over 2 years! Anyway, very happy it has been fixed (better late than never).

1 points

I have the same laptop, also running Arch with KDE, have installed the latest BIOS firmware. Hibernate (sleep) works, but it doesn't wake up properly when the lid is opened (just freezes). Other than diving in to some kernel coding, I don't think there's much you can do to get hibernate/sleep waking properly.

Other than this issue (and the WiFi card, which I replaced), it's a great little snappy Linux laptop. I've decided to keep mine, and have just gone in to the Power Settings and set the "close lid" action to "turn off screen".

Off topic, but here's a video of the Inspiron 5625 running Arch and recording 60FPS with SimpleScreenRecorder!

Really hope this issue is fixed soon, as it's a super little budget friendly Linux laptop.

2 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.