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.

Revisions

  1. mjarkk revised this gist Dec 5, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -13,9 +13,10 @@ Mostly funs.
    - 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
    - Desktop Linux apps ran via crostini run terrable, forget using things like android studio or vscode
    - 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](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) 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
  2. mjarkk revised this gist Dec 1, 2020. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Ran on my Dell XPS 15 9560 (4k) using [brunch](https://github.com/sebanc/brunch)
    Ran on my Dell XPS 15 9560 (4k) using [brunch](https://github.com/sebanc/brunch) with the `rammus` recovery

    ## Why?
    Mostly funs.
    @@ -15,12 +15,11 @@ Mostly funs.
    - standby works with TMP disabled and `s3_suspend` add to the boot options
    ### Worse things.
    - Updates can break the device
    - Linux desktop apps run terrable, forget using things like android studio or vscode
    - Desktop Linux apps ran via crostini run terrable, forget using things like android studio or 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](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) 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, moving mouse seems to resolve them
    - 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!
    - Without tab to click on the touchpad it's not really usable
    - 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:
  3. mjarkk revised this gist Dec 1, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -34,8 +34,9 @@ run:
    ```sh
    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 /var/brunch/bootscripts
    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
    ```
  4. mjarkk revised this gist Nov 30, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,10 @@ Mostly funs.
    - Without tab to click on the touchpad it's not really usable
    - 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
  5. mjarkk revised this gist Nov 30, 2020. 1 changed file with 21 additions and 3 deletions.
    24 changes: 21 additions & 3 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -8,20 +8,38 @@ Mostly funs.
    - 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, gentoo, ...](https://images.linuxcontainers.org/)
    - Crostini can run [ubuntu, fedora, arch and more](https://images.linuxcontainers.org/)
    - 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
    ### Worse things.
    - Updates can break the device
    - Linux desktop apps run terrable, forget using things like android studio or vscode
    - standby [should work when disabling TPM](https://github.com/sebanc/brunch/issues/545) though mine stopped working after a few standbys.
    - 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](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) 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, 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!
    - Without tab to click on the touchpad it's not really usable
    - Android apps are a mess on discord, slack, youtube all do not work as they should (this is a mess for all chrome os devices).
    - 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.

    ## Turn of GPU completely
    This saves some power.
    download: https://raw.githubusercontent.com/mkottman/acpi_call/master/examples/turn_off_gpu.sh
    run:
    ```sh
    sudo insmod /lib/modules/acpi_call.ko
    sudo mount -o remount,exec /home/chronos/user
    sudo ~/Downloads/turn_off_gpu.sh | grep "works"
    sudo mkdir /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](https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini)
  6. mjarkk revised this gist Nov 29, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -24,8 +24,8 @@ Mostly funs.
    - Android apps are a mess on discord, slack, youtube all do not work as they should (this is a mess for all chrome os devices).

    ## Change the linux distro from debian to arch
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini
    For extra reading: https://www.reddit.com/r/Crostini/wiki/howto/run-fedora-linux
    Read: [arch wiki Chrome OS devices/Crostini](https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini)
    For extra reading: [reddit run fedora on linux](https://www.reddit.com/r/Crostini/wiki/howto/run-fedora-linux)

    ## Code server for text editing
    Get env fish env files in code server: `/usr/lib/systemd/system/[email protected]`
  7. mjarkk revised this gist Nov 29, 2020. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -5,19 +5,23 @@ Mostly funs.

    ## Findings
    ### Great things:
    - Battery live is ok.
    - 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, gentoo, ...](https://images.linuxcontainers.org/)
    - 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
    ### Worse things.
    - Updates can break the device
    - Linux desktop apps run terrable, forget using things like android studio or vscode
    - standby should [work when disabling TPM](https://github.com/sebanc/brunch/issues/545) though mine stopped working after a while.
    - 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.
    - standby [should work when disabling TPM](https://github.com/sebanc/brunch/issues/545) though mine stopped working after a few standbys.
    - 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](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) 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, moving mouse seems to resolve them
    - Animations do not match touchpad guestures, first the touchpad guestures is dune then the animation plays supper annoying!
    - 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!
    - Without tab to click on the touchpad it's not really usable
    - Android apps are a mess on discord, slack, youtube all do not work as they should (this is a mess for all chrome os devices).

    ## Change the linux distro from debian to arch
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini
  8. mjarkk revised this gist Nov 29, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,8 @@ Mostly funs.
    - standby should [work when disabling TPM](https://github.com/sebanc/brunch/issues/545) though mine stopped working after a while.
    - 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.
    - [Chromebooks have different action keys](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) 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, moving mouse seems to resolve them
    - Animations do not match touchpad guestures, first the touchpad guestures is dune then the animation plays supper annoying!

    ## Change the linux distro from debian to arch
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini
  9. mjarkk revised this gist Nov 27, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,8 @@ Mostly funs.
    - [Chromebooks have different action keys](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) and some of them are not available on a windows style keyboards sadly you cannot modify the system shotcuts :(

    ## Change the linux distro from debian to arch
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini
    For extra reading: https://www.reddit.com/r/Crostini/wiki/howto/run-fedora-linux

    ## Code server for text editing
    Get env fish env files in code server: `/usr/lib/systemd/system/[email protected]`
  10. mjarkk revised this gist Nov 27, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Tested on my Dell XPS 15 9560 (4k) using [brunch](https://github.com/sebanc/brunch)
    Ran on my Dell XPS 15 9560 (4k) using [brunch](https://github.com/sebanc/brunch)

    ## Why?
    Mostly funs.
  11. mjarkk revised this gist Nov 26, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions My chrome os dev setup.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,9 @@ Mostly funs.
    - 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.
    - [Chromebooks have different action keys](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) and some of them are not available on a windows style keyboards sadly you cannot modify the system shotcuts :(

    ## Change the linux distro from debian to arch
    Read: https://wiki.archlinux.org/index.php/Chrome_OS_devices/Crostini

    ## Code server for text editing
    Get env fish env files in code server: `/usr/lib/systemd/system/[email protected]`
    Change the `ExecStart` line to:
  12. mjarkk renamed this gist Nov 26, 2020. 1 changed file with 0 additions and 0 deletions.
  13. mjarkk created this gist Nov 26, 2020.
    54 changes: 54 additions & 0 deletions Setting up my chrome os device for development
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    Tested on my Dell XPS 15 9560 (4k) using [brunch](https://github.com/sebanc/brunch)

    ## Why?
    Mostly funs.

    ## Findings
    ### Great things:
    - Battery live is ok.
    - 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, gentoo, ...](https://images.linuxcontainers.org/)
    - 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
    ### Worse things.
    - Linux desktop apps run terrable, forget using things like android studio or vscode
    - standby should [work when disabling TPM](https://github.com/sebanc/brunch/issues/545) though mine stopped working after a while.
    - 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.
    - [Chromebooks have different action keys](https://duckduckgo.com/?q=chrome+book+action+keys&t=lm&iar=images&iax=images&ia=images) and some of them are not available on a windows style keyboards sadly you cannot modify the system shotcuts :(

    ## Code server for text editing
    Get env fish env files in code server: `/usr/lib/systemd/system/[email protected]`
    Change the `ExecStart` line to:
    ```
    ExecStart=/usr/bin/fish -c /usr/bin/code-server
    ```

    Full Config:
    ```toml
    [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`
    ```yaml
    bind-addr: 127.0.0.1:8080
    auth: none
    password: 1862b80070cfa2067a23d217
    cert: false
    ```

    start code server:
    ```sh
    sudo systemctl start code-server@$USER
    ```