Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Last active August 9, 2021 09:29
Show Gist options
  • Save mjarkk/b0a2395bb0bfd654d5e50ff4948ed3e4 to your computer and use it in GitHub Desktop.
Save mjarkk/b0a2395bb0bfd654d5e50ff4948ed3e4 to your computer and use it in GitHub Desktop.
My chrome os dev setup

Ran on my Dell XPS 15 9560 (4k) using brunch with the rammus recovery

Why?

Mostly funs.

Findings

Great things:

  • Battery seem to be better than linux, equal to windows.
  • With normal usage laptops doesn't get hot even while wathcing 4k videos on youtube. Note that this also results in way less often the fan ramping up :)
  • Crostini works great and is by default setup to passtough localhost.
  • Crostini can run ubuntu, fedora, arch and more
  • Docker runs perfectly fine on Crostini compaired to the windows subsytem this is much better
  • Touchpad*(-gestures)* and Touchscreen*(-gestures)* works great and in my opinion better than on linux
  • Android apps work like they do on any other chromebook
  • standby works with TMP disabled and s3_suspend add to the boot options
  • Wayland apps run amazingly under crostini

Worse things.

  • Updates can break the device
  • Xorg Desktop Linux apps ran via crostini run terrable so forget using things like vscode
  • Linux sometimes takes forever to do certain things like finishing an update or starting to install something seems to be some sort of IO issue (Seems to be only an issue in debian the default linux distro).
  • Chromebooks have different action keys and some of them are not available on a windows style keyboards sadly you cannot modify the system shotcuts :(
  • Keyboard shotcuts sometimes do not work especally alt + tab, moving mouse seems to resolve them
  • Animations do not match touchpad guestures, first you put in the touchpad guestures after that the animation is played like switching workspaces or showing all desktops, supper annoying!
  • Android apps are a mess. Apps like discord, slack and youtube are all unusable though i need to note this is not spesific to my device this is a mess on all Chrome OS devices.

To get into the linux shell:

  • ctrl + alt + t in browser
  • type: shell

Turn of GPU completely

This saves some power.
download: https://raw.githubusercontent.com/mkottman/acpi_call/master/examples/turn_off_gpu.sh
run:

sudo insmod /lib/modules/acpi_call.ko
sudo mount -o remount,exec /home/chronos/user
sudo chmod +X ~/Downloads/turn_off_gpu.sh
sudo ~/Downloads/turn_off_gpu.sh | grep "works"
sudo mkdir -p /var/brunch/bootscripts
echo 'echo "\_SB.PCI0.PEG0.PEGP._OFF" > /proc/acpi/call' | sudo tee /var/brunch/bootscripts/dgpu.sh
sudo chmod 0755 /var/brunch/bootscripts/dgpu.sh

Changes made to config

Various bug fixes.

  1. Edit config using: sudo edit-grub-config
  2. Add enforce_hyperthreading=1 options="internal_mic_fix,acpi_power_button,advanced_als,s3_suspend" to the linux part

Change the linux distro from debian to arch

Read: arch wiki Chrome OS devices/Crostini
For extra reading: reddit run fedora on linux

Code server for text editing

Get env fish env files in code server: /usr/lib/systemd/system/code-server@.service Change the ExecStart line to:

ExecStart=/usr/bin/fish -c /usr/bin/code-server

Full Config:

[Unit]
Description=code-server
After=network.target

[Service]
Type=exec
ExecStart=/usr/bin/fish -c /usr/bin/code-server
Restart=always
User=%i

[Install]
WantedBy=default.target

Edit the code server config: ~/.config/code-server/config.yaml

bind-addr: 127.0.0.1:8080
auth: none
password: 1862b80070cfa2067a23d217
cert: false

start code server:

sudo systemctl start code-server@$USER
@mjarkk
Copy link
Author

mjarkk commented Aug 9, 2021

I think mine kept running but i think that's suspected on a laptop as (i presume) one fan cools multiple things and the speed at which it runs is depended on all of those.

i'm not running chrome os anymore so can't give you much advice maybe someone that's an active brunch user can help you via:

@cxOrz
Copy link

cxOrz commented Aug 9, 2021

Thanks for your advice bro, I'll have some further test :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment