[11:06] <Andy80> if Xorg crashes without giving you any error messages on screen and takes you back to the login screen, how/where can I look to understand why is this happening? I suppose a bug on the nvidia driver (bug already reported) but I'd like to understand better...
[11:36] <Andy80> crashed again :\
[12:26]  * jussi waves to Andy80
[12:30] <Andy80> jussi: hi :D
[12:30] <jussi> Andy80: long time no speak :)
[12:32] <Andy80> jussi: yeah, how are you? Are we catching up at UDS?
[12:32] <jussi> Andy80: no, not this time :(
[12:33] <jussi> Andy80: busy busy busy with my 3 month old daughter
[12:34] <jussi> anyways, Im off to get candy from the shop... :P
[12:34] <Andy80> ;)
[12:35] <Andy80> I'm here busy with a Xorg that keep crashing and I don't know how to detect why :( damn it!
[17:42] <mhall119> jussi: a bit young for candy isn't she?
[17:45] <jussi> mhall119: my wife? no :P
[21:06] <bronzdragon> Hey, Im having a problem with LightDM acting up on boot.
[21:06] <bronzdragon> When I boot up, LightDM doesnt start. Running LightDM restart lets me launch gnome.
[21:06] <bronzdragon> Any guesses as to why LightDM fails on boot, but without changing anything, a restart fixes it? Im assuming its reading from some other config when being run by me than when being run on boot? Would that make sense?
[21:11] <JanC> bronzdragon: does lightdm start and fail or does it not start at all?
[21:13] <bronzdragon> Im not quite sure. It says in the output it starts
[21:13] <JanC> in what output?
[21:14] <bronzdragon> But its not followed up by any graphics or a message saying it stops. While every other DM starts and stop
[21:14] <bronzdragon> Boot output
[21:15] <JanC> eh, if this is Ubuntu, normally there should be no "boot output" AFAIK?
[21:16] <bronzdragon> Yes, that is correct. I dont get the usual boot messages, but since something fails, I get more messa-- oh wiat, thats the Xorg output I believe, rather than boot messages. Its the first text I see on screen after a boot.
[21:16] <kklimonda> bronzdragon: are you sure it doesn't start? have you check /var/log/lightdm/ for logs?
[21:17] <JanC> anyway, if it says it starts, it probably at least tries to start, so it's not a problem with the upstart job
[21:17] <bronzdragon> Like I said, it says it starts, but I cant see anything. And it doesnt compalin when I restart it, so I assume it is running. But Ill look at lightdm logs now. Should I pastebin them?
[21:19] <JanC> bronzdragon: did you try switching to other virtual consoles with Alt+Fn?
[21:19] <bronzdragon> Yes, that works. Thats where I run lightdm restart, to have it restart and then work perfectly
[21:19] <JanC> but did you try finding LightDM on one of them?
[21:20] <bronzdragon> http://pastebin.com/gqb8p9Sr
[21:20] <bronzdragon> Could you rephrase that?
[21:20] <bronzdragon> Are you asking if its running anywhere but 7?
[21:21] <JanC> or you didn't get switched to 7
[21:21] <kklimonda> bronzdragon: this one isn't really helpful, specially given that you've restarted lightdm so it's a log of a working session
[21:21] <kklimonda> bronzdragon: check x*log for errors
[21:21] <bronzdragon> When I restart, I get switched to 7 which is where it restarts.
[21:21] <bronzdragon> Right, yes
[21:22] <bronzdragon> Which one of them? There is x0/greeter and x1/greeter
[21:22] <JanC> seems like there is an *.old log too?
[21:23] <kklimonda> yeah, check their timestamps
[21:23] <bronzdragon> No .olds
[21:24] <bronzdragon> Do you wanna see the earlist?
[21:24] <kklimonda> bronzdragon: the earliest from this session?
[21:25] <kklimonda> on my machine some of those logs go back to november ;)
[21:25] <bronzdragon> They all have the same time stamp. But Ill assume the ls -l orders them by seconds too, even though it only tells me minutes.
[21:25] <JanC> kklimonda: I just removed one huge one from November actually  ;)
[21:25] <bronzdragon> Oh wait nvm, its ordered by name. Im being silly
[21:26] <bronzdragon> -rw------- 1 root root  5338 2012-04-20 17:56 lightdm.log
[21:26] <bronzdragon> -rw------- 1 root root  7585 2012-04-20 17:56 x-0-greeter.log
[21:26] <bronzdragon> -rw------- 1 root root  1034 2012-04-20 17:56 x-0.log
[21:26] <bronzdragon> -rw------- 1 root root 10480 2012-04-15 22:22 x-1-greeter.log
[21:26] <bronzdragon> -rw------- 1 root root  1061 2012-04-15 22:36 x-1.log
[21:27] <kklimonda> bronzdragon: paste x-0.log
[21:27] <bronzdragon> `sir!
[21:27]  * kklimonda is surprised there are no .log.old files 
[21:27] <JanC> in pastebin! ☺
[21:27] <bronzdragon> http://pastebin.com/ncmtjTE7
[21:27] <bronzdragon> Sorry, figured 5 lines would be fine in here.
[21:28] <kklimonda> heh, there is nothing there
[21:28] <kklimonda> bronzdragon: can you reboot, wait for lightdm to fail to start and copy the content of /var/log/lightdm/ somewhere safe?
[21:29] <bronzdragon> Oh yeah, sure. Gimme a minute then.
[21:47] <bronzdragon> Hello again!
[21:47] <bronzdragon> Sorry about taking forever
[21:47] <bronzdragon> I was dumb. Twice
[21:48] <bronzdragon> Archive or pastebins?
[21:48] <kklimonda> pastebins should be faster
[21:48] <bronzdragon> http://pastebin.com/FfquUgCt
[21:49] <bronzdragon> Lightdm.log
[21:49] <bronzdragon> Oh this one has a bunch of errors! Nice
[21:49] <bronzdragon> http://pastebin.com/vwNuPTPE
[21:50] <bronzdragon> This is 0-greeter. Are the rest of any interest? http://pastebin.com/3kE8s5gn
[21:53] <kklimonda> bronzdragon: bug 873495
[21:53] <kklimonda> bronzdragon: are you running 11.10 or 12.04?
[21:53] <bronzdragon> Whats the command for finding out?
[21:53] <kklimonda> lsb_release  -a
[21:54] <bronzdragon> 11.10
[21:55] <kklimonda> bronzdragon: ok, can you test kernel from https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/873495/comments/17 and report back (to the bug report, not here) if it's fixed the issue?
[21:55] <kklimonda> well, you can also say here, but bug report is more important :)
[21:56] <bronzdragon> Thats the only suggested fix?
[21:56] <kklimonda> bronzdragon: well, one of the comments suggests that it's a kernel issue
[21:56] <kklimonda> the patches look.. unrelated, at least their names
[21:57] <bronzdragon> His fix points at the newer kernel version than what Ubuntu has
[21:57] <kklimonda> bronzdragon: the work around is for lightdm to wait few seconds before starting
[21:57] <bronzdragon> Is that a problem?
[21:57] <kklimonda> the problem is a race condition between nvidia module creating /dev/nvidiactl and lightdm starting
[21:58] <bronzdragon> I see. That makes sense. Since restarting LightDM magically fixes it
[21:58] <kklimonda> the workaround is to delay starting lightdm in hope that by doing this we give nvidia enough time to create the file
[21:58] <bronzdragon> How do I make it stall?
[21:59] <kklimonda> edit /etc/init/lightdm.conf
[21:59] <kklimonda> add
[21:59] <kklimonda> pre-start script
[21:59] <kklimonda>     sleep 2
[21:59] <bronzdragon> Thank you]
[21:59] <kklimonda> end script
[21:59] <kklimonda> but testing the kernel would make it possible to fix the actual bug ;)
[22:00] <bronzdragon> Does it matter where it goes? If so, where?
[22:01] <bronzdragon> Before "start on"?
[22:01] <kklimonda> before script
[22:01] <kklimonda> after emits
[22:02] <bronzdragon> Thank you again. Ill try this. Also try with the patched kernel and see if that helps
[22:02] <kklimonda> dont forget revert changes before testing the kernel
[22:03] <bronzdragon> Im not gonna do it natively. Gonna try in a VM.
[22:03] <kklimonda> it's not going to happen in VM
[22:03] <kklimonda> the problem is nvidia driver
[22:03] <bronzdragon> Gonna use this exact compu-- oh right yes
[22:03] <kklimonda> in VM your gpu is virtualized and it won't be using the same nvidia module
[22:03] <bronzdragon> Gonna try it natively then... =P
[22:03] <bronzdragon> Ill remove the line before testing
[22:04] <kklimonda> you can easily switch between kernels at the boot time
[22:04] <kklimonda> by pressing left shift
[22:04] <bronzdragon> Yup, thanks
[22:04] <bronzdragon> well see you around
[22:17] <JanC> heh, nvidia binary v
[22:18] <JanC> heh, nvidia binary blob starts too slow?  ;)