Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grml-x (via grml-quickconfig) fails to start #20

Closed
jkirk opened this issue May 5, 2017 · 23 comments
Closed

grml-x (via grml-quickconfig) fails to start #20

jkirk opened this issue May 5, 2017 · 23 comments
Labels
Milestone

Comments

@jkirk
Copy link
Collaborator

jkirk commented May 5, 2017

grml-x fails to start on Lenovo X250:

signal-2017-05-05-140211

Seems like libgl1-mesa-dri is missing.

@jkirk jkirk added the bug label May 5, 2017
@jkirk jkirk added this to the Grml 2017.05 milestone May 5, 2017
@mika
Copy link
Member

mika commented May 5, 2017

Installing libgl1-mesa-dri adds 116MB(!) of additional disk space. :(
@flowolf - could you please verify whether running au ; agi libgl1-mesa-dri before trying to start X actually fixes this issue?

@flowolf
Copy link

flowolf commented May 9, 2017

tried on
4ac51d4f1096b43dcd4eeee756107c0df6980d2a grml64-full_testing_build2025.iso
did not work:
img_20170509_115357

@mika
Copy link
Member

mika commented May 9, 2017

That's what I was afraid of, so problems with the
Would be interesting to see whether there are any further details in the xorg log file.
And I assume "grml-x --module vesa" works?

@flowolf
Copy link

flowolf commented May 9, 2017

nope. doesn't work.
img_20170509_133815

@mika
Copy link
Member

mika commented May 9, 2017

Oh wow, what does /var/log/Xorg.0.log tell? And which driver is in usage on your usual (Ubuntu IIRC) system?

@flowolf
Copy link

flowolf commented May 9, 2017

Xorg Output:
img_20170509_135447
img_20170509_135452

Ubuntu Xorg.0.log:
https://gist.github.com/flowolf/a6db065dc4c86e20968aa8eae3f31473

@xtaran
Copy link

xtaran commented May 10, 2017

Same on Lenovo Thinkpad T470s (amd64) and EeePC 900A (i386). Might be a general and not a hardware-specific issue.

@mika
Copy link
Member

mika commented May 12, 2017

Installation of xserver-xorg-video-intel package should fix the issue, please confirm whether this fixes your issue, otherwise reopen the bug. Thx!

@mika
Copy link
Member

mika commented May 14, 2017

Reopening the issue, thanks for the update @Head-on-a-Stick - @jkirk do you have any idea about the permission stuff?

@mika mika reopened this May 14, 2017
@xtaran
Copy link

xtaran commented May 14, 2017

JFTR: It didn't help on my Thinkpad T470s either.

@mika
Copy link
Member

mika commented May 14, 2017

@xtaran is there anything in the logs or visible with the tty permissions which might shed light on what's the actual problem?

@flowolf
Copy link

flowolf commented May 15, 2017

current daily "auto-build2031 (2017-05-15)" still fails to start Xorg on X250.
and I installed xserver-xorg-video-intel.

Xorg.log here: https://gist.github.com/flowolf/56b308dfc4c225edcc0b34e1789734fa

can confirm that su'ing to grml user and running startx works (even without xserver-xorg-video-intel)
Xorg.log here: https://gist.github.com/flowolf/413ce18263c1ce053e98d711364bc38a

@jkirk
Copy link
Collaborator Author

jkirk commented May 16, 2017

Thx for all the comments!

We have a couple of issues and details here. Please be aware that there are multiple ways to start X but we currently support only a few of them (= these should work). (So please tell us how you start X in your reports. Thx!)

We have:

  • "Start x" via grml-quickconfig (on tty1)
  • Bootoption startx

Optionally we have

  • grml-x as root (not recommended)
  • grml-x as user grml (on tty5)
  • grml-x as user grml
su - grml
grml-x`

What (currently) does not work (= is currently not supported):

  • sudo -u grml grml-x
  • grml-x out of GNU screen (on tty4)

We should create an issue for each of the supported ways (if they do not work). So to narrow down the problem, this issue should be about "Start x" via grml-quickconfig. That said, it is essential to know if X can be started generally on the target machine (with or without installing any additional packages). So please let us know. Thank you!

@jkirk jkirk changed the title grml-x fails to start on Lenovo X250 grml-x (via grml-quickconfig) fails to start (on Lenovo X250) May 16, 2017
@mika
Copy link
Member

mika commented May 18, 2017

@Head-on-a-Stick @flowolf @xtaran could you please read the comment by @jkirk and try to reproduce that and let us know what exactly fails and what works?

jkirk added a commit to jkirk/grml-live that referenced this issue May 19, 2017
When the bootoption "startx" is given, the helper-script
"/etc/init.d/startx" is created during the bootprocess (via
grml-autoconfig).

That means, that if the booptions "startx" is not given, the
helper-script is not created and tty6/vt6 should not try to start X but
should just start a grml-user-shell.

Related to grml/grml#20
jkirk added a commit to jkirk/grml-live that referenced this issue May 19, 2017
When the bootoption "startx" is given, the helper-script
"/etc/init.d/startx" is created during the bootprocess (via
grml-autoconfig).

That means, that if the booptions "startx" is not given, the
helper-script is not created and tty6/vt6 should not try to start X but
should just start a grml-user-shell.

Related to grml/grml#20
jkirk added a commit to jkirk/grml-live that referenced this issue May 20, 2017
grml-runtty used to fix most of the pre-systemd environment problems. It
seems that it causes more troubles nowadays than it solved back then.
First and foremost grml-runtty does not provide a (systemd) login
session which prevents us from starting X reliably. Therefor replacing
grml-runtty with agetty with autologin where a grml-shell is used so far.

tty1 to tty4, where grml-runtty starts run-welcome (grml-quickconfig),
two root- and a grml-GNU-screen session, should also be replaced with a
proper systemd-unit.

Relates to grml/grml#14 and grml/grml#20
jkirk added a commit to jkirk/grml-autoconfig that referenced this issue May 20, 2017
The startx helper script was used to get around some permission problems
which were caused by grml-runtty. As we switched to agetty, we also can
get rid of this ugly hack.

Furthermore we decided to start X on tty7/vt7 as tty6 "is especially
reserved for auto-spawned gettys":

 This is done in order to ensure that there's always a way to get a text
 login, even if due to fast user switching X took possession of more
 than 5 VTs.

See: http://0pointer.de/blog/projects/serial-console.html

Relates to grml/grml#20
jkirk added a commit to jkirk/grml-autoconfig that referenced this issue May 20, 2017
The startx helper script was used to get around some permission problems
which were caused by grml-runtty. As we switched to agetty, we also can
get rid of this ugly hack.

Furthermore we decided to start X on tty7/vt7 (if the bootoption startx
is given) as tty6 "is especially reserved for auto-spawned gettys":

 This is done in order to ensure that there's always a way to get a text
 login, even if due to fast user switching X took possession of more
 than 5 VTs.

See: http://0pointer.de/blog/projects/serial-console.html

Relates to grml/grml#20
jkirk added a commit to jkirk/grml-live that referenced this issue May 20, 2017
grml-runtty used to fix most of the pre-systemd environment problems. It
seems that it causes more troubles nowadays than it solved back then.
First and foremost grml-runtty does not provide a (systemd) login
session which prevents us from starting X reliably. Therefor replacing
grml-runtty with agetty with autologin where a grml-shell is used so far.

tty1 to tty4, where grml-runtty starts run-welcome (grml-quickconfig),
two root- and a grml-GNU-screen session, should also be replaced with a
proper systemd-unit.

Relates to grml/grml#14 and grml/grml#20
jkirk added a commit to jkirk/grml-desktop that referenced this issue May 20, 2017
To get rid of our ugly hacks to start X via the bootoption "startx", we
decided to run grml-x on tty7/vt7 which is defined in the
.zprofile-file.

When the bootoption "startx" is given, we switch to tty7 (via
grml-autoconfig) where agetty automatically starts a grml-user
login-(z)-shell and grml-x is started.

Closes grml/grml#20
@jkirk jkirk changed the title grml-x (via grml-quickconfig) fails to start (on Lenovo X250) grml-x (via grml-quickconfig) fails to start May 21, 2017
@jkirk
Copy link
Collaborator Author

jkirk commented May 21, 2017

Thank you all for your comments, debugging and logs. They were very helpful. We can say now, that this is not a driver problem, but mostly a permission and systemd issue and I think I have a solution for this. As soon as my PRs got merged I would love to here your experience with following daily image. Thx, guys!

@mika
Copy link
Member

mika commented May 25, 2017

We'd appreciate if anyone of you could verify that it's working as intended, daily ISOs starting with build grml64-full_testing_build2042.iso (https://daily.grml.org/grml64-full_testing/2017-05-25_04-25-15/grml64-full_testing_build2042.iso) are supposed to be working fine.

mika added a commit to grml/grml-quickconfig that referenced this issue May 28, 2017
@mika
Copy link
Member

mika commented May 28, 2017

@Head-on-a-Stick ah, indeed - good catch, thanks for reporting! This should be fixed now with the latest change, I'll verify on my own that this works as intended, though for sure appreciate your feedback too, the daily ISO as of tomorrow (2017-05-29) is supposed to include the fix. Thx!

@flowolf
Copy link

flowolf commented May 29, 2017

build 2046 works (Lenovo X250)
startx with root and grml user, out of grml-quickconfig, with boot option.

@mika
Copy link
Member

mika commented May 29, 2017

Jey, thanks for verification - @flowolf 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@mika @xtaran @jkirk @flowolf and others