libera/#maemo/ Tuesday, 2024-07-30

FatPhiljoerg: from a couple of days of use it seems like the g/f's phone is happy with wifi disabled and connection to cellular data via a dbus command11:39
joerggood11:41
joergwhat's wrong with simply disabling WiFi?11:42
FatPhilthis may sound silly, but how do you disable wifi?12:43
KotCzarnylol12:44
FatPhilin the words of some fucking wankers "it's supposed to be a connected device"12:44
KotCzarnyhave you ever read instruction manual that came with your device?12:44
FatPhilI never had an instruction manual!12:44
KotCzarnyhttp://nds1.webapps.microsoft.com/phones/files/guides/Nokia_N900_UG_en.pdf12:45
FatPhilI think one of our n950s has a box, but none of the n900s ever have. Which means I'm annoyingly short of the video cables12:45
FatPhil(i.e. 0 presently)12:45
KotCzarnyvideo cables are dirt cheap and generics will work (beside wrong colors etc)12:46
KotCzarnygolden times of analog cables12:46
FatPhilI see nothing in that manual about disabling wifi.12:48
Maxdamantusand possibly other forms of quality degradation (not sure how much it matters with N900/component/composite, but it's definitely a thing with "VGA" vs "XGA" cables)12:48
joergFatPhil: let me reproduce this...12:52
KotCzarnyi've always thought that disconnecting from active wifi ap disabled wifi12:58
KotCzarnyand n900 wouldnt automatically scan/reconnect12:58
KotCzarnyotoh if it disconnected because of poor signal etc, it would try to reconnect12:59
joergFatPhil: you open config dialog (I got a desktop icon for that), there you find a "internet connection", for me it's bottom left in this pic https://i.imgur.com/6tzmrHs.jpeg. There you find cellular as connection, with an option "[_]switch to WLAN of available" which you want to UNcheck13:02
joergthe config dialog is NOT the power button / click-systray requester!13:04
joergFatPhil: https://i.imgur.com/KonNFDz.jpeg13:12
sixwheeledbeastyer I always assumed you, select your data connection and then unchecked the switch to wifi button. this disables the search interval13:13
joergthis search interval is also the culprit for periodic (every 10min for example) BT audio dropouts13:14
joerg*unless* you're connected to an AP and so no search needed13:15
joergalso WLAN search/scan is a massive power hog13:15
joergthe root "control dial" is the "always ask | WLAN | <cellular> | any" menu13:18
joergit's a tad awkward and obscure, but once you got a catch on it, it's very nice13:19
KotCzarnycould be i forgot about that checkbox13:23
KotCzarnyi always disable automatic scans on all mobiles i have13:24
FatPhil"[_]switch to WLAN of available" is greyed out (and unchecked)13:27
FatPhilBut as soon as the "Internet connections" is pulled down from the status bar, it scans wifi - therefore wifi ain't disabled.13:28
KotCzarnybecause you request it by pulling internet connections13:28
KotCzarny:)13:28
FatPhilPlease put a dunce cap on that smiley13:28
KotCzarny3:)13:29
FatPhilThe original problem was "how to connect to cellular data without going via that menu", as a workaround for broken wifi.13:29
FatPhilAnd are you sure it's disabled, or just not connected?13:29
KotCzarnydo you have ssh and gsm connection?13:30
KotCzarnyssh server on n90013:30
FatPhilno server, afaik13:30
KotCzarnyxterm could do too i guess, but i always find ssh easier13:30
KotCzarnycheck if wlan interface is up13:30
KotCzarnyanother way to check would be comparing power usage13:31
FatPhilthis ain't about interfaces, this is about power domains13:35
KotCzarnyusually driver disables chip if interface is down13:35
FatPhilthat would be wise13:36
KotCzarnyi dont remember if bt is separate or part of wlan chip13:37
FatPhilwe almost never use bt, always disabled except for the instant of a xfer13:37
joergbt is part of wlan chip13:41
FatPhilyup, maybe even some other rf stuff on it too13:41
joergFatPhil: to start with, you could select "always ask" in https://i.imgur.com/KonNFDz.jpeg and delete all preconfigured WLAN connections13:42
sicelofm radio receiver13:42
joerginstall opensshd13:43
sicelobt is not in wlan. it's a broadcom. wlan is TI13:43
joergooooh right, sorry, just connected to WLAN chip via the "coexistence" lines13:44
siceloyeah13:44
joergBT and FM radio are same chip iirc13:44
siceloyea, they are13:44
siceloand annoyingly the fm, although having standalone i2c lines, can only be enabled via a BT packet13:46
joergyes13:46
FatPhiljoerg: already at "always ask". But the status menu will still start a scan when you head for the cellmo13:46
joergthen select a cellular connection and uncheck the "[_]use WLAN if available"13:47
joergmy cellular is O2 LOOP13:47
FatPhilyup, but it's too late, the wifi chip is up and spinning at that point and burning the battery13:48
siceloFatPhil: if you don't want it to even scan, sounds like you need to rmmod the driver13:48
joergno, not really needed13:48
joergafaik13:48
joergit even might break the ICD, no?13:49
KotCzarnyhmm13:49
FatPhilrmmoding the driver is what I meant by "happy with wifi disabled"13:49
KotCzarnyshouldnt wifi respond to rfkill?13:49
siceloi mean in connection with the scan that's initiated when status menu is in view13:49
KotCzarnyor n900 is too old to have that13:49
joergsigh13:49
FatPhilg/f did see some complaints on fora/wiki about rmmod causing the system to get confused, but she's been running 2 days without any problems now.13:50
joergsicelo: yes, fair enough. But why would you want to disable that?13:50
joergrmmod will confuse the system (ICD, I guess) the very moment ICD wants to start a scan13:52
sicelobtw it's closed?13:52
joergwhen you tell ICD(?) to "always use GSM, never scan for WLAN, never ask" then it should just work, no matter if kernel module loaded or not13:53
FatPhil"internet connections" -> "disable cellular" works fine with wifi rmmodded13:53
joergerr wut?13:53
joergsorry, in a hurry, bbl13:54
FatPhilICD isn't trying to start a scan any more, it seems13:54
FatPhilnow the module's rmmodded.13:54
FatPhilhowever, we've not checked to see if the battery drain problem has started again, I guess we'll know in a few hours13:55
joergwhat's the purpose of the whole exercise?14:00
joergtoldya WLAN chip is a power hog when scannong, that's why you select a possibly "very long" period of e.g. 10 minutes between scans. But it only scans when you a) have it configured to do so AND are not connected to an AP, or b) you open the internet connection dialog14:02
joergwhen you configure the device to never connect to WLAN, it will not even start scanning (maybe not even load the wl1351(?) kernel module) any time, unless you open a "chose internet connection" dialog somewhere14:04
KotCzarnyscreen is bigger hog anyway14:07
joergno actually not14:09
joergunless you mean the "1pixel constant up/down bounce" bug in the desktop14:10
KotCzarnyi mean screen backlight14:11
joergthe screen backlight iirc is lower max power than the wlan chip RX monster14:12
joergscanning really is insane14:12
KotCzarnythen i have never experienced it14:14
KotCzarnyalways it was the screen that was sucking the most (when connected to ap and no scan)14:15
FatPhiljoerg: purpose of exercise is to get a bit more life out of a unit with a broken wifi.14:17
KotCzarnyexternal power bank?14:18
FatPhilrmmod wl1251 seems to be the more lightweight solution14:19
joergagain, I don't see why you want to rmmod wl1251, despite reports that it might (and I guess, occasionally _will_) "confuse the device"14:24
KotCzarnyas long it works, in the worst case reboot fixes14:27
KotCzarnyimo, better would be doing some power drain tests14:27
KotCzarnywith any method discussed14:27
FatPhiljoerg: because everything apart from rmmod seems to lead to the "internet connections" status menu spinning and draining battery.14:57
joergno14:58
FatPhilyes14:59
FatPhil"configure the device to never connect to WLAN" isn't a thing14:59
joergwell, then your system is differently configured than mine14:59
FatPhilthis is stock15:01
FatPhilnone of the images you linked to contain a "never connect to WLAN" scenario.15:02
FatPhilthey contain "don't *automatically* connect", but that's completely different.15:03
joergmy system has "automatically connect to: <GSM/cellular>" and "[_] use WLAN if available"15:03
joerg"never connect to WLAN" scenario == "automatically connect to: <GSM/cellular>" and "[_] use WLAN if available"15:04
FatPhilthat's what I'm saying. "don't ever" and "don't automatically" are completely different concepts.15:04
joergsorry, no idea what's the problem15:06
KotCzarnyclosest is 'dont ever enable any form of wlan chip activity'15:11
joerg"don't ever connect to internet" = "airplane mode". "don't ever connect to *WLAN* but connect to Internet via GSM" = "automatically connect to <mobile carrier>" + "[DONT] switch to WLAN if available" + ``do not open the "networks" dialog which implicitly starts scanning for available WLAN APs´´  ==>> The device will automatically connect to GSM data and never will care about scanning WLAN18:57
joergWHEN it starts scanning WLAN because _you opened_ the "select which connection you want to use" dialog, then AOIO it will stop that scanning imediately as soon as you close that dialog again19:01
joergAIUI*19:02
WizzupThe definition of airplane mode has changed over time unfortunately, the Maemo 'Offline' mode is not quite like airplane mode19:18
WizzupAirplane mode these days means offline the modem, but keep wifi and bluetooth ON19:19
joergthat's "tablet mode" in N900 maemo-fremantle. Option19:30
joergWizzup: you're right, it's named "Offline-mode" (here in my powerbutton-menu):  https://i.imgur.com/7KUHShs.jpeg  means "all transmitters off"19:41
joergso that's what other phones of same time called "Airplane-Mode". The "Tablet-Mode" is "WWAN off, WLAN&BT on"19:42
WizzupWhere is this tablet mode on fremantle?19:56
joergit's an optional install, I don't know the exact name20:04
joerg"an app"20:04
joerg"Cellular Modem Control Buttons"?20:08
joergyes, "Extends power button menu by 'Tablet mode' […]"20:12
joerghttps://i.imgur.com/f7rStyM.jpeg  https://i.imgur.com/BNhi67d.jpeg20:18
joergsystray menu, so, don't know20:18
joergsearch HAM for "tablet"20:21
joerghttps://i.imgur.com/Y4HzTeA.jpeg "depends: osso-systemui-powerkeymenu"20:25
joergmy Android (SG Note9) shows "Offline mode" with a 737(?) silhouette and actually disables WLAN too20:41
joergas well as BT, and of course WWAN/LTE/cellular20:42
joergIf I want "tablet mode" I need to enable "iffline" aka "airplane mode" and explicitly enable "WLAN" again20:43
joerg"Offline" even20:43
joergSo SG Note9 "offline mode" == maemo "offline mode"20:44
joergthen Note9 isn't exactly >>… these days …<< either ;-)20:46
KotCzarnyon my huawei p20, airplane mode disabled all radio, but allows to manuall reenable wifi/bt etc20:57
KotCzarny*manually20:57
joergexactly same as my Note921:01
joergI'd not be too surprised if there was a legal mandate to make "Airplane mode" to kill *all* transmitters21:02
sicelo737 :-)22:17

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!