Quozlubuntu-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:21
USR902testing USR-i386-20100902 CD01:37
mukulhi alsroot Around?01:38
satellit_I added surf115.xo to USR902 then did ASLO download of IRC-501:39
manusheelsatellit_: Did Surf work on your Ubuntu machine?01:44
manusheelsatellit_: Luke faced some issues working with Surf.01:44
manusheelDidn't work well.01:44
satellit_manusheel: yes as a drag-drop from a second USB to journal (as .xo) http://people.sugarlabs.org/Tgillard/Surf-115.xo01:46
satellit_goes to ASLO for downloads fine01:46
satellit_manusheel: are you using .deb or .xo?01:47
mukulhi bernie. Around?01:47
dfarningmukul whats up?01:48
mukuldfarning, I was try to work on some bugs.01:48
dfarningmukul, which one?01:48
mukul#2064,#2154--I think they are inter related and #222901:49
mukuldfarning, bernie : http://bugs.sugarlabs.org/ticket/206401:49
dfarningmukul, those are some seriously difficult bugs:(  how about looking at 216301:54
mukuldfarning, Ok01:56
mukuldfarning, Is #2229 also tough?01:57
manusheeldfarning: Yes. 2163 is a good bug for Mukul.01:58
manusheelmukul: around?01:58
mukulmanusheel sir: Yes01:58
dfarning#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
manusheelmukul: Please start with bug #2163.01:59
ubot2Launchpad bug 2163 in realplayer (Ubuntu) "installs rp8 and not rp10 (dups: 1) (heat: 1)" [Medium,Invalid] https://launchpad.net/bugs/216301:59
manusheeldfarning: Sure.01:59
dfarningmukul, do you have an xo to test it with?02:00
manusheeldfarning: Bug #2229 will be assigned to us too.02:00
ubot2Launchpad 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/222902:00
manusheeldfarning: No. Mukul does not have an XO yet.02:00
mukulmanusheel, dfarning : Are we talking about the bug on sugarlabs or launchpad as ubot2 just mentioned02:01
manusheelmukul: bugs.sl.org02:02
dfarningmukul, I was talking about SL#222902:02
mukuldfarning: Ok02:02
dfarningmukul, We need to be more specific:(02:02
dfarningmukul, do you know how to get started?02:06
mukuldfarning, Yes I'm trying to reproduce the bug. How do I rotate the screen on sugar emulator02:09
manusheelmukul: just run sugar-emulator w/o "-f" flag and try to "xrandr -o <0-4>"02:11
dfarningmukul, I think you can do it using xrandr02:11
mukulmanusheel, dfarning : Ok02:12
dfarningmukul, try starting the emulator then going into the sugar terminal and running xrandr02:13
dfarningmukul, that is pretty cool!  I never tried it in a window before.02:14
dfarningmukul, although it is hard to move the mouse02:15
manusheeldfarning: Right. Indeed hard :-)02:16
dfarningmukul, got it?02:16
manusheelmukul: let us know if you have any questions.02:17
mukuldfarning, manusheel : Yes. But I'm trying to get the hang of the mouse02:20
dfarningmukul, just try to click on the home view button or push f302:21
mukuldfarning, Yes I have done that02:22
dfarningmukul, where would you think the source code is that controls the layout of the homeview?02:23
berniemukul: yes, but I'm going to sleep.  sorry02:24
mukulbernie, No problems02:25
mukuldfarning, I think it should be under layout.py file in jarabe folder02:25
dfarningmukul, yes I think jarabe is the correct place .... although I do not see a layout.py module.02:27
mukuldfarning, I think it is favouriteslayout.py in jarabe/destop02:28
mukuldfarning: *jarabe/Desktop02:28
dfarningmukul, +1 I think favorites refers to how the icons are organized around the screen.02:29
dfarningmukul, we need to take a step back and determine how the 'XO man' is located and draw on  the center of the screen02:30
mukuldfarning: Ok02:31
dfarningmukul, I think the XO man is called the OwnerIcon it is defined on line 595 of favoritiesviewpy02:39
mukuldfarning: Thanks for the pointer02:39
dfarningmukul, it is instantiated at line 8402:42
mukulI see no OwnerIcon. I see _my_icon02:44
dfarningmukul, look on the right side of the equals sign on line 84 an instance of OwnerIcon is defined to be _my_icon02:46
mukuldfarning, Is this what we should be looking at http://paste.ubuntu.com/487574/02:48
dfarningmukul,  yes that looks correct02:49
=== bernie is now known as bernie_afk
mukuldfarning, By the way on my version of sugar Line 84 is blank02:51
dfarningmukul, 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:52
dfarningmukul, my guess at a glance is that the rotation is reversing height and width when the screen is rotated.02:55
dfarningmukul, do you have jhbuild set up?02:55
mukuldfarning, No02:56
dfarningmukul, see  http://wiki.sugarlabs.org/go/Development_Team/Jhbuild02:56
dfarningSugar-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:57
dfarningmukul, 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
mukuldfarning, Ok02:58
dfarningmukul, how are you coming?03:07
mukulI'm installing sugar-jhbuild. It seems it is big enough. taking time to download03:11
dfarningmukul, yes is is pretty big.  it has the entire git history of all of sugar.03:14
dfarningmukul, 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:34
mukuldfarning, Ok03:35
mukuldfarning, I think I'll leave now. Will resume the work later. Nice talking to you :)03:42
dfarningmukul, ok see you later.03:43
=== bernie_afk is now known as bernie
dipankardfarning, good morning13:14
dfarningdipankar, good morning.13:24
manusheeldfarning: I have asked Dipankar to create a patch in sometime. Let us start with the full screen bug.13:26
dfarningok dipankar where are you at and what is the bug number?13:29
dipankardfarning, just a minute13:31
dfarningdip looking13:33
mukuldfarning, Good Morning !13:33
dfarningmukul, good morning did jhbuild finish?13:34
mukuldfarning, Yes13:34
dfarningmukul, nice13:34
dipankardfarning, For the bug I already uploaded a patch, and shacha seems to be happy with the patch.13:35
dipankardfarning, but tomeu is suggesting changing the gtk-rc files13:35
dipankardfarning, currently we have two sets : 72 and 10013:35
dipankardfarning, 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 resolution13:37
dfarningdipankar, is it possiable to calulate the frame width at run thime?13:38
dipankardfarning, I didn't get a chance to explore this part. Not sure about it.13:40
mukuldfarning, Should I be looking at http://paste.ubuntu.com/487774/ at LIne no 17613:40
dfarningmukul, I am not sure.... now that you have found the correct code you will have to trace the code......13:41
mukuldfarning, Ok13:41
dfarningmukul, I think that you will want to  calulate the control panel layout at runtime based on  screen dimension - (2* frame width) = available space13:43
dfarningmukul, ^^ oops the above was for dipankar.13:44
dfarningdipankar, then determine CP icon spacing by their size.13:45
dfarningdipankar, 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
dfarningthen create a rows and colume layout for the CP.13:47
dipankardfarning, I think I was not clear with the bug13:47
dipankardfarning, The cropping takes place at the bottom for whole emulator13:48
dipankardfarning, this occurs due to the space taken up by title bar (emulator-window) and task panels of ubuntu13:48
dfarningdipankar, ahh sorry I was thinking about the bug where the CP icons are cut off.13:49
dipankardfarning, CP bug was different I think and its has been taken up by neeraj13:50
satellit_Properties, Command:/usr/bin/sugar-emulator -i 832x62413:51
satellit_fits 10" screen13:52
dfarningdipankar, can you show me an exapmle of when cropping happens?13:52
dipankardfarning, just a minute, let me send a pic13:53
dipankardfarning, I am uploading the images at imageshack14:00
dipankarjust a minute14:00
dfarningdipankar, +114:00
dfarningdipankar, is that image correct. I just see a toolbar and a empty window.14:02
dipankardfarning, here is the pic where cropping is not taking place: http://img840.imageshack.us/content_round.php?page=done&l=img840/148/nocrop.png14:02
dipankardfarning, On the first image you will find the text input box missing; (visible in the second image)14:03
dfarningdipankar, got it.14:04
dipankardfarning, so there is cropping :)14:04
dfarningdipankar,  The problem looks like we have two two variable to consider when talking about screen height -- height and available height.14:07
* lfaraone waves.14:08
manusheellfaraone: Hi Luke.14:08
dfarningdipankar, 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
manusheelGood morning.14:08
dfarninghey lfaraone14:08
lfaraonehello manusheel, dfarning.14:09
lfaraoneneeraj: ping14:09
dipankarhey lfaraone14:09
* lfaraone says hi to dipankar.14:09
neerajlfaraone: hi :)14:09
dfarningdipankar, this is a problem because sugar was orginally hardcoded to the screen demensions of the XO.14:10
dipankardfarning, I have something else on mind14:10
dipankardfarning, the default resolution set for emulator is 800x60014:10
dipankardfarning, the window mode currently works for resolutions <800 x60014:10
dipankardfarning, oops sorry14:11
dipankardfarning, the window mode currently works for resolutions >= 800x60014:11
dipankardfarning, at resolution 800x60014:11
dipankarthe window created is also of 800x60014:11
dipankarthe panels and title bar take up a lot of space14:12
dipankardfarning, if I run the emulator fullscreen at 800x60014:13
lfaraonedfarning: 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:13
dipankarthe emulator still runs at 800x600 resolution14:14
dfarninglfaraone, we do have a seed.  I set that up a couple of months ago.14:14
lfaraonedfarning: oh? the usr meta package seems to be using the canonical archive seeds.14:14
lfaraoneoh, I see, you've added
dipankardfarning, thats why I think running the emulator in fullscreen at 800x600 system resolution does not change the emulator resolution14:16
dfarninglfaraone, one minute. I'll move the seeds files to usr.sugarlabs.org.  neeraj know how to work with them14:19
dfarningdipankar, I'll be back in a minute.14:21
dipankardfarning, sure14:21
lfaraonedfarning: 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:24
lfaraone(and running germinate, of course)14:25
dfarninglfaraone, +1 That was is the intention14:26
dfarninglfaraone,  ok the seeds have been moved to usr.sugarlabs.org.14:35
dfarninglfaraone, now that usr-meta is in universe we can set it up correctly.  the problem was that germinate could not work with ppas.14:38
dfarninglfaraone,   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:40
lfaraonedfarning: cool. is that maintained in a VCS?14:42
lfaraonedfarning: for the ubuntu archive seeds, it's handled in a bzr branch which is periodically pushed to the server.14:42
dfarningdipankar, We need to be careful about make a fix for just one resolution....14:42
dfarninglfaraone, it is not in VCS.  but it will need to be pushed to bzr when USR becomes a community spin.14:43
lfaraonedfarning: 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:44
dipankardfarning, sorry was not at system.14:46
dfarningok I will add you later today.... when dipankar is sleeping:)14:46
dfarningdipankar, np14:46
dipankardfarning, the resolution (800x600) is only the problem are14:47
=== neeraj_ is now known as neeraj
dfarninglfaraone, for now can you just send me a copy of what you want on the seed file.14:48
lfaraoneneeraj: 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
dfarningdipankar,  have you tried it at 480X640?14:48
lfaraonedfarning: 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.8614:49
lfaraone Recommend: ${ubuntu-sugar-remix:Recoommends}14:49
neerajlfaraone: Ok.14:49
lfaraonedfarning: oops, ignore the recommend line. also depend on ubuntu-sugar-remix-default-settings in the seed.14:49
dipankardfarning, are you talking about system resolution or emulator one?14:50
lfaraoneneeraj: 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 one. )14:51
neerajlfaraone: sure. donwloading the meta package for same :)14:51
lfaraoneneeraj: 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:52
dipankardfarning, i have the following resolutions only: 640x480, 800x600, 1024x768, 1280x800 on system14:55
dfarninglfaraone, done http://usr.sugarlabs.org/seeds/ubuntu-sugar-remix.maverick/ubuntu-sugar-remix14:56
lfaraonedfarning: I guess a feature for natty is having plymouth-theme-sugar-logo? :P14:58
dfarningdipankar, the concern I am having is if there is a problem at 800X600 there will be a problem at every other resolution.14:58
dfarninglfaraone, plus one:)14:58
neerajOk. I have replaced the usr seeds address (http://usr.sugarlabs.org/seeds/). Running ./update14:59
dfarningdipankar, does that make sense?15:00
manusheeldfarning: 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:02
dipankardfarning, What I tried on my system: Only at 800x600, the emulator should run in fullscreen mode.15:04
dipankar*and for resolutions less than that too15:05
dipankarso rest all resolutions will not be affected.15:05
dfarningdipankar, please step back and look at the cause of the problem. And focus on fixing the cause.15:08
dipankardfarning, ok:15:09
dfarningdipankar, 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:10
dipankardfarning, agreed; but the toolbar and frame of ubuntu, not sugar15:11
lfaraoneneeraj: how'd that work out for you?15:14
dfarningdipankar, do you mean it is the xephr frame that is causing every thing to shift down?15:15
neerajlfaraone: updating usr-meta? still running.15:15
dipankardfarning, yeah, but apart from that the upper and lower task panels in ubuntu also takes up some place15:17
dipankarthat causes the cropping15:18
dipankardfarning, I think I am using incorrect word: 'cropping'15:20
dipankarthe correct situation is "the window is not coming in visible area fully" & "the bottom is pushed off the visible area"15:21
dipankaras you said15:21
dfarningdipankar, yes15:21
dipankardfarning, so we need to pull the window up somewhow15:24
dfarningdipankar, 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 600X80015:24
dipankardfarning, yup (800x600)15:24
dfarningdipankar, ok, I have been looking at it like as xephyer is set to 800X600 while my moniter is set to to 1680X105015:27
dipankardfarning, hehe :).15:31
dfarningdipankar, well this is progress. Can you restate the bug discriptiion base on what you learned trying to explain the bug to me?15:33
neerajlfaraone: should I reject my old patch first and attach the new debdiff file?15:33
neerajor just add new one.15:34
lfaraoneneeraj: yes.15:34
neerajok. rejecting old one.15:34
dipankardfarning, right on it.15:37
dfarningishan, what are you working on?15:37
ishandfarning, hi15:38
ishani am working on http://bugs.sugarlabs.org/ticket/220115:39
dfarningishan, hi15:39
ishandfarning, https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/61780515:39
ubot2Launchpad 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
dfarningishan, didn't alsroot provide an easy fix for that?15:39
ishandfarning, what bug are you talking about15:40
ubot2Launchpad 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:40
dipankardfarning, I have made a draft here: http://paste.ubuntu.com/487827/ , is it good to go?15:43
ishandfarning,  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:43
alsrootishan: I found that there is -title argument for Xephyr15:44
dfarningishan, ^^ :)15:44
manusheeldfarning, alsroot: That is great.15:44
neerajbug 624592, I have updated the meta package, and added the debdiff file15:45
ubot2Launchpad 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/62459215:45
manusheeldfarning: Ishan and Ankur did discuss this last time with Aleksey. We were unable to find a solution to this issue.15:45
manusheelalsroot: So, changing the title argument would do, right?15:46
alsrootmanusheel: yup15:46
manusheelalsroot: Great.15:48
dfarningdipankar, this is a specif issue that only happens because the emulator resolution is the same at the monitor resolution.15:49
dipankardfarning, I have added that line too: http://paste.ubuntu.com/487831/15:51
dipankarnow is it good?15:51
dfarningdipankar, now can you add a lines about what you think is causing the problem?15:52
=== bernie is now known as bernie_afk
manusheeldfarning: Thanks David. Dipankar is adding the lines.15:56
dipankardfarning, added those lines: http://paste.ubuntu.com/487837/15:59
dfarningdipankar, 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
dipankardfarning, sure, just a minute16:00
=== neeraj_ is now known as neeraj
* dipankar has changed the description: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/61438816:06
ubot2Launchpad bug 614388 in sugar-0.88 (Ubuntu) "Sugar emulator should start in fullscreen mode (affects: 2) (dups: 1) (heat: 146)" [Undecided,New]16:06
ishanalsroot,  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:06
alsrootishan: see `Xephyr -h`, there -title option16:08
* dipankar changed the description at http://bugs.sugarlabs.org/ticket/218016:11
dipankardfarning, changed the bug description both at sugarlabs and launchpad16:11
dfarningdipankar, +116:12
dfarningdipankar, do you have any other bugs?16:13
dipankardfarning, this bug: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/61758016:16
ubot2Launchpad 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:16
dfarningdipankar, +1 can you assign it to your self and change the status to inprogress?16:18
dipankardfarning, ok16:18
dipankardfarning, done with that. There is another bug: https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/62189616:20
ubot2Launchpad 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
dipankardfarning, nobody is able to reproduce the bug16:20
dfarningdipankar, ok then mark 621896 invalid16:21
dipankardfarning, done16:22
dfarningdipankar, lets look at the configuration bug 61758016:24
ubot2Launchpad 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/61758016:24
dipankardfarning, sure16:24
dfarningdipankar, it looks like the general CP handling stuff is at http://git.sugarlabs.org/projects/sugar/repos/mainline/trees/master/src/jarabe/controlpanel16:27
=== neeraj_ is now known as neeraj
dipankardfarning, looking16:28
dfarningdipankar, each item in the control panel is treated as an plugin extension they can be found at /sugar-jhbuild/source/sugar/extensions/cpsection16:31
dipankardfarning, brb in 516:35
dipankardfarning, sorry got d/c16:50
dfarningdipankar,  see the below conversation on sugar17:01
dfarning<dfarning> 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<tomeu> dfarning: but we still want to display it when the user plugs a 3g modem in, right?17:01
dfarning<tomeu> oh wait, that's the CP section17:01
dfarning<tomeu> dfarning: so you want to only display the control panel section when the hw is present?17:01
dfarning<dfarning> tomeu, +1.  Does it make sense to display configuration settings in the CP for hardware that is not available/present?17:01
ubot2Launchpad 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
dfarning<tomeu> NM in gnome shows it always17:01
dfarning 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 such17:01
dfarning<dfarning> 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
dfarning 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<tomeu> dfarning: yeah, I was meaning the 3G configuration in nm-client17:01
dfarning<tomeu> I prefer not to enter in UX discussions, whatever people agree is good with me ;)17:01
dfarning--- XO-b3c9 is now known as soundaccount17:01
dfarning<dfarning> 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<cjb> dfarning: oh, we do that for OLPC17:01
dfarning<cjb> there's a touchpad control panel, upstream17:01
dfarning and it checks that it's running on an XO before it displays itself17:01
dfarning so you can just look at that17:01
dfarning<tomeu> it's only in master though, not in 0.8817:01
dfarning<cjb> 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
dfarning<dfarning> cjb, thanks, can you point me to the code I haven't poked around much on laptop.org :(17:01
dfarning<tomeu> cjb: sure, just meaning that he won't find it in the sources they are packaging17:01
dfarning<tomeu> dfarning: it's inside the sugar module17:01
dfarning<tomeu> oh, wait it hasn't been pushed?17:02
dfarning<cjb> yeah, I don't see it either17:02
dfarning<tomeu> ah, walterbender changed it to be a device icon17:02
dfarning<cjb> ohh17:02
dfarning<tomeu> not sure we have auto-hiding CP sections17:02
dfarning<cjb> here we are17:02
dfarning http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg13579.html17:02
dfarning it just does, in cpsection/touchpad/__init.py__:17:02
dfarning +if path.exists('/sys/devices/platform/i8042/serio1/ptmode'):17:02
dfarning +    CLASS = 'Touchpad'17:02
dfarning +    ICON = 'module-touchpad'17:02
dfarning +    TITLE = _('Touchpad')17:02
dfarning +    KEYWORDS = ['touchpad']17:02
dfarning so, if you don't set those globals, sugar won't display the icon17:02
dfarning<tomeu> guess that means the user will need to restart after plugging in a 3G device17:02
dfarning<cjb> yeah, for us it's a check you only need to make once17:02
dfarning cassidy ChanServ CoderForLife chrowe cjb cyberorg CanoeBerry christophd17:02
dfarning<dfarning> tomeu, cjb ok thanks, I'll look at the code and figure out what to do.17:02
dipankardfarning, confused a bit :(17:08
dipankardfarning, I am looking into it. pleas give me 5-10 minutes more17:10
dfarningdipankar, ok... the initial design on of sugar was that it was going to run on the XO, a machine that did not change.17:11
dfarningdipankar, but now we are seeing sugar running on multiple pieces of hardware... ie (with and without the touchtap)17:12
dipankardfarning, so we first look into "how touchpad CP was implemented"17:13
dipankarso that we can get some idea of CP components17:13
dfarningdipankar, now our friends in UY noticed that the ability to add a G3 modem was rather handy.17:14
dfarningdipankar, + the touch pad is a example of an extension that is only visible on XO.17:14
dipankardfarning, ok17:16
dfarningdipankar, 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:17
dfarningdipankar, hotpluging is all ready implemented at the os level. and usbstick code in the journal will explain howto implement it.17:20
dipankardfarning, ok17:20
dipankardfarning, looking at the code17:20
dfarningdfarning, 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
dfarningdipankar, ^^17:22
dipankardfarning, I think I am getting the solution17:23
dipankardfarning, like walter added a check in init.py17:23
dfarningdipankar, +117:24
dipankarif path.exists('/sys/devices/platform/i8042/serio1/ptmode'):17:24
dipankar+    CLASS = 'Touchpad'17:24
dipankar+    ICON = 'module-touchpad'17:24
dipankar+    TITLE = _('Touchpad')17:24
dipankar+    KEYWORDS = ['touchpad']17:24
dipankardfarning, so I need to check whether the modem file in sys exists or not17:24
dfarningdipankar, yes, that basic idea is to perform a check before displaying the extension.17:26
dfarningdipankar, I am not sure what we want to check (how to detect if a 3G modem is present)17:27
dipankardfarning, I remember bernie providing a solution on checking that17:29
dipankardfarning, bernie told to use NM to check network available17:29
dipankar* network interfaces available17:29
dfarningdipankar, 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
dfarningwe want17:31
dfarningdipankar, I think we will want to make a DBUS method call against NetworkManager.17:34
=== neeraj_ is now known as neeraj
dfarningdipankar, but that is as far as I understand:(17:34
manusheeldfarning: Ok.17:41
manusheeldfarning: It is dinner time at office. We'll be back in half an hour.17:41
dfarningmanusheel, +1 I will eat now also.  this is an excellent bug for dipankar.  Not too hard but it touches a bunch of interesting code.17:43
=== neeraj_ is now known as neeraj
=== neeraj_ is now known as neeraj
manusheeldfarning: Yes, David. It is an interesting bug for Dipankar. Back to work.18:26
manusheeldfarning: Dipankar is at Ishan's seat explaining him to fix the Xephyr bug. He'll be back soon.18:27
ishandfarning, thanks to alsroot bug https://bugs.launchpad.net/ubuntu/+source/sugar-0.88/+bug/617805 solved18:30
ubot2Launchpad 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:30
* dipankar is back18:32
dipankardfarning, around?18:33
dipankaralsroot, hi, around?18:36
alsrootdipankar: hi18:36
dipankaralsroot, I am working on this bug: https://launchpad.net/bugs/61758018:37
ubot2Launchpad 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:37
dipankaralsroot, I want to detect the different network interfaces available on the system18:38
dipankaralsroot, for that I want to make a DBUS method call against NetworkManager.18:38
dipankaralsroot, wish if you could provide some pointers18:39
alsrootdipankar: keep in mind that NM is optional SP component18:39
mukulalsroot, 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 file18:39
dipankaralsroot, what is SP component?18:40
mukulhttp://paste.ubuntu.com/487917/  Can you confirm whether I am looking at the correct file jarabe/desktop/favoritesview.py18:40
dipankaralsroot, then I am left with one option for searching for modem presence in a sys...18:42
dipankaralsroot, I would have to check in the folder : /sys/devices/ ?18:42
alsrootdipankar: well, dunno what python way is in that case, google it18:43
dipankaralsroot, its something like :: if path.exists('/sys/devices/platform/i8042/serio1/ptmode'):18:44
dipankar+    CLASS = 'Touchpad'18:44
dipankar+    ICON = 'module-touchpad'18:44
dipankar+    TITLE = _('Touchpad')18:44
dipankar+    KEYWORDS = ['touchpad']18:44
alsrootdipankar: can you avoid scanning ifaces?18:45
alsrootmukul: can say something, you all time to git clone to make sure you what you have18:47
alsroot*can to git clone18:47
dipankaralsroot, I think no. Is there anyother way we can test for modem presence in a machine?18:47
mukulalsroot, Can you elaborate?18:47
alsrootmukul: heh, I meant *can't say something* :)18:56
alsrootmukul: you can start analyze commit-per-commit18:56
alsrootmukul: commit comments will be useful, also you can merge commits from master one-by-one to see if issue is still reproducible18:57
dipankaralsroot, I think no. Is there anyother way we can test for modem presence in a machine?19:00
alsrootdipankar: you ask people on sugar-devel@19:01
alsrootmukul:.. of course if you are so interested in knowing what commit fixes your issue19:02
dfarningdipankar, the flow of information is as follows ==   Kernel --> udev --> Network Manager <--> D-Bus <--> Sugar19:03
dfarningalsroot, Is NM optional?19:04
alsrootdfarning: at least I thought so19:05
dfarningalsroot, let me ask cjb19:05
alsrootwe don't need for ethernet19:05
dipankardfarning, I think Martin Abente has implemented the 3G-modem settings : http://wiki.sugarlabs.org/go/Features/3G_Support19:12
dfarningdipankar, all of the logic you need is in ~/sugar-jhbuild/source/sugar/extensions/deviceicon$ vim network.py19:16
dfarningdipankar, you can just hook into the NetworkManagerObserver19:18
dfarningdipankar, or it might be the GSMObserver19:20
dipankardfarning, I am going through the file :). appreciate the pointers19:23
dfarningdipankar, to flow to look at i line 1076 instantiates a NetworkManagerObserver19:33
manusheeldfarning: Thanks for the pointer. Will ask Dipankar to look at it.19:33
manusheeldfarning: I'll be back in 20 minutes. It is 12:03 am here. Team going back home.19:33
dfarningmanusheel, ok19:34
dfarningalsroot, 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 class19:37
alsrootdfarning: so the problem w/ https://launchpad.net/bugs/617580 is that NM wasn't enabled?19:41
ubot2Launchpad 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:41
dfarningalsroot, The tray icon works as expected.  But the configuration extension in the CP is all ways visible.19:44
alsrootdfarning: we can just export info about modem from network.py, if NM is absent code will be less reliable19:47
dfarningalsroot, +1.19:49
alsrootdfarning: hmm.. or even hide gsm at all, if I got it right, it won't work anyway w/o NM19:50
=== bernie_afk is now known as bernie

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