Closed CSEliot closed 7 years ago
Fresh install with xiwi and xorg, starting with "sudo startxfce4 -n xfce -X xorg"
symptoms: Black screen regardless of chroot. Usual fixes don't work: Flipping the lid, ssh into running chroot and "brightness 0; brightness 100" also did nothing.
Obviously different on the error log: "Error: target STRING not available"
Temporary workaround: I can use it by starting Xephyr on xiwi, or by starting xvnc and then accessing it with vnc extension, but its not ideal. Surprisingly x11vnc doesn't work. Apparently xorg on the unmapped VT locks itself up until it gets mapped again, so no joy.
Update: https://github.com/dnschneid/crouton/issues/2923#issuecomment-268418795 This change ALMOST fixes it. Now, the screen just doesn't update, and doesn't update everything, so it's not black, and you can move stuff around, but that's it.
Tested w/ fresh install of Trusty+XFCE4.
Here's the the latest output: `
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) crouton: version 1-20161129162558~master:5f2f11f9 release: trusty architecture: amd64 xmethod: xorg targets: xfce,xorg host: version 9000.29.0 (Official Build) beta-channel peppy kernel: Linux localhost 3.8.11 #1 SMP Wed Dec 14 22:03:23 PST 2016 x86_64 x86_64 x86_64 GNU/Linux freon: yes _IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root xfce4-session: No gpg or ssh authentication agent found /usr/bin/xbindkeys_autostart: line 24: CONF: unbound variable
(polkit-gnome-authentication-agent-1:12213): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed
(polkit-gnome-authentication-agent-1:12213): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
`
FIXED!
If your problem is the IOPL error, do the following: (this worked on my c720p Acer) Change /mnt/stateful_partition/crouton/chroots/test2/etc/crouton/xorg-intel-sna.conf to
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# On Intel platforms with FBC enabled, in order to see anything we need to use
# the SNA driver with the TearFree option.
Section "Device"
#Identifier "Intel Graphics SNA+TearFree"
#Driver "intel"
# Option "AccelMethod" "uxa"
# Option "TearFree" "true"
Identifier "Modesetting"
Driver "modesetting"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
NOTE: To get acceleration, and better hardware rendering support, swap "sna" with "glamor" and "TearFree" with "PageFlip". After I did this, Unity3D-Linux stopped crashing.
Keep in mind, depending on your system, it might be /mnt/stateful_partition/crouton/chroots/test2/usr/share/X11/xorg.conf.d/20-crouton.conf That you have to modify, OR /mnt/stateful_partition/crouton/chroots/test2/usr/share/X11/xorg.conf.d/20-crouton-intel-sna.conf but that last file is actually just a symbolic link to /mnt/stateful_partition/crouton/chroots/test2/etc/crouton/xorg-intel-sna.conf
Editted w/ "glamor" info for acceleration.
THANK YOU @eliot2!!!!!!!!!!!!!! I have been wrestling with this issue for so long on my Toshiba Chromebook 2, having ran at least 25 different chroots a new update must have botched things (At least I think that was the issue)
Can confirm your solution works for Toshiba Chromebook 2 SWANKY with XFCE
how do you modify files like that when you cant open it normally? do you do it only with the chrosh terminal?
MCBGamingYT, I'm having the same problem. Says xorg-intel-sna.conf is readonly. Like zgriesinger I am also on a Toshiba Chromebook 2. I was playing Minecraft in XFCE and quit the game while still in full-screen. Since then, XFCE has been complete black. Mine didn't have anything to do with a Chrome update. I guess I'll know to exit full screen before quitting Minecraft next time.
I tried using sudo to update the file, so I was able to write over the readonly file. But now it just doesn't start at all. I can change it back.
Final update: Where the file above on this page says "uxa", mine said "sna". I changed that to "uxa" and changed absolutely nothing else, and it worked. No idea what any of that means. Also, Mr. MCBGamingYT, I would advise leaving full-screen mode before quitting Minecraft. I just don't know why :)
@eliot2 You're the best, my friend, thank you! I'd buy you a drink if I could!
@eliot2 I wanted to thank you --- this worked for me with the most recent update.
@punchline18
This is something that needs to be done from ChromeOS. Here's what you do.
Begin in ChromeOS. Open up a shell (probably using ctrl+alt+T). Enter a "real" shell by typing shell
.
You should now navigate to /mnt/stateful_partition/crouton/chroots/test2/etc/crouton/xorg-intel-sna.conf
. Note that this is only an approximate name. It will begin with /mnt/stateful_partition/crouton/chroots/
. Then you may have many chroots, named whatever you named them. eliot2 has one named test2
. I happen to have one named precise
. But you'll have whatever your chroot is. But inside of your /etc/crouton/
and an xord config file.
So you will need to go to /mnt/stateful_partition/crouton/chroots/<chrootname>/etc/crouton/
. (I'm assuming you know how to use cd
and ls
--- reasonable, right?)
Now the config file is there. You will need to edit the config file. By default, vi is installed, so you could use vim xorg-intel-sna.conf
if you know anything about vim. If not, then either follow a vim tutorial or choose a different editor.
Does that make sense?
@davidlowryduda , Thanks for the beginner rundown, I have gotten to: /mnt/stateful_partition/crouton/chroots/<chrootname>
and then I run ls
and I get a bunch of encrypted mumbo jumbo.. so the encryption might be a problem? anyway around this? thanks again
@punchline18 Can you give the copy in the output of the following two commands in that directory:
pwd
ls
@davidlowryduda sure thing and I'll add edit-chroot -all
too. (note: I have also tried this on trusty, aswell as dev channel, but I have not tried it without encryption)
sudo edit-chroot -all
Password:
name: yakkety
encrypted: yes, unlocked
Entering /mnt/stateful_partition/crouton/chroots/yakkety...
crouton: version 1-20161129162558~master:5f2f11f9
release: yakkety
architecture: amd64
xmethod: xorg
targets: xorg,xfce,xiwi,keyboard,chrome,extension
host: version 9000.82.0 (Official Build) stable-channel winky
kernel: Linux localhost 3.10.18 #1 SMP Wed Feb 1 15:04:35 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Not unmounting /mnt/stateful_partition/crouton/chroots/yakkety as another instance is using it.
pwd
/mnt/stateful_partition/crouton/chroots/yakkety
ls
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQl21gfFtE3FcVN-BLbAWwQW---
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQl3PDScx7NxX5KO1drBYYjVk--
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQl7rpvEf5VCdJ6eyQ52u2CuU--
ECRYPTFS_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xLctL9IuYe.2Km---
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQlsnabtQr-zxx0hAOjr4SPeU--
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQltzRS6fQkpRlfHB.7W.f2a---
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQlu4KIzhIxUQvhbc9zybruNU--
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQlxOfX-q40Fq1oGUGUMJQZnE--
ECRYPTFS_FNEK_ENCRYPTED.FWaHR15k.B.RI-QBv.rL0.0lcJEDnEdkoiQlXyrBABbc6rxX69jCxWXWTU--
@punchline18 Interesting, I have not played around with encrypting chroots. So unfortunately, I'm not familiar with how to unencrypt that segment.
Are you capable of accessing a terminal from within xfce in a xiwi tab? [If not, then I'm afraid I don't know how to help, and additional expertise will be needed]
@davidlowryduda yes, everything is running great in xiwi-tab, I just feel like I coud gain some snappiness from xorg.. plus better game performance with the 3D acceleration. my ultimate goal being Autostart crouton chroot at ChromeOS startup but with xorg
@punchline18 Now, it is probably a good idea to back up your chroot (if you haven't already).
Now open a terminal in your xiwi-tab. In your terminal, type cd /etc/crouton
. You are now in the relevant directory, and there should be a xorg-intel-sna.conf
file (or a file looking like that) there. Edit that file using your preferred text editor (e.g,. perhaps vim xorg-intel-sna.conf
).
@davidlowryduda After learning vim and modifying the file, it works!! can't thank you enough!
@punchline18, et all,
Try updating your chroot, the devs have put in place some patches that may alleviate all these workarounds.
Hope this helps, -DennisL
DennisLfromGA commented 5 days ago @punchline18, et all,
Try updating your chroot, the devs have put in place some patches that may alleviate all these workarounds.
Hope this helps, -DennisL
This bug is definitely still in effect. I updated my chroots today and without disabling SNA I still get a black screen (with a live mouse pointer).
I haven't done proper research but I remember reading not long ago that Intel were dropping support for SNA, so maybe the Chromium team were a little too adventurous in accepting new driver patches, resulting in this regression.
Without SNA the X11 performance is noticeably slower, and we've lost scaled displays with the XRANDR extension... but other than that it seems to be fine.
Thank you all. Worked on acer CB3-111 today.
Please describe your issue:
Black screen after fresh install AND on old install. Occurred on both Trusty and Xenial, LXDE and XFCE4.
If known, describe the steps to reproduce the issue:
Fresh install, then the usual "sudo startxfce4"
Using ACER C720p Chromebook.
Command line output: