Some Bits: Nelson's log

8 posts about chromebook

Chromebooks identify USB C details

I learned something neat from a Google engineer on Reddit the other day: Chromebooks have superpowers when diagnosing USB-C connections that PCs don’t have. Including reading the e-marker built into the cable that identifies its capabilities.

Modern USB is a remarkably complex thing, with both the cable and the device on the other end negotiating capabilities like speeds, power for charging, etc. Most of that isn’t particularly visible to the user, not without USB debugging hardware. But turns out on a Chromebook it’s as simple as plugging in the USB device, going to chrome://system, and reading the info from typec_connector_class. At the bottom is an example with my Chromebook plugged into an Anker 65W charger, charging at 37W on a cable that nominally supports 100W.

Yeah I’ve got no idea what all that debug dump means either. I asked Gemini and it identifies the charger as doing Power Delivery 3.0 and that it offers various charging power settings including a programmable power up to 11V at 4.55A.

As for the cable, Gemini says that Vbus Current Handling: 0x2 is the cable’s way of saying it can handle 3A at most, which makes me wonder about that 100W claim on the cable. The product_type_vdo1: 0x84050 is a bitmask identifying various cable capabilities. This one is USB 2.0 only, 3A max. Ie: a “charging cable” and not a very good one at that. (The neat thing about this cable is it has a little display built in, that’s what says it’s charging at 37W. Maybe 15V or 20V and not at full 3A draw?)

The Reddit discussion has more detail. The Linux typec driver is doing a bunch of work along with a typec daemon in userspace. Unfortunately it requires cooperation from the firmware on the computer to make this information available to the kernel and PC hardware doesn’t do it.

port0
uevent: DEVTYPE=typec_port
TYPEC_PORT=port0
vconn_source: yes
supported_accessory_modes: none
power_role: source [sink]
data_role: [host] device
preferred_role: source
power_operation_mode: usb_power_delivery
usb_power_delivery_revision: 0.0
usb_typec_revision: 0.0
waiting_for_supplier: 0
port0-partner
uevent: DEVTYPE=typec_partner
accessory_mode: none
usb_power_delivery_revision: 3.0
type: not_ufp
number_of_alternate_modes: 0
supports_usb_power_delivery: yes
identity
id_header: 0x180ffff
USB Vendor ID: 0xffff
Reserved: 0x0
Product Type (DFP): 0x3
Modal Operation Supported: 0x0
Product Type (UFP/Cable Plug): 0x0
USB Capable as a USB Device: 0x0
USB Capable as a USB Host: 0x0
product: 0xffffffff
bcdDevice: 0xffff
USB Product ID: 0xffff
cert_stat: 0x0
XID: 0x0
product_type_vdo1: 0x0
Port Number: 0x0
Reserved: 0x0
Host Capability: 0x0
Reserved: 0x0
DFP VDO Version: 0x0
product_type_vdo2: 0x0
product_type_vdo3: 0x0
pd0
uevent: DEVTYPE=usb_power_delivery
revision: 3.0
sink-capabilities
uevent:
source-capabilities
uevent:
4:fixed_supply
uevent:
maximum_current: 2050mA
voltage: 20000mV
1:fixed_supply
uevent:
dual_role_power: 0
unconstrained_power: 1
usb_communication_capable: 0
unchunked_extended_messages_supported: 0
maximum_current: 3000mA
usb_suspend_supported: 0
dual_role_data: 1
voltage: 5000mV
2:fixed_supply
uevent:
maximum_current: 3000mA
voltage: 9000mV
3:fixed_supply
uevent:
maximum_current: 2730mA
voltage: 15000mV
5:programmable_supply
uevent:
pps_power_limited: 1
minimum_voltage: 3300mV
maximum_voltage: 11000mV
maximum_current: 4550mA
port0-cable
uevent: DEVTYPE=typec_cable
usb_power_delivery_revision: 2.0
type: passive
plug_type: type-c
identity
id_header: 0x18000000
USB Vendor ID: 0x0
Reserved: 0x0
Modal Operation Supported: 0x0
Product Type: 0x3
USB Capable as a USB Device: 0x0
USB Capable as a USB Host: 0x0
product: 0x0
bcdDevice: 0x0
USB Product ID: 0x0
cert_stat: 0x0
XID: 0x0
product_type_vdo1: 0x84050
USB Speed: 0x0
SOP'' Controller Present: 0x0
Vbus Through Cable: 0x1
Vbus Current Handling: 0x2
SSRX2 Directionality Support: 0x0
SSRX1 Directionality Support: 0x0
SSTX2 Directionality Support: 0x0
SSTX1 Directionality Support: 0x0
Cable Termination Type: 0x0
Cable Latency: 0x2
Reserved: 0x0
USB Type-C Plug to USB Type: 0x2
Reserved: 0x0
Firmware Version: 0x0
HW Version: 0x0
product_type_vdo2: 0x0
product_type_vdo3: 0x0
port0-plug0
uevent: DEVTYPE=typec_plug
number_of_alternate_modes: 0
physical_location
panel: left
horizontal_position: left

Sharing files from Chrome OS to Android tablet

Challenge today: share two 3GB video files from my Chromebook to my Samsung tablet. So many ways, none of them reliable.

  1. USB try 1. Plug in tablet. Popup says “access via Linux? Android?” I chose Linux, probably a mistake. Could never find the device in Linux. It’s there via lsusb but no appearance of file access. Maybe have to mount via command line?
  2. USB try 2. Plug in tablet. Nothing happens. Try several times.
  3. USB try 3. Reboot Chromebook. Plug in tablet. Device shows up in Files immediately! Drag file to copy, says “preparing” for one minute+, then shows an error
  4. USB try 4. Unplug, replug. Try copying again. Get instant error.
  1. WiFi try 1. Launch Solid Explorer on tablet, run its FTP server. Install ftp command line client in Linux. Vaguely remember binary and mput commands like it’s 1994. It seems to work but will take 15 minute. Stalls when one device goes to sleep. No clear way to resume.
  1. Bluetooth try 1. Try Quick Share for first file. This kinda just works?! It’s slow, 10+ minutes, but it copies the file to and seems to be robust even if the device goes to sleep.
  2. Bluetooth try 2. Try Quick Share for second file. Gives error. No diagnosis available, just “try again”.
  3. Bluetooth try 3. Reboot both devices. Try Quick Share. Seems to work.

All that is just to get the file over to Android somehow, somewhere. The other challenge is working around how Android has slowly eroded the idea of a filesystem with general purpose access. Solid Explorer works as a file browser through some hack / special permission that lets it browse things. VLC can access things in Downloads reasonably reliably. Fortunately Quick Share put things in a folder named Downloads / Quick Share, so that wasn’t too bad.

I tried using Google to figure out how to do this and found a bunch of outdated advice that didn’t work. Also tried various AIs that suggested various hilarious non-working options, including things like running Android Debugger.

Why is this so bad? Does no one want to copy their photos from their phone to their Chromebook? It’s really dumb the USB doesn’t work. For some reason tablets and phones don’t show up as a normal USB storage device but instead use some weird mobile device system that’s awkward AF.

Chromebook powerwash / channel downgrade

My Chromebook on the beta channel (v125) has been flaky, the Android and Linux subsystems kept crashing. So I decided to downgrade back to stable channel (v124). That all worked but was tricky enough I’m writing notes. See below for the dream of 1990s computing.

An important concept here is ChromeOS “powerwashing”. That’s basically a full software reset, wipe the whole system (including your local data) and reinstall. It’s a neat feature of Chromebooks, the easy full reset as an important part of the product.

Changing channels

There’s a “Channel” pane in settings with a “Change channel” button. If you use it to downgrade from beta to stable it tells you that you have to powerwash the system (fully resetting it) and reboot. But rebooting doesn’t do anything, neither does manually powerwashing. Turns out you have to click “check for updates” somewhere to get it to download the stable release, then follow that path to install it which results in the reboot and powerwash.

Note that powerwashing is the default way to downgrade ChromeOS and will avoid compatibility problems. But it’s not necessary. There’s a crosh shell command to downgrade without powerwashing. Enterprise-enrolled Chromebooks also have an alternate channel switching method where it doesn’t switch immediately but instead waits a few days / weeks for the stable release to catch up so you can smoothly move from beta to the newer stable without a reset.

But Chromebooks were designed to be safely powerwashable. In theory all your important stuff is stored in Google’s cloud already and a powerwash is painless. How does that work out?

Powerwash: the ChromeOS stuff

After a powerwash it is indeed easy to get your basic Chromebook back to the state it was in. Basically you log in once and Google syncs back over your web browser state, which in ChromeOS is basically everything on the computer. The big hassle is you have to log in again on every website, all your cookies are gone. But in general your Chromebook environment looks the same after a powerwash and login.

Google will force you to once again re-enable ad privacy in the Chrome configuration. Sleazy.

Two things special to me inside ChromeOS, unlikely most people would do this:

  • I had to re-enable the ComposeKey input method as a second keyboard. It was installed but I had to go into settings to make it accessible.
  • I will need to reinstall the Bypass Paywalls Clean Chrome extension. That has to be sideloaded from local files, Google won’t allow such useful stuff in their Chrome addon store.

However, I don’t just use ChromeOS stuff on my Chromebook. I am also a developer running Linux and I use a bunch of Android apps. That’s a little trickier.

Powerwash: Android

Android apps are almost first class citizens in ChromeOS these days. The powerwash restore app will offer to reinstall “your Play apps”, which means Android apps I guess. It reinstalled all the apps I had before on this Chromebook. But then they all have to be re-authenticated and configured. For me that means adding a new device to Tailscale and resyncing Obsidian with their sync service.

Powerwash: Linux subsystem

I also run a Linux container on my Chromebook. ChromeOS has a nice backup and restore system for that. I backed up to a USB drive, powerwashed, restored, and everything was back the same in Linux. Both the Debian image and my /home stuff. The Linux Signal flatpak app even stayed logged in. Couldn’t be easier. (the backup file is called .tini but is mostly just a .tar.gz of the filesystem with an extra metadata.yaml at the front.)

I had to manually re-share my ChromeOS Downloads folder to Linux so /mnt/chromeos/MyFiles/Downloads worked again.

Powerwash: Steam

ChromeOS now has experimental Steam support which basically amounts to a second Linux container. I just reinstalled that which was painless since Steam Cloud stores everything anyway.

The dream of the 90s is alive

There’s a couple of old ideas about computing from the 1990s that are finally sort of to fruition now.

One is the idea of a “thin client”, that the computer you sit in front of has nothing important on it and instead interfaces with what you want on the network. That’s how a lot of stuff works these days with hosted webapps. But we’ve never quite gotten free of your personal computer still being customized. The ChromeOS team put a lot of work into syncing that customization and it mostly is productive although then I messed it up again wanting a local stateful Linux environment. Also authentication is a huge PITA, no one wants to sync the actual login token to the cloud.

The other is the idea of “ubiquitous computing”, that I could access my personal computer environment anywhere I go seamlessly. Again we’re mostly there with modern Internet and cloud based stuff, but there’s still the tricky problem of local state. A simpler login system (like passkeys should be) would go a long way to making the re-authentication easier. And you’ll never completely avoid the reality that having local state on a local computer is faster than something over a network. That’s why I bother with the local Linux machine, for instance.

My new Acer Chromebook Spin 714 (2022)

I finally picked a Chromebook to be my travel laptop; an Acer Chromebook Spin 714. Specifically the 2022 model, CP714-1WN-53M9 SKU:6507836. I got this on sale for $529 from BestBuy, I probably wouldn’t have bought it at the usual $729 price but I’m glad I got it on discount. (Chromebooks often go on discount, it’s weird.)

It’s very good hardware! The screen is nice and bright and at 1920x1200 has enough pixels. The keyboard feels fine. The system feels quite fast, a combination of ChromeOS being responsive and the CPU in this thing being pretty high power for what it’s doing. Unusually it also comes with 3 USB ports (two USB-C) and a dedicated HDMI output.

Note there’s no SD card slot. The 256GB of SSD is more than enough for normal Chromebook stuff though. I have a complaint about the trackpad. It’s a little floaty, apparently a design flaw with inexpensive laptops that you might be able to fix yourself. I’m also not thrilled about the vents and fan; the fan comes on a little just sitting in my lap if my clothes are blocking the bottom vent at all. Ut doesn’t spin if sitting unobstructed on a flat table. And it’s very quiet when it’s running but there’s a difference between no fan at all vs. a very quiet one.

It’s a “Spin” which means the hinge rotates all the way around so you can use it fold it backwards and use it like a tablet. (Touch screen or stylus, the keyboard and trackpad get disabled). I was thinking that’d be a great feature but now I don’t; it’s just too bulky and awkward. Also the hinge doesn’t fully lie flat so it feels a little springy, like it might break if you press wrong on it.

One nice surprise is that Steam is available in beta on ChromeOS and a bunch of games seem to work well on it. The Chromebook isn’t going to win any gaming benchmarks but some games with light 3d were perfectly playable. I wouldn’t recommend buying a Chromebook for gaming, particularly not this one, but it’s nice to have the option.

The main thing I like about it is the screen. Bright, clear, and while not high DPI text looks pretty good on it.

Alternatives

Acer is now offering a slightly updated Spin 714, the CP714-2WN at $699. That one is mostly the same. Slight upgrade to the CPU (13th generation vs 12th) but the rest seems the same. They took out the stylus from the package, that’s kind weird.

I kind of wish I’d bought one of the Kompario 1380 systems. Either the $489 HP x360 13b-ca0047n or the $599 Acer Chromebook Spin 513 cp513-2h. That latter one is particularly interesting for its 2256 x 1504 screen. The ARM CPU means lower power so they have longer battery life and are truly fanless. OTOH ChromeOS on ARM is a mixed bag. It won’t matter for basic stuff but if you’re installing Linux you need arm64 packages that may not be available. And Steam is out of the question AFAIK.

I was pretty impressed with my $120 Chromebook, an old Acer 311 also based on an ARM processor. Still a great value.

Update

Worked great for my recent trip to Ireland! Didn’t miss having Windows or MacOS, not even once. Loved the light machine with a big bright screen. Really appreciated that it doesn’t need its own proprietary charger; I guess most laptops charge via USB-C now but this was my first one and it’s great to have a lighter bag.

Chromebook, Ubuntu, Crostini and other containers

ChromeOS has nice support for running your own Linux distro in an LXC container. By default it installs Debian in a container named “penguin” and there’s a Terminal app to connect to a shell in it. I’d rather use Ubuntu. There’s lots of instructions on how to do this online but most of what you’ll find are using the outdated Crouton container environment.

The 2023 way of setting up Ubuntu on a Chromebook is with Crostini. This Reddit Wiki has thorough instructions. This article is also fairly good as is this outdated gist. It boils down to launching a special Termina shell to control containers. Then to install Ubuntu in a new container, then to install some Chromebook specific stuff, then to set up your user login.

All that being said I could easily set up a container with a different Linux distro but I couldn’t get it to connect nicely to the Terminal GUI app. This is all pretty complicated tinkerhacking. One reason I’m excited about ChromeOS is you don’t really need to do this kind of thing for an ordinary experience. But I’m being a little extra about a Linux environment.

Alternate distro support is a work in progress and there’s lots of notes about current development online. I stopped about here, which was instructions on telling Terminal how to connect to a different container. This is related to the crostini-multi-container flag in about:flags. That’s a feature that gives you a GUI for accessing multiple containers but is not complete. See also discussion here.

A failed Ubuntu install

Unfortunately the online instructions didn’t work for me with Ubuntu 23.04 and ChromeOS Beta 114.0.5735.18.

One problem is the Chromebook-specific stuff (cros-ui-config and friends) failed to install, either using the fancy script or just running “apt install” and hoping for the best. The Reddit Wiki has complicated instructions and a script for installing cros-ui-config. I guess the packages are still not working quite right but different hacks are needed than what that script did. These didn’t work for me with Ubuntu 23.04 and ChromeOS Beta 114.0.5735.18. Simply running apt install cros-ui-config got fairly far but failed in the end.

Worse, even a vanilla Ubuntu 23.04 install (without cros-tools) didn’t work right for me. It seemed to be fine, I could get a working shell with lxc exec. But then I couldn’t connect to it via the Terminal app, the little spinning progress thing ran and stalled without giving me a shell. It’s like whatever connects the ChromeOS UI to the containers wasn’t working. I couldn’t even completely wipe the Linux development environment from the Settings app, it also hung, although the wipe did work after a reboot. At least I didn’t have to powerwash the whole system and start over.

For now I’m just going to settle for Debian. When I feel like tinkering again I’ll revisit Ubuntu, maybe update this blog post.

Other containers and VMs in ChromeOS

It’s not just a Linux environment that uses a container on a Chromebook.

Modern Chromebooks run android apps in a container called ARCVM. I don’t know much about how this works, it’s all pretty opaque. Folks complained it uses more resources than the old method but it seems fine to me.

ChromeOS 108 got the ability to run Steam games. It does this with a VM environment called Borealis. From what I’ve read this is Ubuntu 18.10 and using Valve’s Proton stuff to emulate enough Windows API to run a lot of games. Ie: similar to what a SteamDeck is doing.

This is all a lot like what Windows does, btw; WSL is the Windows equivalent of Crostini, and Windows can run Android apps in a VM too.

Chromebook shopping

I’m on the hunt for a good Chromebook, a real laptop for travel. The cheap Acer 311 C722-K4CN I bought is fine but underpowered and not a great screen (low res, TFT not IPS). I want something with a touchscreen and sturdy hinge but that folds back 360° so it’s like a bulky tablet. Would like a fingerprint reader and decent speakers. And I want an ARM processor, not Intel, on an unsubstantiated theory you get more life on the same battery.

Lenovo is about to come out with a $270 Lenovo IdeaPad Slim 3 Chromebook. It looks good except that the hinge doesn’t do 360°. Also it’s marketed as “budget” but it seems plenty powerful enough to me.

HP has a $370 HP Chromebook x360 13b that also looks promising. This review and this one note “bottom firing speakers” which is not great. Also no fingerprint reader. Still it looks good, particularly at $100 off the original price. If I had to buy one today it might well be this one.

Shopping for Chromebooks is so frustrating. HP makes 17 machines named Chromebook x360 that all look pretty different. The “13b” is the only ARM one. Apple does so much better at marketing their laptops.

Insisting on ARM is really limiting my options. Maybe I should give up on that.

What I really want is an OLED screen. The only option I could find is the Lenovo Chromebook Duet 5. But it’s a detachable keyboard which doesn’t meet my “sturdy” requirement. In particular I need to be able to hold it by the keyboard and have the screen stay put. Could be an interesting alternative to my Samsung Android tablet though.

Update: needed this sooner than I expected so I ordered theHP Chromebook x360 13b-ca0047nrr for $409. Note this is slightly updated from the 13b-ca000 that until recently was the offering. The newer one has a faster MediaTek Kompanio 1380 and 8GB of RAM. Reviews for this machine are mostly positive with the main complaint being the screen is nothing special (1920x1080, 250 nits). I was sorely tempted by the Samsung Galaxy Chromebook 2 360 because it has an amazing screen: 2560 x 1600 and 350 nits. But the $450 model has only 4GB of RAM and a Celeron N4500 and reviews said it felt underpowered, even for a Chromebook. I’m going to keep using my Android tablet for high end video stuff so I’m OK with the better computer with the less exciting screen.

Update 2: ha, cancelled the HP order and am getting a Acer Chromebook Spin 714 instead. They’re on sale right now for $529. Compared to the HP laptop it’s a brighter screen (350 nits vs 250 nits), better speakers, and significantly faster (80,000 octane vs 30,000, according to videos). Downside is it’s not the ARM processor I was hoping for but, eh, that was a bit of a silly thing to stand on. The Acer apparently gets an honest 10 hours of battery life which is plenty (compare “up to 16” with HP).

I’ll add that hp.com is a miserable place to try to buy something direct. The ordering experience is OK but then it takes 2+ weeks to ship? Maybe it’s backordered. But then cancelling is a nightmare. There’s no automated order cancellation, you have to talk to support. Which takes 10+ minutes and involved three separate attempts to retain my order and/or sell me something new. And at the end of that I’m just told “we’ll try to cancel your order let you know in 48 hours”. So dumb.

ChromeOS, Flatpak, and Obsidian

Bad experience with ChromeOS trying to install Obsidian following these instructions. I did eventually get it working but only with a bunch of ugly hacks as root.

Note the install instructions have you making bwrap setuid root. Ugh! I did not do that, because other things online say it isn’t necessary. I did try enabling setuid a few times and it didn’t fix anything.

First problem: flatpak just won’t work other than root. Even flatpak list gives me a “Permission denied” error (unhelpfully not telling me what permission is denied.) This happens even with bwrap setuid. I don’t know if that’s a general flatpak thing or is a problem specific to ChromeOS. Docs I’ve read online suggest that at least parts of flatpak shouldn’t require root but that installing software probably will. Whatever, I’ll just do everything as root. (At least part of the problem is /home/nelson/.local/share/flatpak ended up being owned by root and permissions 0700; this happened on Ubuntu too, so a Flatpak bug? But even fixing that, still couldn’t flatpak list on the Chromebox.)

Installing with Flatpak went smoothly. There’s now an Obsidian app icon in the ChromeOS GUI. But when I launch it either nothing happens, or the logo for Obsidian shows up but with an infinite spinning circle on top of it. No feedback on what’s wrong. The online advice for access to ChromeOS system logs is all out of date. I finally found my way to a log viewer at chrome://device-log/ but there’s nothing there about the app not working. The log dump generated from chrome://network/ does seem to have useful info but I could not understand what was failing.

OK, so let’s launch from a command line instead. An hour later, here’s a short transcript of all the breakage I encountered.

~ ⬢ [Systemd] ❯ flatpak run md.obsidian.Obsidian
error: Permission denied

~ ⬢ [Systemd] ❯ sudo !!
sudo flatpak run md.obsidian.Obsidian
error: "flatpak run" is not intended to be ran with sudo

~ ⬢ [Systemd] ❯ sudo bash
root ~ ⬢ [Systemd] ❯ flatpak run md.obsidian.Obsidian
Debug: Will run Obsidian with the following arguments: 
Debug: Additionally, user gave: 
[13 zypak-helper] Failed to connect to session bus: [org.freedesktop.DBus.Error.NoReply] Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[13 zypak-helper] src/helper/main.cc:40(DetermineZygoteStrategy): Assertion failed: bus
/app/bin/obsidian.sh: line 40:    13 Aborted                 (core dumped) zypak-wrapper /app/obsidian $@ ${EXTRA_ARGS[@nelsonminar

root ~ ⬢ [Systemd] ❯ dbus-run-session flatpak run md.obsidian.Obsidian
... 
[0319/141600.942543:FATAL:electron_main_delegate.cc(299)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

root ~ ⬢ [Systemd] ❯ dbus-run-session flatpak run md.obsidian.Obsidian --no-sandbox
it worked!

So.. it has to run as root. Then it turns out it doesn’t want to run as root, at least via sudo. And then it needs access to the system’s DBus, which for some reason the Flatpak hasn’t set up. Then Electrno complains about root needing --no-sandbox so if I provide that option it works! Lololo.

Just a total mess of complex systems stuff that’s standing between me and my application. DBus, the Crostini container, the Flatpak container, the Chrome/Electron sandbox. Layers and layers of stuff and some of it is broken.

So a failed experiment, even if in the end I did get the thing running. To be fair to ChromeOS: this is really not what that product is designed for. A Linux program, Flatpak, a separate Chrome/Electron instance. Yeah, don’t do that. I suspect if I need to do this for real I’ll just end up using the Android app running on the Chromebook and put up with the less-than-optimal mobile UI.

Chromebook first impressions

I got my first Chromebook, a cheap machine just to try it out. I like it! I’ll probably end up getting a fancier Chromebook to replace my 2017 Razer Blade laptop when I travel. I’d love to get one that could also replace the tablet I use for books and videos.

ChromeOS makes a great first impression! I’d not realized it’s basically a whole new desktop OS, a third way other than Windows and MacOS. (And I guess Linux on the desktop, lol.) It’s an interesting middle ground between a full desktop OS and a mobile OS like a phone or tablet.

I can’t quite decide whether I’ll want to use a Chromebook like a desktop computer or like a tablet. ChromeOS seems squarely in the middle. I think it could basically replace what I use a tablet for (reading books, watching videos, light web surfing) if I could find a Chromebook where the keyboard gets out of the way. Assuming the UI works well as a touch screen, which it seems to with tablet mode. These are marketed as “2-in-1” devices.

I ran into a problem with hardware though; no one makes the Chromebook I want as a tablet replacement. Part of the problem is price; Chromebooks tend to be under $400 and so don’t use very high quality screens, etc like the $800 Galaxy Tab S8+ I’d be replacing. (Although see Samsung’s Chromebook 2, 4K Chromebook, HP Dragonfly Pro, or this article). Part of the problem is mechanical. I’d love a “detachable” where the keyboard comes entirely off like the Lenovo Duet 3. But then the keyboard attachment is not a strong hinge, which means you can’t reliably support the weight of the whole machine with the keyboard while sitting or propped up in bed. Maybe one of the 180° folding screens would work better. Really need to get my hands on them to see.

The other big question is CPU type: ARM or Intel. I firmly believe ARM is the future for devices like this. But I’d say 80% of the Chromebooks out there are Intel, a few even AMD. And the ARM systems tend to be the cheaper / lower powered ones. No one is making anything like Apple’s laptops for ChromeOS, Linux, or really even Windows.

The machine I bought is an Acer 311 C722-K4CN, aka N20Q9, aka willow. It cost $120 on Amazon (new!) and is marketed as a school / student laptop. I think these were first introduced in 2020 for $350, mine was built in Feb 2021. It’s definitely not a powerhouse, $120 implies a lot of compromises, but so far the hardware exceeds my expectations other than screen quality. I deliberately chose an ARM system; it’s a MediaTek MT8183 which is maybe 2-3x more powerful than a Raspberry Pi 4 CPU? It seems powerful enough for web browsing at least. No HDMI, microSD, and limited USB ports.

First thing I did was update ChromeOS from v88 or so to v105 and now v111. A little surprised it’s a 32 bit build; the CPU is definitely 64 bit. I also installed Linux via the official route (“Crostini”) it’s a VM, arch reports aarch64. From what I’ve read on ARM the ChromeOS kernel is 64 bit but the userspace is 32 bit. I wonder if that’s partly a RAM savings thing?

Chrome OS is quite big; 14 GB! The Linux install wants another 10 GB (although 3 GB seems sufficient.)

One hassle: there aren’t ChromeOS apps for everything I’d expect. Particularly surprised there’s no Slack app. Slack works in a browser though, and Chrome makes it easy to “Create Shortcut” so it looks more like a separate app in the GUI.

I’m also a little confused: there’s both a “Web Store” and a “Play Store”. I think the Play Store is for Android apps, they run natively on ChromeOS now and many things (like Tailscale) are installed as generic Android apps. The Chrome Web Store is a mix of things for the Chrome browser (like extensions) and then some ChromeOS enhancements like a compose key input method (which is written in Javascript). There isn’t a whole lot on the Web Store.

Google has good docs for building Chrome OS apps. The basic message is “it’s an Android app with special accommodations for Chromebooks” with observations like “every Chromebook has a physical keyboard” and “A system-level back button is a pattern carried over from Android’s handheld roots—one that doesn’t fit as well in a desktop context.” It’s remarkable how many different kinds of systems Android runs on: phones, tablets, laptops, TVs, Android Auto, Android Automotive. That’s a lot of different UI metaphors!

I use Firefox everywhere else but feel like I should be using Chrome as my browser on a Chromebook. I mean, it’s in the name. Also the whole OS is basically one big Chrome instance? Firefox does work but it is the mobile Android app, not a desktop app. Without proper tabs, and the wrong user agent, and... I guess it’s possible to install a Linux version but I haven’t tried it.

The Linux support is interesting. It works via a system called Crostini which seems a bit like WSL2 in its approach; it creates a VM with an LXC container, then installs Debian inside that. See also the wiki here. You can install Arch Linux and Ubuntu, albeit with rough edges. Note Crostini is different than replacing ChromeOS with a full Linux install; that’s also often possible on Chromebook hardware. Crostini supports graphics via both X11 and Wayland. Crostini is an evolution of crouton, an earlier system for running different OSes inside ChromeOS.

The underlying Android system is mostly hidden in Chrome OS but accessible. Ctrl-Alt-T will launch crosh, the Chrome OS shell for the host OS. This isn’t a full Unix shell, it’s got its own weird command set, but ping and top are there.

I thought I would hack the OS a lot more but one joy of a Chromebook is it mostly works just fine and doesn’t need a lot of tinkering. I do want to eventually get a full development environment for Python and web frontend. Between the Linux system and VS.Code it seems entirely doable.

One big caveat: ChromeOS is designed as a cloud-centric system and definitely wants to be online all the time. It’s possible to run things offline but you have to do a little preparation. Honestly computers are mostly useless to me offline anyway, I can’t go 2 minutes without having to look something up on the Internet. As long as I can read a book or watch a downloaded video on an airplane, I’m good.