[01:21] ubuntu-sugar-remix_0.2_i386.deb is 3390 bytes per PPA Packages.gz, but apt gets ubuntu-sugar-remix_0.2_i386.deb from ubuntu sources.list and finds it 3394 bytes long. "Failed to fetch" "Size mismatch". Why is this? [01:37] testing USR-i386-20100902 CD [01:38] hi alsroot Around? [01:39] I added surf115.xo to USR902 then did ASLO download of IRC-5 [01:44] satellit_: Did Surf work on your Ubuntu machine? [01:44] satellit_: Luke faced some issues working with Surf. [01:44] Didn't work well. [01:46] manusheel: yes as a drag-drop from a second USB to journal (as .xo) http://people.sugarlabs.org/Tgillard/Surf-115.xo [01:46] goes to ASLO for downloads fine [01:47] manusheel: are you using .deb or .xo? [01:47] hi bernie. Around? [01:48] mukul whats up? [01:48] dfarning, I was try to work on some bugs. [01:48] mukul, which one? [01:49] #2064,#2154--I think they are inter related and #2229 [01:49] dfarning, bernie : http://bugs.sugarlabs.org/ticket/2064 [01:54] mukul, those are some seriously difficult bugs:( how about looking at 2163 [01:56] dfarning, Ok [01:57] dfarning, Is #2229 also tough? [01:58] dfarning: Yes. 2163 is a good bug for Mukul. [01:58] mukul: around? [01:58] manusheel sir: Yes [01:59] #2229 is a good second bug. Easy to fix but it is against a patch in the dextrose tree so it is a little complicated to set up. [01:59] mukul: Please start with bug #2163. [01:59] Launchpad bug 2163 in realplayer (Ubuntu) "installs rp8 and not rp10 (dups: 1) (heat: 1)" [Medium,Invalid] https://launchpad.net/bugs/2163 [01:59] dfarning: Sure. [02:00] mukul, do you have an xo to test it with? [02:00] dfarning: Bug #2229 will be assigned to us too. [02:00] Launchpad bug 2229 in update-notifier (Ubuntu) "update-notifier pops up a notice despite an ongoing upgrade (heat: 1)" [Low,Fix released] https://launchpad.net/bugs/2229 [02:00] dfarning: No. Mukul does not have an XO yet. [02:01] manusheel, dfarning : Are we talking about the bug on sugarlabs or launchpad as ubot2 just mentioned [02:02] mukul: bugs.sl.org [02:02] mukul, I was talking about SL#2229 [02:02] dfarning: Ok [02:02] mukul, We need to be more specific:( [02:06] mukul, do you know how to get started? [02:09] dfarning, Yes I'm trying to reproduce the bug. How do I rotate the screen on sugar emulator [02:11] mukul: just run sugar-emulator w/o "-f" flag and try to "xrandr -o <0-4>" [02:11] mukul, I think you can do it using xrandr [02:12] manusheel, dfarning : Ok [02:13] mukul, try starting the emulator then going into the sugar terminal and running xrandr [02:14] mukul, that is pretty cool! I never tried it in a window before. [02:15] mukul, although it is hard to move the mouse [02:16] dfarning: Right. Indeed hard :-) [02:16] mukul, got it? [02:17] mukul: let us know if you have any questions. [02:20] dfarning, manusheel : Yes. But I'm trying to get the hang of the mouse [02:21] mukul, just try to click on the home view button or push f3 [02:22] dfarning, Yes I have done that [02:23] mukul, where would you think the source code is that controls the layout of the homeview? [02:24] mukul: yes, but I'm going to sleep. sorry [02:25] bernie, No problems [02:25] dfarning, I think it should be under layout.py file in jarabe folder [02:27] mukul, yes I think jarabe is the correct place .... although I do not see a layout.py module. [02:28] dfarning, I think it is favouriteslayout.py in jarabe/destop [02:28] dfarning: *jarabe/Desktop [02:29] mukul, +1 I think favorites refers to how the icons are organized around the screen. [02:30] mukul, we need to take a step back and determine how the 'XO man' is located and draw on the center of the screen [02:31] dfarning: Ok [02:39] mukul, I think the XO man is called the OwnerIcon it is defined on line 595 of favoritiesviewpy [02:39] dfarning: Thanks for the pointer [02:42] mukul, it is instantiated at line 84 [02:44] I see no OwnerIcon. I see _my_icon [02:46] mukul, look on the right side of the equals sign on line 84 an instance of OwnerIcon is defined to be _my_icon [02:48] dfarning, Is this what we should be looking at http://paste.ubuntu.com/487574/ [02:49] mukul, yes that looks correct === bernie is now known as bernie_afk [02:51] dfarning, By the way on my version of sugar Line 84 is blank [02:52] mukul, when looking at code is it often best to look at the most recent which is in the git repo. you can get it by using jhbuild. [02:55] mukul, my guess at a glance is that the rotation is reversing height and width when the screen is rotated. [02:55] mukul, do you have jhbuild set up? [02:56] dfarning, No [02:56] mukul, see http://wiki.sugarlabs.org/go/Development_Team/Jhbuild [02:57] Sugar-jhbuild will automatically download the latest of Sugar's dependencies as well as Sugar itself directly from their source repositories, rather than relying on source packages that may have become stale. Below are generic instructions on how to use jhbuild to get up and running with Sugar. [02:58] mukul, follow the instructions at http://wiki.sugarlabs.org/go/Development_Team/Jhbuild#Prerequisites and ping me when you are done or get stuck. [02:58] dfarning, Ok [03:07] mukul, how are you coming? [03:11] I'm installing sugar-jhbuild. It seems it is big enough. taking time to download [03:14] mukul, yes is is pretty big. it has the entire git history of all of sugar. [03:34] mukul, i think it will fail to build hulahop. if that happens just skill that module and go on. eventually it will get to the point where you can run the emulator. [03:35] dfarning, Ok [03:42] dfarning, I think I'll leave now. Will resume the work later. Nice talking to you :) [03:43] mukul, ok see you later. === bernie_afk is now known as bernie [13:14] dfarning, good morning [13:24] dipankar, good morning. [13:26] dfarning: I have asked Dipankar to create a patch in sometime. Let us start with the full screen bug. [13:29] ok dipankar where are you at and what is the bug number? [13:31] dfarning, just a minute [13:31] http://bugs.sugarlabs.org/ticket/2180 [13:33] dip looking [13:33] dfarning, Good Morning ! [13:34] mukul, good morning did jhbuild finish? [13:34] dfarning, Yes [13:34] mukul, nice [13:35] dfarning, For the bug I already uploaded a patch, and shacha seems to be happy with the patch. [13:35] dfarning, but tomeu is suggesting changing the gtk-rc files [13:35] dfarning, currently we have two sets : 72 and 100 [13:37] dfarning, I had a discussion on the above with alsroot also. It came out that even if we change the rc file, it may only work for a particular resolution and create problem for another resolution [13:38] dipankar, is it possiable to calulate the frame width at run thime? [13:40] dfarning, I didn't get a chance to explore this part. Not sure about it. [13:40] dfarning, Should I be looking at http://paste.ubuntu.com/487774/ at LIne no 176 [13:41] mukul, I am not sure.... now that you have found the correct code you will have to trace the code...... [13:41] dfarning, Ok [13:43] mukul, I think that you will want to calulate the control panel layout at runtime based on screen dimension - (2* frame width) = available space [13:44] mukul, ^^ oops the above was for dipankar. [13:45] dipankar, then determine CP icon spacing by their size. [13:47] dipankar, for an example see http://git.sugarlabs.org/projects/sugar/repos/mainline/trees/master/src/jarabe/desktop for how the home layouts are calculated. [13:47] then create a rows and colume layout for the CP. [13:47] dfarning, I think I was not clear with the bug [13:48] dfarning, The cropping takes place at the bottom for whole emulator [13:48] dfarning, this occurs due to the space taken up by title bar (emulator-window) and task panels of ubuntu [13:49] dipankar, ahh sorry I was thinking about the bug where the CP icons are cut off. [13:50] dfarning, CP bug was different I think and its has been taken up by neeraj [13:51] http://wiki.sugarlabs.org/go/The_undiscoverable#Sugar-Emulator_Screen_Size_Adjustment [13:51] Properties, Command:/usr/bin/sugar-emulator -i 832x624 [13:52] fits 10" screen [13:52] dipankar, can you show me an exapmle of when cropping happens? [13:53] dfarning, just a minute, let me send a pic [14:00] dfarning, I am uploading the images at imageshack [14:00] just a minute [14:00] http://img256.imageshack.us/content_round.php?page=done&l=img256/2310/cropk.png [14:00] dipankar, +1 [14:02] dipankar, is that image correct. I just see a toolbar and a empty window. [14:02] dfarning, here is the pic where cropping is not taking place: http://img840.imageshack.us/content_round.php?page=done&l=img840/148/nocrop.png [14:03] dfarning, On the first image you will find the text input box missing; (visible in the second image) [14:04] dipankar, got it. [14:04] dfarning, so there is cropping :) [14:07] dipankar, The problem looks like we have two two variable to consider when talking about screen height -- height and available height. [14:08] * lfaraone waves. [14:08] lfaraone: Hi Luke. [14:08] dipankar, this is exacly what satellit_was talking about. he figured out how to calculate those denemsions ahead of time. now we have to do it on the fly. [14:08] Good morning. [14:08] hey lfaraone [14:09] hello manusheel, dfarning. [14:09] neeraj: ping [14:09] hey lfaraone [14:09] * lfaraone says hi to dipankar. [14:09] lfaraone: hi :) [14:10] dipankar, this is a problem because sugar was orginally hardcoded to the screen demensions of the XO. [14:10] dfarning, I have something else on mind [14:10] dfarning, the default resolution set for emulator is 800x600 [14:10] dfarning, the window mode currently works for resolutions <800 x600 [14:11] dfarning, oops sorry [14:11] dfarning, the window mode currently works for resolutions >= 800x600 [14:11] dfarning, at resolution 800x600 [14:11] the window created is also of 800x600 [14:12] the panels and title bar take up a lot of space [14:13] dfarning, if I run the emulator fullscreen at 800x600 [14:13] dfarning: long term we want to have a "seed" created for usr-meta so we don't actually modify the package source directly, and do so in the standard way as done by all the other "spins". but short term, adding deps directly is fine :) [14:14] the emulator still runs at 800x600 resolution [14:14] lfaraone, we do have a seed. I set that up a couple of months ago. [14:14] dfarning: oh? the usr meta package seems to be using the canonical archive seeds. [14:15] oh, I see, you've added http://140.186.70.115/seeds/ [14:16] dfarning, thats why I think running the emulator in fullscreen at 800x600 system resolution does not change the emulator resolution [14:19] lfaraone, one minute. I'll move the seeds files to usr.sugarlabs.org. neeraj know how to work with them [14:21] dipankar, I'll be back in a minute. [14:21] dfarning, sure [14:24] dfarning: basically, ideally we don't add anything directly to the debian/control "Depends" line, which would mean adding ubuntu-sugar-remix-default-settings, sucrose-0.88, sugar-session-0.88 to the seed. [14:25] (and running germinate, of course) [14:26] lfaraone, +1 That was is the intention [14:35] lfaraone, ok the seeds have been moved to usr.sugarlabs.org. [14:38] lfaraone, now that usr-meta is in universe we can set it up correctly. the problem was that germinate could not work with ppas. [14:40] lfaraone, http://usr.sugarlabs.org/seeds/ubuntu-sugar-remix.maverick/ubuntu-sugar-remix , I would suggest change the =Other= to =Ubuntu Sugar Remix= and adding the deps at the bottom. [14:42] dfarning: cool. is that maintained in a VCS? [14:42] dfarning: for the ubuntu archive seeds, it's handled in a bzr branch which is periodically pushed to the server. [14:42] dipankar, We need to be careful about make a fix for just one resolution.... [14:43] lfaraone, it is not in VCS. but it will need to be pushed to bzr when USR becomes a community spin. [14:44] dfarning: okay. If you want, I can create such a branch. Can you give me a shell account usr.sl.o? My SSH keys are on launchpad. [14:46] dfarning, sorry was not at system. [14:46] ok I will add you later today.... when dipankar is sleeping:) [14:46] dipankar, np [14:47] dfarning, the resolution (800x600) is only the problem are [14:47] *area === neeraj_ is now known as neeraj [14:48] lfaraone, for now can you just send me a copy of what you want on the seed file. [14:48] neeraj: rather than adding deps directly, we're going to instead add them to the usr seed and use the "./update" script in usr-meta to update the ubuntu-sugar-remix-$arch files. [14:48] dipankar, have you tried it at 480X640? [14:49] dfarning: sucrose-0.88, sugar-calculate-activity, sugar-chat-activity-0.86, sugar-connect-activity, sugar-flipsticks-activity, sugar-jigsawpuzzle-activity, sugar-logviewer-activity, sugar-memorize-activity, sugar-physics-activity, sugar-pippy-activity, sugar-pollbuilder-activity, sugar-sliderpuzzle-activity, sugar-terminal-activity, sugar-turtleart-activity, sugar-write-activity-0.86 [14:49] Recommend: ${ubuntu-sugar-remix:Recoommends} [14:49] lfaraone: Ok. [14:49] dfarning: oops, ignore the recommend line. also depend on ubuntu-sugar-remix-default-settings in the seed. [14:50] dfarning, are you talking about system resolution or emulator one? [14:51] neeraj: once dfarning makes these changes, please update "update.cfg" to point to the new seed base (don't remove the canonical one, but change the http://140.186.70.115/seeds one. ) [14:51] lfaraone: sure. donwloading the meta package for same :) [14:52] neeraj: and run ./update to re-germinate. By the way, since usr-meta is ubuntu-native, you don't need to add "ubuntu1" to the version number :) just increment it to 0.2 or 0.2.1, whichever you feel appropreate. [14:55] dfarning, i have the following resolutions only: 640x480, 800x600, 1024x768, 1280x800 on system [14:56] lfaraone, done http://usr.sugarlabs.org/seeds/ubuntu-sugar-remix.maverick/ubuntu-sugar-remix [14:58] dfarning: I guess a feature for natty is having plymouth-theme-sugar-logo? :P [14:58] dipankar, the concern I am having is if there is a problem at 800X600 there will be a problem at every other resolution. [14:58] lfaraone, plus one:) [14:59] Ok. I have replaced the usr seeds address (http://usr.sugarlabs.org/seeds/). Running ./update [15:00] dipankar, does that make sense? [15:02] dfarning: Just had a word with Dipankar. It seems that all the other resolutions except 800*600 will work fine. We do need to do something about this resolution. [15:04] dfarning, What I tried on my system: Only at 800x600, the emulator should run in fullscreen mode. [15:05] *and for resolutions less than that too [15:05] so rest all resolutions will not be affected. [15:08] dipankar, please step back and look at the cause of the problem. And focus on fixing the cause. [15:09] dfarning, ok: [15:10] dipankar, the cause is that the toolbar and frame are unexpectly taking up space and pushing the bottom of the screen outside of the visible area. [15:11] dfarning, agreed; but the toolbar and frame of ubuntu, not sugar [15:14] neeraj: how'd that work out for you? [15:15] dipankar, do you mean it is the xephr frame that is causing every thing to shift down? [15:15] lfaraone: updating usr-meta? still running. [15:17] dfarning, yeah, but apart from that the upper and lower task panels in ubuntu also takes up some place [15:18] that causes the cropping [15:20] dfarning, I think I am using incorrect word: 'cropping' [15:21] the correct situation is "the window is not coming in visible area fully" & "the bottom is pushed off the visible area" [15:21] as you said [15:21] dipankar, yes [15:24] dfarning, so we need to pull the window up somewhow [15:24] *s/somehow [15:24] dipankar, Ok now I think I understand.... Are you looking at a special case where your monitor is set to 600X800 and then trying to run an emulatior of 600X800 [15:24] dfarning, yup (800x600) [15:27] dipankar, ok, I have been looking at it like as xephyer is set to 800X600 while my moniter is set to to 1680X1050 [15:31] dfarning, hehe :). [15:33] dipankar, well this is progress. Can you restate the bug discriptiion base on what you learned trying to explain the bug to me? [15:33] lfaraone: should I reject my old patch first and attach the new debdiff file? [15:34] or just add new one. [15:34] neeraj: yes. [15:34] ok. rejecting old one. [15:37] dfarning, right on it. [15:37] ishan, what are you working on? [15:38] dfarning, hi [15:39] i am working on http://bugs.sugarlabs.org/ticket/2201 [15:39] ishan, hi [15:39] dfarning, https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617805 [15:39] Launchpad bug 617805 in sugar-0.88 (Ubuntu) "Bar at the bottom of the window displays 'xephyr on' instead of sugar (affects: 1) (heat: 211)" [Low,In progress] [15:39] ishan, didn't alsroot provide an easy fix for that? [15:40] dfarning, what bug are you talking about [15:40] https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617805 [15:40] Launchpad bug 617805 in sugar-0.88 (Ubuntu) "Bar at the bottom of the window displays 'xephyr on' instead of sugar (affects: 1) (heat: 211)" [Low,In progress] [15:43] dfarning, I have made a draft here: http://paste.ubuntu.com/487827/ , is it good to go? [15:43] dfarning, alsroot mentioned that he wont be able to help in xephyr code . changing the text in title bar will require change in xephyr code....... [15:44] ishan: I found that there is -title argument for Xephyr [15:44] ishan, ^^ :) [15:44] dfarning, alsroot: That is great. [15:45] bug 624592, I have updated the meta package, and added the debdiff file [15:45] Launchpad bug 624592 in ubuntu-sugar-remix-meta (Ubuntu) "request all packaged activities be installed by default on USR (affects: 1) (heat: 10)" [Critical,Confirmed] https://launchpad.net/bugs/624592 [15:45] dfarning: Ishan and Ankur did discuss this last time with Aleksey. We were unable to find a solution to this issue. [15:46] alsroot: So, changing the title argument would do, right? [15:46] manusheel: yup [15:48] alsroot: Great. [15:49] dipankar, this is a specif issue that only happens because the emulator resolution is the same at the monitor resolution. [15:51] dfarning, I have added that line too: http://paste.ubuntu.com/487831/ [15:51] now is it good? [15:52] dipankar, now can you add a lines about what you think is causing the problem? === bernie is now known as bernie_afk [15:56] dfarning: Thanks David. Dipankar is adding the lines. [15:59] dfarning, added those lines: http://paste.ubuntu.com/487837/ [16:00] dipankar, plus one.. can you update the description and we will move on the the next bug.... and come back to this one later. [16:00] dfarning, sure, just a minute === neeraj_ is now known as neeraj [16:06] * dipankar has changed the description: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/614388 [16:06] Launchpad bug 614388 in sugar-0.88 (Ubuntu) "Sugar emulator should start in fullscreen mode (affects: 2) (dups: 1) (heat: 146)" [Undecided,New] [16:06] alsroot, we are using xephyr to launch the session in emulator.py . while the title option is available in X which we are not using there. is there anything which i am missing here :) [16:08] ishan: see `Xephyr -h`, there -title option [16:11] * dipankar changed the description at http://bugs.sugarlabs.org/ticket/2180 [16:11] dfarning, changed the bug description both at sugarlabs and launchpad [16:12] dipankar, +1 [16:13] dipankar, do you have any other bugs? [16:16] dfarning, this bug: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617580 [16:16] Launchpad bug 617580 in sugar-0.88 (Ubuntu) "modem configuration should not be visible if no modem is present (affects: 1) (heat: 185)" [Low,Confirmed] [16:18] dipankar, +1 can you assign it to your self and change the status to inprogress? [16:18] dfarning, ok [16:20] dfarning, done with that. There is another bug: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/621896 [16:20] Launchpad bug 621896 in sugar-0.88 (Ubuntu) "Sugar emulator crashes while copying file from usb drive to journal (affects: 1) (heat: 434)" [Medium,New] [16:20] dfarning, nobody is able to reproduce the bug [16:21] dipankar, ok then mark 621896 invalid [16:22] dfarning, done [16:24] dipankar, lets look at the configuration bug 617580 [16:24] Launchpad bug 617580 in sugar-0.88 (Ubuntu) "modem configuration should not be visible if no modem is present (affects: 1) (heat: 6)" [Low,In progress] https://launchpad.net/bugs/617580 [16:24] dfarning, sure [16:27] dipankar, it looks like the general CP handling stuff is at http://git.sugarlabs.org/projects/sugar/repos/mainline/trees/master/src/jarabe/controlpanel === neeraj_ is now known as neeraj [16:28] dfarning, looking [16:31] dipankar, each item in the control panel is treated as an plugin extension they can be found at /sugar-jhbuild/source/sugar/extensions/cpsection [16:35] dfarning, brb in 5 [16:50] dfarning, sorry got d/c [17:01] dipankar, see the below conversation on sugar [17:01] tomeu, I am looking at https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617580 . How would I disable CP extensions that are not valid? In this case because a piece of hardware is missing. [17:01] dfarning: but we still want to display it when the user plugs a 3g modem in, right? [17:01] oh wait, that's the CP section [17:01] dfarning: so you want to only display the control panel section when the hw is present? [17:01] tomeu, +1. Does it make sense to display configuration settings in the CP for hardware that is not available/present? [17:01] Launchpad bug 617580 in sugar-0.88 (Ubuntu) "modem configuration should not be visible if no modem is present (affects: 1) (heat: 6)" [Low,In progress] [17:01] NM in gnome shows it always [17:01] I guess the use case is if you move the dongle to another machine to connect from there, you may still want to check which settings you had or such [17:01] tomeu, this is a rather different situation. A connection via NM is the norm. Where as only a very small portion of users have 3G modems. [17:01] tomeu, hot plugging allows us to show only the relevant information. The USB icon appears and disappears as it is inserted and removed. [17:01] dfarning: yeah, I was meaning the 3G configuration in nm-client [17:01] I prefer not to enter in UX discussions, whatever people agree is good with me ;) [17:01] --- XO-b3c9 is now known as soundaccount [17:01] tomeu, +1 at this point I am just looking at how to hide and display CP extensions dynamically. Once we have a patch we can submitted it to design. [17:01] dfarning: oh, we do that for OLPC [17:01] there's a touchpad control panel, upstream [17:01] and it checks that it's running on an XO before it displays itself [17:01] so you can just look at that [17:01] it's only in master though, not in 0.88 [17:01] sure, but it's not part of the core at all, it's a standalone panel; dfarning doesn't need to depend on it for anything other than looking at. [17:01] cjb, thanks, can you point me to the code I haven't poked around much on laptop.org :( [17:01] cjb: sure, just meaning that he won't find it in the sources they are packaging [17:01] dfarning: it's inside the sugar module [17:02] oh, wait it hasn't been pushed? [17:02] yeah, I don't see it either [17:02] ah, walterbender changed it to be a device icon [17:02] ohh [17:02] not sure we have auto-hiding CP sections [17:02] here we are [17:02] http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg13579.html [17:02] it just does, in cpsection/touchpad/__init.py__: [17:02] +if path.exists('/sys/devices/platform/i8042/serio1/ptmode'): [17:02] + CLASS = 'Touchpad' [17:02] + ICON = 'module-touchpad' [17:02] + TITLE = _('Touchpad') [17:02] + KEYWORDS = ['touchpad'] [17:02] so, if you don't set those globals, sugar won't display the icon [17:02] guess that means the user will need to restart after plugging in a 3G device [17:02] yeah, for us it's a check you only need to make once [17:02] cassidy ChanServ CoderForLife chrowe cjb cyberorg CanoeBerry christophd [17:02] tomeu, cjb ok thanks, I'll look at the code and figure out what to do. [17:08] dfarning, confused a bit :( [17:10] dfarning, I am looking into it. pleas give me 5-10 minutes more [17:10] *s/please [17:11] dipankar, ok... the initial design on of sugar was that it was going to run on the XO, a machine that did not change. [17:12] dipankar, but now we are seeing sugar running on multiple pieces of hardware... ie (with and without the touchtap) [17:13] dfarning, so we first look into "how touchpad CP was implemented" [17:13] so that we can get some idea of CP components [17:14] dipankar, now our friends in UY noticed that the ability to add a G3 modem was rather handy. [17:14] dipankar, + the touch pad is a example of an extension that is only visible on XO. [17:16] dfarning, ok [17:17] dipankar, The touch pad is checked once at start up. Either it is there or it is not. I think that we will need to go one step farther and a build on hotpluging so that the extension will appear dynamically when the hardware is present. [17:20] dipankar, hotpluging is all ready implemented at the os level. and usbstick code in the journal will explain howto implement it. [17:20] dfarning, ok [17:20] dfarning, looking at the code [17:22] dfarning, I think this is and excellent bug for you. It will require adding very useful functionality to the CP. The code is straight forward and self contained. [17:22] dipankar, ^^ [17:23] dfarning, I think I am getting the solution [17:23] dfarning, like walter added a check in init.py [17:24] dipankar, +1 [17:24] if path.exists('/sys/devices/platform/i8042/serio1/ptmode'): [17:24] + CLASS = 'Touchpad' [17:24] + ICON = 'module-touchpad' [17:24] + TITLE = _('Touchpad') [17:24] + KEYWORDS = ['touchpad'] [17:24] dfarning, so I need to check whether the modem file in sys exists or not [17:26] dipankar, yes, that basic idea is to perform a check before displaying the extension. [17:27] dipankar, I am not sure what we want to check (how to detect if a 3G modem is present) [17:29] dfarning, I remember bernie providing a solution on checking that [17:29] dfarning, bernie told to use NM to check network available [17:29] * network interfaces available [17:31] dipankar, yes that is what I am thing too. rather then deal directly with /sys with what to use NM to provide device discovery and identification. [17:31] we want [17:34] dipankar, I think we will want to make a DBUS method call against NetworkManager. === neeraj_ is now known as neeraj [17:34] dipankar, but that is as far as I understand:( [17:41] dfarning: Ok. [17:41] dfarning: It is dinner time at office. We'll be back in half an hour. [17:43] manusheel, +1 I will eat now also. this is an excellent bug for dipankar. Not too hard but it touches a bunch of interesting code. === neeraj_ is now known as neeraj === neeraj_ is now known as neeraj [18:26] dfarning: Yes, David. It is an interesting bug for Dipankar. Back to work. [18:27] dfarning: Dipankar is at Ishan's seat explaining him to fix the Xephyr bug. He'll be back soon. [18:30] dfarning, thanks to alsroot bug https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617805 solved [18:30] Launchpad bug 617805 in sugar-0.88 (Ubuntu) "Bar at the bottom of the window displays 'xephyr on' instead of sugar (affects: 1) (heat: 211)" [Low,In progress] [18:32] * dipankar is back [18:33] dfarning, around? [18:36] alsroot, hi, around? [18:36] dipankar: hi [18:37] alsroot, I am working on this bug: https://launchpad.net/bugs/617580 [18:37] Launchpad bug 617580 in sugar-0.88 (Ubuntu) "modem configuration should not be visible if no modem is present (affects: 1) (heat: 6)" [Low,In progress] [18:38] alsroot, I want to detect the different network interfaces available on the system [18:38] alsroot, for that I want to make a DBUS method call against NetworkManager. [18:39] alsroot, wish if you could provide some pointers [18:39] dipankar: keep in mind that NM is optional SP component [18:39] alsroot, I diffed the two files. They are using different variables. Thus, I am having some problems.It would be great if you could shed some light over it. I will pastebin the diff file [18:40] alsroot, what is SP component? [18:40] SugarPlatform [18:40] http://paste.ubuntu.com/487917/ Can you confirm whether I am looking at the correct file jarabe/desktop/favoritesview.py [18:42] alsroot, then I am left with one option for searching for modem presence in a sys... [18:42] alsroot, I would have to check in the folder : /sys/devices/ ? [18:43] dipankar: well, dunno what python way is in that case, google it [18:44] alsroot, its something like :: if path.exists('/sys/devices/platform/i8042/serio1/ptmode'): [18:44] + CLASS = 'Touchpad' [18:44] + ICON = 'module-touchpad' [18:44] + TITLE = _('Touchpad') [18:44] + KEYWORDS = ['touchpad'] [18:45] dipankar: can you avoid scanning ifaces? [18:47] mukul: can say something, you all time to git clone to make sure you what you have [18:47] *can to git clone [18:47] alsroot, I think no. Is there anyother way we can test for modem presence in a machine? [18:47] alsroot, Can you elaborate? [18:56] mukul: heh, I meant *can't say something* :) [18:56] mukul: you can start analyze commit-per-commit [18:57] *to [18:57] mukul: commit comments will be useful, also you can merge commits from master one-by-one to see if issue is still reproducible [19:00] alsroot, I think no. Is there anyother way we can test for modem presence in a machine? [19:01] dipankar: you ask people on sugar-devel@ [19:02] mukul:.. of course if you are so interested in knowing what commit fixes your issue [19:03] dipankar, the flow of information is as follows == Kernel --> udev --> Network Manager <--> D-Bus <--> Sugar [19:04] alsroot, Is NM optional? [19:05] dfarning: at least I thought so [19:05] alsroot, let me ask cjb [19:05] we don't need for ethernet [19:12] dfarning, I think Martin Abente has implemented the 3G-modem settings : http://wiki.sugarlabs.org/go/Features/3G_Support [19:16] dipankar, all of the logic you need is in ~/sugar-jhbuild/source/sugar/extensions/deviceicon$ vim network.py [19:18] dipankar, you can just hook into the NetworkManagerObserver [19:20] dipankar, or it might be the GSMObserver [19:21] ls [19:23] dfarning, I am going through the file :). appreciate the pointers [19:33] dipankar, to flow to look at i line 1076 instantiates a NetworkManagerObserver [19:33] dfarning: Thanks for the pointer. Will ask Dipankar to look at it. [19:33] dfarning: I'll be back in 20 minutes. It is 12:03 am here. Team going back home. [19:34] manusheel, ok [19:37] alsroot, the logic for detecting the GSM modem is pretty straight forward. it is handled in /sugar-jhbuild/source/sugar/extensions/deviceicon/network.py in The NetwrokmanagerObserver class [19:41] dfarning: so the problem w/ https://launchpad.net/bugs/617580 is that NM wasn't enabled? [19:41] Launchpad bug 617580 in sugar-0.88 (Ubuntu) "modem configuration should not be visible if no modem is present (affects: 1) (heat: 6)" [Low,In progress] [19:44] alsroot, The tray icon works as expected. But the configuration extension in the CP is all ways visible. [19:47] dfarning: we can just export info about modem from network.py, if NM is absent code will be less reliable [19:49] alsroot, +1. [19:50] dfarning: hmm.. or even hide gsm at all, if I got it right, it won't work anyway w/o NM === bernie_afk is now known as bernie