IRC log of #maemo for Monday, 2017-05-01

*** M4rtinK has joined #maemo00:24
*** l_bratch has joined #maemo00:30
*** at1as has quit IRC00:32
*** dimw1t has joined #maemo00:32
*** dimw1t has quit IRC00:50
*** xy2_ has joined #maemo01:20
*** NotKit has joined #maemo01:40
*** TheKit has quit IRC01:43
*** drcode has quit IRC01:53
*** drcode has joined #maemo01:53
*** drcode has quit IRC02:33
*** drcode has joined #maemo02:36
*** drcode has quit IRC02:39
*** drcode has joined #maemo02:42
*** Venemo has quit IRC02:45
*** xorly has quit IRC02:56
*** L29Ah has quit IRC02:58
*** atk has quit IRC03:01
*** florian has quit IRC03:01
*** atk has joined #maemo03:01
*** drcode has quit IRC03:02
*** L29Ah has joined #maemo03:02
*** drcode has joined #maemo03:08
*** infobot has quit IRC03:17
*** infobot has joined #maemo03:24
*** drcode has quit IRC03:31
*** drcode has joined #maemo03:34
*** LouisA has joined #maemo03:41
*** drcode has quit IRC03:56
*** drcode has joined #maemo04:04
*** drcode has quit IRC04:13
*** drcode has joined #maemo04:16
*** M4rtinK has quit IRC05:00
*** LouisA has quit IRC05:46
*** vahe has joined #maemo05:48
*** sunshavi has joined #maemo07:06
*** DocScrutinizer05 has quit IRC07:22
*** DocScrutinizer05 has joined #maemo07:22
*** drcode has quit IRC07:30
*** sunshavi has quit IRC08:04
*** Pali has joined #maemo08:38
*** dafox has joined #maemo09:03
*** dafox has quit IRC09:31
*** jonwil has joined #maemo09:44
*** geaaru_ has quit IRC11:09
*** geaaru has joined #maemo11:19
*** LauRoman has joined #maemo11:21
*** florian has joined #maemo11:31
*** xorly has joined #maemo11:53
*** hurrian has quit IRC12:16
*** hurrian has joined #maemo12:17
*** L29Ah has quit IRC12:25
*** vahe has quit IRC14:04
*** vahe has joined #maemo14:07
*** LouisA has joined #maemo14:20
*** vahe has quit IRC14:21
Enrico_MenottiI have Devuan running on my n900 fine. Boot fast. No udev. Power button working. Screen going to sleep. Keyboard set up. Wifi. Ssh.14:37
Enrico_MenottiI'd need some help with the following steps:14:37
Enrico_Menotti1. How to check whether the battery is charging? If not, what is needed to do that?14:38
Enrico_Menotti2. How to have the right switch working to wake up the screen? (I have scpi-support-base installed.)14:38
Enrico_Menotti3. What is the present state of the art about desktop environments?14:38
MaxdamantusMy plan is to just modify dwm or i3 or something.14:46
Maxdamantus(for the desktop environment)14:46
Maxdamantuswell, for a window manager at least, which should be sufficient.14:46
bencohEnrico_Menotti: 1. see the bq27xx driver (probably located under /sys/class/power_supply), or the bq27*.sh script14:48
bencohoh err, which kernel are you using btw?14:50
bencoh(and why no udev?)14:51
Enrico_Menottibencoh As discussed with parazyd , udev is not needed for hotplug. And it was creating problems at boot - a 30 seconds delay, with net.agent timing out due to the loopback lo no being mounted, which in turn is a consequence of the missing initrd (I boot directly to rootfs). Hope I don't miss here any step - many details, I don't remember exactly everything.15:03
Enrico_MenottiI'm using mainline kernel with Pali's rx51_defconfig, modified to include the two watchdogs in the kernel and not as modules.15:04
Enrico_MenottiMaxdamantus You talk about a "plan". I'd deduce there is no DE running yet. Am I right?15:05
MaxdamantusI don't know. It's just a personal plan.15:05
*** mavhc has quit IRC15:06
MaxdamantusJust because I'm not really interested in most of the things hildon seems to do, and I suspect I can just modify an existing tiling WM to do the things I would actually be interested in.15:07
Maxdamantus(and the ones I mentioned would probably use a lot less memory than hildon)15:09
*** mavhc has joined #maemo15:11
Enrico_MenottiMaxdamantus Ok. Thanks.15:12
WizzupEnrico_Menotti: the kernel should manage the charging stuff by itself, but you can read the currnet state from /sys15:27
Wizzup/sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0055/power_supply/bq27200-0/15:27
Wizzupas for making specific keys wake up the screen/phone, do you suspend/hibernate-ram he phone, or just want X turned off?15:28
WizzupI am pretty sure the switch on the side is just an input device, so it should not be too hard to make it wake up15:28
WizzupI don't have my gentoo & devuan n900s next to me right now, but it should not be too hard to make that happen15:28
WizzupAs for 3, hildon? :)15:29
Maxdamantusin the normal maemo system it's a gpio called "slide"15:31
Maxdamantusdunno how the names are assigned.15:31
WizzupI just usuall do tail -f /dev/input/event* and see which one activates15:32
Enrico_MenottiWizzup Thanks. I'm trying to read the battery state with the help of a couple of scripts suggested by DocScrutinizer05 . (If I'm able to get them work; they have a few dependences).15:32
Wizzupalso, for led fun -15:33
Wizzupfor i in $(ls /sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0032/leds/lp5523:*/trigger /sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0032/leds/lp5523:kb*/trigger) ; do echo timer > $i; done15:33
MaxdamantusIt's not handled by /dev/input/*15:33
Maxdamantusit's just gpio.15:33
WizzupEnrico_Menotti: with the current setup, even normal battery monitors will pick it up15:33
WizzupMaxdamantus: mainline15:33
WizzupEnrico_Menotti: turned off wiht for i in $(ls /sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0032/leds/lp5523:*/trigger /sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0032/leds/lp5523:kb*/trigger) ; do echo none > $i; done15:33
MaxdamantusEh, so mainline has an input driver for the GPIO switches?15:33
WizzupEnrico_Menotti: e.g. 'batti' will work15:34
WizzupMaxdamantus: I would not be surprised, is this not the point of dts and such15:34
MaxdamantusI don't think so.15:34
Wizzupotherwise, if it is just gpio, it's also easy to open+select() the right gpio15:34
Wizzupwell, I am not in a position to check atm.15:34
MaxdamantusRight, I think that's the standard way to interact with GPIO.15:34
Wizzupmany keyboards are also gpio, but they have drivers and are exposed not via gpio in sys15:35
MaxdamantusI have a funny program I wrote that polls the status of the shutter GPIO.15:35
Wizzupsame for simple buttons on many arm dev boards15:35
*** drcode has joined #maemo15:35
Wizzupthe input layer is a perfect place for these things15:35
Wizzupe.g. closing/opening a laptop will typically also trigger something in /dev/input/15:36
*** drcode has quit IRC15:36
MaxdamantusThat seems weird to me.15:36
* Maxdamantus might try it sometime with his laptop.15:36
Maxdamantusmaybe there'd be something on the trackpad device to indicate that it's active/inactive, dunno.15:37
Wizzupyou can run evdev on all of htem15:37
Wizzupit will print all the keys they expose15:37
Wizzupevtest*15:37
WizzupInput device name: "Lid Switch"15:37
WizzupEvent: time 1493642283.711271, type 5 (EV_SW), code 0 (SW_LID), value 115:38
WizzupEvent: time 1493642283.711271, -------------- SYN_REPORT ------------15:38
WizzupEvent: time 1493642286.611207, type 5 (EV_SW), code 0 (SW_LID), value 015:38
WizzupEvent: time 1493642286.611207, -------------- SYN_REPORT ------------15:38
Wizzupsimilarly, for mincrophone inserts:     Event code 4 (SW_MICROPHONE_INSERT) state 015:38
DocScrutinizer05would depend on DT I guess15:42
DocScrutinizer05yes, all sensors should show up as /dev/*, in maemo however they usually are only in /sys15:42
Maxdamantusanyway, https://gist.github.com/Maxdamantus/23783a33d9ec43e8be42632566e8d1f915:43
MaxdamantusWho needs malloc?15:43
DocScrutinizer05any unlike Vol+/- the cam trigger, lockswitch, slider, proxy and camdoor are not input devices15:45
DocScrutinizer05no idea how that got inplemented in devuan aka mainline kernel15:45
*** drcode has joined #maemo15:51
*** drcode has quit IRC15:51
*** drcode has joined #maemo15:54
*** drcode has quit IRC15:55
*** drcode has joined #maemo15:59
*** drcode has quit IRC16:01
*** drcode has joined #maemo16:06
*** xy2_ has quit IRC16:35
*** LouisA has quit IRC16:42
*** cyteen has quit IRC16:54
*** drcode has quit IRC17:04
*** drcode has joined #maemo17:05
*** drcode has quit IRC17:05
*** drcode has joined #maemo17:07
*** drcode has quit IRC17:29
*** jonwil has quit IRC17:32
*** xy2_ has joined #maemo17:33
*** drcode has joined #maemo17:39
*** warfare has quit IRC17:41
*** drcode has quit IRC17:41
Enrico_MenottiAbout the slide key, there is a module called gpio_keys. I modprobed it. Now the slide key is alive, but it only produces a ^@ symbol on the screen.17:43
bencohwhich might be okay actually17:47
*** drcode has joined #maemo17:48
*** l_bratch has quit IRC17:50
Enrico_MenottiOk, so now how to handle that?17:51
*** l_bratch has joined #maemo17:52
bencohgpiokeys are supposed to output events to /dev/input/event*17:52
*** msava has joined #maemo17:53
bencoha glance at /sys/class/input might tell you which one17:53
*** msava has quit IRC17:53
DocScrutinizer05but X11 isn't supposed to read input form that device, I guess17:54
*** msava has joined #maemo17:54
bencoh/dev/input/event* follow a simple read api17:54
bencoh(read() syscall I mean)17:54
bencohDocScrutinizer05: sure it does17:54
bencohit isa17:54
bencohis* damnit17:54
*** msava has quit IRC17:54
DocScrutinizer05err, well17:55
*** cyteen has joined #maemo17:56
bencohdunno how the switch button was implemented .... I suppose it's a simple press/release key17:56
bencoh(gpiokeys are basically that anyway ... press and release events with associated keycode)17:56
DocScrutinizer05sure17:56
*** vahe has joined #maemo17:56
bencohon maemo mce is responsible for it iirc17:57
DocScrutinizer05anyway maemo doesn't show an event for lockswitch17:57
DocScrutinizer05yes17:57
DocScrutinizer05that's what I said17:57
DocScrutinizer05and mce opens a file handle to whatever-that-gpioswitch directly instead of listening to X11 events17:58
Enrico_MenottiThe power button works just fine without modules, just installed acpi-support-base (Devuan).17:58
DocScrutinizer05mce         824       root   10r   REG        0,0     4096       4101 /sys/devices/platform/gpio-switch/kb_lock/state17:59
DocScrutinizer05http://paste.ubuntu.com/2449307918:00
DocScrutinizer05it's questionable if you want a ^@ input event in X11 for lockswitch18:01
DocScrutinizer05I guess it *could* get implemented that way, but feels somewhat... wrong18:02
DocScrutinizer05at very least it should provide the correct keysym18:04
DocScrutinizer05though don't ask me what's the name18:06
*** falk has joined #maemo18:07
*** falk is now known as Guest2184518:07
*** Guest21845 is now known as warfare18:08
DocScrutinizer05can't find something reasonable in http://wiki.linuxquestions.org/wiki/XF86_keyboard_symbols18:08
DocScrutinizer05maybe XF86ScreenSaver18:09
DocScrutinizer05anyway that's keysym, not scancode. First of all you'd need to make sure the lockswitch generates a unique scancode18:13
DocScrutinizer05Enrico_Menotti: please run xev and pastebin the lockswitch event18:16
Enrico_Menottixev: command not found. Let me investigate.18:17
Enrico_MenottiIt's package x11-utils. A moment.18:19
DocScrutinizer05freaking... WTF?! xev doesn't report events from N900 hw kbd (except for vol+/- aka F6/7(?)) when started via ssh18:22
DocScrutinizer05whatever, busy. AFK, bbl18:23
Enrico_Menottixev:  unable to open display ''18:24
Enrico_Menotti?18:24
DocScrutinizer05no X11 environment and/or no $DISPLAY defined18:24
Enrico_MenottiYes, no X11 environment. So how to use that?18:25
DocScrutinizer05IroN900:~# echo $DISPLAY18:25
DocScrutinizer05:0.018:25
Enrico_MenottiOk, I'll try to define it.18:26
DocScrutinizer05doesn't help if it doesn't exist18:26
Enrico_MenottiIn fact.18:26
Enrico_Menottibbl (maybe)18:27
DocScrutinizer05http://paste.ubuntu.com/2449319018:28
Enrico_MenottiI just have event0 - 3.18:29
DocScrutinizer05http://paste.ubuntu.com/2449319718:30
*** sunshavi has joined #maemo18:37
*** vahe has quit IRC18:52
*** vahe has joined #maemo18:54
*** halftux has joined #maemo19:06
halftuxsicelo: I guess I found the solution for irssi which you were looking for. https://talk.maemo.org/showpost.php?p=1527540&postcount=1019:09
*** dafox has joined #maemo19:21
*** pigeon_ has joined #maemo19:36
*** fuz_ has quit IRC19:41
*** merlin1991 has quit IRC19:41
*** xes has quit IRC19:41
*** enyc has quit IRC19:41
*** jon_y has quit IRC19:41
*** KotCzarny has quit IRC19:41
*** pigeon has quit IRC19:41
*** MoeIcenowy has quit IRC19:41
*** enyc has joined #maemo19:42
*** jon_y has joined #maemo19:42
*** MoeIcenowy has joined #maemo19:43
*** halftux has quit IRC19:43
*** dafox has quit IRC19:47
*** xes has joined #maemo19:48
*** drcode has quit IRC20:00
*** drcode has joined #maemo20:01
*** cyteen has quit IRC20:03
*** fuz_ has joined #maemo20:05
vahehi all :) I'm looking for bitcoin wallet for n90020:25
*** vahe has quit IRC20:34
*** vahe has joined #maemo20:35
DocScrutinizer05https://talk.maemo.org/showthread.php?t=6675620:55
*** Mek_ is now known as Mek21:03
*** merlin1991 has joined #maemo21:07
*** xy2_ has quit IRC21:34
*** pagurus has quit IRC21:52
*** xy2_ has joined #maemo21:53
sicelomerlin1991: halfux's solution worked, yay! https://garage.maemo.org/pipermail/extras-cauldron-builds/2017-May/156638.html21:56
siceloVajb: looks like perl irssi is coming to repos soon :)21:57
buZzthey ported irssi to 100% perl?22:00
parazydlol22:01
*** KotCzarny has joined #maemo22:03
*** Ras_Older has quit IRC22:08
*** LouisA has joined #maemo22:49
*** Venemo has joined #maemo22:53
*** cyteen has joined #maemo23:35
*** LauRoman has quit IRC23:58

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