IRC log of #maemo for Sunday, 2017-04-09

*** spiiroin has quit IRC01:02
*** spiiroin has joined #maemo01:02
*** spiiroin has quit IRC01:22
*** tryagain has quit IRC01:34
*** cyteen has quit IRC01:34
*** florian has quit IRC01:35
*** sunshavi has quit IRC02:34
*** xy2_ has quit IRC02:35
*** Pali has quit IRC02:54
*** cyteen has joined #maemo03:00
*** L29Ah has joined #maemo03:05
*** LjL has quit IRC03:19
*** infobot has quit IRC03:21
*** infobot has joined #maemo03:23
*** LjL has joined #maemo03:25
*** dafox has joined #maemo03:52
*** LjL has quit IRC04:12
*** LjL has joined #maemo04:19
*** dafox has quit IRC04:20
*** platicus1 has quit IRC04:20
*** tanty1 has quit IRC04:20
*** platicus1 has joined #maemo04:21
*** tanty1 has joined #maemo04:21
*** LjL has quit IRC04:27
*** LjL has joined #maemo04:31
*** Kabouik has joined #maemo05:00
*** L29Ah has left #maemo05:04
*** L29Ah has joined #maemo05:05
*** sunshavi has joined #maemo05:07
*** spiiroin has joined #maemo05:20
*** Kabouik has quit IRC06:19
*** spiiroin has quit IRC06:32
*** spiiroin has joined #maemo06:33
*** pagurus has quit IRC06:38
*** pagurus has joined #maemo06:39
*** pagurus has joined #maemo06:40
*** hurrian has quit IRC06:56
*** hurrian has joined #maemo06:57
KotCzarnyhttp://www.techamok.com/?pid=1849407:43
KotCzarnyand we are worrying about security of our n900s ;)07:43
*** DocScrutinizer05 has quit IRC07:49
*** DocScrutinizer05 has joined #maemo07:49
*** Zungo has quit IRC07:53
*** L29Ah has left #maemo08:04
*** vahe has joined #maemo08:22
*** Kilroo has quit IRC09:00
*** Kilroo has joined #maemo09:13
*** maheart has joined #maemo09:37
*** cyphase has quit IRC10:21
*** cyphase has joined #maemo10:48
*** Guest64354 has joined #maemo11:06
*** Guest64354 has quit IRC11:14
*** florian has joined #maemo11:23
*** Pali has joined #maemo11:27
*** florian has quit IRC11:30
MaxdamantusI'd be more concerned with someone hacking my phone than my TV.11:52
*** jon_y has quit IRC12:16
*** jon_y has joined #maemo12:18
*** florian has joined #maemo12:58
*** xy2_ has joined #maemo13:00
*** spiiroin has quit IRC13:01
*** spiiroin has joined #maemo13:04
*** cyteen has quit IRC13:04
*** cyteen has joined #maemo13:04
*** tanty1 has quit IRC13:07
*** platicus1 has quit IRC13:07
*** tanty1 has joined #maemo13:08
*** platicus1 has joined #maemo13:08
*** shentey has joined #maemo13:15
*** xy2_ has quit IRC13:21
kerioMaxdamantus: until you realize that a bunch of those "smart" TVs have a microphone13:23
kerioand also constant access to high quality internet13:23
keriorather than sporadic access through mobile internet on a battery13:23
MaxdamantusI wouldn't imagine sporadic access would be much of an issue.13:24
Maxdamantusand people often have their phones on them wherever they go.13:24
Maxdamantusso they're probably going to pick up at least everything a TV would.13:24
kerioyes but it's much harder to run a botnet node on a phone13:24
kerioa TV has wall power and home internet13:25
Maxdamantusa botnet for what purpose? data acquisition?13:25
MaxdamantusDon't see why it would be harder there.13:25
MaxdamantusWhen the internet is available, upload the data. Done.13:25
keriobecause if you run a botnet node on a phone you'll run the battery dry13:25
MaxdamantusAre you thinking of a DDoS node or what?13:26
keriothat, too13:26
kerioidk, bitcoin mining13:26
kerioi mean you're not going to get randomly blackmailed through your TV13:26
keriobut if it's some slightly more targeted attack, you might13:26
kerioand it's waaaaay easier to stay covert in a tv than in a phone13:27
MaxdamantusWhy is it easier?13:27
keriobecause wall power and beefy internet13:27
keriolikely unmetered internet13:28
kerio(or metered much higher)13:28
MaxdamantusI meant why is it easier to stay covert?13:28
keriobecause all you need is to not interfere with TV and movies13:28
MaxdamantusIf you're talking about data acquisition, you really shouldn't need much.13:28
MaxdamantusYou can probably get usable audio data into less than 4 kb/s13:29
kerioexcept that 4kb/s through landline internet from a wall powered device is effectively nothing13:30
kerio4kb/s on a mobile connection on a battery-powered phone is HUMONGOUS13:30
MaxdamantusYou wouldn't actually be transmitting 4 kb/s constantly.13:31
MaxdamantusYou'd apply some simple filter to avoid transmitting stuff that's obviously junk.13:32
Maxdamantusthe 4 kb/s is only when you actually have stuff to transmit.13:32
*** spiiroin has quit IRC13:32
keriook so you're just keeping my cpu away from zero clock all the time13:46
kerioyea draining my battery in like 5 hours is not going to be noticeable at all13:46
kerio10/10 malware13:46
MaxdamantusI probably wouldn't notice anyway since I have an ssh connection open the vast majority of the time it's not charging.13:47
Maxdamantusalso, I suspect audio wouldn't be the most interesting thing.13:51
Maxdamantuson a phone you have access to much more than that, and it doesn't involve running something constantly while it's meant to be in standby.13:51
KotCzarnyyou keep forgetting that technology is changing14:03
KotCzarnyand smarttvs are plain computers14:03
KotCzarnyand there will be more and more done via tv14:03
KotCzarnyand actually connecting tv via broadband makes it botnet node that's more powerful than smartphone14:04
KotCzarnyand as mentioned earlier, almost undetectable by the user14:05
KotCzarnyand botnets have plenty of uses, downloaders, spammers, ddosers, blackmail proxies14:05
*** shentey has quit IRC14:24
*** xy2_ has joined #maemo14:34
*** L29Ah has joined #maemo14:38
*** Sicelo has quit IRC14:49
*** Sicelo has joined #maemo14:50
*** Sicelo has quit IRC14:50
*** Sicelo has joined #maemo14:50
*** xy2_ has quit IRC14:56
*** L29Ah has left #maemo15:04
*** L29Ah has joined #maemo15:09
*** Kabouik has joined #maemo15:12
*** vahe has quit IRC15:31
*** at1as has quit IRC16:05
*** xy2_ has joined #maemo16:42
Enrico_MenottiI have the power button working in my Debian image. Now I'd like to turn on the backlight. I'll investigate, but if meanwhile someone may point me to the right direction, I'd appreciate it a lot.17:19
*** vahe has joined #maemo17:27
*** at1as has joined #maemo18:13
*** at1as has quit IRC18:39
*** xy2_ has quit IRC18:49
*** at1as has joined #maemo18:53
*** at1as has quit IRC19:02
*** L29Ah has left #maemo19:04
*** L29Ah has joined #maemo19:05
*** geaaru has joined #maemo19:24
*** xy2_ has joined #maemo19:40
*** ashneo76 has quit IRC20:01
DocScrutinizer05sigh20:22
enycDocScrutinizer05: ??20:22
DocScrutinizer05Enrico_Menotti: /sys/class/backlight/acx565akm/brightness20:23
Enrico_MenottiDocScrutinizer05 There's no such file.20:25
DocScrutinizer05then your drivers are crap20:26
DocScrutinizer05I'm very sorry but this is exactly the point where your questions are totally off topic for this channel, mind you we're #maemo here20:26
DocScrutinizer05even if I'd feel like, I coultdn't help you out since I don't know the system you built20:28
DocScrutinizer05maybe that much: I used find /sys -name brightness20:29
Enrico_MenottiOk, no problem. I asked here since this is a question related to the N900 hardware (yes, also to Debian, of course).20:29
*** vahe has quit IRC20:31
DocScrutinizer05http://paste.opensuse.org/2914857020:31
Enrico_MenottiThank you. I think these files are only found in Maemo. I'm trying to install the package fso-deviced-n900, which I found at Debian.org after googling a bit.20:33
DocScrutinizer05excellent udea :-) finally somebody uses FSO20:34
Enrico_MenottiWhat's FSO?20:37
DocScrutinizer05FreeSmartPhone20:39
DocScrutinizer05'made by openmoko'20:39
DocScrutinizer05actually by Mickey who's a senior key sw engineer of OM back when20:41
DocScrutinizer05~fso20:41
infobotfrom memory, fso is the freesmartphone.org mobile devices middleware. http://www.freesmartphone.org//20:41
Enrico_MenottiAh ok. I didn't get the acronym.20:42
DocScrutinizer05http://www.freesmartphone.org//specs/org.freesmartphone.Device.Display/20:42
DocScrutinizer05http://www.freesmartphone.org//specs/org.freesmartphone.Device.Display/#SetBrightness20:43
DocScrutinizer05re "not found" - it seems the acx565akm module is monolithic in maemo kernel. Makes sense for activating display early in boot20:48
DocScrutinizer05so you need to check that acx565akm module sourcecode and docs to find what's the location/name of the backlight brightness and power control20:50
DocScrutinizer05maybe even moved to /dev ?20:51
DocScrutinizer05try `find /sys /dev /proc -iname brightness -ls`20:52
Enrico_MenottiI got this: https://manpages.debian.org/jessie/fso-deviced/fsodeviced.1.en.html. Maybe?20:52
DocScrutinizer05or `find / -path '*acx565*' -ls`20:53
DocScrutinizer05yes, that sourcecode will also know where to look for that device control node20:55
freemangordonEnrico_Menotti: there is something like /sys/class/backlight20:55
DocScrutinizer05and I *bet* it has a node "brightness"20:55
DocScrutinizer05hi freemangordon20:56
Enrico_MenottiThis is in Maemo, right? But I don't find such a path in Debian. Maybe I missed some step.20:57
DocScrutinizer05then your kernel has no driver for the display20:57
DocScrutinizer05though N900 backlight control is particularly tricky on a hw level20:58
DocScrutinizer05you can enable it via two methods20:58
DocScrutinizer05acx565akm as well as CPU GPIO or PWM has control over backlight20:59
DocScrutinizer05never *really* understoof what Nokia built there20:59
DocScrutinizer05understood*20:59
*** Zungo has joined #maemo21:02
*** dafox has joined #maemo21:15
Enrico_MenottiI'd like to ask a few more things, but I don't want to be off topic. Where should I head to?21:22
DocScrutinizer05dcebian?21:26
DocScrutinizer05debian even21:26
DocScrutinizer05well, ask here, maybe it's sufficiently on topic for maemo too21:26
Enrico_MenottiWell, I installed fso-deviced-n900, but I don't understand how it works. And now the power button is not working again. Is it possible that this new package has overridden Debian's standard power management, but the configuration file is not set properly?21:27
Siceloyour questions are generally on topic .. just that you don't make them very easy to understand/parse :)21:30
Enrico_MenottiSicelo Sorry... :( If I may, I'd try to explain better. Please let me know what is unclear.21:31
Siceloi mean .. in general .. i have no idea about your current question, having never used that package21:32
DocScrutinizer05yes, fsodeviced takes care about power button too. it's a daemon (as suggests the ending "d" in name) and you talk to it via dbus and a dbus-binding to your own app, or simply via dbus-send21:35
Enrico_MenottiBefore this package, I had installed acpi-support-base, and I didn't have to do anything to use it. After installation, the power button just worked fine.21:37
DocScrutinizer05http://wiki.openmoko.org/wiki/Manuals/SHR#FSO_Resources21:37
DocScrutinizer05http://wiki.openmoko.org/wiki/FSO_Resources21:39
DocScrutinizer05http://wiki.openmoko.org/wiki/FSO_Resources#Automatic_way21:44
*** dafox has quit IRC21:44
DocScrutinizer05mdbus=dbus-send21:44
DocScrutinizer05just better ;-)21:44
DocScrutinizer05Enrico_Menotti: you're configuring a systen. So there's no drop-in functionality21:47
DocScrutinizer05I.E. you can't expect to e.g. install fsodeviced and have a nice GUI to adjust backlight brightness21:47
DocScrutinizer05neither does installing X11 bring you a desktop environment21:48
Enrico_MenottiOk. I'm trying to set up the daemon by working on the file system while the device is off, from my host computer. First thing, I'd like to be able to read the messages which appear at boot, in order to understand whether the daemon starts at all. But I don't find any place where they are logged. This is clearly a #debian question. I asked there. I'm waiting.21:50
DocScrutinizer05and installing a standard debian system will most definitely give you systemd which in turn introduces a metric shitton of stuff you absolutely don't want on an embedded device, like SEAT management21:50
DocScrutinizer05I'm afraid they will tell you something like "press ctrl-alt-F10 to see the console log"21:52
DocScrutinizer05low level system stuff on embedded differs massively from the usual desktop PC situation21:52
*** platicus1 has quit IRC21:54
*** tanty1 has quit IRC21:54
Siceloif the daemon starts, surely `ps` should show it?21:54
*** platicus1 has joined #maemo21:54
*** tanty1 has joined #maemo21:54
DocScrutinizer05I'm absolutely no expert here (ask Pali or freemangordon or a few others in here), but I guess what you want first is a kernel cmdline parameter like "consile=fb" or somesuch21:55
DocScrutinizer05Sicelo: aiui he doesn't even have a shell yet21:55
DocScrutinizer05otherwise, sure21:56
Sicelowhere did he have backlight working?21:56
DocScrutinizer05nowhere?21:57
Enrico_MenottiIn fact, nowhere.21:57
DocScrutinizer05do you have a shell access?21:58
*** tryagain has joined #maemo21:58
DocScrutinizer05either ssh or console?21:58
Enrico_MenottiNon root. Well, really not right now, but I know how to from yesterday. I could try to setup ssh.21:59
Enrico_MenottiBut I thought it would have been better first to enable power button, so I may shutdown without opening the back cover and removing the battery, and backlight, so I may read messages from the system.22:00
DocScrutinizer05well, a shell to system is the very first thing you want. Usually this isn't on device (via display and kbd) in an early system bringup phase22:00
DocScrutinizer05:nod: makes sense22:00
DocScrutinizer05though shutdown works from console too22:01
Enrico_MenottiIf you are root...22:01
DocScrutinizer05yes, of course. What else could you be in an early system bringup stage22:01
DocScrutinizer05heck, I guess SHR has only root account as only user still today :-P22:02
DocScrutinizer05maemo has one user "user" which is basically used for X11 only22:03
DocScrutinizer05on boot console you're root no matter what22:03
DocScrutinizer05but on enbedded, accessing console is usually tricky or even impossible22:05
DocScrutinizer05Enrico_Menotti: so I got it you can log in but not as root?22:10
Enrico_MenottiWell, by copying the passwd and shadow files I have been able to log in as std user. I could log as root if I'd change the password to alphabetic. I don't have proper keyboard layout. But this would mean changing password on my computer as well. Of course I could do that, if I don't find another way.22:11
DocScrutinizer05how do you log in? via ssh? ssh has a config parameter that forbids root logins22:11
*** Sicelo has quit IRC22:12
Enrico_MenottiNo, I log in on the device. I can see almost nothing, though.22:12
DocScrutinizer05aaah I see22:12
DocScrutinizer05so you actually already have display working (not backlight though)?22:13
DocScrutinizer05log in as root is probably not even meant to be allowed at all in debian and particularly ubuntu, afaik. Anyway have you tries `sudo su -` ?22:15
DocScrutinizer05tried*22:15
DocScrutinizer05in debian/ubunto standard config this would ask for USER password, NOT root password22:16
*** tryagain has quit IRC22:19
*** xy2_ has quit IRC22:20
Enrico_MenottiYes, I have display working, without backlight. I will also try that way. Before that, I'd like to investigate a bit more about message logging.22:22
DocScrutinizer05how the heck are you going to look at logs that are root-only permission, when you don't have root access to device?22:33
DocScrutinizer05get your priorities sorted22:34
DocScrutinizer05maybe find a good story about system bringup somewhere22:35
DocScrutinizer05inevitably fist thing is to make kernel start and have access to console. Next thing is to have a nonconsole access to device, via normal RS232 or USB or whatever terminal aka shell22:36
DocScrutinizer05as ROOT22:36
DocScrutinizer05console needed to debug early kernel error messages. Once you got root shell access, you can do whatever you like to bring up rest of system, configure logging, whatever22:37
DocScrutinizer05as soon as you have working shell access as root, you can even look at kernel console messages in buffer, using dmesg22:42
Enrico_MenottiI was thinking about reading the logs by accessing some file on the filesystem when the latter is mounted on my host computer.22:42
DocScrutinizer05so when your kernel actually comes up so much you even can log in as user, GET ROOT!!!22:42
DocScrutinizer05yeah sure, why bother about the basement when you could try to fix the roof22:43
DocScrutinizer05man rsyslogd22:46
DocScrutinizer05to read "messages" in a logfile, you fist need to set up the logging service, for which you need root to do so22:47
Enrico_MenottiI was thinking about specifying some parameter when booting the kernel. But anyway, I will try to get root.22:49
Zungoyeah being non quiet will really help22:52
ZungoDo everything you need by editing the filesystem then get it to run correctly22:53
Zungoas joerg said, sort your priorities Enrico_Menotti22:53
Zungo:|22:53
* Zungo shrugs22:53
*** shentey has joined #maemo23:03
*** L29Ah has left #maemo23:04
DocScrutinizer05let me put it this way: when you have a complete system and it doesn't come up because some services are not starting and you can't even log in (as root, or change to root, or sudo stuff with root permissions), the way to solve this is not by throwing MORE services onto the system to get some way to accomplish fixing stuff without root. The method is to DISable services as much as possible and first get root, then start the failing23:06
DocScrutinizer05service interactively (not as daemon) in a root shell and see what's the diagnostic output23:06
*** shentey has quit IRC23:06
*** cyteen has quit IRC23:07
DocScrutinizer05and the very first service you need to set up is either a mingetty or sshd to log in to the system as ROOT, to do all the rest23:08
*** shentey has joined #maemo23:08
*** L29Ah has joined #maemo23:09
Enrico_MenottiOk. I am root on the device. But I can see almost nothing.23:11
DocScrutinizer05when you actually already got a (min)getty on a console and all that lacks is root login (or sudo su -) and the backlight, you fix the login issue and then you find the control node to enable and adjust brightness of the backlight23:12
DocScrutinizer05you're lucky N900 has a transfexive display, all you need is sufficient ambient light to read console23:13
DocScrutinizer05this will suffice to find and config the backlight23:13
Enrico_MenottiIn any case, now I'm logged in as root.23:15
DocScrutinizer05great, so do `find /sys -iname '*brightness*'`23:16
*** geaaru has quit IRC23:16
Enrico_MenottiI don't have the special characters on the keyboard, acc...23:16
Enrico_Menotti:)23:16
DocScrutinizer05find /sys -iname brightness23:17
Enrico_MenottiHow, if I can't type / and - ?23:17
DocScrutinizer05or cd ..; cd ..; cd ..; find sys -iname brightness23:18
DocScrutinizer05I don't know which mexmapping your system has23:18
DocScrutinizer05keymapping*23:18
DocScrutinizer05the reason why you want ssh, but that needs a network connection either via USB networking or via wifi23:19
*** pagurus has quit IRC23:20
DocScrutinizer05there are other options like serial console via testpoints and debug fixture, or attach a USB or BT keyboard which needs loading the drivers for such stuff, incl USB hostmode or BT drivers23:23
DocScrutinizer05you most likely don't want to do that23:24
DocScrutinizer05what you want is most likely WiFi setup and then sshd access23:24
DocScrutinizer05for WiFi it helps a lot if your system has that stuff already somewhat configured, so the firmware gets loaded to the wifi module and you can use ifup or sth like that23:26
Enrico_MenottiI cannot do anything with this keyboard. It only has alphabetic characters. This is why I was first trying to shed some light, and adjust the keyboard. Of course I'd try to ssh. But in this situation I don't see a solution other than setting it up by accessing the file system from the host computer.23:27
DocScrutinizer05then you can use ifup, ifconfig, route and iwconfig commands to connect device to WLAN23:28
Enrico_Menottiifup wlan0?23:28
Enrico_MenottiHow to type the 0?23:28
DocScrutinizer05ahain: I don't know which keymapping you got23:29
Enrico_MenottiAs I said, just alphabetic characters. :(23:29
DocScrutinizer05fill your .bash_history file with a few useful commands and a complete list of characters to choose from23:30
DocScrutinizer05fix your kbd mappinh23:30
Enrico_MenottiThe bash history wouldn't work, since I don't have the up arrow either. All keys which are toggled by the blue arrow at the left of the keyboard don't work. I need to fix the kbd mapping.23:33
DocScrutinizer05yes23:35
DocScrutinizer05obviously23:35
DocScrutinizer05~listkey mapping23:37
DocScrutinizer05~listkeys mapping23:37
infobotFactoid search of 'mapping' by key (5): karnaugh mapping ;; mip mapping ;; so the memory mapping #DEL# ;; n900-kbd-mapping ;; texture mapping.23:37
DocScrutinizer05~n900-kbd-mapping23:38
infoboti guess vi-kbd is http://wiki.maemo.org/Remapping_keyboard/user_vis_awesome_kbdmapping23:38
DocScrutinizer05http://wiki.maemo.org/Remapping_keyboard23:41
DocScrutinizer05consider https://github.com/stuart12/n900_scripts/blob/master/n900vnc maybe23:43
DocScrutinizer05but that obviously will need X11 running on N90023:45
DocScrutinizer05so nevermind23:45
DocScrutinizer05ouch, those all are about X11 xmodmap etc23:58

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