Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 5y ago · link · parent

Transflective displays do seem to result in decent battery life, the Pebble Time watch is a good example. Though we do now have long lasting OLED watches – looks like running Android on a beefy CPU vs a tiny RTOS on a microcontroller is the bigger difference… buuuut still the Pebble gets away with a smaller battery than these OLED ones I think?

comment 5y ago · link · parent

They're not the best for multimedia, that's why. But for strictly informational displays they're really nice. I like the one on the Pebble Time watch.

comment 5y ago · link · parent

My OnePlus phone in direct sunlight not only pushes the physical OLED brightness to the max, but seems to also apply some filter to the image that makes dark colors brighter, e.g. a dark gray keyboard almost turns into lighter gray. Does help with visibility.

comment 5y ago · link · parent

Why does anyone still care about eavesdropping on mobile networks? How come it is still not 100% universally acknowledged that the network is hostile and carriers should not be treated as anything but a dumb pipe for IP over which you have your own security on the application layer? Maybe carriers should just straight up declare regular phone calls as non-private and start publishing all recordings of literally everyone's calls ever straight to their website. Seems like we need that kind of nuclear option to finally destroy the remaining false sense of security in the plain old telephone system.

comment 5y ago · link · parent

For sudden reboot issues, could be some power protections tripping? For me that showed up as shutdowns (that require turning the PSU off for a minute), but maybe depending on various components and could result in reboots as well?

PBO seems to result in some wild power spikes that don't ever happen with manual static OC. Try raising various overcurrent limits, that worked for me.

comment 5y ago · link · parent

It's the other way around: Linux has some extra support for these laptops. And of course the place where extra support is required is the input devices. Despite Microsoft kinda pushing the industry to standardize on HID over I2C, they themselves now do HID over… uh… a custom protocol that runs over UART of all things.

https://www.kernel.org/doc/html/latest/driver-api/surface_ag...

https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/...

Well at least it is HID inside I guess.

Meanwhile Apple used a custom simple protocol over SPI for the Broadwell-Kaby Lake generations (and now Apple Silicon), but the few "T2" generations went back to USB… over some truly cursed custom T2 USB host controller https://github.com/MCMrARM/mbp2018-bridge-drv (WTF)

---

Also many Surface devices used awful Marvell Wi-Fi :/ At least the "Laptop 3" generation switched to Intel on Intel models and Qualcomm (seems like ath10k) on AMD ones.

comment 5y ago · link · parent

Renoir is a bit too new for us since the official drm version is 5.4, you currently have to build the 5.5-wip branch of drm-kmod for it to work.

Also, I've fixed the framebuffer thing, you no longer have to disable it!!

(Not everybody even had to ever do it. The issue was that we did not disable our simple framebuffer when the driver expected it (our Linux compat layer would only try to kill other Linux framebuffers) so our framebuffer would literally just overwrite device memory that the driver was using to initialize all the GPU firmware. On my Vega card, this would only happen at 1440p/4K. With smaller EFI framebuffer resolution, the memory would luckily not overlap :D)

comment 5y ago · link · parent

Arm's Neoverse cores are doing pretty well in the datacenter space — on AWS, the Graviton2 instances are currently the best ones for lots of use cases. It's clear that core designs by Arm are really good. The problem currently is the lag between the design being done and various vendors' chips incorporating it.

upd: oh also in the HPC world, Fujitsu with the A64FX seems to be like the best thing ever now

comment 5y ago · link · parent

Well, yeah, it's not replication if it's not an exact hardware replica, but the word "emulation" has very "software" connotations. I guess let's call it.. recreation? (That word is even in the quote above!)

comment 5y ago · link · parent

They're good, but you don't have to use them at all. You can use Rust instead! :)

comment 5y ago · link · parent

> Fractional scaling has to be done by the application itself (even on Wayland).

No, fractional is handled by applications just rendering at 2x and getting downscaled to 1.5x or whatever.

Yeah, the "Windows" way looks sharper on fractional, but the "Apple" downscaling is easier to handle and it looks fine – there were iPhones that did everything like that.

> DDX drivers can make use of vendor specific 2D acceleration

Ah, I remember Intel's various native 2D accelerations (UXA, SNA) – each with its own unique horrific bugs (artifacts all over the screen, all text turning into junk), all eventually sorta deprecated in favor of glamor (OpenGL) with the generic modesetting driver.

There's not much to 2D accelerate with modern applications that all do their own rendering. Compositing acceleration is possible in a vendor-agnostic way via KMS planes and we'll have that in wlroots.

> Ever used OS X on those? They are barely usable because of severe lag and stuttering.

I have an iBook G4 :) Leopard runs perfectly smoothly. Yeah, the very first generation of hardware when OS X was just introduced wasn't ready. The next one was.

comment 5y ago · link · parent

Well, then that company can expect to continue seeing middle fingers :)

Intel and AMD, the arch-rivals they are, coexist and collaborate on the kernel stack and Mesa. Even embedded companies join in (see Broadcom hiring Eric Anholt to make V3D a thing for the RPi4, even Qualcomm vaguely supporting Freedreno and Arm starting to show some kind of interest in Panfrost IIRC). Microsoft is in for virtualization and GL-on-D3D.

None of these vendors "owe anybody anything" yet they've joined the party. Turns out sharing is beneficial for everyone.

comment 5y ago · link · parent

Well, higher than non-composited, non-vsynced X11 (but yes there are fun solutions like trying to render at the end of a frame to let the clients run ahead). But any reasonable major DE was doing compositing, and even minimal WM enthusiasts typically ran xcompmgr/compton/whatever because we're not in the Windows 95 era. Comparing to that, Wayland is much better, with direct async communication between the client and compositor, instead of Xorg acting as a glorified IPC broker that can get busy processing stuff…

comment 5y ago · link · parent

> perfectly possible with X11 because the pitch information is exposed via the Xrandr extention

Only the "Windows" kind of scaling where the app works in non-scaled, real pixels and does everything by itself. Not the "Apple" kind of scaling that Wayland supports, where you have logical pixels backed by 2x/3x/… the physical pixels. (Like many things Apple does, this was invented for good reasons. Positioning a window to be on both a 1x and a 2x monitor just works with that kind of scaling, without the app ever having to consider the displays it touches.)

> Solved since ages. Just enable Tearfree in your Xorg.conf.

That's a driver-specific hack that kinda maybe works sometimes. Sometimes you need to juggle compositor options combined with that and nothing works anyway.

> X11 runs even on 386's and beats Wayland in every performance metric, especially latency.

Any composited X11 desktop is slower than a Wayland one, with the Xorg server acting as a bloated IPC broker in between the compositor and the client.

Yeah, you can get really low latency if you just don't composite at all. Go back to Windows 95 if you think that's acceptable :)

> X11 is capable of using hardware layers that has the effect that you can smoothly move your mouse even on heavy load and OOM events. Wayland still completely craps out in that regard.

I'm sure pretty much all production Wayland compositors use the cursor layer. wlroots for sure does. (But I don't think it's a big deal under heavy load, there the problem is the display server even processing the mouse events at all first.)

Weston goes further and can use HW layers for actual surface compositing when possible. wlroots is going to gain that power soon-ish with libliftoff.

> The wrong philosophy ("every frame is perfect")

Again, feel free to use Windows 95.

For anyone used to current commercial desktop and mobile UIs, any imperfect frames are unacceptable, artifacts like tearing make your system look like a complete joke. Apple computers didn't show imperfect frames since the early early 2000s PowerPC era. Not matching that is a complete shame.

comment 5y ago · link · parent

Oh hey, a link to my bug report :) someone else in the thread mentioned that the KDE devs have patches for Qt that unfuck the menus, and they're included in Arch Linux now or something..?

Upd: well, that problem doesn't seem to be fixed there, still no constraints are set on the kde/5.15 branch

comment 5y ago · link · parent

Dominant compositor implementations – the dominant wayland implementation is libwayland :) About the only serious alternative is the Rust one – the crate has a native mode. (but you still have to use the libwayland backend if you want to do GL because of how Mesa's EGL impl is tied to… yeah, lol, hard problems here :D)

But seriously, the "competition" between these compositors is awesome. This is like web standards again. Testing your client across different compositors reveals bugs (either in them, or in your client) and everything evolves together in standard ways. With the single Xorg server, everything got completely ossified, if anyone wanted to rewrite a full "production ready" X11 server they'd have to be bug-compatible with Xorg.

comment 5y ago · link · parent

Ooh! Interesting! Will look at these. So far I've reported a couple Qt bugs, well, they got priorities but no fix so far:

https://bugreports.qt.io/browse/QTBUG-87303

https://bugreports.qt.io/browse/QTBUG-87332

If KDE patches actually make menus work okay, that's great. I've been wondering how KDE deals with the bugginess of the wayland QPA, turns out the answer's simple and not KDE-exclusive, nice.

upd: seems like no popup constraint adjustment is set on the kde/5.15 branch. Hopefully there are other improvements though…

comment 5y ago · link · parent

Well, keyboards are fantastic for programmers and writers who touch type. And of course we don't want to give them up – there's a whole enthusiast community passionate about mechanical switches, pretty keycaps, and ergonomics.

For regular people, it seems that voice is a somewhat important interface these days. "Ok google remind me to buy toilet paper" and so on. And honestly… isn't that already better than implanted magic in some ways? People (who can) naturally communicate with other people using voice, not telepathy.

comment 5y ago · link · parent

Isn't Apple's terminal already GPU-rendered too? Or was that iTerm2…

comment 5y ago · link · parent

tmux + alacritty seems perfectly fast for me, tmux's buffering really shouldn't slow anything down

comment 5y ago · link · parent

The 662 is much newer (what a weird numbering scheme…) so there's probably many differences to the 660..

comment 5y ago · link · parent

How lightweight is Web Dev Server? Back when the official way to go was still polyserve, I've had to make this:

https://github.com/unrelentingtech/es-module-devserver

which is a tiny middleware that uses regexps to accomplish the task instead of dragging in a JS parser :)

comment 5y ago · link · parent

How does ApplicationState compare to e.g. https://immerjs.github.io/immer ?

comment 5y ago · link · parent

The DOM update mechanism is part of lit-html, not LitElement. This thing allows you to plug any rendered in it seems, but the examples all use lit-html.

comment 5y ago · link · parent

SD660/630 too: https://github.com/SoMainline/linux/tree/SoMainline/v5.11-rc...

Not many device trees written yet (really only Sony devices) though

comment 5y ago · link · parent

Well, sorry, wrong word. Not public open, but no longer Intel-exclusive.

comment 5y ago · link · parent

Google makes "cursed" devices in production :) The Chromebook debug functionality is only accessible in one orientation:

https://chromium.googlesource.com/chromiumos/third_party/hdc...

(but that's with a special cable)

comment 5y ago · link · parent

But it offers exactly things like allocating some lanes to DisplayPort.

The unfortunate thing is that Thunderbolt was created, and instead of a simple way to make PCIe external, we have this Intel-created mess that tunnels PCIe over some cursed "MPLS-like network" or whatever it is. And it was completely Intel-proprietary until recently. At least now the spec is open.

comment 5y ago · link · parent

There was a brief period of time last year when Twitch streams broke for me, turns out because my UA includes "FreeBSD" instead of an OS they know about. Eventually this was fixed.

comment 5y ago · link · parent

network.http.referer.defaultPolicy is the correct one
1
181920
97