*** lizardo has quit IRC | 00:03 | |
*** dafox has quit IRC | 00:07 | |
*** Pali has quit IRC | 00:14 | |
*** int_ua has joined #maemo-ssu | 00:44 | |
*** int_ua has quit IRC | 00:48 | |
*** trbs has quit IRC | 01:36 | |
*** freemangordon_ has quit IRC | 01:40 | |
*** freemangordon_ has joined #maemo-ssu | 01:57 | |
*** freemangordon_ has left #maemo-ssu | 01:59 | |
DocScrutinizer | pali sucks, my tab nick-completion never works for him | 02:39 |
---|---|---|
DocScrutinizer | well, could be worse, he could have a nick like freemangordon | 02:39 |
DocScrutinizer | ;-P | 02:39 |
freemangordon | haha, very funny :p | 02:40 |
DocScrutinizer | hihihi | 02:40 |
*** Raimu-Z has quit IRC | 03:04 | |
*** Raimu-Z has joined #maemo-ssu | 03:05 | |
*** arcean has quit IRC | 03:09 | |
*** KrayonWork has joined #maemo-ssu | 03:16 | |
*** nox- has quit IRC | 03:31 | |
*** javispedro has quit IRC | 04:19 | |
*** M4rtinK has quit IRC | 04:23 | |
merlin1991 | hm wft http://talk.maemo.org/showpost.php?p=1190291&postcount=161 | 04:32 |
merlin1991 | I think he kinda missed the first post of the stable thread | 04:33 |
*** Raimu-Z has quit IRC | 04:43 | |
*** Raimu-Z has joined #maemo-ssu | 04:45 | |
merlin1991 | srly that post made me want to rage | 05:22 |
* Lava_Croft hands merlin1991 a stressball | 05:33 | |
merlin1991 | hehe thanks :) | 05:36 |
*** amiconn_ has joined #maemo-ssu | 05:40 | |
*** amiconn has quit IRC | 05:40 | |
*** amiconn_ is now known as amiconn | 05:40 | |
*** MohammadAG has quit IRC | 06:46 | |
*** MohammadAG has joined #maemo-ssu | 06:47 | |
*** LinuxCode has joined #maemo-ssu | 06:48 | |
*** psycho_oreos has joined #maemo-ssu | 08:09 | |
*** Pali has joined #maemo-ssu | 08:39 | |
*** dafox has joined #maemo-ssu | 09:50 | |
*** DocScrutinizer has quit IRC | 09:57 | |
*** DocScrutinizer has joined #maemo-ssu | 09:57 | |
*** BCMM has joined #maemo-ssu | 11:55 | |
*** arcean has joined #maemo-ssu | 13:01 | |
*** lizardo has joined #maemo-ssu | 13:43 | |
*** arcean_ has joined #maemo-ssu | 14:30 | |
*** arcean has quit IRC | 14:34 | |
Lava_Croft | it is a cruel world where your phone contract is nearly over and there is no single device on the market that you desire to get in combination with a new contract | 14:49 |
guly | i'd go with newer iphone, just to regret 9500 communicator | 14:51 |
Lava_Croft | my wife has an iphone, thats enough for me | 14:52 |
Lava_Croft | i only use it to check games | 14:52 |
Lava_Croft | besides, the OS is no option | 14:52 |
Lava_Croft | same with android :\ | 14:52 |
Lava_Croft | ill just scurry off and cry some more | 14:52 |
DocScrutinizer | get N900 in good condition, maybe offer to swap for $random-phone from your contract | 15:24 |
guly | what about n950 ? | 15:25 |
DocScrutinizer | there's definitely no substitute or successor for N900 | 15:25 |
DocScrutinizer | even n950 sucks, I don't use it at all | 15:26 |
guly | good devices always die alone | 15:26 |
Lava_Croft | i have 2 n900s already | 15:27 |
Lava_Croft | but they are slow | 15:27 |
Lava_Croft | i was just a bit whining about how there is no real replacement | 15:27 |
guly | i had to wait 6 years after selling my 9500communicator | 15:28 |
Lava_Croft | 5510 here | 15:29 |
Lava_Croft | n900 replaced it | 15:29 |
*** LinuxCode has quit IRC | 15:34 | |
DocScrutinizer | guly: I gather you'll get enough n900 for the next 6 years | 15:57 |
guly | i'll do for sure | 15:59 |
*** BCMM has quit IRC | 16:01 | |
*** BCMM has joined #maemo-ssu | 16:15 | |
*** M4rtinK has joined #maemo-ssu | 16:19 | |
*** BCMM has quit IRC | 16:54 | |
*** BCMM has joined #maemo-ssu | 16:57 | |
*** sigkill_ has joined #maemo-ssu | 17:18 | |
*** NIN101 has joined #maemo-ssu | 18:06 | |
*** dafox has quit IRC | 18:44 | |
*** BCMM has quit IRC | 18:48 | |
*** M4rtinK has quit IRC | 18:52 | |
*** M4rtinK has joined #maemo-ssu | 19:07 | |
*** dafox has joined #maemo-ssu | 19:20 | |
*** dafox is now known as Guest4033 | 19:21 | |
freemangordon | DocScrutinizer, Pali ping | 19:34 |
Pali | freemangordon, pong | 19:34 |
freemangordon | Pali, i am chasing the bug with mmc rename in filemanager | 19:34 |
freemangordon | are you aware of it? | 19:34 |
Pali | I did not looked at that bug | 19:35 |
freemangordon | well, if you rename a fat partition using filemanager, the voluma label is changed, but even HAL knows nothing about new label and keeps the old one. a reboot is needed so new label to appear correctly | 19:36 |
*** int_ua has joined #maemo-ssu | 19:36 | |
freemangordon | myu question si - could anyone give me some hint where to start from :) | 19:36 |
Pali | so hal does not update label? | 19:37 |
freemangordon | s/myu question si/my question is/ | 19:37 |
infobot | freemangordon meant: my question is - could anyone give me some hint where to start from :) | 19:37 |
freemangordon | yep | 19:37 |
freemangordon | remains the old one | 19:37 |
Pali | try to run partprobe ioctl on mmc device | 19:37 |
Pali | hal then should reread partitions from /dev/ | 19:37 |
Pali | and I belive then it update also label | 19:38 |
freemangordon | but the voulume is re-mounted | 19:38 |
freemangordon | by ke-recv afaik | 19:38 |
Pali | who is renaming label? | 19:39 |
Pali | ke-recv? | 19:39 |
freemangordon | yep | 19:39 |
freemangordon | using mmc-rename.sh | 19:39 |
Pali | see this: https://bugs.freedesktop.org/show_bug.cgi?id=10363 | 19:40 |
povbot | Bug 10363: signature problem | 19:40 |
Pali | shut up povbot! | 19:40 |
Pali | maybe hal really does not suppot it | 19:40 |
freemangordon | hmm, could we hack it with some hal_set_property? | 19:41 |
freemangordon | from ke-recv | 19:41 |
Pali | no idea | 19:41 |
Pali | I think we could really use something to force hal to reread part info | 19:42 |
freemangordon | Pali, what is strange is that the volume is unmounted first and the mounted | 19:42 |
freemangordon | so HAL should remove the device and re-add it | 19:42 |
freemangordon | AIUI | 19:43 |
freemangordon | could be a problem in ke-recv not unmounting the correct volume? | 19:43 |
DocScrutinizer | try partprobe | 19:43 |
Pali | freemangordon, why mmc-rename.sh using mlabel? | 19:44 |
Pali | I think it should use dosfslabel | 19:44 |
freemangordon | by historical reasons :D | 19:44 |
Pali | mlabel has stupid windows drive configuration in /etc/mtools.conf | 19:44 |
freemangordon | yep, but mtools are used everywhere from what I saw | 19:45 |
freemangordon | something to do with USB | 19:45 |
freemangordon | mass storage mode | 19:45 |
DocScrutinizer | ??? | 19:45 |
Pali | also mtool support only fat | 19:45 |
Pali | and also only drives configured in /etc/mtools.conf | 19:46 |
freemangordon | I know, right now we cannot ranme other filesystems using filemanager :D | 19:46 |
Pali | I think that script should be changed to use dosfslabel and e2label | 19:46 |
Pali | [fs]label programs has same syntax | 19:46 |
freemangordon | agree, but lets fix what is broken before doing that | 19:47 |
Pali | freemangordon, try to run partprobe after renaming label | 19:47 |
Pali | also partx | 19:47 |
Pali | if this fixing hal problem | 19:48 |
* DocScrutinizer throws up a little at /usr/sbin/mmc-rename.sh | 19:48 | |
freemangordon | no such things here, my busybox is not so fancy as yours :D | 19:48 |
DocScrutinizer | (me suggests echo partprobe >> /usr/sbin/mmc-rename.sh nevertheless | 19:49 |
*** Guest4033 has quit IRC | 19:49 | |
freemangordon | no partprobe here | 19:49 |
Pali | partprobe and partx calling some syscall | 19:49 |
DocScrutinizer | o.O | 19:49 |
Pali | yes, maemo5 has no partprobe .... | 19:50 |
freemangordon | no partx | 19:50 |
Pali | I see now | 19:50 |
Pali | seems that messybox is more messy now :D | 19:50 |
DocScrutinizer | yup, no partprobe | 19:50 |
DocScrutinizer | :-/ | 19:50 |
freemangordon | hmm, a the remount should do the trick | 19:50 |
DocScrutinizer | nope | 19:51 |
DocScrutinizer | remount is one level above what you need | 19:51 |
freemangordon | but volume labels are not in poartition table AFAIK | 19:52 |
* freemangordon is going to ask google | 19:55 | |
DocScrutinizer | volume labels are read when the fs type of partition gets scanned, afaik. Also it seems I recall you label partitions in (*)fdisk | 19:58 |
freemangordon | hmm, remember DOS format? | 19:59 |
DocScrutinizer | cfdisk has [label} | 19:59 |
DocScrutinizer | for each partition | 20:00 |
DocScrutinizer | I conclude: part labels are related to part table | 20:00 |
freemangordon | it was asking for volume label at the end, so label is on volume level, and is stored in 1st sector(of the volume), not in partition table IIRC | 20:00 |
DocScrutinizer | hmmm | 20:01 |
DocScrutinizer | dd if=/dev/mmcblk1p1 bs=256 count=1|od -c | 20:02 |
freemangordon | yep, confirmed | 20:05 |
freemangordon | no need to re-read partition table | 20:05 |
DocScrutinizer | you're right, no partition name in MBR | 20:06 |
DocScrutinizer | volume-labels are primary domain of (mk|tweak)fs | 20:08 |
DocScrutinizer | still they are in partition's sector 0 and thus rather low level | 20:09 |
DocScrutinizer | anyway, depending on what's your error, you need to do the right rereading, and of course you should umount the volume prior to editing label | 20:10 |
*** andre__ has joined #maemo-ssu | 20:10 | |
*** andre__ has joined #maemo-ssu | 20:10 | |
DocScrutinizer | freemangordon: see blkid, it doesn't care about mounts at all and only knows phynames. still it knows about volume-labels | 20:11 |
DocScrutinizer | use blkid -g and/or blkid -c /dev/null to check if kernel has noticed your label renaming | 20:12 |
DocScrutinizer | if it hasn't, you'll need partprobe, I guess | 20:13 |
DocScrutinizer | if it knows new label (in blkid), then a remount might suffice | 20:13 |
freemangordon | blkid knows about label change | 20:14 |
freemangordon | without any arguments | 20:14 |
DocScrutinizer | don't use blkid without arguments, it's bogus output | 20:14 |
freemangordon | it is ok | 20:14 |
DocScrutinizer | no it's not | 20:15 |
freemangordon | it shows the correct label for FAT partition on sd card | 20:15 |
DocScrutinizer | see 24h backscroll | 20:15 |
freemangordon | yeah | 20:15 |
freemangordon | i know that it caches volumes | 20:15 |
freemangordon | but it seems smart enough to spit the correct volume labels | 20:15 |
DocScrutinizer | mere incidence | 20:16 |
freemangordon | i.e. not the cached ones | 20:16 |
freemangordon | whatever | 20:16 |
*** int_ua has quit IRC | 20:16 | |
freemangordon | so, kernel knows about changed volume label, it seems there is something wrong with th remount | 20:16 |
freemangordon | let me try to remount by hand | 20:16 |
DocScrutinizer | you're free to check your blkid cache and see when and how it changes | 20:16 |
DocScrutinizer | or you simply trust in blkid -g | 20:17 |
*** psycho_oreos has quit IRC | 20:17 | |
freemangordon | DocScrutinizer, i've changed volume label just before running blkid, and it showed me the new one, that is pretty enough for me | 20:17 |
DocScrutinizer | I dunno if a remount is even possible when file handles are open to the volume | 20:17 |
freemangordon | nothing is open | 20:18 |
freemangordon | i'll do unmount/mount | 20:18 |
freemangordon | not mount - remount | 20:18 |
freemangordon | not mount -o remount | 20:18 |
DocScrutinizer | freemangordon: I'm getting bored by your argumentation of "what I see is what I expected, so I don't bother if what I see is correct" | 20:18 |
freemangordon | DocScrutinizer, not helping much. And TBH i was expecting blkid to give me the cached labal. | 20:19 |
freemangordon | hmm, hal shows the volume even if unmounted, with the old volume label, after all it seems hal_set_property is unavoidable :( | 20:22 |
DocScrutinizer | that's why umount is done via ke-recv | 20:23 |
freemangordon | you mean? | 20:23 |
freemangordon | didn't understand why? | 20:23 |
DocScrutinizer | think about removing battery lid | 20:24 |
DocScrutinizer | what's happening in system? | 20:24 |
freemangordon | forced unmount of sd card | 20:25 |
freemangordon | AFAIK | 20:25 |
DocScrutinizer | why doesn't hal show uSD after opening bat lid? | 20:25 |
*** Pali has quit IRC | 20:27 | |
freemangordon | iirc there was a hck in kernel nadling the situation by unloading the device | 20:28 |
freemangordon | but it is different case here | 20:29 |
DocScrutinizer | you're sure about it's any different? | 20:29 |
freemangordon | I think so, we are only re-mountn a volume, but mmc device does not change in any way | 20:30 |
freemangordon | however, I will try to do hal-set-property and will report if it helps | 20:30 |
DocScrutinizer | it for sure helps | 20:31 |
DocScrutinizer | the question is, will it fix the root problem? | 20:32 |
freemangordon | no | 20:34 |
ShadowJK | could someone summarize the problem? | 20:34 |
freemangordon | I am not sure if there is such thing like hal-volume-monitor, but if there is, the problem might be there | 20:34 |
freemangordon | ShadowJK, if you rename a volume in filemanager, the new volume name to show you need to reboot the device | 20:35 |
ShadowJK | did this work in fremantle? | 20:35 |
freemangordon | we are talking about fremantle | 20:35 |
DocScrutinizer | ShadowJK meant did it work on stock fremantle | 20:36 |
DocScrutinizer | and tbh I doubt it works on my openSuse11 PC | 20:37 |
DocScrutinizer | ShadowJK: the question is: when is who reading the volume labels? | 20:44 |
DocScrutinizer | what needs to be done to retrigger this procedure? | 20:44 |
DocScrutinizer | I gather partprobe is doing exactly that | 20:45 |
* ShadowJK wonders if maemo 1.0 was begun before blkid | 20:45 | |
DocScrutinizer | a derived probelm is: when and why is hal reading the volume labels, and from where? | 20:46 |
freemangordon | :nod: | 20:46 |
ShadowJK | in a normal linux distro, from before hal was killed, would be getting info about new drives and cards from hal | 20:47 |
ShadowJK | and ask hal to mount/umount | 20:47 |
DocScrutinizer | of course you can fix the hal problem by "hacking" hal, by sending a explicit update for a particular label, you even can make hal think the label is "mickeymouse" | 20:47 |
DocScrutinizer | indeed. On maemo though I guess ke-.recv is doing the (u)mount | 20:48 |
DocScrutinizer | [2012-04-11 19:23:25] <DocScrutinizer> that's why umount is done via ke-recv | 20:49 |
DocScrutinizer | see ke-recv-test | 20:49 |
DocScrutinizer | ob - open battery cover signal / f - format device <arg> / r - rename device <arg> / (e - check device <arg>)? / m - enable USB mass storage | 20:51 |
*** dafox has joined #maemo-ssu | 21:03 | |
*** dafox is now known as Guest60032 | 21:03 | |
*** andre__ has quit IRC | 21:06 | |
*** Guest60032 has quit IRC | 21:08 | |
*** Pali has joined #maemo-ssu | 21:08 | |
*** trbs has joined #maemo-ssu | 21:08 | |
*** dafox__ has joined #maemo-ssu | 21:15 | |
*** trbs has quit IRC | 21:16 | |
*** dafox__ is now known as dafox | 21:17 | |
*** trbs has joined #maemo-ssu | 21:17 | |
freemangordon | DocScrutinizer,Pali: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510001 | 21:31 |
freemangordon | seems after all we should inform hal from ke-recv :) | 21:31 |
*** dafox has quit IRC | 21:32 | |
Pali | yes, I wrote that hal did not updating label | 21:34 |
Pali | and seems that method Rescan sounds like good solution | 21:35 |
DocScrutinizer | I'd guess quite a number of tools already call rescan() | 21:37 |
DocScrutinizer | particularly partprobe seems worth looking at it, also ke-recv | 21:38 |
*** dafox has joined #maemo-ssu | 21:40 | |
freemangordon | ke-recv does not call libhal_device_rescan | 21:40 |
DocScrutinizer | rather unfortunate | 21:42 |
freemangordon | we will make it :) | 21:42 |
DocScrutinizer | It seems to me we should include `hal-disable-polling' at beginning, and `hal-disable-polling --enable-polling' at end of /usr/sbin/mmc-rename.sh | 21:48 |
DocScrutinizer | might do exactly what we need | 21:48 |
freemangordon | will check what exactly hal-disable-polling does | 21:50 |
freemangordon | however we don't need the whole hal database re-scaned, so a programatic call to libhal_device_rescan would suit better | 21:51 |
DocScrutinizer | man hal-disable-polling - has some nice general discussion about (removable) storage devices | 21:55 |
DocScrutinizer | probably even the opposite approach is more correct: enable polling before unmounting, then unmount, rename, mount, disable polling | 21:56 |
DocScrutinizer | we don't need constant polling on non-removable devices | 21:57 |
freemangordon | well, might work, but my concern is that it would be a little bit less effective re battery consumtion | 21:57 |
DocScrutinizer | of course an explicit hal-set-property from within that /usr/sbin/mmc-rename.sh might do as well | 21:57 |
freemangordon | than a single call to rescan | 21:57 |
DocScrutinizer | freemangordon: how's battery affected by a temporary action? | 21:58 |
freemangordon | DocScrutinizer, no need this to be done through script, ke-recv already talks to hal | 21:58 |
freemangordon | by a little bit :) | 21:58 |
freemangordon | but still | 21:58 |
freemangordon | anyway, I think we have the reason and the solution, thanks | 21:59 |
DocScrutinizer | I'd agree leaving polling enabled is something that could impact battery massively | 21:59 |
DocScrutinizer | btw this friggin /usr/sbin/mmc-rename.sh is (c)2007 :-S | 22:00 |
Pali | see git log | 22:01 |
freemangordon | :D nice | 22:01 |
DocScrutinizer | seems like it could use a major rewrite | 22:01 |
Pali | sometimes nokia did not extended copyright | 22:01 |
DocScrutinizer | Pali: they'd have if they had changed *anything* in this fsckdup code | 22:01 |
DocScrutinizer | which btw is the explanation why it is using ancient crap like L=`eval grep '\"$DEV\"' /etc/mtools.conf | awk '{print $2}' | sed 's/://'` | 22:02 |
DocScrutinizer | ShadowJK's suspicion it might date from before blkid got invented seems rather correct | 22:03 |
DocScrutinizer | echo "$0: could not determine drive letter" | 22:05 |
DocScrutinizer | OMG | 22:05 |
DocScrutinizer | [2012-04-11 18:46:28] <Pali> I think that script should be changed to use dosfslabel and e2label | 22:09 |
DocScrutinizer | ^^^me agrees | 22:09 |
DocScrutinizer | bwahaha look into /etc/mtools.conf | 22:14 |
*** Pali has quit IRC | 22:22 | |
*** NIN101 has quit IRC | 22:34 | |
*** javispedro has joined #maemo-ssu | 22:45 | |
DocScrutinizer | FSTYPE=$(echo $(blkid -c /dev/null -s TYPE $1|sed 's@.*TYPE="\(.*\)"@\1@')); case $FSTYPE in vfat) echo "do dosfslabel $2 here";; ext2|ext3) echo "do e2label $2 here";; *) echo "unknown filesystem:>$FSTYPE<";; esac; | 22:49 |
DocScrutinizer | ^^^ use that as template for a new better /usr/sbin/mmc-rename.sh | 22:50 |
DocScrutinizer | FSTYPE=$(blkid -c /dev/null -s TYPE $1|sed 's@.*TYPE="\(.*\)" @\1@'); case $FSTYPE in vfat) echo "do dosfslabel $2 here";; ext2|ext3) echo "do e2label $2 here";; *) echo "unknown filesystem:>$FSTYPE<";; esac; | 22:56 |
DocScrutinizer | even | 22:56 |
DocScrutinizer | maybe even | 22:57 |
DocScrutinizer | FSTYPE=$(blkid -c /dev/null -s TYPE $1|sed 's@.*TYPE="\(.*\)" *@\1@'); case $FSTYPE in vfat) echo "do dosfslabel $2 here";; ext2|ext3) echo "do e2label $2 here";; *) echo "unknown filesystem:>$FSTYPE<";; esac; | 22:57 |
DocScrutinizer | check $1 is non-empty; add proper return code after echo "unknown..." | 22:59 |
DocScrutinizer | o/ | 23:03 |
* DocScrutinizer ->dinner | 23:03 | |
*** Pali has joined #maemo-ssu | 23:11 | |
*** s1gk1ll has joined #maemo-ssu | 23:19 | |
*** sigkill_ has quit IRC | 23:20 | |
DocScrutinizer | http://maemo.cloud-7.de/maemo5/usr/sbin/mmc-rename.sh | 23:31 |
*** nox- has joined #maemo-ssu | 23:31 | |
DocScrutinizer | might still need a bit of polishing | 23:31 |
freemangordon | thanks, i am just going to test the Rescan() thing | 23:32 |
*** dafox has quit IRC | 23:38 | |
Pali | DocScrutinizer, why to use blkid for detecting fstype? We can pass $3 from ke-recv | 23:50 |
Pali | also e2label working fine for ext4 too | 23:50 |
freemangordon | Pali, there is a critical bug in ke-recv, if you try to format a prtition on external sd card through filemanager, it will always format the first partition :( | 23:52 |
freemangordon | the same with rename | 23:53 |
freemangordon | the udi passed to hendler functions is NULL | 23:53 |
freemangordon | *handles | 23:53 |
freemangordon | damn | 23:53 |
freemangordon | handler | 23:53 |
Pali | uff, ok | 23:53 |
Pali | at least we know where is problem | 23:53 |
freemangordon | https://gitorious.org/community-ssu/ke-recv/blobs/master/src/ke-recv.c#line439 | 23:54 |
freemangordon | https://gitorious.org/community-ssu/ke-recv/blobs/master/src/ke-recv.c#line377 | 23:54 |
freemangordon | so volume_get_num and respectively get_nth_volume will always return "preffered" volume, whichever it is | 23:56 |
freemangordon | Pali, know if there exists a helper function to ge udi from device id? | 23:57 |
freemangordon | *get | 23:57 |
Pali | freemangordon, I do not know now - I'm going to sleep... | 23:58 |
Pali | I will look at it later - tomorrow | 23:59 |
freemangordon | :) | 23:59 |
freemangordon | ok, I will fix it | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!