You are not logged in.
Hi everyone,
since the upgrade to xorg-server 1.16 i can't get X to work again on my thinkpad R50e with an old intel integrated chip (Intel Extreme Graphics 2).
I first encountered the error "cannot open /dev/tty0": http://okraits.de/upload/xorg/Xorg.0.log
Then i created /etc/X11/Xwrapper.config: http://okraits.de/upload/xorg/Xwrapper.config
Then i got the error "failed to set mode": http://okraits.de/upload/xorg/Xorg.1.log
My xorg.conf looks like this: http://okraits.de/upload/xorg/xorg.conf
I start X with startx and this .xinitrc: http://okraits.de/upload/xorg/.xinitrc
I have no clue how to fix this. Any help would be much appreciated!
Greetings,
Oliver
Last edited by okraits (2014-08-08 06:33:09)
Offline
Any ideas anybody?
Offline
Not really; but you don't need that dbus line anymore, an active session takes care of that (but you have to add the lines from the skeleton xinitrc)...
Offline
Thanks jason, but that doesn't help either. I don't have a special setup or configuration so i'm rather helpless with this issue...
Offline
Re{moving,naming} your Xorg conf doesn't make any difference? How do you login and start X?
Offline
No, it doesn't. I login at the first tty and start X from that via startx and my .xinitrc. I already asked in #intel-gfx and they didn't have a solution either.
Offline
I had a similar issue and had to replace intel-dri-git with intel-dri on my macbook to get it to work again.
Offline
I had a similar issue and had to replace intel-dri-git with intel-dri on my macbook to get it to work again.
I'm not using intel-dri-git, i'm using intel-dri.
Offline
How do you start X? Note you must start X from the same VT where you login, if you use Xorg.bin (no setuid). From your log there're mentions of /dev/tty0 and "Using VT number 2", so I suppose that might be the problem.
If you simply use `startx`, the actual process running will be something like
/usr/bin/Xorg.bin -nolisten tcp :0 -auth /tmp/serverauth.XXXXXXXXXX vt1Note the `vt1` in the line must be specified, where 1 is the value of $XDG_VTNR in the VT where you login.
Edit
In my log there's something yours are missing
[ 45.465] (++) using VT number 1
[ 45.465] (--) controlling tty is VT number 1, auto-enabling KeepTtyLast edited by lolilolicon (2014-08-07 08:27:55)
This silver ladybug at line 28...
Offline
How do you start X? Note you must start X from the same VT where you login, if you use Xorg.bin (no setuid). From your log there're mentions of /dev/tty0 and "Using VT number 2", so I suppose that might be the problem.
If you simply use `startx`, the actual process running will be something like
/usr/bin/Xorg.bin -nolisten tcp :0 -auth /tmp/serverauth.XXXXXXXXXX vt1Note the `vt1` in the line must be specified, where 1 is the value of $XDG_VTNR in the VT where you login.
Edit
In my log there's something yours are missing
[ 45.465] (++) using VT number 1 [ 45.465] (--) controlling tty is VT number 1, auto-enabling KeepTty
I login at tty1 (which is the first one visible after boot) and run startx from there.
I added the following to my .xinitrc:
echo "vt: $XDG_VTNR"
The output was:
vt: 1
That would be ok, right? Or is it $XDG_VTNR + 1?
So i am wondering what is forcing X to use vt 2. Or how i can tell X to use vt 1.
Last edited by okraits (2014-08-07 12:37:17)
Offline
So i am wondering what is forcing X to use vt 2. Or how i can tell X to use vt 1.
Looks like something's up with your serverrc?
What if you ran:
xinit ~/.xinitrc -- /usr/bin/Xorg.bin -nolisten tcp :0 vt$XDG_VTNRThis silver ladybug at line 28...
Offline
Looks like something's up with your serverrc?
What if you ran:
xinit ~/.xinitrc -- /usr/bin/Xorg.bin -nolisten tcp :0 vt$XDG_VTNR
That works! My xserverrc is default:
#!/bin/sh
if [ -z "$XDG_VTNR" ]; then
exec /usr/bin/X -nolisten tcp "$@"
else
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
fi
I think the rights are ok, too:
root@idefix ~]# ls -l /etc/X11/xinit/
insgesamt 12
-rw-r--r-- 1 root root 738 9. Dez 2013 xinitrc
drwxr-xr-x 2 root root 4096 14. Jul 20:08 xinitrc.d
-rw-r--r-- 1 root root 132 31. Okt 2012 xserverrc
Offline
I guess it's your Xwrapper.config then. I don't use one, and I have this as ~/.xserverrc
#!/bin/sh
exec /usr/bin/Xorg.bin -nolisten tcp "$@" vt$XDG_VTNRbypassing Xorg.wrap entirely since I don't need root rights or a second X server.
Last edited by lolilolicon (2014-08-07 13:18:57)
This silver ladybug at line 28...
Offline
Ok, i will try and find out the issue. Thank you very much, now i know what is causing this. I'll report the final cause here.
Last edited by okraits (2014-08-07 13:20:52)
Offline
I have the cause: i had the following line in my .bashrc:
alias startx="startx -- -dpi 90"
That broke X with the update.
To fix that, i removed that line from my .bashrc and added a .xserverrc with the following content:
#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR -dpi 90
Offline
Or, set your DPI in an xorg.conf.d file...
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
Yeah, that would be the obvious way. I don't remember why i set the DPI value in my .bashrc in the first place ![]()
Offline