/srv/irclogs.ubuntu.com/2009/07/02/#ubuntu-installer.txt

lamalexAnyone know where the code to decide how big to make the partition when you chose to install side by side lives?12:19
cjwatsonlamalex: partman-auto12:19
cjwatsonwell, also in ubiquity, since it's a slider ...12:20
lamalexcjwatson: partman-auto is where it's initially set though?12:20
cjwatsonlet me double-check12:23
lamalexthanks :)12:24
cjwatsonyeah, I believe that still comes from partman-auto/automatically_partition/resize_use_free/do_option, which sets the default size midway between the minimum and maximum bounds12:26
cjwatsonit's a bit twisty12:26
lamalexfor us it's /always/ getting set to 2.5gb12:27
lamalexwhich is uh... too small12:27
cjwatsonubiquity --debug would leave logs that would help to investigate12:28
davmor2cjwatson: is that a bit twisty in the same way that lead is a bit heavy ;)12:28
lamalexcjwatson: ubiquity --debug gives me 0 output12:34
lamalexasside from some murrine warnings12:34
evandlamalex: too small as in it fails to resize to that size, or too small for your liking?12:36
cjwatsonlamalex: not on stdout, but in log files. /var/log/syslog /var/log/installer/debug12:36
cjwatson(and /var/log/partman is useful too)12:36
lamalexcjwatson: ahh12:36
lamalexevand: the latter12:36
evandokay12:36
cjwatsonhow much space is made available by resizing the other filesystem?12:37
lamalexcjwatson: by default?12:38
lamalexi mean i can resize to anything12:38
cjwatsonsorry. I mean, what's the maximum space you could make available? you can only resize down as far as the amount of data in the other filesystem12:41
cjwatsonput another way, what's the range of the slider you get?12:42
lamalexI can resize it down to 2.1 gb12:46
cjwatsonand the other way?12:49
lamalexcjwatson: i can resize my old one down to 2.1, and my new down to 2.5. it's setting 2.5 by default, which is also the min13:09
cjwatsonwhat I'm actually asking is, what are the minimum and maximum sizes it'll allow for your new partition?13:11
lamalex5.4gb and 2.5gb13:11
cjwatsonok, so that does sounds like ... I think ... a ubiquity bug - IMO it'd be better for it to use the midpoint rather than the minimum13:12
cjwatsons/sounds/sound/13:12
lamalexi agree13:13
lamalexso I need to fix this in d-i?13:14
cjwatsonprobably in ubiquity actually13:14
cjwatsonbut this is more evand's code than mine :)13:14
cjwatsonbasically I *think* d-i is providing the correct information to ubiquity but ubiquity needs to make better use of it13:14
evanddoesn't d-i use the minimum by default?13:15
lamalexcjwatson: if logs would help you guys determine where the issue is, im happy to provide them13:15
cjwatsonevand: there might be a bug, but it's meant to use the midpoint13:16
cjwatsonhuman_resize_range13:16
cjwatsonprefsize="$(expr \( "$minsize" + "$maxsize" \) / 2)"13:16
cjwatson# ask_for_size will set the default size to $hcursize.13:16
cjwatsonhcursize=$(longint2human $prefsize)13:16
lamalex? is that perl?13:16
lamalexfrom d-i?13:16
cjwatsonshell13:16
lamalexah13:16
cjwatsonlamalex: syslog with --debug should help us quickly see what info's being passed through, yes13:17
lamalexsure, one moment13:17
evandfair enough, I'll add that to my TODO list13:18
lamalexevand: if you guys can point me in the direction of the code, you wont have to because ill patch this for you13:19
lamalexcjwatson: evand: syslog -> http://filebin.ca/uoybwx13:20
* evand digs13:23
lamalex/nick evandigs13:23
lamalex:)13:23
evandlamalex: bzr branch lp:ubiquity ubiquity.trunk; vim ubiquity.trunk/ubiquity/segmented_bar.py line 60013:27
lamalexk13:31
lamalexevand: this does more than just draw the bar?13:33
lamalexthis does actual partitioner stuff?13:33
evandlamalex: the value it returns is fed back into the partitioner13:34
lamalexah13:35
lamalexcool, thanks13:43
lamalexevand: in the SegmentedBar class?13:47
evandlamalex: the partman.py ubiquity component runs the partman-auto d-i component, watching for certain information and then feeds that information to the GTK frontend, which feeds the size data to the SegmentedBarSlider object.  Once the user hits next, it grabs the size to resize the partition to from the SegmentedBarSlider and feeds it back into the partman.py ubiquity component, which feeds it to the partman-auto d-i component13:51
lamalexah13:52
evandlamalex: http://people.ubuntu.com/~evand/tmp/ubiquity-diagram.png13:54
lamalexevand: cjwatson: Shouldn't I be able to edit the .py files in /usr/lib/ubiquity and rerun the installer?14:40
lamalexdoes the python interpreter do caching?14:41
evandyes, you should be fine in editing them14:41
lamalexhmm14:43
lamalexwonder why this isnt working14:43
lamalexi put in a bunch of prints, in the constructor as well just for testing14:43
lamalexnot printing anything14:43
rgreeningevand: ping14:52
evandrgreening: ah, I missed you coming online.  I looked over 0.2.0, but there are lingering issues with the GTK frontend that I think can be best solved by moving it to devicekit-disks, so I'm moving that through as quick as I can.14:53
rgreeningevand: cool14:53
rgreeningevand: how does that effect the KDE version, if at all?14:53
evandwe should be able to keep both backends without issue14:54
evanddevicekit-disks and HAL14:54
rgreeningevand: hmm... I have the same issues I believe you have with HAL...14:54
rgreeningSo, perhaps, we may be able to move to devicekit-disks for both?14:55
evandsure, if you guys are okay with bringing in that dependency14:55
evandHAL is effectively dead upstream14:55
rgreeningI assume it's not Gtk/Gnome/gobject based, correct?14:56
rgreeningevand: ^14:56
evandcorrect14:57
evandthere's already a kformat or some such project using it14:57
rgreeningcool. I think I'm ok with that. And it forces us to movde to policykit too, correct?14:58
rgreeningevand: I think it would be preferable to maintain one common backend. Less code to maintain long term.14:58
lamalexcjwatson: does ubiquity fork?15:15
cjwatsonlamalex: it has quite a few subprocesses; it doesn't actually run multiple copies of its own process image though15:19
cjwatson(so fork/exec but not fork)15:19
lamalexcould that be why im not seeing anything printed?15:22
evandlamalex: check in /var/log/installer/debug15:27
cjwatsonlamalex: it directs its output to log files ... as evand says15:27
lamalexyah, i removed that from /usr/bin/ubiquity15:28
lamalexoh, but it's still going there. cool15:28
rgreeningevand: thanks.15:29
=== robbiew1 is now known as robbiew
=== nxvl_ is now known as nxvl
cjwatsonlamalex: probably redirected in /usr/lib/ubiquity/bin/ubiquity too16:02
lamalexcjwatson: yah im just watching the log now16:03
lamalexcjwatson: is there a trick to running it locally?16:04
cjwatsonwhat do you mean?16:04
lamalexactually im not sure...16:05
evandwe don't run ubiquity locally as it's dependent on some live CD bits and is potentially dangerous16:07
cjwatsonoh, that sort of locally16:08
cjwatsonyeah, use a vm or something16:08
lamalexk16:10
=== dpm is now known as dpm-afk
shtylman_I am looking for a way to get the unicode cahracter for a keycode/keysym given a keyboard layout ... ideas?18:47
cjwatsonshtylman_: for one approach, have a look at gfxboot-theme-ubuntu/scrape-console-setup line 273-28119:06
cjwatsonapparently requires root although it ought to be possible to make loadkeys not need that in this case19:06
cjwatsonactually look at the bit below that as well19:06
shtylman_cjwatson: k... will do ... is that a separate project? or a branch of ubiquity? what I am trying to do is provide a graphical display of the selected keyboard layout :)19:08
cjwatsonseparate project, bzr get lp:gfxboot-theme-ubuntu19:11
cjwatsonI've always thought graphical displays of keyboard layouts were a tempting but ultimately doomed idea19:11
cjwatsonGNOME's didn't work out very well19:11
cjwatson(mainly because for the amount of screen space they use up it's remarkably hard to actually distinguish useful information using them)19:12
cjwatsonfor that, though, using xklavier or whatever it is might be a better idea19:12
cjwatsonwhatever library it is that GNOME's keyboard properties widget uses to render the image19:12
cjwatsonoh, the other problem is that desktop keyboards and laptop keyboards really don't look much alike, but we configure both the same way because the differences aren't really interesting at the xkb level19:13
cjwatsonbe my guest if you want to try it out though :)19:14
shtylman_cjwatson: indeed... I want to see what result I can get from mostly just displaying the main part of the keyboard .. .teh stuff that is usually very similar19:15
shtylman_the idea being that it is much more intuitive than the "type random stuff here box"19:15
shtylman_cjwatson: well... on the good side... running without sudo seemed to work just fine...19:25
shtylman_on the downside... it outputs c code ... :(19:25
shtylman_and I have no idea what the indexes into the plain_map are :)19:26
CIA-2usb-creator: rgreening * r121 usb-creator/usbcreator/ (kde_about.py kde_frontend.py):19:31
CIA-2usb-creator: Update bug e-mail for about settings19:31
CIA-2usb-creator: Tighten up some of the import statememnts in kde_frontend19:31
CIA-2usb-creator: Connect the apps quit signal to kde_frontend's quit method19:31
CIA-2usb-creator: Cleanup/improve progress bar code for kde_frontend19:31
CIA-2usb-creator: Make sure we cleanup after finish is called in kde_frontend (causes D-Bus issue.. need to look into that)19:31
CIA-2ubiquity: cjwatson * r3305 ubiquity/debian/changelog: fix attribution20:28
CIA-2ubiquity: cjwatson * r3306 ubiquity/debian/ (changelog ubiquity.templates):20:30
CIA-2ubiquity: Clarify that "use the entire disk" really does mean erasing everything20:30
CIA-2ubiquity: on it (thanks, Jason Spiro; LP: #94382).20:30
CIA-2ubiquity: cjwatson * r3307 ubiquity/debian/po/ (80 files): debconf-updatepo20:32
=== mcasadevall is now known as NCommander
shtylman_cjwatson: I am trying to understand the output of loadkeys22:27
shtylman_as I understand it, it is the unicode for the character when that particular key is pressed...22:27
shtylman_but how do I know which key cooresponds to what index?22:27
cjwatsonhonestly, I forget, I would have to go and remember how that code works and you're probably already ahead of me if you have it in front of you :)22:29
cjwatsonI think they might be scancodes or something?22:30
cjwatsonthey'll either be scancodes or keycodes, probably the former - http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html22:31
cjwatsonor indeed http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html22:31
* shtylman_ feels like this is some scary territory carried over from the 70's22:32
cjwatsonyup22:33
cjwatsonbut scancodes actually map reasonably well to how physical keyboards are laid out ...22:33
cjwatsonabandon all desires you may have for elegant hardware design if you're doing anything with keyboards, though22:33
shtylman_k... will read about it and hopefully it will make sense :)22:33
shtylman_hahahaha22:33
cjwatsonyou'd think that USB keyboards might offer some hope of autodetecting the keymap, for instance22:33
cjwatsonbut no, it's all smoke and mirrors backed up by little in the way of reality :-/22:34
shtylman_great...22:34
shtylman_alright...I get the part about them being scancode indexes... but then when I look at some of the entries they are 0xfb71 ... that isn't even a character on my keyboard :) is there a mask that needs to be applied beforehand? ..22:43
cjwatsonlook at the map_keycode function in that scrape-console-setup program22:44
shtylman_k22:44
* shtylman_ admits he has never touched perl ... so this is an adventure22:45
cjwatsonthough, err, I can't remember how accurate that is, it only leaves you with one byte so can't be quite right22:45
cjwatsonthe kbd source might be a better place to look22:45
shtylman_hehe22:45
shtylman_ok...I get the idea...I think22:46
cjwatsonsorry, I last dealt with that level of stuff years ago22:46
shtylman_oh its ok...anything that gets me going in the right direction is something22:46

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