IRC log of #maemo for Sunday, 2017-07-30

*** xy2_ has quit IRC00:08
*** xy3_ has joined #maemo00:08
*** sleepee_ has joined #maemo00:12
*** err0r3o3 has joined #maemo00:12
*** drcode has quit IRC00:12
*** sleepee has quit IRC00:12
*** err0r3o3_ has quit IRC00:12
*** xy3_ is now known as xy2_00:19
*** Pali has joined #maemo00:46
*** Pali has quit IRC00:56
*** Wizzup has quit IRC00:58
*** Wizzup has joined #maemo01:02
*** xy2_ has quit IRC01:14
*** drcode has joined #maemo01:29
*** atk is now known as k01:46
*** k is now known as atk01:47
FalconSpyAnyone know how to get the power management to not show my fully charged battery as depleted via http://talk.maemo.org/showthread.php?t=96573?02:07
FalconSpyThe system shutsdown if I unplug the power02:07
FalconSpygot this in the logs02:09
FalconSpy[   22.991455] bq27xxx-battery 2-0055: battery is not calibrated! ignoring capacity values02:10
*** L29Ah has left #maemo02:14
*** deep-book-gk_ has joined #maemo02:32
ShadowJKDoes it instantly go dead?02:34
*** deep-book-gk_ has left #maemo02:35
FalconSpyShadowJK yea it instantly shuts down in the Kali OS despite it being 100% charged02:48
FalconSpyI guess I can do some normal battery calibration as if it was a laptop but was hoping it would just instinctively work02:49
FalconSpyor if there was something I can do on my end without doing standard calibrations02:49
*** Cor-Ai has quit IRC02:54
*** Cor-Ai has joined #maemo02:55
ShadowJKI'm not quite sure how it all works in Kali etc02:56
ShadowJKIn general a orderly shutdown commanded by the OS isn't instant02:56
ShadowJKRunning out of actual power tends to be quite instant02:56
*** mavhc has quit IRC03:05
*** NeKit has quit IRC03:09
FalconSpyWell as soon as the graphical interface loads it shutsdown if not connected to power03:09
FalconSpyIt just doesn't read thed actual batteries legitimate charge03:10
*** mavhc has joined #maemo03:11
ShadowJKAlright, that does sound like a problem with the OS not recognizing the charge level of the battery properly.03:12
FalconSpyIm toying with the power manager but might just try a different one03:13
*** at1as has joined #maemo03:45
*** dafox has joined #maemo03:59
DocScrutinizer05this is bullshit anyway, shutdown *allways* by voltage, not estimated available charge04:04
DocScrutinizer05power manager??04:05
DocScrutinizer05oooh THAT power manager. Yes it's designed for laptops with decent accurate battery capacity gauge. For N900 you must not use the estimated available capacity for system shutdown, it's not reliable enough04:12
DocScrutinizer05FalconSpy: ^^^04:13
FalconSpyDocScrutinizer05 so what do I use to deal with battery management04:16
FalconSpyI was using the built in Kali  xfce4-power-manager04:17
FalconSpyI'm seeing things like gapcmon (apcupsd)04:17
*** sleepee_ has quit IRC04:17
DocScrutinizer05no idea04:18
DocScrutinizer05never looked into kali linux04:19
FalconSpydoesnt have to be kali specific04:19
DocScrutinizer05first of all try to change percentage level for shutdown from 10% or whatever to 0%04:19
DocScrutinizer05please rephrase your question04:20
*** LauRoman|Alt has joined #maemo04:21
DocScrutinizer05battery management is done by kernel (and mainly by hardware) via bq24150 module04:22
DocScrutinizer05so you don't do anything about it04:22
FalconSpyMy question I guess is how can I get the battery manager to show an accurate charge04:22
DocScrutinizer05~bq27k-detail04:23
infoboti heard bq27k-detail is http://maemo.cloud-7.de/maemo5/usr/local/sbin/bq27k-detail2, or ~bq2704:23
*** LauRoman has quit IRC04:24
DocScrutinizer05~listvalues calibrate04:24
infobotFactoid search of 'calibrate' by value (8): tslib-xfbdev ;; calibratebq27200 ;; discovers that scribble pad ;; xcalibrate ;; xcalibrate source ;; oink ;; bq-calibrate ;; jargon speedometer.04:24
DocScrutinizer05~calibratebq2720004:24
infobotwell, calibratebq27200 is http://acehack.de/~kerio/calibratebq2720004:24
DocScrutinizer05FUH!04:24
FalconSpy^ dead link04:25
DocScrutinizer05thank god04:25
DocScrutinizer05~listvalues calibrate04:25
infobotFactoid search of 'calibrate' by value (8): jargon speedometer ;; bq-calibrate ;; tslib-xfbdev ;; calibratebq27200 ;; xcalibrate ;; oink ;; discovers that scribble pad ;; xcalibrate source.04:25
DocScrutinizer05~calibrate04:25
DocScrutinizer05damn!04:25
DocScrutinizer05~bq-calibrate04:25
infobotbq-calibrate is, like, http://maemo.cloud-7.de/maemo5/patches_n_tools/calibrate-bq27k.sh, or http://talk.maemo.org/showthread.php?p=124759504:25
DocScrutinizer05~forget calibratebq2720004:26
infobotDocScrutinizer05: i forgot calibratebq2720004:26
DocScrutinizer05note that calibrate-bq27k.sh only works via I2V with bq27200.sj in same dir04:27
DocScrutinizer05and won't work with kernel module taking care about batery management, since that needs other methods to stop charging04:28
DocScrutinizer05you *might* get away with replacing my "stop vme" by a "modprobe -r bq24150" or whatever the name, see lsmod. And "start bme" by a "modprobe bq24150"04:30
DocScrutinizer05s/vme/bme/04:31
infobotDocScrutinizer05 meant: you *might* get away with replacing my "stop bme" by a "modprobe -r bq24150" or whatever the name, see lsmod. And "start bme" by a "modprobe bq24150"04:31
FalconSpyhttp://http//maemo.org/packages/view/i2c-tools/ is a dead link04:31
DocScrutinizer05o.O04:31
FalconSpyor should this be ran inside maemo?04:31
FalconSpycause kali can't find i2c tools or any of those tools04:32
DocScrutinizer05no, should be an installable package from err tools or maemo.extras(-devel)04:32
FalconSpyMaemo's battery manager works fine04:32
FalconSpyIts the Kali one that's having issues04:32
DocScrutinizer05so?04:32
FalconSpySo is what you gave me going to help resolve the Kali one?04:33
DocScrutinizer05sorry I won't provide a calibration script for kali linux04:33
FalconSpyno worries04:33
DocScrutinizer05you will either have to adapt it by yourself, or run calibration under maemo04:33
DocScrutinizer05generally the whole tricj is to fully charge the battery, then discharge it until EVF voltage (some 3.24V iirc)04:35
DocScrutinizer05redo until total capacity (LMD) doesn't change anymore04:35
DocScrutinizer05there's also possibly still a bug in nq27xx.ko kernel module. It _never_ should report a calculated value for "design capacity", this is a constant that should be 1340mAh04:38
DocScrutinizer05bq27xx.ko04:38
DocScrutinizer05generally your power manager must not check available capacity from bq27xx but VOLTAGE for deciding when to shut down04:40
DocScrutinizer05so probably best is to not run such power manager at all04:40
DocScrutinizer05the kernel itself will do a brute force shutdown (though with trying to correctly flush and umount storage) when battery err system voltage reaches shutdown limit which iirc is 3.0V for OMAP/TWL403004:43
DocScrutinizer05it *might* be possible that bq24150.ko or bq27xx.ko also take care about shutdown, I don't know for sure04:46
DocScrutinizer05if that's the case, try modprobe -r bq27xx04:46
DocScrutinizer05get a fixed module04:46
DocScrutinizer05you might want to provide `modibfo bq27xx.sh` and ask Pali about details of operation of that module04:48
DocScrutinizer05modinfo*04:48
DocScrutinizer05it *should* not mess with system shutdown on its own, I guess04:49
DocScrutinizer05s/EVF/EDV0/04:50
*** dafox has quit IRC04:50
DocScrutinizer05nfc where from you got that garbled link, this works: http://maemo.org/packages/view/i2c-tools/04:52
DocScrutinizer05hint: should also run under arbitrary other linux systems on N90004:53
DocScrutinizer05get http://repository.maemo.org/extras-testing/pool/fremantle/free/i/i2c-tools/i2c-tools_3.0.2-1maemo3_armel.deb and install locally on your kali linux04:54
DocScrutinizer05FalconSpy: ^^^04:55
DocScrutinizer05my scripts should be mostly OS-afnostic anyway04:55
DocScrutinizer05credits where credit due: bq27200.sh is by ShadowJK04:56
FalconSpyso if i run your calibration through maemo it should hopefully show the correct charge % in kali?04:59
FalconSpyYour tool won't work since it is looking for armhf04:59
DocScrutinizer05yes05:01
DocScrutinizer05there's a CI (capacity incorrect) bit in that bat gauge chip that gets reset by calibration. I guess that's first culprit for your problems (after power manager doing the fundamentally wrong thing, to start with)05:03
DocScrutinizer05my tool looks for armhf? nope05:04
DocScrutinizer05i2ctools might05:04
FalconSpyhttps://pastebin.com/cN7N6TZ5 is the upower dump05:04
DocScrutinizer05no idea, what's that?05:05
FalconSpyTool that gives I guess the information about all sources of power05:05
DocScrutinizer05obviously it's defect then05:06
DocScrutinizer05I can't help fix defect kali linux tools05:06
DocScrutinizer05and please find a better pastebin, this one doesn't allow zooming the way too small text font05:10
*** at1as has quit IRC05:14
*** Natch has quit IRC05:15
*** at1as has joined #maemo05:15
DocScrutinizer05anyway that stuff is non-coherent: /org/freedesktop/UPower/devices/battery_bq27200_0 tells a bogus "energy-full:         7.91478 Wh"  (should be 3.x Wh) and "capacity:            100%"  (full)  at  "voltage:             3.788 V" which isn't bad but for sure not full05:16
DocScrutinizer05"state:               discharging" while /org/freedesktop/UPower/devices/battery_bq24150a_0 says "state:               charging"  -- not even the most braindead power manager should shut down device when it's charging05:18
DocScrutinizer05/org/freedesktop/UPower/devices/line_power_isp1704  says "online:              no" so not charging05:21
DocScrutinizer05and /org/freedesktop/UPower/devices/battery_rx51_battery is pretty much completely confused05:21
DocScrutinizer05also I'd think /org/freedesktop/UPower/devices/battery_rx51_battery would be mutually exclusive with /org/freedesktop/UPower/devices/battery_bq27200_0 in a few aspects, they both use same source of info, or at least should. For sure they report about same battery05:23
DocScrutinizer05that stuff evidently is pretty much messed up in kali linux, sorry05:24
*** at1as has quit IRC05:40
*** at1as has joined #maemo05:42
*** at1as has quit IRC05:46
*** at1as has joined #maemo05:46
*** at1as has quit IRC05:54
*** at1as has joined #maemo05:54
*** Natch has joined #maemo05:57
*** at1as has quit IRC06:29
*** Wizzup_ has joined #maemo08:03
*** Wizzup has quit IRC08:04
*** juiceme_ has quit IRC08:22
*** juiceme has joined #maemo08:23
*** juiceme is now known as Guest4941808:23
*** LjL has quit IRC08:23
*** LjL has joined #maemo08:24
*** xorly has joined #maemo10:10
*** LauRoman|Alt has quit IRC10:38
*** Pali has joined #maemo10:42
*** rysiek|pl has quit IRC11:48
*** xorly has quit IRC12:32
*** Pali has quit IRC12:35
*** mp107 has joined #maemo12:36
ShadowJKDefault maemo doesn't use the hardware battery fuel gauge chip really... That's why it works in stock maemo.13:01
bencoh?13:02
bencohyou mean it doesn't use the capacity reported by gasgauge13:02
ShadowJKAFter getting the hardware chip (bq27200) calibrated, it should provide reasonable data to other operating systems as well.. However, that it says 0 is quite peculiar, usually what happens is that you get over-estimation of capacity :)13:02
ShadowJKyes I mean that13:02
ShadowJKBut maybe the kernel modules and such just report 0 for "unknown"13:03
*** shentey has joined #maemo13:12
*** Pali has joined #maemo13:20
*** rysiek|pl has joined #maemo13:29
*** NotKit has joined #maemo13:31
*** xy2_ has joined #maemo13:33
*** TheKit has quit IRC13:35
*** Vajb has quit IRC13:52
*** xy2_ has quit IRC13:53
*** shentey has quit IRC13:56
*** shentey has joined #maemo13:56
*** Pali has quit IRC14:39
*** Pali has joined #maemo14:56
*** shentey has quit IRC15:07
*** shentey has joined #maemo15:07
*** Vajb has joined #maemo15:30
*** LjL has quit IRC16:06
*** LjL has joined #maemo16:10
*** shentey has quit IRC16:14
*** mavhc has quit IRC16:48
*** at1as has joined #maemo17:04
*** err0r3o3 has quit IRC17:17
*** err0r3o3 has joined #maemo17:19
*** at1as has quit IRC17:35
*** kalin has quit IRC17:51
*** xorly has joined #maemo17:54
*** xes has quit IRC17:56
*** xes has joined #maemo17:57
*** err0r3o3_ has joined #maemo18:02
*** err0r3o3 has quit IRC18:06
*** mp107 has quit IRC18:34
*** mavhc has joined #maemo18:49
PaliDocScrutinizer05: fm transmitter in n900 is doing something nasty, once I start it and it transmit some periodic beep19:38
Paliit can be detected only when n900 does not play any sound/music19:38
KotCzarnypali: it does it until you start playing something19:38
KotCzarnyi guess for making detecting n900 easier19:39
Palireally? I think I can detect that beep also when n900 play some music...19:39
KotCzarnywhat about when you play silence?19:39
PaliI will look into rtl-sdr dump what it is19:39
KotCzarnyor close to silence?19:39
KotCzarnyi think it stops then19:40
siceloi also thought the beeps were 'correct.' i don't recall hearing them during active transmission (and i used it today)19:48
sicelohttps://talk.maemo.org/archive/index.php/t-42766.html19:49
KotCzarnynice, i didnt know those beeps are configurable19:51
Palilooks like, yes beeps disappear when playing something19:52
Paliand there is something else with transmitter, it changes frequency in time by 2.8kHz offset19:53
bencohstrange19:54
KotCzarnymaybe that's that deviation param?19:54
Paliwhen I set to transmit at 105.8MHz then I see it in 105,8047MHz and frequency starts changing until it is 105,8016MHz19:56
Paliand after some time it changes back to 105,804... and I see in time graph that base frequency is really changing...19:57
KotCzarnysome spreadspectrum algo? or just bad design somewhere?19:57
Paliand I'm not able to see this problem in other FM transmitters, so it is for sure problem in n900 transmitter and not in my receiver19:57
sixwheeledbeast^I believe the beep is an intentional feature, after a while of beeping the fm transmitter is switched off. Like a standby mode.19:59
Palisee: https://imgur.com/a/eY5uq20:00
KotCzarnyit's not vertical line20:01
Paliyes20:01
Palimaybe n900 fm transmitter is not able to fix fm frequency??20:02
KotCzarny"good enough technology [tm]" ;)20:03
sixwheeledbeast^hmm, is that reproducible on multiple devices I wonder?20:04
sixwheeledbeast^What time period is that over?20:04
Palithat yellow dots are beeps20:05
Paliin the middle should be mono part of sound20:05
sixwheeledbeast^oh I see20:10
DocScrutinizer05sicelo: why the unbearable archive instead of https://talk.maemo.org/showthread?t=4276620:46
DocScrutinizer05Pali: FM channels are 50kHu wide in Germany, maybe 25kHz in USA (not sure). Anyway a 2.x kHz drift is irrelevant20:48
DocScrutinizer05or was it 100kHz in EU, 50kHz in USA?20:48
Paliseems that gnuradio and rtl_fm do not have a problem with 2kHz drift...20:49
Palibut it is normal?20:49
DocScrutinizer051kHz drift in 100MHz is 0.01 promille, not even TCOs can do that good20:50
Palithat picture of signal looks strange... it is not vertical line, nor continuous20:50
DocScrutinizer05non-issue20:52
DocScrutinizer05read the datasheet of FM-TX20:52
DocScrutinizer05I'm not sure which timebase/oscillator the chip uses, but for sure it's no specially temperature compensated oscillator, so drifts are expected20:55
DocScrutinizer05particularly when your N900 warms up during usage20:56
Paliok20:57
Palianyway, it is possible to use ordinary telescopic antenna for receiving CB?20:58
DocScrutinizer05sure21:01
DocScrutinizer05every walkietalkie does21:01
DocScrutinizer05but you can't use RTL dongle plus antemma stb, it starts at 5ßMHz iirc21:02
DocScrutinizer0550MHz21:03
DocScrutinizer05CB is 27MHz21:03
DocScrutinizer05so you want an antenna of at least 1m length, and elctrical inductive compensation21:04
*** stryngs_ has quit IRC21:05
Palirtl-sdr with R820T has range 24 – 1766 MHz with experimental 500 kHz – 28.8 MHz and up to 1864 MHz21:21
*** deep-book-gk_ has joined #maemo21:26
*** deep-book-gk_ has left #maemo21:28
DocScrutinizer05wow21:36
DocScrutinizer05500k - 28.8M is mere I/Q direct sampling, the results are questionable particularly for sensitivity21:37
DocScrutinizer05afaik21:37
DocScrutinizer05but for tests you can get away with it for sure, I.E. when the distance from your TX to RTL antenna are less than 1M21:38
DocScrutinizer051m*21:38
DocScrutinizer05generally sensitivity of rtl is a problem21:40
DocScrutinizer05then you also have poor mirror frequency suppression, and also problems with aliasing21:42
DocScrutinizer05input signal filtering in RTL is basically non-existent21:42
xes..antenna connector, clock drift, temperature..21:43
DocScrutinizer05yeah, well it costs like 10 bucks, what do you expect?21:43
xesin fact, noelec version fixes many of the problems21:45
*** MetalGearSolid has quit IRC21:50
*** MetalGearSolid has joined #maemo21:54
*** pagurus has joined #maemo22:05
*** xy2_ has joined #maemo22:05
*** pagurus` has quit IRC22:05
DocScrutinizer05ok, I stand corrected. http://www.rtl-sdr.com/wp-content/uploads/2013/04/R820T_datasheet-Non_R-20111130_unlocked1.pdf says it gas input filter with image rejection of 65dBc22:09
DocScrutinizer05has*22:09
DocScrutinizer05so >>input signal filtering in RTL is basically non-existent<< is an incorrect statement22:14
*** CcxWrk has quit IRC22:49
DocScrutinizer05LOL!  Opensuse bash does autocompletion from "scp x1 neo900:/ho" to "scp x1 neo900:/home/" and then on to the actually existing user homedirs - heck this does indeed use stealth remote login to destination to autocomplete23:08
Paliubuntu is doing same for a longer time23:13
Paliit is great when user has configured ssh-agent in -c mode :D23:14
Palievery tab autocompletion is subject to manual confirmation of usage of ssh key...23:14
DocScrutinizer05LOL23:24
DocScrutinizer05may I quote you?23:24
*** florian has joined #maemo23:46
DocScrutinizer05less +'/_scp_remote_files()' /usr/share/bash-completion/completions/scp23:47
*** dafox has joined #maemo23:55
DocScrutinizer05I guess the lines like "files=$( ssh -o 'Batchmode yes' $userhost ..." could use some watchdog to catch ssh locking up during log in23:55
DocScrutinizer05seen this more than once23:56
*** deep-book-gk_ has joined #maemo23:56
*** deep-book-gk_ has left #maemo23:59

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