EMGD-Community / intel-binaries-linux

Binaries and source code published by Intel®
https://thopiekar.eu:5443/EMGD
Other
37 stars 11 forks source link

lightdm does not start X #11

Closed a20god closed 10 years ago

a20god commented 10 years ago

I'm trying to get EMGD to work on a Viliv N5 with Xubuntu 12.04, using the ppa:thopiekar/emgd repository.

With startx, the driver works just fine. However, lightdm does not start:

[+0.10s] DEBUG: Launching process 1326: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.10s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.10s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.10s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.92s] DEBUG: Process 1326 terminated with signal 6
a20god commented 10 years ago

Apparently, lightdm is not compatible with the downgrade of Xorg to 1.9. Replacing /usr/bin/X with a script that filters "-seat seat0" for /usr/bin/Xorg makes lightdm start.

thopiekar commented 10 years ago

I think it might me related to the Xorg package I provide here or a upstream package that isn't replaced very well. if you find the problem here at https://github.com/EMGD-Community/xserver-xorg, feel free to make a fix for that. Thanks! :)

thopiekar commented 10 years ago

Ah, sorry, didn't read your report precisely. So the problem is that Xorg 1.9 does not support this -seat option?

thopiekar commented 10 years ago

@a20god , could you show me your script? Mine is sadly now working :( https://github.com/EMGD-Community/xserver-xorg/blob/master/compat/Xcompat

a20god commented 10 years ago
#! /bin/sh

# very sloppy script for removing -seat seat0

y=
for x in "$@"
do
  case "$x" in
    -seat) ;;
    seat0) ;;
    *)     y="$y $x";;
  esac
done
exec /usr/bin/Xorg $y
thopiekar commented 10 years ago

just modified your solution now:

#!/bin/bash

args=""
skip_next=false
for arg in "$@"
do
  if $skip_next; then
    skip_next=false
  else
    case "$arg" in
      -seat) skip_next=true;;
      -bpp) skip_next=true;;
      *)     args="$args $arg";;
    esac
  fi
done

exec /usr/bin/X.real $args
a20god commented 10 years ago

Thanks! I've upgraded the system today and it broke again. Apparently, we need to remove -bpp with its argument, too.

thopiekar commented 10 years ago

updated the script below and it our upcoming package https://github.com/EMGD-Community/xserver-xorg/commit/0460cbf9ddcff06fd43350b1a3aea2f7d836eb6d ;)

thopiekar commented 10 years ago

Would be great if you could tell me whether it works :)

thopiekar commented 10 years ago

Tested on my own and works..