/srv/irclogs.ubuntu.com/2011/07/07/#ubuntu-x.txt

Prf_JakobSo the basic noob question is how do I edit the package? Or can I magically make the dkms tool add it for me?00:00
RAOFWhy don't you add the udev rule in the package which installs the dkms source?00:01
Prf_JakobYeah that was my plan, but I do know how to edit the .deb file?00:02
Prf_Jakobdo not know*00:02
RAOFWhy would you want to edit the .deb file?  Which .deb file?00:02
Prf_JakobRight noob00:03
Sarvattthe packaging is all contained in the debian/ directory and you want to edit stuff there to alter how the package is built, debian/rules is what builds the package from source and if you want to add a udev rule that you have already you should be able to just add it as debian/vmwgfx.udev (replacing vmwgfx with whatever your source package name is)00:03
Prf_Jakobokay00:03
Prf_Jakobright the problem is that I used dkms to generate the package for me, it did all the debian magic.00:04
Sarvattnice, i've never even heard of dkms mkdeb before00:04
Sarvattit generated a source package for you?00:04
Prf_Jakobyeah00:04
Sarvattyou should be able to dpkg-source -x foo.dsc to extract it00:04
Prf_JakobI don't have a *.dsc file, only a .deb00:07
Sarvattah looks like you need mkdsc instead of mkdeb to make a source package that you can go in and edit after00:08
Prf_JakobAh..00:10
Prf_JakobSarvatt: okay edited00:14
Sarvattyou'll probably need to name it foo-dkms.udev since it looks like it defaults to that package name00:15
Sarvattdebian/foo-dkms.udev rather00:16
Sarvattafter you edit the packaging you want to debuild -S -sa to make a new source package to do something with, or debuild -uc -us -b to make a .deb again (not sure what you're doing with it)00:20
Prf_Jakoboh yay a mail server!00:25
Sarvattsudo apt-get purge postfix bsd-mailx :P00:26
Sarvatthate that devscripts pulls that crap in00:26
Sarvattor sudo apt-get --no-install-recommends install devscripts00:28
Prf_Jakobhmm okay..00:29
Prf_Jakobso I made a package, but I can't install it because it says I already have the package installed.00:29
Prf_JakobBut I purged it before00:29
Prf_JakobAfter it fails I can purge it again.00:29
Prf_JakobAh there we go00:34
Sarvattsudo apt-get purge foo fails to remove it? sudo dpkg -i foo.deb fails to install it? can you share the source package? I'd be more than happy to take a look at it and see whats going on and help clean it up some00:34
Prf_JakobIt didn't remove the /var/lib/dkms/vmwgfx/1.4.1 directory because it forgot about the dsc directory in there00:35
Prf_Jakobah I probably need to add a dh_installudev to debian/rules as well?00:37
RAOFDepending on what sort of rules file dkms generates, yes.00:38
Prf_Jakobnot one containing dh_installudev :)00:38
RAOFIf it uses the “dh” tool then you wouldn't need it, but it's probably not that new :)00:39
SarvattRAOF: where would the dh_installudev go in /etc/dkms/template-dkms-mkdsc/debian/rules? just before dh_link in binari-indep?00:49
RAOFI'd put it next to the dh_install call, which I presume is in there somewhere.00:50
Prf_JakobI only see dh_installdeb and dh_installdirs00:54
Prf_Jakob/lib/udev/rules.d/40-vmwgfx-dkms.rules01:00
Prf_Jakob\o/01:01
RAOFWoot!01:01
Prf_JakobI added dh_installudev under the install target in rules01:01
RAOFYeah, that'd fly :)01:02
Prf_Jakobdo how do you guys manage packages like this?01:04
Prf_Jakobdo you do a git-init in the package dir and just "git add debian && git commit" and thats it?01:05
RAOFhttp://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html01:05
RAOFGenerally something like that.01:05
Prf_Jakoberrr01:08
RAOFThat's the full toolchain thingy.  git add debian && git commit is what often happens on a day to day level :)01:09
Prf_Jakobok01:19
Sarvattif you git init in debian/ you need to pass -i -I to debuild when you build packages so the .git crap doesn't end up in the package01:25
Sarvattor just add DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I" to ~/.devscripts01:25
Sarvatt(sorry popped out there, glad it worked!)01:26
Sarvattthere's no right way to do it, just whatever you prefer01:27
Sarvattcauses lots of headaches adopting other peoples workflows to update packages, thats for sure :)01:27
Prf_JakobI'm just glad I have a package that I can use01:29
Prf_JakobSo where do specify the package version?01:31
Prf_Jakobdebian/rules?01:31
RAOFdebian/changelog01:32
RAOFThe version of the most recent changelog entry is the version of the package.01:32
Prf_Jakobah01:33
RAOF(dch is a useful tool for manipulating the changelog; I use emacs' debian-changelog mode for my stuff, though)01:33
Prf_Jakobhmm okay01:34
Prf_Jakobdch uses envar EDITOR?01:34
RAOFYes.01:34
Prf_JakobYes it does01:34
Sarvattyeah dch -i to make a new changelog entry and automatically bump the package version (although it almost always does it wrong)01:34
Prf_Jakobhehe so I noticed01:45
SarvattPrf_Jakob: there's probably a 50 page document somewhere on the debian policy regarding the version string, but basically x.y.z is the upstream version, the part after - is the debian revision of the package, and if that debian version is modified in ubuntu it gets a ubuntuX version added01:53
Prf_JakobAnd if its vmw?01:53
Prf_JakobVMware*01:53
Prf_Jakobdo I add vmwX?01:53
Prf_JakobI just went with rX01:53
Prf_Jakobfor some reason01:53
RAOFSarvatt: It's actually not very complicated :P http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version01:54
SarvattRAOF: that totally omits things like x.y.z-2 being higher than x.y.z-2~vmw1 though, hmm01:55
Sarvattoh no it doesnt01:55
RAOFPrf_Jakob: If you're not expecting to distribute it, or if it's not going to conflict with a package name in the Ubuntu archives then the only real constraint on versioning is that you want it to be strictly monotone increasing, and the tools will raise warnings if you have a native package (one without a -$SOMETHING component).01:55
Prf_JakobRAOF: down the line I would like to make a ppa for it, now its just a internall thing.01:56
RAOFSarvatt: It doesn't say it in so many words, but it *does* say that “~” sorts before everything, including the empty string.01:56
RAOFPrf_Jakob: Then you can go nuts with whatever versioning scheme you want :)01:57
tjaaltonSarvatt: and having 'DEBCHANGE_RELEASE_HEURISTIC="changelog"' in .devscripts makes dch a bit better when handling dvcs repos06:02
tjaaltonno need to use -i06:03
tjaaltonRAOF: do you know if *DM has been updated to the new '-background none' so patch 209 could be dropped from the server?08:03
RAOFtjaalton: No, they haven't.08:04
tjaaltonis there a bug about it?08:04
RAOFI'm not sure.08:05
tjaaltonok08:05
RAOFLooking.08:05
tjaaltoni'm bisecting our patches to see which one causes wacom button clicks to move the cursor around08:06
tjaaltonnot happening on upstream code08:06
tjaaltonso I came across that one08:06
tjaaltonsure it doesn't cause it :)08:07
tjaaltonat least gdm hasn't changed08:08
RAOF:)08:08
tjaaltonubuntu_plymouth.patch still uses -nr08:08
RAOFtjaalton: Now filed as bug #80685708:17
ubot4Launchpad bug 806857 in lightdm (Ubuntu) (and 1 other project) "Plymouth integration should use upstream “-background none” option (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/80685708:17
tjaaltonRAOF: thanks08:19
tjaaltonI think kdm is not using -nr anymore08:19
tjaaltonScottK: can you verify ^08:19
tjaaltonthe changelog of kdebase-workspace is confusing, it's talking about 07_kdmrc_defaults_kubuntu.diff, but there is no such patch but kdmrc_defaults.diff which is commented out :)08:21
tjaaltonand I guess lightdm hasn't used -nr08:23
tjaaltonok, disabling patches 200-> fixed the cursor jumping, but only a fraction of the tablet surface was usable. bisecting some more09:42
tjaaltonyep, it's the multitouch patches that cause the cursor jumping09:54
RAOFHurray! :/10:22
RAOFmikey_: So, what's broken? :)10:23
mikey_Well, I was hoping to sort out a strategy to do a second session in X that plays nice with ubuntu, at the moment it's a bit of a hack based on my outsider readings on X.10:25
RAOFmikey_: As in: run a second X server?10:26
RAOFAnd then the game in that second server?10:27
mikey_So basically all I do is utilise xinit to start a second X session along side the first and open openbox (I just chose this as something lightweight that didn't use Compiz) 10:27
mikey_And then it waits and opens a game on that10:28
mikey_It's pretty simple but avoids a lot of the problems you get with compiz10:28
mikey_There (just acording to poles of people using this strategy) is a slight performance boost over running it in one session10:29
mikey_Also the game is slightly sandboxed so any major crashes don't effect the first x session10:30
RAOFRight.10:30
mikey_The problem is that it has become increasingly opaque in ubuntu how to deal with the security and x session management features.10:30
mikey_So at the moment a commmand I use looks something like this:10:31
mikey_xinit '/tmp/tmp-xinitrc'  -- :110:32
mikey_Where the tmp-xinitrc  has a session command like:10:33
mikey_exec ck-launch-session openbox-session10:33
RAOFAh, right, yes.  ConsoleKit.10:34
mikey_I had to introduce that to deal with sound problems. 10:35
mikey_Now there's issues about whether a user level application can start a session at all 10:35
jcristaui wouldn't expect xinit from an existing X session to work, as a regular user?10:35
mikey_I can get arround it by getting people to turn on user level x session management but I don't know if that is a security risk10:36
RAOFI presumed there's an implicit sudo in there :)10:36
mikey_No10:36
mikey_Sorry I was typing as you were. Hope that explains where I am10:36
RAOFI think ck-launch-session is going to stop working properly, isn't it?  consolekit is starting to require the sessions be set up with all the trimmings - vt, display number, etc.10:37
mikey_Also there's a problem that when I exit openbox now something takes down the first x session as well10:37
RAOFWhat is “user level x session management” in this context?10:38
mikey_Sorry, you can tell X that users can start and stop sessions without sudo10:39
mikey_I'm just looking for the change now, as I can rememebr exactly which file you cange10:43
RAOFRight.  /usr/bin/X is setuid, and from memory the wrapper has some authorisation hooks.10:44
mikey_sudo dpkg-reconfigure x11-common10:48
mikey_and choose "anyone" to enable X privileges10:48
RAOFmikey_: I'm not entirely sure what you're looking to achieve.  We're not deliberately breaking this sort of thing, but its also not something that we (or many upstreams) particularly think of either.10:48
mikey_I was hoping to knock out a strategy that was more in keeping with the way that these things were intended to work. Since there is an issue with gaming on ubuntu. 10:50
RAOFThe way that this *should* be fixed is by fixing whatever's wrong with compiz, basically.10:50
mikey_I've asked the compiz people a couple of years ago if they intended to make some workaround for games but nothing has been forthcoming.10:51
RAOFWhat is the actual problem?10:52
mikey_They said they were.10:52
mikey_Many games, particularly using Wine. Crash when run under Compiz or don't work at all10:53
RAOFCan you give some examples?  I've not run into any of these problems, but I haven't got a particularly extensive gaming library.10:55
mikey_Well, I've not tried many games under compiz for a while as I've been using my approach10:56
mikey_But I just started up the first game that came to mind Oblivion using wine10:57
mikey_and while it ran the fullscreen did not cover the unity pannel10:57
RAOFAh, fullscreen.10:59
RAOFThe state that X forgot.10:59
RAOFSo, *that* is just a window management bug in compiz.11:01
RAOFAnd sometimes the way to have things fixed is to fix them.  There's not a huge difference in difficulty between fiddling around with running extra X sessions and fixing bugs in compiz.11:02
mikey_Same issue on other wine games (just checked) so a wine compiz issue. 11:02
mikey_In the past there've been issues where wine games were in fact transparent.11:03
RAOFAnd that was almost certainly a wine bug :)11:04
mikey_No compiz11:04
mikey_Well... compiz and maybe wine was misslabeling 11:04
RAOFProbably would have happened with another compositor too; wine was probably filling its windows with a transparent colour and not noticing because that only takes effect under a compositor.11:05
mikey_I think actually it was thinking the window was a menu11:06
mikey_as I had transparent menus at the time11:06
RAOFPossible, if you set up compiz to make menus transparent.11:06
mikey_But like I say, things may have change a lot over the last couple of years since I used wine games under compiz but increased crashes also were an issue. 11:08
mikey_The second session made that kind of problem no problem at all.11:09
RAOFYeah, but it's not a particularly wonderful solution.  Specifically, it's not something that we'll do by default.11:10
mikey_OK.11:10
mikey_Can you give me any pointers to coping with session management if I continue to try to run an app that does this?11:12
mikey_So would you recommend not enabling user level session management on security grounds? 11:13
RAOFNo, not particularly.11:13
mikey_Do you know what it is that is killing the first x session when I exit the second?11:14
mikey_I guess GDM11:14
RAOFI wouldn't think so, but it's possible I guess.11:14
RAOFYou're not starting an X server that gdm knows about.11:14
RAOFIt *might* be consolekit playing around on you.11:15
mikey_How is a session started properly under Ubuntu at the moment? (Or where can I read about it?)11:16
RAOFAs I said, I think you're going to need to use something more clever than ck-launch-session soon11:16
RAOFmikey_: X servers are started by the display manager, as are login sessions; check the lightdm source for details, pretty much.11:17
mikey_Can I interact with the display manager to request a new session or do I need to reimplement what it's doing?11:18
RAOFYou possibly could?  It'd be moderately involved, I think.11:19
mikey_OK. Thank you for your help11:22
SarvattRAOF: doh, thats a nasty mesa bug to have on the alpha 2 image12:34
ScottKtjaalton: I can't find any evidence of a plymouth related -nr and I do see a background being set in kubuntu_63_ksplash_fix.diff, but I'm not sure if that's the same background setting or not.13:00
ScottKSo I think it's OK, but not sure.13:00
tjaaltonScottK: yeah, good13:01
=== JanC_ is now known as JanC
hyperairSarvatt: does sna in xorg-edgers somehow cause dri2 to stop working?17:47
ricotzSarvatt, hello19:06
ricotzis it normal that the nvidia blob get broken a lot these days? or is my system messed up? rebuild the blob package solved the problem lately19:07
Sarvatthyperair: nope shouldn't be related, if anything I might have messed up one of the packages for natty? can ya pastebin your Xorg.0.log?19:10
hyperairSarvatt: Xorg.0.log shows dri2 present.19:11
Sarvattricotz: oneiric nvidia in the archive? I have no clue, still have yet to try it after the multiarch stuff but i've got an alpha 2 image downloading now19:11
hyperairSarvatt: glxgears on the other hand... seems to not get redirected.19:11
hyperairSarvatt: so when i move the glxgears window around, it gets left behind just like pre-dri2 times19:11
hyperairand when i activate some compiz animation it gets left behind as well19:11
Sarvatthyperair: LIBGL_DEBUG=verbose glxinfo output please19:12
Sarvatthyperair: hrm that got fixed recently19:12
hyperaireh?19:12
hyperairhttp://paste.debian.net/122245/19:12
hyperairalso, wine seems to have artifacts with snb things.19:12
Sarvattthe glxgears sticking around until you stop moving the window got fixed recently19:12
hyperairi see19:12
Sarvatthyperair: amd64 right19:12
hyperairyeah19:12
Sarvatthyperair: you need to install the 32 bit mesa libs for it to work19:13
hyperairhmm19:13
hyperairdoes mesa support multiarch yet?19:13
hyperairin xorg-edgers?19:13
Sarvattedgers and oneiric yeah19:13
hyperairoo nice.19:13
Sarvattnatty and oneiric in edgers19:13
ricotzricotz, yes, the oneiric package, the glx module cant be loaded19:13
ricotzSarvatt, °19:13
ricotz^19:13
ricotzoops19:13
hyperairSarvatt: do i need to get rid of ia32-libs?19:13
Sarvatthyperair: nope it shouldn't even look for things where that gets installed anymore19:13
hyperairokay.19:14
Sarvatthyperair: add uhh19:14
Sarvattforeign-architecture i386 to /etc/dpkg/dpkg.conf19:14
hyperairsomething foreign..19:14
hyperairaha19:14
hyperairokay19:14
hyperairand apt?19:14
Sarvattthen sudo apt-get update and sudo apt-get install libgl1-mesa-dri:i38619:14
Sarvatthopefully it'll pull everything it needs in19:15
hyperairokay19:15
hyperairlet's see..19:15
hyperairaptitude update doesn't seem to be pulling in i386 things19:15
hyperairi think some apt option is also needed.19:15
jcristauSarvatt: err, why is that needed for glxgears/compiz?19:16
Sarvattricotz: to be honest i haven't even looked at multiarch on the blobs yet and am not sure whats going on, got an image downloading to install on my nvidia box right now19:16
Sarvattit isn't, was for wine19:16
jcristauah.19:16
hyperairSarvatt: Apt::Architectures19:16
jcristaui knew i was missing something :)19:16
Sarvatthe's using software rendering and getting artifacts, but i'm sure he wants to be using hardware acceleration so needs the 32 bit stuff :P19:17
jcristauack19:17
ricotzSarvatt, ok :)19:17
Sarvattglxinfo looks fine there hyperair, the glxgears problem you mentioned was fixed last week sometime though, have you not restarted X in a week?19:17
hyperairSarvatt: nah, my laptop just locked up and i've restarted19:18
hyperairstupid mode switching19:18
Sarvatthyperair: ugh you said natty right?19:18
hyperairyea natty19:18
Sarvatthyperair: hopefully it wasn't a compiz update in oneiric that fixed it then..19:18
hyperair._.19:18
hyperairhmmmmmmmmmmmmmmmm19:18
hyperairlemme poke smspillaz.19:19
hyperairoh wait he's in the same timezone as me. probably asleepn ow19:19
Sarvatti dont know what fixed it, mentioned it to ickle and went off to dublin and it was fixed sometime last week in the updates19:20
hyperairhmm19:22
hyperairi see.19:22
Sarvatterr maybe it was http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=b460b9645451af84136c5daebbc00c7545de67f419:23
Sarvattwhats your x-x-v-intel version19:23
Sarvatt2:2.15.0+git20110706.0be47f45-0ubuntu0sarvatt here19:25
Sarvatti'd put money on it being an old xserver-xorg-video-intel, that problem started with http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/?id=c3b1a0d7046a83b6daec03e5a562116e3adf3c7119:31
=== yofel_ is now known as yofel
hyperair*** 2:2.15.0+git20110706.0be47f45-0ubuntu0sarvatt~natty 019:43
hyperairSarvatt: ^^19:43
hyperairSarvatt: urgh, multiarch on natty seems pretty broken.19:54
Sarvatthyperair: I feared as much :( you're the first person i've spoken to that's tried it, guess i'll  be dropping multiarch and forking the packaging for crap to keep natty up to date in the end..20:00
hyperairheh20:01
Sarvattricotz: so what are you doing when it dies? you said it happened when you upgraded stuff?20:15
Sarvattlooks like its working ok here20:15
Sarvattricotz: nevermind reproduced it, filing a bug20:22
ricotzSarvatt, what is the problem?20:25
bjsniderricotz, howcome not many gnome3 updates for natty recently?20:34
Sarvattricotz: not sure yet, this is a mess20:36
Sarvatthttp://bugs.launchpad.net/bugs/80720920:36
ubot4Launchpad bug 807209 in nvidia-graphics-drivers (Ubuntu) "Lost glx after first upgrade from oneirc alpha 2 install (affects: 1) (heat: 6)" [Undecided,New]20:36
ricotzSarvatt, alright, i will follow it, i suspected binutils (pulled from thin air ;))20:39
ricotzbjsnider, hmm, it isnt planned to update it to 3.1.x -- it would need a whole lot of unstable updates20:40
SarvattSetting up libgl1-mesa-glx (7.11~1-0ubuntu3) ...20:40
Sarvattupdate-alternatives: renaming x86_64-linux-gnu_xorg_extra_modules slave link from /usr/lib/xorg/extra-modules to /usr/lib/x86_64-linux-gnu/xorg/extra-modules.20:40
Sarvatthrm20:40
Sarvattxserver is still trying to load from /usr/lib/xorg/extra-modules first20:40
ricotzbjsnider, and might break a lot other things after G_CONST_RETURN and new gtk+3 deprecations20:41
ricotzSarvatt, hmm, it could have happen on mesa updates20:42
ricotzbrb20:42
Sarvattyeah that makes sense20:42
Sarvatt[     8.172] (==) ModulePath set to "/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"20:42
Sarvattwhats up with apport being useless btw20:45
Sarvattbryceh: ?20:45
brycehSarvatt, ?20:45
Sarvattdidn't attach anything to that bug i just filed20:46
Sarvatthttps://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/80720920:46
ubot4Launchpad bug 807209 in nvidia-graphics-drivers (Ubuntu) "Lost glx after first upgrade from oneirc alpha 2 install (affects: 1) (heat: 6)" [High,New]20:46
brycehah, nvidia20:46
bjsniderSarvatt, so then if you reinstall nvidia-current the problem should be fixed, if it's only broken alternatives20:46
brycehSarvatt, were there any error messages printed to console?20:47
Sarvattdarn i've already rebooted since then but i dont believe so20:47
brycehSarvatt, do you have xdiagnose installed?20:47
Sarvattit was a clean install, not sure, let me hook it back up20:48
brycehSarvatt, try filing a bug against xorg or xserver-xorg-video-intel and see if that works properly20:48
brycehSarvatt, aside from the move from xorg to xdiagnose I haven't uploaded any changes to the apport hooks20:48
brycehthey've been working ok in my tests but some of the changes could easily break things in specific cases (i.d. proprietary drivers)20:49
Sarvattbryceh: yep no xdiagnose on an alpha 2 install20:51
brycehok, so that's probably what the problem is20:52
brycehmaybe xorg needs to depend on xdiagnose more forcefully?20:52
brycehtjaalton, ^^?20:53
Sarvattxserver-xorg should depend on it no?20:54
Sarvattoh xorg instead20:54
Sarvattthats what ubuntu-desktop depends on, and that pulls in x11-common, which has a recommends for xdiagnose that isn't getting pulled in20:55
brycehyeah20:55
brycehwhy would it not pull in an x11-common recommend?20:56
Sarvattonly pulls in recommends of things it depends on directly maybe?20:56
brycehmaybe slangasek would know20:57
brycehSarvatt, anyway, meanwhile, can you manually install xdiagnose and confirm then that bugs are reported correctly?21:01
Sarvattbryceh: xorg depends on xfonts-scalable and that isn't pulled in either so i guess it should just be moved to depends21:01
Sarvattsure one sec i'll file a new one21:01
brycehI'm going to upload a new xdiagnose 0.7 probably early next week, with some semi-substantial changes21:01
Sarvattbryceh: yep it works, updated that bug21:04
Sarvattbtw its in universe still21:04
bryceh??21:04
Sarvattit downloaded xdiagnose from universe21:05
brycehmaybe that's why it didn't get pulled in?21:05
Sarvatt.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'21:05
Sarvatthttps://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/807209 apport info on that21:05
ubot4Launchpad bug 807209 in nvidia-graphics-drivers (Ubuntu) "Lost glx after first upgrade from oneirc alpha 2 install (affects: 1) (heat: 8)" [High,New]21:05
Sarvattcursor theme in use? that might be a bit too much info :)21:06
brycehJun 18 00:04:26 <bryce> tjaalton, btw on upgrading to latest I notice xorg didn't pull in xdiagnose; does it need stro\21:07
brycehnger than Recommends?21:07
brycehJun 18 00:05:36 <tjaalton>      bryce: it is, and it got installed here though21:07
brycehJun 18 00:05:44 <bryce> hmm21:07
brycehJun 18 00:05:53 <tjaalton>      recommends should be enough21:07
brycehJun 18 00:06:35 <tjaalton>      if your apt is configured to install recommended packages (which is on by default sinc\21:07
brycehe a couple of years)21:07
Sarvattmaybe the installer uses different defaults21:07
brycehJun 18 00:07:09 <bryce> total defaults on this system, fresh install as of 2 days ago21:08
brycehJun 18 00:07:15 <tjaalton>      ok21:08
brycehJun 18 00:07:29 <tjaalton>      I'll check my logs21:08
brycehJun 18 00:08:15 <tjaalton>      ah I had it installed already21:08
brycehbut we didn't look into it  beyond that :-/21:09
Sarvattbryceh: cool beans, just sucks we're going to get a bunch of alpha 2 bugs with no apport info :P21:19
brycehmaybe21:19
brycehthis might explain why we've got relatively few gpu hang bugs on -intel21:21
Sarvattfor sure21:22
brycehnot a big deal; we'll get plenty more soon21:23
cndbryceh, RAOF: every time I try lightdm it fails to work for me21:24
cndmouse and kb don't work21:24
cndI found out today that the X server doesn't have any input devices21:25
cndit does under gdm though21:25
Sarvattcnd: i had to pin udev to the natty version on one of my machines to get around that.. :(21:25
brycehcnd, hmm worked for me when I poked at it last week21:25
cndSarvatt, interesting...21:25
cndSarvatt, I'll try that out21:25
Sarvattcnd: got an ssd in that machine?21:26
cndSarvatt, no21:26
brycehthere have been some bug reports about with lightdm, it'll make X SIGQUIT when you first hit a '2' or enter21:26
Sarvattok that was my running guess, booting too fast since it doesn't happen on a second identical e6420 minus the SSD21:26
Sarvatti should have swapped the drives before giving it to RAOF to see if it had the same problem21:28
cndSarvatt, natty udev doesn't help...21:30
cnd$ sudo udevadm trigger21:31
cndthat makes it work21:31
cndwell, it made mouse work21:31
Sarvatterr yeah, no keyboard or anything before lightdm starts and can't interact with the system at all, thats different from when lightdm didn't give me devices21:31
cndkb doesn't...21:31
Sarvattsorry, got the symptoms confused, i had the lightdm problem a long time ago and it fixed itself about 3 weeks ago21:32
cndmy kb doesn't come up, perhaps because there's no udev event for it?21:32
cndso now gdm won't come up21:37
cndand lightdm is still broken...21:37
brycehanything in /var/log/gdm /var/log/lightdm of relevance?21:37
cndwhich log file should I look in in /var/log/gdm?21:38
brycehlike :0.log21:38
Sarvattdont suppose there's anything useful in /var/log/lightdm/lightdm.log?21:38
Sarvatterr guess i should read scrollback before asking lol21:38
brycehalso, sorry if you already mentioned it but does keyboard work on vt console?21:38
Sarvatthe probably cant even switch to a vt to check21:39
brycehoh true21:39
Sarvatti couldn't when i had that problem21:39
cndI'm ssh'd in, so I can chvt21:39
brycehcnd, umm...  ok so presumably you can get into grub on boot?  can you boot into a recovery session and just verify kernel input is working outside X?21:39
cndI can type into a vt21:40
brycehok21:40
cndI know kernel input works21:40
cndor at least it did until I dist-upgraded today21:40
cndand I've had the lightdm issue for quite some time21:40
brycehah ok, guess I missed that21:40
brycehmaybe I should back up and ask, what have you narrowed the problem down to?21:41
Sarvattcnd: does it work if like, you boot with text instead of splash into recovery and continue past that to skip all the plymouth stuff?21:41
cndhmmm, RAOF did stuff to this machine at the sprint21:41
cndsaid he took off fglrx21:41
cndbut something seems odd21:41
cndwell, I thought maybe he didn't remove the fglrx lines from Xorg.conf, but I think I'm just seeing a standard error about not finding fglrx21:42
bryceh"did stuff" - do you mean, with the objective of fixing input?  or that the input breakage started after that?21:42
brycehyeah that's innocuous21:42
cndno, with the objective of fixing 3d so unity would run :)21:42
brycehif fglrx is removed you shouldn't need xorg.conf21:42
cndhmm, from dmesg:21:43
cnd[  395.259525] gdm-simple-slav[1310]: segfault at 0 ip 00007f89d2fc9f15 sp 00007fff4ec516f0 error 4 in libnss_compat-2.13.so[7f89d2fc6000+8000]21:43
brycehI wouldn't think that would affect input21:43
cndyeah, I think that's the cause of gdm not working21:44
cndwell, I have two issues now21:44
cndinput doesn't work in lightdm21:44
cndand gdm doesn't work at all21:44
cndso this segfault is likely the issue for gdm21:44
cndbut I still don't know what's up with lightdm21:44
brycehok, the gdm issue sounds unrelated to X, but I'm curious about the lightdm issue21:45
brycehdid you spot anything pertinent in the lightdm logs?21:45
cndnothing I can tell21:45
cndbut the log is so short21:46
brycehalso, did the input breakage start after RAOF's changes or before?21:46
cnd:0.log that is21:46
Sarvattcnd: encrypted home directory?21:46
cndI dunno if they're filtering out warning messages?21:46
cndSarvatt, no encryption21:46
cndbryceh, the input breakage has existed ever since I upgraded to natty21:46
Sarvatthttps://bugs.launchpad.net/ubuntu/+source/gdm/+bug/80515421:46
cndabout a month ago21:46
ubot4Launchpad bug 805154 in gdm (Ubuntu) "gdm-simple-slave crashed with SIGSEGV in _nss_compat_getpwnam_r() (affects: 13) (dups: 6) (heat: 88)" [Medium,Triaged]21:46
cndSarvatt, thanks!21:46
Sarvattoddly i had the lightdm no input thing and used gdm for a week and it was fixed by the first lightdm upgrade in june where i switched back21:47
cndso I can fix the lightdm issue for mice by calling udevadm trigger21:48
cndbut kb still doesn't work21:48
Sarvattafter you run udevadm trigger does the keyboard work if you stop and start lightdm again?21:50
* Sarvatt is out of ideas :P21:50
cndnope21:51
cndwhere's the udev code in xorg-server?21:51
cndI can't remember21:52
brycehpastebin your Xorg.0.log and xinput stuff21:52
Sarvattconfig/udev.c21:52
cndbryceh, log: http://paste.ubuntu.com/639763/21:54
cndoops, wrong log21:54
cndwait, that's the right one21:55
cndI have a phantom X server running21:55
cndbryceh, xinput list: http://paste.ubuntu.com/639764/21:56
cndnow it shows the AT translated keyboard21:56
cndbut it doesn't work...21:56
cndusing xinput test-xi2 I get raw key press and releases21:56
cndbryceh, so apparently I get KeyRelease, but not KeyPress events21:57
cndthere's somethign in the server that is witholding keypress21:58
cndnow that I think of it, I had the same problem way back in natty21:58
cndwhen I was running xorg-edgers21:58
cndthere was a change to something related to keyboard support21:58
cndlike xkb stuff21:58
cndand it caused this21:58
brycehhmm21:58
cndso perhaps now oneiric is updated to whatever was broken when I was running xorg-edgers before21:58
* cnd was hoping it was a fluke...21:59
cndback then I tried to step through the server to figure it out22:00
cndand I got lost22:00
cndthat's not a good sign...22:00
* bryceh browses through xserver patches22:00
cndI got into the xkb stuff and I had no clue what was going on22:00
bryceh208_switch_on_release.diff ?22:00
brycehthat fiddles with keypress behavior... roughly around the timeframe you mention... maybe try disabling that22:01
cndbryceh, ok, I'll try it22:01
brycehalthough, you mentioned you have a phantom X session?  Could it be stealing keyboard input?22:02
cndI killed it22:02
cndbut this occurs when it's a clean boot22:02
cndso I don't think that's it22:02
brycehok22:03
cndok, time to take the dog out while it compiles :)22:04
brycehyeah that's the only xserver patch that looks close to relevant22:04
brycehcnd, oh btw would appreciate your look at 504_exevent_proximity_null_ptr_check.patch some time22:04
cndbryceh, where's that patch?22:21
brycehxorg-server-git-ubuntu/debian/patches/208_switch_on_release.diff22:22
cndbryceh, no, the one you want me to look at?22:22
brycehcnd, https://bugs.launchpad.net/ubuntu/+bug/76470022:24
ubot4Launchpad bug 764700 in xorg-server (Ubuntu) "Xorg crashed with SIGABRT in utouch_frame_sync() (affects: 1) (heat: 14)" [High,Triaged]22:24
cndbryceh, that's not related to any multitouch or gesture stuff right?22:26
cndthe patch seems fine, but I don't understand why there would be proximity events for a device without a proximity class22:27
brycehcnd, yeah the backtrace the guy posted doesn't match to what he mentioned earlier that involved utouch22:29
brycehbut it's not obvious why it would fail on the proximity stuff22:29
cndbryceh, the only note I'd make is that the 5xx serios of patches are intended to be gesture/multitouch22:29
cndand this isn't22:30
brycehanyway, guess we can see what the user finds testing it22:30
cndso should it be a 2xx patch?22:30
brycehyeah, but that'd require redoing the MT patches22:31
bryceh(I think)22:31
brycehif the patch pans out, we could do that; not worth the bother until we know if it works22:31
cndyeah22:32
cndI didn't think that patch touched the MT stuff22:32
brycehcnd, btw looking at your Xorg.0.log it appears you have two keyboards?22:32
cndno, only one22:32
cndwhat is the second kb you see?22:32
brycehone appears to be attached to event4, the other is on event322:33
bryceh[   925.109] (II) HID 413c:8161: Configuring as keyboard22:33
bryceh[   925.109] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input4/event4"22:33
bryceh[   925.109] (II) XINPUT: Adding extended input device "HID 413c:8161" (type: KEYBOARD)22:33
brycehand22:33
bryceh[   925.280] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)22:33
bryceh[   925.280] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"22:33
bryceh[   925.280] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'22:33
cndnot sure what that is22:33
cndthe first one22:33
brycehbet it's some other device being mis-detected as a keyboard22:34
cndyeah22:34
brycehthe touchscreen maybe?22:34
cndbryceh, http://www.linux-usb.org/usb.ids says it's a Dell Integrated Keyboard22:35
bryceh[   925.108] (**) HID 413c:8161: Applying InputClass "evdev keyboard catchall"22:35
cndit could be the extra function keys at the top22:35
cndmedia buttons22:35
brycehmm, yeah that seems more likely22:35
* bryceh thinks22:36
brycehwell, I'm sketchy on if it's even a problem, but maybe try putting in a udev rule to disable or switch drivers on that, and see if things work any better?22:37
brycehcnd, do the media keys do anything?  :-)22:38
brycehI wonder if xinput --remove-master would do anything useful22:39
brycehcnd, anyway, that's my guess as to the problem.  probably Xi or evdev messing up22:40
cndbryceh, removing that patch didn't help :(22:42
cndbryceh, I think it's inside the server since I'm getting keyrelease but not keypress22:42
cndI do see rawkeypress though22:42
cndso the keypress events are being sent to the server22:42
cndthey're just being dropped somewhere22:42
brycehhmm22:43
tjaaltonSarvatt, bryceh: if xdiagnose is in universe there's no way it's going to be installed by default. My desktop got installed as natty, enabled universe and this week upgraded to oneiric; xdiagnose got pulled in like it should22:46
brycehtjaalton, it wasn't seeded.  cjwatson fixed it for  us about an hour ago22:46
tjaaltonbryceh: ah good, well it had to move to main first?22:46
tjaaltonso it seems22:48
brycehtjaalton, yeah apparently there's multiple levers to be pulled, and I closed the MIR before the last one had been pulled22:48
tjaaltonright22:48
tjaaltoncnd: testing your xserver now :)22:48
brycehtjaalton, any ideas on where to go with debugging cnd's missing keypresses?  Sarvatt and I are out of clues22:49
brycehxtrace wouldn't be useful in this case, would it?22:49
tjaaltonwell, if cnd can't figure it out how could I :)22:50
brycehtjaalton, so you think he should speak with our resident X input expert, eh?22:50
tjaaltonskimmed through the backlog pretty quickly, I'll have another look after this wacom test22:51
tjaaltonbryceh: well.. :)22:51
brycehthat's the problem with learning too much about X.org22:52
RAOFIf the keypresses are being eaten in the server...22:52
brycehyou learn too much and then when you run into X problems you get referred back to yourself22:52
tjaaltonbut, I've never heard of that happening.. sounds really weird22:52
cndyeah, I'm perplexed22:54
brycehcnd,  xinput list --long | pastebinit22:55
cndprobably the worst place to have a bug in the xserver is in keyboard handling :)22:55
cndbased on what I've heard of xkb22:55
RAOFThere does seem to be some oddness there; your various jack devices seem to keep confusing evdev and causing it to unload.22:55
brycehotoh with keyboard bugs there's a fair chance of a pre-existing patch out there22:56
cndbryceh, http://paste.ubuntu.com/639789/22:56
RAOFI'd just like to assert that everything was working fine when I handed it back to cnd at the sprint :P22:56
tjaaltoncnd: wacom fixed!22:56
cndRAOF, I had it using gdm :)22:56
cndtjaalton, \o/22:56
cndthis is a lightdm issue22:57
brycehinteresting - http://people.freedesktop.org/~whot/evtest/22:57
tjaaltoncnd: whot gave me some ideas earlier today, so I tried to backport some stuff from master, but it turned out to bee a bit too complex trying to match it with this version22:57
tjaaltonbryceh: apt-get install evtest22:57
cndtjaalton, for handling the wacom issue?22:58
tjaaltoncnd: yeah22:58
tjaaltonI think this case is handled in master22:58
cndyeah, anything dealing with cursor or mouse input doing weird stuff likely can't be helped by whot until we get XI 2.1 merged upstream :(22:58
tjaaltonbut the functions have changed too much, and soon it became minigolf time so I gave up22:58
cndheh22:58
cndtjaalton, bryceh, RAOF: I can't seem to push a commit to git.debian.org23:11
cnddid the alioth switchover affect ssh access?23:11
tjaaltoncnd: check your .git/config, change the host to git.d.o23:12
tjaaltonthen it should work23:12
cndtjaalton, everything looks good there...23:13
tjaaltonhmm, .ssh/known_hosts then?23:13
cndand I can't ssh to git.debian.org like I used to be able to23:13
tjaaltonwhat does it complain?23:13
cndPermission denied (publickey).23:13
cndfatal: The remote end hung up unexpectedly23:13
brycehgeneric error23:13
brycehcnd, tried checking out a fresh new branch and pushing from that?23:14
tjaaltonthat error is from ssh though23:14
cndbryceh, my remote url is set up correctly23:14
cndand the error does seem to come from ssh23:15
tjaaltoncould you paste that nevertheless :)23:15
cndoh wait...23:15
cndI'm cndougla-guest on alioth23:15
cndcause of their weird username rules23:15
tjaaltonright23:15
tjaaltonbut surely you've pushed there before?23:16
tjaaltonnot from the same machine?23:16
cndaha, it worked!23:16
cndok, I managed to get *something* done today :)23:17
cndI hate being blocked by silly things like keyboard not working23:18
tjaaltonhehe :)23:18
cndbryceh, I just committed a patch as 50423:19
cndjust fyi23:19
tjaaltonso the kbd works in a vt?23:21
cndyeah23:22
tjaaltonhum, you tested with gdm already, noticed that you said it happens only with lightdm?23:25
tjaaltonuh, nonsentence23:25
tjaaltongetting late!23:26
cndtjaalton, it used to work in gdm, when gdm actually worked23:26
cndgdm doesn't work anymore23:26
tjaaltonoh, works here though23:26
cndthat's great :)23:26
tjaaltonjust start plain x with xterm23:26
tjaaltonisn't it :)23:26
cndanyone know how to manually start my normal user session?23:27
cndsomething like startx23:27
RAOFxinit gnome-session ?23:28
tjaaltonyeah that might work23:28
cndI'm not authorized23:28
cndbut sudo xinit unity is coming up23:29
cndI'm sure it's running as the root user though...23:29
cndoh what failure...23:30
tjaaltonxinit -- gnome-session :123:30
tjaaltonas the user23:30
tjaaltonwithout 'gnome-session' it just runs an xterm23:30
tjaaltondidn't try with g-s23:31
cndas root?23:31
tjaaltonno wait23:31
tjaaltonxinit gnome-session -- :123:31
tjaaltonuse your username23:31
tjaaltonuh23:31
tjaaltonnon-root23:31
tjaalton:)23:31
cndhmm?23:32
tjaaltondoes 'xinit -- :1' work?23:32
cndnot as myself23:32
cndonly as root23:32
tjaaltonoh23:32
tjaaltonis lightdm running23:33
tjaalton?23:33
cndI'm trying to get around lightdm23:33
cndor are you saying I can run lightdm first23:33
tjaaltonyes, separate xservers23:33
cndand then run something else to kick it through to my desktop?23:33
tjaaltonmaybe xinit works since I have my real desktop running too23:34
tjaaltondunno..23:34
cndis there another lightweight DM I can run?23:35
tjaaltonxdm23:35
cndof course :)23:35
tjaaltonlightestdm23:35
tjaalton+''23:35
cndgah!23:36
cndno kb there either23:36
tjaaltonouch23:36
cndsomewhere the dev gods are pointing and laughing...23:36
tjaaltoncheck /etc/default/keyboard, does it have the XKB*-values on it?23:37
cndyeah23:37
tjaaltonI can run xinit just fine even without any X running, as a user23:38
tjaaltonanyway..23:38
cndhmm23:38
cndtjaalton, what groups are you a part of?23:38
tjaaltonadm dialout cdrom plugdev lpadmin admin sambashare23:39
tjaaltonsome of which I've added myself23:39
cndnothing there stands out23:39
tjaaltonplugdev is maybe the most useful of them23:39
RAOFtjaalton: Have you configured x11-common to allow unfettered access to the X server?  It's got 3 settings - root, at console, and everyone.23:41
tjaaltonRAOF: good point, console. I think it's the default?23:41
tjaaltoncnd: run 'xinit xev', see if X thinks it gets any events from the keyboard23:43
cndRAOF, just found that through a google search23:43
cndI was able to get to an xterm23:43
cndxev gives keypress and keyrelease23:43
cndwhat's the unity 2d session called?23:43
tjaaltonunity-2d23:44
tjaaltonah23:44
tjaaltongnome-session --session=ubuntu-2d23:44
cndhmm, "xinit unity-2d" didn't work23:44
tjaaltonso plain xterm works?23:45
cndtjaalton, yes23:45
cndnow I need to figure out how to set the session using xinit23:45
cndxinit gnome-session --session=ubuntu-2d doesn't work23:45
cndbad command line option23:46
tjaaltonyeah, put -- in between23:46
cndthen it thinks it's a server option23:46
cndwell, put '--' in between where?23:46
tjaaltonxinit gnome-session -- --session=ubuntu-2d23:46
cndyeah, then it thinks it's a server option23:46
tjaaltonaccording to the manpage that should be ok23:47
tjaaltonoh23:47
tjaaltonargh, right23:47
brycehxinit gnome-session -- /usr/bin/X --session=ubuntu-2d  ?23:48
cndI think I got it23:48
cndI made a shell script23:48
tjaaltoncnd: just put 'gnome-session --session=ubuntu-2d' in your .xinitrc23:48
tjaaltonright23:48
cndand put "gnome-session --session=ubuntu-2d"23:48
cndand did xinit <script>23:49
tjaaltonyep23:49
cndok, I finally have a desktop again23:49
cndnow I can get back to work23:49
tjaaltonand if you put that as ~/.xinitrc you'd start it with just 'xinit'23:49
cndwhy does ubuntu one *always* crash23:50
cndall the time, incessantly23:50
tjaaltonso keyboard in gnome works too, meaning it's just lightdm that refuses to work?23:50
cndand the "ignore future crashes" thing doesn't work23:50
cndI think it's just lightdm and xdm23:50
tjaaltonok23:50
tjaaltonstill, weird23:51
RAOFI wonder if lightdm starts the server in a particularly weird way?23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!