News for hackers. Stuff that matters.
Re:Ask HN: What does one look for in a laptop these days? by hiisukun on Thursday October 14, 2021 @06:17AM (#28862390)
1. S3 Standby/suspend support.

If your laptop supports that, you can close the lid and it will power ~everything except the RAM down (sometimes a USB port still charges). In 'new' laptops, including almost everything Tiger lake and Intel, S3 is being phased out for Microsoft's "Modern Standby", known as S0ix (or sometimes InstantGo). This is much more like a mobile phone, where it stays on but attempts to use as little battery as possible.

So, peripherals might shut down, but you might still be able to get critical Windows Updates or receive an important notification -- all while your laptop is unplugged, lid closed, in your bag overnight. This is pretty bad for heat, battery, and often not what you might expect. My new laptop uses about 15% battery overnight, just doing nothing.

In the future, perhaps this mode will work as well as S3 used to for battery life, but finding your laptop fans on while it's closed inside your bag and getting really hot is not fun. This applies to lots of laptops currently.

2. A good screen. Brightness that goes high enough to be seen outside (400, or more) - and it'll usually auto turn down the rest of the time to save battery. Hard to go wrong on a Mac, but really variable screen quality across other brands and models. You'll spend a lot of time looking at the screen.

Re:Ask HN: What does one look for in a laptop these days? by grandpoobah on Thursday October 14, 2021 @06:50AM (#28862628)
Was going to post the same thing (albeit far more poorly explained).

Isn't Microsoft embarrassed about this? This has been an issue for my last two laptops over the last 5 years. How is it acceptable for this problem to still exist?

My Lenovo supports S3 sleep, but I didn't discover it until probably a year into having bought it, so at that point my battery's ability to hold charge had already been sufficiently degraded, to the point where I'm having to charge this thing every day when I'm mostly only using it for basic web browsing.

I will never buy another Windows laptop, and if Visual Studio ran on Mac I'd probably switch my PC out also. I'm not a mac guy, I find MacOS fairly unintuitive, and really hate the placement of the Ctrl key, but at this point it's clear that Apple's model better lends itself to quality, and I'm sick of all the broken crap that is deemed acceptable in the Windows world.

As I was typing this, a great example of said broken crap, is Lenovo popping up a MessageBox asking me to reboot to update my firmware. Didn't software developers all agree well over a decade ago that windows stealing focus was not a good thing? So why then is a top of the line brand in the PC world writing shit like this?

Re:Ask HN: What does one look for in a laptop these days? by nikau on Saturday October 16, 2021 @05:57AM (#28886719)
Your battery is likely worn from keeping it charged at 100% constantly, lenovo have an option to limit max charge to something like 80% which will greatly reduce battery wear, you just have to turn it off if you are actually planning to run it without AC for as long as possible.
Re:Ask HN: What does one look for in a laptop these days? by Frost1x on Saturday October 16, 2021 @09:51AM (#28887887)
This is really a poor software solution to an old hardware solution that disappeared for the sake of thinness: removable batteries. In the past with easily removable battery packs you could simply pop them out once they're fully charged and pop them in when you wanted to make sure they were charged up. When manufacturers started touting long life cycle batteries to justify internalizing them and making them difficult to replace and impossible to quickly pop out, software manufacturers added this in to attempt or extend battery life.

Before, I simply removed my battery when plugged in all day and significantly extended my battery life. If I needed it, it was mostly charged. It would of course dissipate over time so if I had any plans of using my laptop in an actual mobile fashion or wanted to move my laptop from one long term power source to the next, I'd pop it in, make the move and pop it back out. I of course lost the UPS feature having a laptop with a battery pack also served but I could assess when I thought my power source was/wasn't stable and pop the battery in under those conditions (not very often).

Most people I know use laptops as portable workstations. If you frequently operate in situations where you desire battery alone then the OS charge management works quite well. I don't and most people I know don't. In today's world, mos the use cases I operate under those conditions are better served by my smartphone.

Re:Ask HN: What does one look for in a laptop these days? by sgc on Saturday October 16, 2021 @10:37AM (#28888170)
They should just install a physical off switch for the battery, along with physical switches for the camera and networking.
Re:Ask HN: What does one look for in a laptop these days? by shawnz on Saturday October 16, 2021 @11:22AM (#28888482)
What's wrong with the current solution of having a software switch, aside from lack of use/knowledge about it? What's the advantage to making it physical?
Re:Ask HN: What does one look for in a laptop these days? by krapp on Saturday October 16, 2021 @11:24AM (#28888495)
Software switches can be controlled remotely without your knowledge. A physical switch requires physical access to the device.
Re:Ask HN: What does one look for in a laptop these days? by shawnz on Saturday October 16, 2021 @11:25AM (#28888499)
I am just talking about the battery. I don't see any privacy issue there.
Re:Ask HN: What does one look for in a laptop these days? by sgc on Saturday October 16, 2021 @06:43PM (#28892237)
Sometimes you really need to make sure there is no power flowing through your device, which you can't be sure of using software when you are trying to fix software problems. Of course I should have said recording devices and networking, rather than just cameras.

Also, true power off guarantees nobody is remotely activating eavesdropping on your device.

Re:Ask HN: What does one look for in a laptop these days? by nikau on Saturday October 16, 2021 @08:33PM (#28892900)
Lenovo have a battery disconnect bios option specifically for doing service work.
Re:Ask HN: What does one look for in a laptop these days? by krapp on Saturday October 16, 2021 @11:31AM (#28888536)
Maybe the concern there is devices appearing to be turned off but really still running in low power mode? The only way to be sure is to physically interrupt the power supply.
Re:Ask HN: What does one look for in a laptop these days? by 8note on Saturday October 16, 2021 @03:56PM (#28890916)
The people writing the software have a vested interest in your battery wearing out so you have to buy a new laptop
Re:Ask HN: What does one look for in a laptop these days? by godDLL on Saturday October 16, 2021 @11:36AM (#28888573)
Or externalize the camera and networking modules, so that one can pop them in and out like a battery. Yes.
Re:Ask HN: What does one look for in a laptop these days? by trashcat on Saturday October 16, 2021 @02:30PM (#28890185)
This is why I still use my Thinkpad W520. If I don't need the battery I just take it out until I need it. I hate that we got rid of removable batteries in basically all devices.
Re:Ask HN: What does one look for in a laptop these days? by MaxikCZ on Saturday October 16, 2021 @06:24AM (#28886836)
My HP G8 zBook Power have this feature as well, but its only accessible through bios. Luckily their BiosConfigUtility64.exe allows changing bios variables from windows, and the change takes effect immediately. My two .bats for 80 and 100% charging limits.

C:\Programs\SP107705\BIOSConfigUtility64.exe /setvalue:"Battery Health Manager","Maximize my battery health"

C:\Programs\SP107705\BIOSConfigUtility64.exe /setvalue:"Battery Health Manager","Let HP manage my battery charging"

Re:Ask HN: What does one look for in a laptop these days? by hutzlibu on Saturday October 16, 2021 @08:00AM (#28887243)
Most batteries on laptops are worn out by heat. They really do not like heat, but will take lots of it, when placed and used in unfavorable conditions, which most laptops probably are.
Re:Ask HN: What does one look for in a laptop these days? by 8note on Saturday October 16, 2021 @03:56PM (#28890921)
My laptop only heats up in sleep mode, unfortunately.
Re:Ask HN: What does one look for in a laptop these days? by godDLL on Saturday October 16, 2021 @11:37AM (#28888587)
Heat mostly matters when charging or discharging rapidly, if wear is concerned. So might be less significant than you'd think.
Re:Ask HN: What does one look for in a laptop these days? by hutzlibu on Saturday October 16, 2021 @12:30PM (#28888999)
Well, I have a gaming laptop I bought quite new, but second hand, that was almost never used without cabel (I saw the formerly setup) - and the batterie was allmost dead and blown up in size after some months of use. But since it is a gaming laptop - it generated massive amounts of heat under load. I bought a new battery and took care of the heat: and it is still quite good, after roughly the same time and amount of use and I do charge till 100%.
Re:Ask HN: What does one look for in a laptop these days? by godDLL on Sunday October 17, 2021 @04:17AM (#28894832)
Throttling of CPU and GPU should surely account for 90% of what you describe, coupled with an old, uncycled battery that can't move ions no more.
Re:Ask HN: What does one look for in a laptop these days? by flyinghamster on Saturday October 16, 2021 @06:56AM (#28886992)
My two-year-old Dell Inspiron also has a BIOS option for a "Mostly on AC power" charging profile. I'll still give the power cord a yank every now and then and let it run on battery for a while.
Re:Ask HN: What does one look for in a laptop these days? by iamtheworstdev on Saturday October 16, 2021 @07:08AM (#28887037)
dell has had this feature since i was in college twenty years ago.. it's such a great one
Re:Ask HN: What does one look for in a laptop these days? by noisy_boy on Saturday October 16, 2021 @10:25AM (#28888095)
I set it via tlp[0]:

    sudo tlp setcharge $start_precent $stop_percent BAT0
[0]: https://linrunner.de/tlp/
Re:Ask HN: What does one look for in a laptop these days? by motoboi on Saturday October 16, 2021 @02:19PM (#28890082)
His battery is likely worn by recharging cycles. As the computer is being discharged more often.
Re:Ask HN: What does one look for in a laptop these days? by nikau on Saturday October 16, 2021 @08:43PM (#28892965)
Nope, its from charging to 100% constantly which accelerates wear massively.

I've had my Lenovo carbon x1 for a few years set to 80% max charge and its battery life is still good.

Battery stats report 480 charging cycles, capacity has dropped only 8 percent from rated.

Re:Ask HN: What does one look for in a laptop these days? by motoboi on Sunday October 17, 2021 @06:21AM (#28895356)
It’s not charging to 100% that wears batteries out. It’s storage at 100% that does that.

If you charge to 50% and keep it there, it basically last years.

If you use your notebook primarily on AC, battery is charged and kept on “storage” until you unplug from AC. Over the years, this is equivalent to a battery stored on a box.

So, time stored on a box with 50% is better than 80%, which is also better than 100%.

But. If your notebook is used primarily unplugged from AC, that 100% is better than 80%, because you’ll have fewer deeper discharges.

Deep discharges is what form dentrites. Dentrities is what kill lithium batteries.

Re:Ask HN: What does one look for in a laptop these days? by nikau on Sunday October 17, 2021 @10:21AM (#28896654)
> If you use your notebook primarily on AC, battery is charged and kept on “storage” until you unplug from AC. Over the years, this is equivalent to a battery stored on a box.

I'm not sure what you mean, by default most laptops will charge to 100% and keep trickle charging it to that level consistently while on AC.

Setting a charge max of 40% would be ideal, but there is point where you want to maintain some level of runtime when removed from AC, so 80% is a reasonable compromise.

Re:Ask HN: What does one look for in a laptop these days? by IncRnd on Saturday October 16, 2021 @12:53PM (#28889224)
It is terrible to limit max battery charge, so max battery charge doesn't decline!!!
Re:Ask HN: What does one look for in a laptop these days? by nikau on Sunday October 17, 2021 @02:35AM (#28894446)
Its akin to not driving your car in the redline constantly - sure you can do it, but its going to reduce engine life.

Its the same with batteries, you keep them at 100% constantly they will wear out. Its just a limitation of the technology.

Some devices now try and use "machine learning" to determine max charge, for example iphones will maintain a medium charge throughout the night then do a final top up charge to reach 100% just before you wake up.

Re:Ask HN: What does one look for in a laptop these days? by IncRnd on Sunday October 17, 2021 @07:14AM (#28895609)
> Its akin to not driving your car in the redline constantly - sure you can do it, but its going to reduce engine life.

Yes, of course. That's not the issue, though.

> Some devices now try and use "machine learning" to determine max charge, for example iphones will maintain a medium charge throughout the night then do a final top up charge to reach 100% just before you wake up.

That's different and even opposite from advertising X max charge and only delivering 80% of X as the max charge. What I referred to is a bait and switch, where the manufacturer advertises one thing but provides another. Your example justification, however, is not a bait and switch but aligns the technical MVPs and marketing promises.

The situation is similar to purchasing a fridge that only operates at 80%. All food spoils more quickly, but the fridge lasts longer. If that had been disclosed, instead of the opposite implication from the marketing, then consumers would have almsot certainly made different purchasing decisions. That is why these sorts of things are generally illegal.

In your car example, if a car is advertised with 400 HP but never goes above 320 HP, that's called false advertising. Sure, the engine can get to 400 HP tested on a bench, but that's not why the car was purchased.

Re:Ask HN: What does one look for in a laptop these days? by nikau on Sunday October 17, 2021 @10:25AM (#28896686)
Right, so what vendors are doing now is calling batteries consumables that last one, maybe two years with the default 100% charging limit to get max run time on battery.

Consumers can either accept this and pay for a new battery every few years, or if they want they can limit to 80% and get way longer life battery life if they can live with the reduced runtime.

I'm not aware of any vendors claiming x capacity battery with mandatory limiting charging to 80% of x, rather its an option you have the choice to explicitly enable.

Re:Ask HN: What does one look for in a laptop these days? by orangecat on Saturday October 16, 2021 @02:44PM (#28890306)
Isn't Microsoft embarrassed about this?

Yeah, I was astounded when I recently found out about the "modern standby" idiocy. I've almost always used Mac laptops, but I just assumed that at some point in the last 20 years the PC world would figure out reliable sleep. And it seems like they mostly did, and then Microsoft broke it for no good reason?

Re:Ask HN: What does one look for in a laptop these days? by jabroni_salad on Saturday October 16, 2021 @09:51AM (#28887884)
I actually just want them to fix connected standby and properly be able to do these things with low power.

My phone (a oneplus 6) can be on standby for nearly a week. That windows laptops attempt at this mode drains the battery by the end of a workday is just pathetic. Instant resume should be available with no practical compromises.

Re:Ask HN: What does one look for in a laptop these days? by spicybright on Saturday October 16, 2021 @01:37PM (#28889652)
That is seriously bad.

Just as a data point, my 2019 mac sleeps perfectly for multiple days, no problem.

Re:Ask HN: What does one look for in a laptop these days? by Godel_unicode on Saturday October 16, 2021 @03:26PM (#28890675)
My 2019 Razer Blade does the same.
Re:Ask HN: What does one look for in a laptop these days? by t_von_doom on Saturday October 16, 2021 @08:13AM (#28887310)
As a Mac user with the same gripe of the ctrl key placement: Remapping it to the caps lock works wonders :)
Re:Ask HN: What does one look for in a laptop these days? by browningstreet on Saturday October 16, 2021 @10:23AM (#28888072)
I use so many keyboards, not all of which are under my control.. I wish I could, but it would bring chaos to my typing world.
Re:Ask HN: What does one look for in a laptop these days? by loonster on Saturday October 16, 2021 @11:01AM (#28888319)
Something like that exists for DVORAK. Maybe someone else makes a similar product that works like an any keyboard.

https://www.keyghost.com/qido/

Re:Ask HN: What does one look for in a laptop these days? by selfup on Saturday October 16, 2021 @01:17PM (#28889445)
You can set this in the OS itself.
Re:Ask HN: What does one look for in a laptop these days? by manquer on Sunday October 17, 2021 @03:41PM (#28899149)
Wouldn't you need root/admin access for that ?
Re:Ask HN: What does one look for in a laptop these days? by pw6hv on Saturday October 16, 2021 @01:50PM (#28889809)
> As I was typing this, a great example of said broken crap, is Lenovo popping up a MessageBox asking me to reboot to update my firmware. Didn't software developers all agree well over a decade ago that windows stealing focus was not a good thing? So why then is a top of the line brand in the PC world writing shit like this?

Don't think that MacOS spares you about that either. Update notifications are equally distracting.

Re:Ask HN: What does one look for in a laptop these days? by finalfire on Saturday October 16, 2021 @02:47PM (#28890324)
> Don't think that MacOS spares you about that either. Update notifications are equally distracting.

You're right but if I recall correctly notifications do not steal the focus.

Re:Ask HN: What does one look for in a laptop these days? by throwawayboise on Saturday October 16, 2021 @03:32PM (#28890724)
> why then is a top of the line brand in the PC world writing shit like this

"It's OK when we do it"

Re:Ask HN: What does one look for in a laptop these days? by tshaddox on Saturday October 16, 2021 @12:57PM (#28889267)
My bet is that Microsoft and Windows laptop manufacturers aren’t embarrassed by this because approximately no one uses their laptop as a portable device. The laptops just sit on the desk charging 99.9% of the time. People use their smartphones the rest of the time.
Re:Ask HN: What does one look for in a laptop these days? by klodolph on Saturday October 16, 2021 @01:49PM (#28889800)
Really? Maybe in 2020 or 2021, but not in 2019. My work laptop got dragged to meetings and gets taken on flights to remote offices. My personal laptop gets used in every room of the house.
Re:Ask HN: What does one look for in a laptop these days? by r00fus on Saturday October 16, 2021 @01:47PM (#28889775)
Most companies issue laptops instead of desktops.

While commuting back and forth to work those are definitely asleep in a bag/briefcase.

Re:Ask HN: What does one look for in a laptop these days? by devwastaken on Sunday October 17, 2021 @01:47AM (#28894273)
Microsoft released windows 11, so, no, they have no shame. Microsoft is a company without leadership, without direction, and without a central vision. The only feature of windows that people like, is that it continues to run the software they need. Other than that the OS itself gets in the way, stops your workflow, and makes your life harder. And the only other commercial alternative is just as bad in other ways. The natural result of letting the computer marker be controlled by a few big players.
Re:Ask HN: What does one look for in a laptop these days? by dustinmoris on Saturday October 16, 2021 @06:19AM (#28886809)
JetBrains Rider. If you care about quality, don't bother with Visual Studio at all.
Re:Ask HN: What does one look for in a laptop these days? by pico303 on Saturday October 16, 2021 @03:58PM (#28890932)
Or CLion, if you’re doing C++ or Rust development
Re:Ask HN: What does one look for in a laptop these days? by seanw444 on Sunday October 17, 2021 @12:21PM (#28897548)
Battery drain a problem? Join the Framework laptop movement. Mac bothers you slightly less than Windows does (and costs more for the same hardware)? Make the jump to Ubuntu and dip your leg into desktop Linux. If you're inseparable from Visual Studio, I'd think Wine could handle it.
Re:Ask HN: What does one look for in a laptop these days? by JadeNB on Saturday October 16, 2021 @11:50AM (#28888682)
> really hate the placement of the Ctrl key

Macs used to be really customiseable, and they haven't got around to ripping all of that out yet.

System Preferences > Keyboard > Modifier Keys

You can control how the various keys behave.

Re:Ask HN: What does one look for in a laptop these days? by allwein on Friday October 15, 2021 @07:58AM (#28876799)
> and if Visual Studio ran on Mac I'd probably switch my PC out also

Not sure if it supports all the features you need, but it exists.

https://visualstudio.microsoft.com/vs/mac/

Re:Ask HN: What does one look for in a laptop these days? by glenarma on Saturday October 16, 2021 @04:48AM (#28886471)
That’s just a rebranded Xamarin IDE - but for .NET development on Mac, I’ve found JetBrains Rider does most of what the full Visual Studio package does
Re:Ask HN: What does one look for in a laptop these days? by hoistbypetard on Saturday October 16, 2021 @05:28PM (#28891721)
I like Rider better even on Windows. My favorite thing about Visual Studio on Windows was always the debugger, and I think Clion and Rider have lapped them there in the past two years.
Re:Ask HN: What does one look for in a laptop these days? by beermonster on Saturday October 16, 2021 @06:40AM (#28886927)
Yes it's just Xamarin modified to look like a native Visual Studio for Mac.

Much better off using Rider (also works nicely on Linux).

Re:Ask HN: What does one look for in a laptop these days? by ddek on Saturday October 16, 2021 @06:51AM (#28886968)
IntelliJ is still a little broken on wayland I think. Last I checked they were waiting on a patch to Swing, so right now it's only running under XWayland, it's fairly buggy and doesn't scale nicely. You also need to set some env variables or you'll get a blank screen. It still works pretty well though, which is better than any other similar IDE.
Re:Ask HN: What does one look for in a laptop these days? by ziml77 on Saturday October 16, 2021 @08:04PM (#28892738)
Seconding Rider if you're on macOS. It shares its analysis code with ReSharper, so it's extremely featureful. In fact, it's usually faster than VS + ReSharper because it isn't running two code analysis engines at once and it doesn't have to run the analysis out-of-process.
Re:Ask HN: What does one look for in a laptop these days? by can16358p on Saturday October 16, 2021 @06:08AM (#28886765)
Note that if OP expects anything like the "real" Visual Studio that runs on Windows, this is really nothing compared to it. I'd even go further and actually prefer Vscode with the right extensions compared to this "Visual Studio".
Re:Ask HN: What does one look for in a laptop these days? by 867-5309 on Saturday October 16, 2021 @08:32AM (#28887386)
sounds like when we try to run iTunes on Windows - each competitor is intentionally crapping on the other's users
Re:Ask HN: What does one look for in a laptop these days? by my123 on Saturday October 16, 2021 @11:06AM (#28888358)
Don't worry, the Music app on macOS is just as bad as iTunes on Windows...
Re:Ask HN: What does one look for in a laptop these days? by ziml77 on Saturday October 16, 2021 @07:58PM (#28892705)
It's more that Visual Studio is a massive project that was built around running on Windows. It would be a huge undertaking to bring it over to another OS and probably not add nearly enough value. The only reason macOS has "Visual Studio" at all is because Microsoft bought out Xamarin and rebranded their Xamarin Studio product.
Re:Ask HN: What does one look for in a laptop these days? by can16358p on Saturday October 16, 2021 @10:47PM (#28893517)
Yup it would just not be worth it to bring real VS to macOS. Then why decrease its brand value by marketing a crappy product like Xamarin (which I think has always been bad, and I honestly don't know why MS bothered to buy it) as if it was VS? Just call it Xamarin, or VS "lite", or anything, but not VS as it is not VS.
Re:Ask HN: What does one look for in a laptop these days? by ziml77 on Sunday October 17, 2021 @01:21AM (#28894164)
Consistent branding. Visual Studio is the name they're using for all their code editing software. I don't think it's a good idea given the confusion it causes when people talk about the various programs, but they are distinctly named Visual Studio, Visual Studio Code, and Visual Studio for Mac.

Microsoft has never been good at naming things. They made that mess of Windows naming at multiple points and they are still making a mess with the Xbox brand.

Re:Ask HN: What does one look for in a laptop these days? by Lamad123 on Saturday October 16, 2021 @11:03AM (#28888329)
iTunes is crappy in Macs, too!!
Re:Ask HN: What does one look for in a laptop these days? by derefr on Saturday October 16, 2021 @12:04PM (#28888807)
> Isn’t Microsoft embarrassed about this?

Do Microsoft Surface devices have this problem (the heat/fans spinning/high battery drain while sleeping, I mean)? If not, then Microsoft has no need to be embarrassed; it’s the rest of the PC laptop industry that should be embarrassed for not shipping hardware that does the right thing when the OS asks it to.

(Though, I mean, the rest of the PC industry should already be embarrassed, for still shipping new PCs in 2021 that don’t have Thunderbolt/USB4 ports, and desktop PCs that don’t even have a single USB-C port.)

There’s also the fact that Microsoft is (perhaps by accident of fate) “building for the future”; a lot of Windows 11’s assumptions in particular make sense given hardware and CPU steppings in mind that should have shipped a year ago, but which are caught in the COVID logistical conga-line and so won’t be seen for another year. That includes e.g. Intel CPUs with ARM-like big/LITTLE designs.

Re:Ask HN: What does one look for in a laptop these days? by darzu on Saturday October 16, 2021 @12:34PM (#28889035)
Yes, Surface devices have this problem. It was a frequent occurrence for me to put my Surface Book into my bag and later take it out completely dead or hot and drained.
Re:Ask HN: What does one look for in a laptop these days? by spicybright on Saturday October 16, 2021 @01:36PM (#28889641)
Wouldn't put all the blame on hardware. It's a back and forth sometimes to get the OS and hardware working together.

It's not a 50/50 responsibility split, but it's definitely not 100% on hardware.

Re:Ask HN: What does one look for in a laptop these days? by zeckalpha on Saturday October 16, 2021 @04:06PM (#28891007)
Re:Ask HN: What does one look for in a laptop these days? by carlhjerpe on Sunday October 17, 2021 @07:00AM (#28895535)
Isn't this the MonoDevelop/Xamarin Studio version of VS?
Re:Ask HN: What does one look for in a laptop these days? by eatbitseveryday on Saturday October 16, 2021 @07:55PM (#28892688)
> Visual Studio ran on Mac

Visual Studio Code does. Is that the same?

Even has native M1 support.

Re:Ask HN: What does one look for in a laptop these days? by pxc on Saturday October 16, 2021 @08:47PM (#28892981)
It's not the same at all. Visual Studio is an IDE (like Eclipse) and Visual Studio Code is an extensible text editor (like Emacs).

It is pretty good though. It's enjoying a big surge in popularity lately and seems to deserve it.

Re:Ask HN: What does one look for in a laptop these days? by LindyTalker on Saturday October 16, 2021 @09:44AM (#28887827)
Visual studio running on Mac? I’ve been using visual studio code on it for years no problem. I’m now realizing there’s a difference between the two. Care to explain a little more why you use VS and not VSC?
Re:Ask HN: What does one look for in a laptop these days? by mkr-hn on Saturday October 16, 2021 @09:57AM (#28887920)
Visual Studio and Visual Studio Code are completely different things. VSC can do a subset of what VS can do, but some people really need the full power of a traditional IDE. VS vs VSC is like the difference between a smartphone camera and a full camera platform. You can rig up an iPhone (VSC) to do everything a D6 (VS) can do, but it won't be as usable.
Re:Ask HN: What does one look for in a laptop these days? by esclerofilo on Saturday October 16, 2021 @10:58AM (#28888295)
But Visual Studio 2019 is available for mac.
Re:Ask HN: What does one look for in a laptop these days? by my123 on Saturday October 16, 2021 @11:05AM (#28888346)
It shares some code nowadays (started with a MonoDevelop codebase). However, Visual Studio (not Code) for Mac is mostly targeted at at C# or mobile development.

If you want to make Windows apps, it just doesn't support that scenario.

Re:Ask HN: What does one look for in a laptop these days? by vips7L on Saturday October 16, 2021 @11:06AM (#28888360)
And they just announced they’re rewriting it to native for Mac in 2022…
Re:Ask HN: What does one look for in a laptop these days? by tentacleuno on Saturday October 16, 2021 @07:44AM (#28887179)
> if Visual Studio ran on Mac

It is! What do you mean? :)

Re:Ask HN: What does one look for in a laptop these days? by sk0g on Saturday October 16, 2021 @08:00AM (#28887241)
The Mac version of Visual Studio is closer to a fork of MonoDevelop than mainline VS. Rider is a better experience than either though, IMO.
Re:Ask HN: What does one look for in a laptop these days? by nyxaiur on Saturday October 16, 2021 @09:19AM (#28887683)
The implementation of the none S3 sleep on most windows laptops these days is not microsofts fault. Critical updates (firmware) always have priority and even on mac's you get negging pop-ups for updates all the time. That said you can fix everything what you said with one checkbox. It's not the pc which sucks it's you the user.

For all the people downvoting. He is the equivalent of people making "screenshots" with their mobile phone instead of using printscrn. I bet you are complaining about your own users all the time and here you defend someone who can't even be bothered to look at the options he has. smh

Re:Ask HN: What does one look for in a laptop these days? by yjftsjthsd-h on Saturday October 16, 2021 @12:38PM (#28889086)
The complaint was not that the firmware notification existed or was urgent, but that it stole input focus.
Re:Ask HN: What does one look for in a laptop these days? by bestouff on Thursday October 14, 2021 @07:16AM (#28862818)
This ! Support forums from all brands (big ones like Dell or Lenovo, but also niche brands like Framework) are plagued with requests from unhappy users with their laptop dying in their bag. All because of the Modern Suspend feature. Let's hope AMD mobile processors will work better, and that we'll be able to find decent laptops using them.
Re:Ask HN: What does one look for in a laptop these days? by danieldk on Saturday October 16, 2021 @05:40AM (#28886653)
I had an AMD Ryzen ThinkPad. It has all the same issues with modern sleep. The solution is to enable S3 sleep in the firmware.

Unfortunately, even in S3 sleep, the battery would drain in a day.

I am now back to a MacBook Air (M1) and sleep works perfectly. Life is to short to deal with the terrible state of sleep on Windows/Linux laptops.

Re:Ask HN: What does one look for in a laptop these days? by deckard1 on Saturday October 16, 2021 @04:22PM (#28891138)
I'm fairly certain that your Macbook is actually hibernating, and not merely suspending. This seems to be the case with my 2015 Macbook. Suspend alone will drain your battery.

I have a Ryzen ThinkPad p14s with Linux. What you do is turn on S3 mode (they call it "Linux") in BIOS as you did. Then in /etc/systemd/sleep.conf you enable AllowSuspendThenHibernate. You can adjust the time. I have mine set to 30 minutes. I also have suspend set when the laptop lid closes. Which means when I close the laptop, it suspends for 30 minutes. If I open before 30 minutes, it resumes right away. If not, it hibernates. The battery will last for practically days if you configure it this way.

You have to configure Linux to hibernate and this will depend on your setup. Just know that it is possible to use LUKS encryption and hibernate to a file (or partition).

Another factor with my Macbook is that it seems to automatically resume from hibernate in the morning. Not sure what it's doing. Maybe it's keeping track of when I typically open my laptop. But you can get this same behavior on Linux with rtcwake. If using LUKS though, you'll probably need to use a keyfile rather than a passphrase for this to work. It would be neat if someone wrote a program that could monitor the time you open the laptop and automatically adjust the rtc wakeup times based on historical data.

Re:Ask HN: What does one look for in a laptop these days? by danieldk on Sunday October 17, 2021 @02:25AM (#28894402)
I'm fairly certain that your Macbook is actually hibernating, and not merely suspending. This seems to be the case with my 2015 Macbook.

Actually, as far as I understand it's a mixture like modern sleep in Windows. Like modern sleep, the system also wakes up to fetch e-mail, calendar events, etc. But in contrast to Windows, it actually works well and is very restrictive (only certain whitelisted apps can update). Apple calls it Power Nap:

https://support.apple.com/guide/mac-help/what-is-power-nap-m...

Which means when I close the laptop, it suspends for 30 minutes. If I open before 30 minutes, it resumes right away. If not, it hibernates. The battery will last for practically days if you configure it this way

I know, but hibernate on Linux has many issues. First of all, properly restoring hardware state is even more of a hit and miss than S3 sleep (where e.g. the trackpad would often not come up correctly).

Hibernate on Linux also has all kinds of security issues. Hibernate currently does not work with Secure Boot + kernel_lockdown [1]. Hibernate with randomly-keyed encrypted swap requires all kinds of workarounds.

I am not willing to forgo security mechanisms that have been supported for some time on other systems.

[1] https://mjg59.dreamwidth.org/55845.html

Re:Ask HN: What does one look for in a laptop these days? by ziml77 on Saturday October 16, 2021 @08:13PM (#28892785)
I wouldn't be surprised if most people didn't notice that their MacBook was hibernating. Apple tries to hide it by showing you the login screen immediately, but that period where you can't interact is the device resuming from hibernation. It's a similar trick to what they do on iOS. When you open up an application that was suspended, it shows an image while reloading the saved state to make it seem like the app never closed. (As documented here: https://developer.apple.com/documentation/uikit/uiapplicatio... )
Re:Ask HN: What does one look for in a laptop these days? by Tempest1981 on Saturday October 16, 2021 @11:30AM (#28888531)
Thanks for the tip. I had a Lenovo Ryzen that would require a Win10 reset of WiFi after each resume. Frustrating. Finally got an Intel Lenovo -- no WiFi issues.
Re:Ask HN: What does one look for in a laptop these days? by masklinn on Saturday October 16, 2021 @07:30AM (#28887123)
> Let's hope AMD mobile processors will work better, and that we'll be able to find decent laptops using them.

It doesn't have anything to do with the processor does it? Surely neither intel nor amd have removed S3 support?

AFAIK it's integrators (motivated by Microsoft's push of "modern standby"?) which make it unavailable in their bioses: S3 needs bios integration, modern standby is just S0. Or do you mean "hopefully AMD will have a better S0 idle"?

Re:Ask HN: What does one look for in a laptop these days? by ajvs on Saturday October 16, 2021 @09:26AM (#28887731)
Intel 11th gen CPUs are 100% Modern Standby and DO NOT have S3 sleep. I don't know about AMDs support.
Re:Ask HN: What does one look for in a laptop these days? by masklinn on Saturday October 16, 2021 @11:58AM (#28888757)
Wow, TIL I'm never getting an intel CPU again. Not that I was planning to, mind.
Re:Ask HN: What does one look for in a laptop these days? by vbernat on Saturday October 16, 2021 @09:50AM (#28887875)
Lenovo still puts it back on some of the laptops, like the X1 Carbon 9th Gen. So, I suppose this is not strictly dependent on the CPU.
Re:Ask HN: What does one look for in a laptop these days? by masklinn on Saturday October 16, 2021 @12:00PM (#28888772)
After looking for confirmation of this, S3 support seems to be either missing or broken in various ways, there'a a reddit thread where a System76 engineer talks about the mess that was: https://old.reddit.com/r/System76/comments/k7xrtz/ill_have_w...
Re:Ask HN: What does one look for in a laptop these days? by tomp on Saturday October 16, 2021 @06:02AM (#28886739)
> get critical Windows Updates

So you mean Microsoft can force your laptop to restart and lose all your work even when it's "off"? Amazing.

Re:Ask HN: What does one look for in a laptop these days? by jonathanlydall on Saturday October 16, 2021 @06:49AM (#28886961)
No, not when it’s actually off. If you’ve shut down, then it won’t do this, but if you put it to sleep it can.

That being said, I hate this, with my old laptop I could close the lid and pop it in the bag and it would lose maybe 5-10% battery per day, with new laptop it happily unsleeps itself in the bag which has zero ventilation.

So for safety reasons I have to shut my laptop down before putting it in my bag, then have to wait for it to start up (which is slow due to corporate software) before being able to use it again.

Re:Ask HN: What does one look for in a laptop these days? by massysett on Saturday October 16, 2021 @07:19AM (#28887091)
I’ve been using Macs for over five years now and before that I was all Linux. From reading this it looks like Windows has actually reverted to where Linux was over five years ago: having to fiddle with the machine to get sleep to work. That’s just sad.
Re:Ask HN: What does one look for in a laptop these days? by jonwinstanley on Saturday October 16, 2021 @08:42AM (#28887461)
Windows wasn't good at this in the past either. Didn't they used to have sleep, hibernate and a load of other options too?
Re:Ask HN: What does one look for in a laptop these days? by tom_ on Saturday October 16, 2021 @10:11AM (#28888003)
Just sleep/hibernate/restart/shut down, as far as I can remember? - sleep vs hibernate being a distinction you want, in my view, as the battery drain/restart time behaviours are different. I'm sure I don't need to explain why separate restart and shut down options are a good idea.

(Never liked not having the sleep/hibernate choice on macOS. I know better than the computer what my upcoming plans are!)

Re:Ask HN: What does one look for in a laptop these days? by Izkata on Saturday October 16, 2021 @01:56PM (#28889865)
Windows ha(s/d) suspend/sleep/hibernate/restart/shutdown.

Sleep was a suspend/hibernate hybrid that allowed fast restarts if you still had power, but would restore from disk hibernate-style if you ran out of power while suspended.

Re:Ask HN: What does one look for in a laptop these days? by dividedbyzero on Saturday October 16, 2021 @10:25AM (#28888102)
You could make Macs hibernate via the CLI until a few versions back at least, maybe you still can? I used that occasionally, but at some point sleep got so good I stopped bothering. If I disable the waking up to fetch mail and the like thingy in Settings, mine will hardly lose any battery even when sleeping for extended periods.
Re:Ask HN: What does one look for in a laptop these days? by pxc on Saturday October 16, 2021 @08:51PM (#28893000)
Macs can't even toggle session saving behavior through the CLI; your only chance to toggle session saving it is logging out via the GUI.

My experiences with macOS involved tons of unexpected sharp corners like that. Really feels half-finished when you're coming from Linux, as ironic as that sounds

Re:Ask HN: What does one look for in a laptop these days? by jonwinstanley on Saturday October 16, 2021 @03:50PM (#28890868)
I’ve been on Mac so long that all 5 options feel erroneous. I just close my laptop lid when I’m done.
Re:Ask HN: What does one look for in a laptop these days? by cma on Saturday October 16, 2021 @10:27PM (#28893442)
I've had the same problem on Mac, if you leave an SD card in it drains completely.
Re:Ask HN: What does one look for in a laptop these days? by chrislipa on Saturday October 16, 2021 @07:49AM (#28887190)
I just to try and gett TV rtf TTa we t feed define the t TTreally I just wh from G they rrdand I
Re:Ask HN: What does one look for in a laptop these days? by 867-5309 on Saturday October 16, 2021 @08:35AM (#28887407)
(me typing on a mac keyboard)
Re:Ask HN: What does one look for in a laptop these days? by gsich on Saturday October 16, 2021 @08:41AM (#28887451)
Try Hibernate.
Re:Ask HN: What does one look for in a laptop these days? by ChuckNorris89 on Saturday October 16, 2021 @06:40AM (#28886929)
Not all windows updates require reboots.
Re:Ask HN: What does one look for in a laptop these days? by lucumo on Saturday October 16, 2021 @07:15AM (#28887068)
Most don't even.
Re:Ask HN: What does one look for in a laptop these days? by mavhc on Saturday October 16, 2021 @06:44AM (#28886944)
Quite a lot more stuff supports auto resume after reboot, including unsaved Notepad files.
Re:Ask HN: What does one look for in a laptop these days? by tomp on Saturday October 16, 2021 @06:48AM (#28886957)
But not REPLs and Jupyter notebooks.
Re:Ask HN: What does one look for in a laptop these days? by mavhc on Sunday October 24, 2021 @05:11AM (#28976132)
Re:Ask HN: What does one look for in a laptop these days? by bloggie on Saturday October 16, 2021 @07:36AM (#28887147)
nor Windows Explorer.
Re:Ask HN: What does one look for in a laptop these days? by zweifuss on Saturday October 16, 2021 @08:06AM (#28887261)
For the File Explorer it's HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced Value PersistBrowsers set to 1.
Re:Ask HN: What does one look for in a laptop these days? by frosted-flakes on Saturday October 16, 2021 @11:31AM (#28888537)
You don't need to manually edit the registry for this. There's a checkbox in Explorer's settings.
Re:Ask HN: What does one look for in a laptop these days? by bloggie on Saturday October 16, 2021 @08:38AM (#28887424)
Thank you! This reminds me of the old annoyances.org that listed a bunch of little tricks to improve your Windows 95 experience.
Re:Ask HN: What does one look for in a laptop these days? by dorfsmay on Saturday October 16, 2021 @09:10AM (#28887615)
Also Linux does not work well in this mode (problems to wake up), so it is important to be able to switch it to S3 in the BIOS.
Re:Ask HN: What does one look for in a laptop these days? by zinekeller on Thursday October 14, 2021 @06:27AM (#28862461)
> In the future, perhaps this mode will work as well as S3 used to for battery life, but finding your laptop fans on while it's closed inside your bag and getting really hot is not fun. This applies to lots of laptops currently.

Modern standby was designed for ARM-based Windows 10 Mobile initially, but I do feel that Intel had plead to Microsoft to allow them to implement it too. Regardless, even the best Intel cores (except for their clean-room Atom designs, not all Atom-branded CPUs have these) runs hot that it's a disgrace that Microsoft haven't insisted on requiring S3 sleep.

Re:Ask HN: What does one look for in a laptop these days? by gadiyar on Thursday October 14, 2021 @11:23PM (#28873836)
So which laptops do a good job of reliably supporting S3 standby/suspend? Any idea if the Framework laptop does?
Re:Ask HN: What does one look for in a laptop these days? by chx on Saturday October 16, 2021 @05:58AM (#28886723)
You can check which ThinkPad BIOS has the option at their BIOS emulation site: https://download.lenovo.com/bsco/index.html

For mine it's under Config // Power // Sleep State. Windows 10 means useless Modern Standby, Linux means S3. https://i.imgur.com/Y5CchL9.png

In this covid helped me because I learned about this before I cooked my expensive new laptop in its bag :(

Re:Ask HN: What does one look for in a laptop these days? by lpcvoid on Saturday October 16, 2021 @12:02PM (#28888796)
Wow, that is an incredibly cool thing for an OEM to offer. Never seen this for any other vendor before.
Re:Ask HN: What does one look for in a laptop these days? by tlavoie on Sunday October 17, 2021 @04:22AM (#28894854)
What does it mean if there is no sleep setting here? I haven't actually rebooted my P50 yet, but the simulator doesn't have this option showing.
Re:Ask HN: What does one look for in a laptop these days? by chx on Wednesday October 20, 2021 @12:02AM (#28926616)
The P50 very well might predate this Modern stuff.

Type

powercfg -a

and see:

The following sleep states are available on this system:

Standby (S3)

Re:Ask HN: What does one look for in a laptop these days? by tlavoie on Wednesday October 20, 2021 @01:03AM (#28926949)
True enough, thanks for the info. I can't complain either way, whatever suspend mode I have works well and quickly. Hibernate does work (all under Linux here as a rule).

I'll have to try powercfg next time I boot into Windows.

Re:Ask HN: What does one look for in a laptop these days? by sfotm on Saturday October 16, 2021 @11:28AM (#28888522)
The Framework Laptop does not support S3 suspend. I have it running with S2deep in Linux, which works okay, but it isn’t a fantastic scenario. Hibernation is the way when the processor doesn’t support S3, unfortunately. Even Windows would fall back to it after a short duration.
Re:Ask HN: What does one look for in a laptop these days? by zmk5 on Saturday October 16, 2021 @12:18PM (#28888903)
Yes, this is my only beef with the laptop so far. I really hope we get a firmware update with S3 enabled soon.
Re:Ask HN: What does one look for in a laptop these days? by peakaboo on Saturday October 16, 2021 @08:47AM (#28887480)
Yep. The thinkpads I've had running Linux has supported s3 sleep but it feels like it's going away more and more.

You start with a laptop at 80% charged if you use Microsofts stupid system. The more I use Linux, the more annoyed I get at Microsoft and how they keep worsening the entire pc experience every year.

Users are not users, they are cattle to be managed by Microsoft.

Re:Ask HN: What does one look for in a laptop these days? by surajrmal on Saturday October 16, 2021 @02:24PM (#28890130)
Is it really Microsoft's fault that vendors only listen to it? The fact is that Apple exists in it's own closed ecosystem, and Linux runs second hand on systems built for Windows. There are very few other folks dictating requirements. Laptop vendors for the most part don't want to be in the business of maintaining an OS. Companies like system76 and framework are the way to address this.
Re:Ask HN: What does one look for in a laptop these days? by jrm4 on Saturday October 16, 2021 @03:00PM (#28890433)
Bahahaha.

Sorry, long time Linux user here. I just presumed the sucky state of this sort of thing was SOLELY due to my insistence on using Linux.

Relatedly; seriously - besides the obvious "mindshare" and so on, and I suppose "mostly for the people here;" Macs I get, but why do people still use Windows?

Re:Ask HN: What does one look for in a laptop these days? by jkepler on Saturday October 16, 2021 @04:16PM (#28891072)
Also a longtime Linux user here, and I have the same question: why do people keep using Windows? Everything I hear about it sounds superb frustrating, while for me, Debian stable has been rock-solid for me for years.
Re:Ask HN: What does one look for in a laptop these days? by GordonS on Saturday October 16, 2021 @02:27PM (#28890155)
I used to put my Windows 10 laptop in my bag at night, but every now and then I'd realise later that it had powered itself on, the fans were going nuts, and it was obvious really, really hot!

I don't think it was actually installing updates (I use Enterprise eds), though I've no idea what it was doing. I've since started leaving it plugged in on my desk, and haven't noticed it turning itself on at all since then. Weird.

Seems mad they'd try to install updates while not on AC power, and I'd think it's fairly common for sleeping laptops to be placed in a bag overnight.

Re:Ask HN: What does one look for in a laptop these days? by dorfsmay on Saturday October 16, 2021 @04:58PM (#28891451)
Check your wakeup settings. I've have to use corporate Windows machine and for some reason they're all setup to wake up on some wifi/ethernet signal.
Re:Ask HN: What does one look for in a laptop these days? by daxfohl on Saturday October 16, 2021 @01:24PM (#28889511)
Reasonably fast boot time. Yes my XPS seems to be booting about half the time I open it, due to power management or windows updates, which is annoying. But what makes that extra annoying is that it spends like 45 sec each time just in the BIOS step. What on earth does the BIOS do that needs so much time to run?

(Other than this I do actually quite like my XPS. Though I do wish I had gone without the touchscreen. It's just annoying because you can't wipe grime off without it causing a touch.

Re:Ask HN: What does one look for in a laptop these days? by yread on Thursday October 14, 2021 @07:25AM (#28862879)
You can mitigate it by configuring the power settings so that after 30 minutes the laptop hibernates. You lose your connected standby of course
Re:Ask HN: What does one look for in a laptop these days? by formerly_proven on Saturday October 16, 2021 @09:09AM (#28887614)
That's hibernation though, so it takes way longer to wake up and also does a lot of I/O on the probably not replaceable SSD.

(Also, why does your post show as being made on the 2021-10-14 when this "Ask HN" is from today? Wat)

Re:Ask HN: What does one look for in a laptop these days? by jakub_g on Saturday October 16, 2021 @12:56PM (#28889252)
Anecdata but my 5-year ThinkPad and 3-year Dell are doing fine (also a 10-year Asus). I've been always hibernating for the night. 16GB RAM, takes at most few seconds. I don't get this allergy to hibernation, is it such a killer to wait a few seconds when I know I won't be using device for hours/days?
Re:Ask HN: What does one look for in a laptop these days? by ziml77 on Saturday October 16, 2021 @08:16PM (#28892798)
Takes seconds to resume and saves a lot of battery since the machine is truly powered off.
Re:Ask HN: What does one look for in a laptop these days? by frosted-flakes on Saturday October 16, 2021 @11:34AM (#28888559)
Sometimes posts get put on the "try again" queue by the moderator, where they are floated to the bottom of the home page to see if they will attract attention the second go-around. I don't know if that's the case here.
Re:Ask HN: What does one look for in a laptop these days? by formerly_proven on Saturday October 16, 2021 @12:11PM (#28888851)
Ah indeed, the Ask HN itself is from the 14th and various comments are from then as well. Seems like it got put through that process which causes HN to "fake" the short timestamps to make everything look like fresh discussion.
Re:Ask HN: What does one look for in a laptop these days? by krzyk on Saturday October 16, 2021 @03:10PM (#28890525)
How does S0ix work on Linux? Is there a way to powerdown more?
Re:Ask HN: What does one look for in a laptop these days? by baybal2 on Saturday October 16, 2021 @07:12AM (#28887058)
> 1. S3 Standby/suspend support.

Intel diasabled S3 in Tiger Lake

Re:Ask HN: What does one look for in a laptop these days? by xdfgh1112 on Sunday October 17, 2021 @02:19AM (#28894382)
Luckily there are AMD thinkpads and they are great.
Re:Ask HN: What does one look for in a laptop these days? by pxc on Saturday October 16, 2021 @08:45PM (#28892975)
What is the reason for this decision? Idgi
Re:Ask HN: What does one look for in a laptop these days? by baybal2 on Sunday October 17, 2021 @02:09AM (#28894348)
Force everybody to use Win11, as a gesture to Microsoft.