dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.56k stars 1.24k forks source link

Xenial chroot powers itself down (conflicting targets?) #3435

Closed Frank303 closed 2 years ago

Frank303 commented 6 years ago

sudo edit-chroot -all
Password: 
name: xenial
Enter encryption passphrase for xenial: 
encrypted: yes, unlocked
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20170315143304~master:95589555
release: xenial
architecture: amd64
xmethod: xorg
targets: x11,gtk-extra,unity,unity-desktop,core,cli-extra,extension,keyboard,chrome,audio,xiwi,xorg
host: version 9765.73.0 (Official Build) beta-channel gnawty 
kernel: Linux localhost 4.4.70-11380-gfbe5e56f0508 #1 SMP PREEMPT Thu Sep 28 23:02:35 PDT 2017 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

#### Please describe your issue:
Crouton crashes, powers off shortly after launching when I try to do anything 

#### If known, describe the steps to reproduce the issue:
Acer C730 (gnawty)
Updated ChromeOS
Updated ROM with Johnlewis.ie script
Installed crouton with
sudo sh -e ~/Downloads/crouton -r xenial -t x11,gtk-extra,unity,unity-desktop,core,cli-extra,extension,keyboard,chrome,audio,xiwi,xorg -e

When I launch Ubunto chroot it runs for a bit but when I try to do anything it powers off.
When I run software updater it runs and powers off a good way into the update. 
I can use live OSes.

ChromeOS is up to date, ROM up to date with johnlewis script
Perhaps I have put too many targets, inappropriate targets or conflicting targets in the setup script. I don't understand whhat some of the targets are (x11, gtk-extra, xiwi, xorg) and I can't find a full list of them and what they do together online or anything about conflicting targets. I'm not overly  GNU/Linux literate.

Ubunto chroot worked before when I used the basic script //trusty without encryption but it was less secure and there were backlighting and keyboard issues..
I removed xiwi as I don't need to run linux in a tab in chrome in ChromeOS but it still crashes. 
techselect commented 6 years ago

Are you sure you have enough free space and ram?

Frank303 commented 6 years ago

There's nothing on the drive except the OS. Only the crosh tab open in ChromeOS 4GB RAM I just tried the update sudo apt-get install update-manager-core python-apt with nothing else running in the Ubuntu chroot. It powered off. I also tried to run software updater in the chroot. It powered off. I also tried just launching chrome in the chroot with just the one tab. It powered off. ChromeOS can run all day long.

I figured one of the targets (x11 xiwi xorg?) isn't allowing HW acceleration to work going by how slow it's launching compared to what was installed with the basic unencrypted installation script.

DennisLfromGA commented 6 years ago

@Frank303,

I don't understand whhat some of the targets are (x11, gtk-extra, xiwi, xorg) and I can't find a full list of them and what they do together online or anything about conflicting targets.

To get a complete list of targets just run sudo sh ~/Downloads/crouton -t list Here's what that displays -

Available targets:
audio
        Support audio playback via Chromium OS's audio system.
        Requires: core
chrome
        Google Chrome browser, stable channel.
        Requires: x11
chrome-beta
        Google Chrome browser, beta channel.
        Requires: x11
chrome-dev
        Google Chrome browser, dev channel.
        Requires: x11
chromium
        Chromium browser. Uses the distro's version, which may be old.
        Requires: x11
cli-extra
        Basic CLI tools such as ssh.
        Requires: core
core
        Performs core system configuration. Most users would want this.
e17
        Installs the enlightenment desktop environment. (Approx. 50MB)
        Requires: gtk-extra
extension
        Clipboard synchronization and URL handling with Chromium OS.
        Requires: x11
gnome
        Installs the GNOME desktop environment. (Approx. 400MB)
        Requires: gtk-extra
gnome-desktop
        Installs GNOME along with common applications. (Approx. 1100MB)
        Requires: gnome
gtk-extra
        GTK-based tools including gdebi, gksu, and a simple browser.
        Requires: x11
kde
        Installs a minimal KDE desktop environment. (Approx. 600MB)
        Requires: x11
kde-desktop
        Installs KDE along with common applications. (Approx. 1000MB)
        Requires: kde
keyboard
        Adds support for Chromebook keyboard special keys.
        Requires: x11
kodi
        Installs the KODI media player. (Approx. 200MB)
        Requires: x11
lxde
        Installs the LXDE desktop environment. (Approx. 200MB)
        Requires: gtk-extra
lxde-desktop
        Installs LXDE along with common applications. (Approx. 800MB)
        Requires: lxde
touch
        Touchscreen and limited generic gesture support.
        Requires: x11
unity
        Installs the Unity desktop environment. (Approx. 700MB)
        Requires: gtk-extra
unity-desktop
        Installs Unity along with common applications. (Approx. 1100MB)
        Requires: unity
x11
        X11 via autodetected backend. Does not install any desktop environment.
xfce
        Installs the Xfce desktop environment. (Approx. 250MB)
        Requires: gtk-extra
xfce-desktop
        Installs Xfce along with common applications. (Approx. 1200MB)
        Requires: xfce
xiwi
        X.org X11 backend running unaccelerated in a Chromium OS window.
        Requires: audio extension
xorg
        X.Org X11 backend. Enables GPU acceleration on supported platforms.
        Requires: audio

Notice the targets will also mention 'Requires: ...' which means it does NOT have to be specified in your target list.

So, in your case instead of using - sudo sh -e ~/Downloads/crouton -r xenial -t x11,gtk-extra,unity,unity-desktop,core,cli-extra,extension,keyboard,chrome,audio,xiwi,xorg -e You could have just used - sudo sh ~/Downloads/crouton -r xenial -t unity-desktop,cli-extra,keyboard,chrome,xiwi,xorg

Note: I left off both of the '-e' options, the first one is built-in now and the second one for encryption can be added with an update after everything is working smoothly.

Also, you specified both 'xiwi' & 'xorg' which is not necessary but may be desired. ~And since you specified 'xiwi' first it probably launches in a window.~ ~Have you tried launching it using 'xorg' to see if it still shuts down with: sudo startunity -n xenial -X xorg~ Sorry, I should've noticed your default xmethod is 'xorg'. Have you tried launching it using 'xiwi' to see if it still shuts down with: sudo startunity -n xenial -X xiwi~

Hope this helps, -DennisL