/srv/irclogs.ubuntu.com/2008/09/01/#ubuntu-x.txt

wgrantbryce: What do you think of my proposed fixes for bug #207781?10:39
ubottuLaunchpad bug 207781 in gnome-settings-daemon "gnome-control-center and gnome-settings-daemon hardcode "Synaptics Touchpad", which breaks without xorg.conf" [Low,Confirmed] https://launchpad.net/bugs/20778110:39
Q-FUNKhowdy!15:24
Q-FUNKis there any temporary freeze on syncs from Debian?15:25
tjaaltonyes, until intrepid is released :)15:28
tjaaltonhas been in effect for some time now..15:28
Q-FUNKhm15:28
tjaaltonif you mean automatic syncs15:29
Q-FUNKthe sync for -geode was approved a while back, but still hasn't happened15:29
Q-FUNKno, manual ones too15:29
Q-FUNKwould need to be synced from experimental15:29
tjaaltonwe are in feature freeze, so new upstream versions need more paperwork15:30
Q-FUNKthis is a bugfix release.  same 2.10, but .1 15:30
tjaaltonstill15:30
Q-FUNKbut again, the sync was approved before the feature freeze15:30
tjaaltonok, then it should be fine. still, no archive admins here15:31
tjaaltonwgrant: oh, so you've hacked g-s-d support for synaptics properties+15:41
tjaalton?15:41
Q-FUNKah, cjwatson just synced it :)15:44
tseliotfederico1: I'm trying to apply some settings (loaded from my own xml file) as soon as I launch the Screen capplet (without having to click on the Apply button). Wouldn't it be enough to set the members of app->current_configuration and call XSendEvent ?18:25
tseliotcurrently the screen flashes but my settings are not applied18:25
federico1tseliot: hmmm, I think the event just tells gnome-settings-daemon to reread .config/monitors.xml and apply *that* configuration18:26
federico1tseliot: i.e. the "apply" button re-saves that file, and then sends the event18:26
tseliotfederico1: is there no way to force the setting daemon to use my xml file (with a different name)?18:27
tseliotfederico1: ah, maybe I should save the settings to the official xml file18:27
federico1tseliot: I'm not sure what you are trying to do, but yeah, having two files with different configurations sounds weird :)18:28
tseliotfederico1: if the virtual resolution is checked and it's not set and the framebuffer is not enough18:29
tseliotthe settings won't be saved to the xml file18:30
tseliottherefore I would like the program to save such settings to another xml file18:30
tseliotwhich can then be loaded on next login by launching gnome-display-properties --load-desired-settings18:31
tseliotthis should make the program load the settings from the other xml file and apply them18:31
federico1tseliot: oh, I see18:31
federico1hmmmm18:31
federico1but how would the user run g-d-p with that option?18:32
tseliotfederico1: the first time the user tries to set up the multiple screens layout he will see a dialog which asks him whether he wants to have the virtual resolution set automatically in the xorg.conf. Then he is told to log out and log in again.18:34
tseliota .desktop file will make sure that on next login the capplet is called with that parameter18:34
tseliotso that when he logs in the program will show app and apply the settings18:34
tseliotprovided that the connected outputs are the same18:35
tseliotfederico1: of course the .desktop file is added to the gnome-session18:36
federico1hmmmmm18:44
federico1tseliot: so you assume that the configuration *will* work once you reboot?18:44
tseliotfederico1: no, therefore both the other xml and the .desktop file are removed as soon as the application starts with the parameter18:45
tseliotfederico1: the only advantage would be that the user wouldn't have to set up the screens again after adding the virtual resolution and restarting X18:46
tseliotbut it shouldn't break anything18:47
federico1tseliot: sounds good.  One thing that I'd like is, if you start g-d-p again before rebooting, then it should tell you that your settings don't match the current state because you haven't rebooted yet18:47
federico1with a cute "!" icon or something :)18:47
tseliotfederico1: yes, this is definitely a good idea and it was part of the plan ;)18:48
federico1tseliot: cool18:49
federico1tseliot: hmmm, to have less moving parts (the desktop file, etc.) could you simply do this:18:49
federico11. user hits Apply18:49
federico12. we detect that the configuration can't be applied.  We save it anyway, with a "pending" flag or something.18:50
federico13. If the user starts g-d-p again before rebooting, he gets a warning message18:50
federico14. during relogin, we try to apply the saved configuration.  If it had the "pending" flag and it succeeds, we just clear the flag.  If it had the flag and it fails, we pop up an error box.  If it didn't have the flag, we do whatever we currently do18:51
federico1would that work?18:51
federico1(hmmm, I guess you *do* need to save a "known good" configuration somewhere in case it fails after reboot)18:51
federico1then you don't need a "pending" flag at all; you could use the presence of that "known good" backup as the flag itself18:52
* federico1 wonders if he's talking out of his ass or if this makes sense18:52
tseliotfederico1: it does make sense18:52
federico1tseliot: nice - generally I prefer to rely on as little "external" processes as possible, and the new gnome-session scares me :)18:54
tseliotin any case we could check the framebuffer size (among other things) before we try to apply the settings18:54
federico1yeah18:54
federico1tseliot: the X folks at Red Hat are working on making the drivers support on-the-fly configuration of the virtual size, so hopefully this code will be less necessary in the future18:55
tseliotfederico1: BTW it looks like gnome_rr_config(save) only pretends to save my settings...18:55
federico1I need to poke suse's X guys to see if we can do the same for radeonhd on time18:55
tseliotfederico1: framebuffer reallocation would be nice but I don't know when it will be available18:56
tseliotbut yes, I agree with you on this18:56
tseliotoh, I guess I forgot to set the several output->on to TRUE18:58
* tseliot tries to build it again19:01
tseliotfederico1: I was right: I forgot to output->on to TRUE. It works well now.19:04
brycejames_w, tseliot: it's a very interesting idea to include EDID in the Screen Resolution GUI, however it'd be a lot of work for (IMHO) relatively modest benefit compared with using read-edid.19:04
brycejames_w, tseliot: so I'd definitely take a patch to implement it, but wouldn't work on it myself19:05
tseliotbryce: I would like to take a look at it for Intrepid+119:06
brycejames_w, tseliot: my immediate thougth would be to steal code from read-edid, however as we looked into the other day, it only works on i386.  There's also EDID parsing code in the X server that might be usable.  19:07
tseliotbryce: can't we steal code from nvidia-settings?19:07
tseliotso as to extract the bin file and then specify the path to the edid file in the xorg.conf?19:08
tseliotI haven't read the code yet though19:10
brycewgrant: the patches for 207781 look good to me19:11
* tseliot > dinner. bbl19:13
brycetseliot: oh maybe, I'm not familiar with the nvidia-settings internals.  It's FOSS?19:15
jcristauthe server exposes the edid string as a randr output property, if available, so you'd just have to parse that19:16
brycejcristau: ah even better19:45
tjaaltontseliot: "nvidia: Multiple versions in DKMS. Unsure what to do. Resolve manually.20:08
tjaaltontseliot: that's what I get when reinstalling the kernel20:08
tjaaltontseliot: and the driver manager doesn't list any prop. drivers in use20:09
bryceheya tjaalton20:10
tjaaltonhi bryce20:10
brycetjaalton: btw I've committed the change to replace displayconfig-gtk20:13
brycetjaalton: this introduces a simple new menu (using zenity) to allow the user to select from some troubleshooting/configuration steps.  It's just some simple bash stuff, but if you have time to review it I'd appreciate your thoughts on it.20:14
tjaaltonbryce: ok, cool. I'll have a look20:15
tjaaltonbtw, the commit included adding xinput to xorg deps, and nothing on the changelog about the zenity stuff :)20:16
bryceyou can safely execute the failsafeXinit as non-root to see how it looks20:16
tjaaltonin X?20:16
bryceyes20:16
bryceI noticed I forgot the changelog and just added it20:17
tjaaltonah, ok20:17
bryceoh yeah wanted to ask about xinput as a dep, vs. adding to seeds (which I'm not sure how to do)20:17
tjaaltonclosed a bunch of synaptics bugs today because of the properties support20:17
tjaaltonthis will do20:18
brycecool20:18
bryceyeah I sent in a patch to add some man page entries for the properties stuff for xinput20:18
tjaaltonxinput might be a candidate in some x11- bundle20:18
brycehowever I've not yet been able to get those routines to work on my system, just give X errors, not sure why20:18
tseliotbryce: yes, nvidia-settings is GPL20:24
brycetseliot: see jcristau's comment above - libXrandr provides the parsed edid info20:25
brycetseliot: although I'm not certain if the bug report wishes the parsed or raw edid.  But in the latter case I'm sure we could just tap it in.20:25
bryceer, s/we/whomever works on this/  ;-)20:26
tseliottjaalton: read this: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-177/+bug/263528/comments/120:27
ubottuLaunchpad bug 263528 in nvidia-graphics-drivers-177 "Intrepid: Latest update destroys X server configuration on MacBook Pro (Nvidia GeForce 8600M GT, nvidia-glx-177)" [Undecided,New] 20:27
tseliotbryce: I think I saw something about edid in the gnome control panel. I think it uses randr. I'll have a look at it20:28
* bryce grumbles at git20:31
bryceheh, it seems like every time I fiddle with the xorg-server git I end up having to toss my tree and recheckout from scratch20:34
brycesometimes it seems like using git makes it all more work than not using any vcs20:35
tjaaltontseliot: umm, kernel-* is a symlink to 177.70/<kver>, should I remove that as well?20:35
tjaaltontseliot: ok. now the directory is empty, even after reinstalling the source20:36
tjaaltonno errors from dkms20:37
tseliottjaalton: try manually with20:38
tseliotsudo dkms build -m nvidia -v 177.70 -k $(uname -r)20:38
tseliotsudo dkms install -m nvidia -v 177.70 -k $(uname -r)20:38
tseliotoh and make sure that the headers for your kernel are installer20:40
tseliotinstalled20:40
tjaaltonheaders are installed, no errors from the build but no modules in /lib/modules or /var/lib/dkms20:41
bryce$ git clone ssh://bryce-guest@alioth.debian.org/git/pkg-xorg/xserver/xorg-server.git20:43
bryceInitialized empty Git repository in /home/bryce/src/xorg-server/xorg-server/.git/20:43
brycessh: connect to host alioth.debian.org port 22: Connection timed out20:43
brycefatal: The remote end hung up unexpectedly20:43
brycefetch-pack from 'ssh://bryce-guest@alioth.debian.org/git/pkg-xorg/xserver/xorg-server.git' failed.20:43
tjaaltontseliot: oh wait, now I got the modules after all (forgot 'install')20:43
tjaaltonbryce: do you always clone the repo? git fetch would be faster20:44
tjaaltonI mean when updating the local copy20:44
tseliottjaalton: ok. The problem shouldn't happen any more with new updates of the driver20:45
brycetjaalton: yeah I always try that first, but git always messes it up20:45
tjaaltongit fetch; git rebase origin/ubuntu20:46
bryceusually I remember to update only after I've made some minor change, and git can't handle having uncommitted changes, tries to do a merge, etc.20:46
bryceyeah tried all that, ended up getting 2 screenfuls of error messages20:46
brycewell, s/fetch/push/20:46
bryceI think I'm spending more time futzing with git than it actually took to make the patch :-P20:47
tjaaltonsure you get conflicts if you have local changes and upstream has moved on20:47
jcristauyou need commit your local changes before rebasing20:47
tjaaltonbut that should normally involve only the changelog20:47
jcristauor stash them20:47
brycejcristau: yep did that20:47
brycethe git commit -a seemed to work correctly20:48
tjaaltontseliot: so the package was faulty?20:48
brycethen I did a 'git rebase' and it said20:48
brycefatal: Needed a single revision20:48
bryceinvalid upstream 20:48
bryceso then I did ` git rebase origin ubuntu`20:49
tjaalton+/20:49
bryceand then it did a lot of work, and then spewed out several screenfuls20:49
bryceerror: patch failed: configure.ac:1032, etc.20:49
bryceso I gave up at that point and tried doing a new git clone20:49
brycewhich is timing out20:49
bryceer, the syntax for push is 'git push origin ubuntu' - why would you need a / sometimes, and sometimes not?20:50
jcristaubecause push wants a remote20:51
tjaaltonyou are pushing the local ubuntu to remote called 'origin'20:51
jcristaurebase wants a branch20:51
jcristau'origin' in push means git.debian.org:/git/pkg-xorg/whatever, 'origin/ubuntu' in rebase is 'the local copy of origin's ubuntu branch'20:52
brycein any case, it still doesn't work20:52
brycexorg-server-ubuntu-git-broken$ git rebase origin/ubuntu20:52
brycemkdir: cannot create directory `.dotest': File exists20:52
jcristauright, because you're in the middle a failed rebase20:53
tjaaltonrebase --abort20:53
bryceI remove that directory and rerun it, and it shows a bunch of things "need merge" which I didn't change20:53
tjaaltonthen start over20:53
bryce$ git rebase --abort20:53
bryceNo rebase in progress?20:53
tjaaltonhmm, would git reset --hard <id> work?20:53
tjaalton<id> being the commit-id of last clean commit20:54
jcristauyeah removing .dotest would have confused it20:54
jcristauso, 'git reset --hard HEAD', i guess20:54
tjaaltonoh, HEAD works too20:54
brycehrm, git rebase origin/ubuntu is still erroring20:56
jcristauwhat does it say?20:56
bryceok tell you what, I'll just email you the patches20:56
tjaaltondon't give up :)20:56
brycejcristau: trailing whitespace errors, couple conflicts, etc.20:57
jcristautrailing whitespace is just a warning20:57
jcristauconflicts need to be fixed up anyway20:57
jcristauif some files were modified locally and remotely20:57
tjaaltonbryce: also, make sure to always clean up after using the tree for building debs :)20:57
bryceoh I didn't know you couldn't do that...  that's like my principle use for it20:58
tjaaltondebuild clean works20:59
tjaaltonor equivalent20:59
bryceohh, no I don't use it for building debs, just dsc's20:59
bryceI use pbuilder for making the debs, so that all should be fine.21:00
tjaaltonright21:00
brycebut if you have to do cleanups after making a .dsc, that'd be irritating21:00
tjaaltonnope, it cleans before building dsc21:00
jcristaudpkg-source -S runs clean first, so no21:00
jcristauerr21:00
jcristaui mean dpkg-buildpackage -S21:01
tjaaltonbryce: failsafeXinit looks nice. some functions unimplemented, but still21:05
tseliottjaalton: yes, it was. It didn't clean the DKMS tree when the driver was updated. The current release is no longer affected by the problem however the DKMS has to be cleaned manually21:12
tjaaltontseliot: sounds like the package should clean those up in the preinst..21:16
tseliottjaalton: this might break the modules of other kernels. I'll think about a sensible way to do it21:18
tjaaltonremove everything <177.7021:23
tjaaltonstrange that it didn't complain before. I had four or five different versions there21:24
tseliottjaalton: yes, something like that21:52
brycetjaalton: I've done up a simple patch for #24719522:21
brycetjaalton: assuming we don't want to just disable the code entirely for now22:21
wgranttjaalton: I have. My first significant adventure into Xlib, but I think I got it right.22:52
wgrantbryce: Shall I poke somebody else to upload those patches now you've given your +1?23:04
brycewgrant: seb128 would be a good guy to ask.  If he's busy but thinks they're ok too, I can do the upload.23:05
wgrantbryce: I asked him last night, and he told me he didn't know much about it and to ask you.23:05
wgrantBut I suppose now I've your ack he should be OK with uploading it.23:06
bryceok great23:42
pwnguinxorg.conf should still work, correct?23:46
bryceyes23:46
pwnguinokie. someone in +1 is complaining that it doesn't work; thought i'd check it wasn't intended behavior23:47
bryce"doesn't work" is such a vague symptom23:48
pwnguin"changes have no effect" seems specific to me23:53
bryceyes, but you didn't say that ;-)23:54
brycealso, which changes?  some changes certainly should work, others (like input device settings) might not23:54
brycealso there are various things that can override some settings like preferred resolutions23:54
pwnguinim torturing that information out right now23:54
brycesome options are no longer provided as user modifyable, so those could also seem to have no effect23:55
brycemodifiable23:55

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