*** M4rtinK has joined #maemo | 00:24 | |
*** l_bratch has joined #maemo | 00:30 | |
*** at1as has quit IRC | 00:32 | |
*** dimw1t has joined #maemo | 00:32 | |
*** dimw1t has quit IRC | 00:50 | |
*** xy2_ has joined #maemo | 01:20 | |
*** NotKit has joined #maemo | 01:40 | |
*** TheKit has quit IRC | 01:43 | |
*** drcode has quit IRC | 01:53 | |
*** drcode has joined #maemo | 01:53 | |
*** drcode has quit IRC | 02:33 | |
*** drcode has joined #maemo | 02:36 | |
*** drcode has quit IRC | 02:39 | |
*** drcode has joined #maemo | 02:42 | |
*** Venemo has quit IRC | 02:45 | |
*** xorly has quit IRC | 02:56 | |
*** L29Ah has quit IRC | 02:58 | |
*** atk has quit IRC | 03:01 | |
*** florian has quit IRC | 03:01 | |
*** atk has joined #maemo | 03:01 | |
*** drcode has quit IRC | 03:02 | |
*** L29Ah has joined #maemo | 03:02 | |
*** drcode has joined #maemo | 03:08 | |
*** infobot has quit IRC | 03:17 | |
*** infobot has joined #maemo | 03:24 | |
*** drcode has quit IRC | 03:31 | |
*** drcode has joined #maemo | 03:34 | |
*** LouisA has joined #maemo | 03:41 | |
*** drcode has quit IRC | 03:56 | |
*** drcode has joined #maemo | 04:04 | |
*** drcode has quit IRC | 04:13 | |
*** drcode has joined #maemo | 04:16 | |
*** M4rtinK has quit IRC | 05:00 | |
*** LouisA has quit IRC | 05:46 | |
*** vahe has joined #maemo | 05:48 | |
*** sunshavi has joined #maemo | 07:06 | |
*** DocScrutinizer05 has quit IRC | 07:22 | |
*** DocScrutinizer05 has joined #maemo | 07:22 | |
*** drcode has quit IRC | 07:30 | |
*** sunshavi has quit IRC | 08:04 | |
*** Pali has joined #maemo | 08:38 | |
*** dafox has joined #maemo | 09:03 | |
*** dafox has quit IRC | 09:31 | |
*** jonwil has joined #maemo | 09:44 | |
*** geaaru_ has quit IRC | 11:09 | |
*** geaaru has joined #maemo | 11:19 | |
*** LauRoman has joined #maemo | 11:21 | |
*** florian has joined #maemo | 11:31 | |
*** xorly has joined #maemo | 11:53 | |
*** hurrian has quit IRC | 12:16 | |
*** hurrian has joined #maemo | 12:17 | |
*** L29Ah has quit IRC | 12:25 | |
*** vahe has quit IRC | 14:04 | |
*** vahe has joined #maemo | 14:07 | |
*** LouisA has joined #maemo | 14:20 | |
*** vahe has quit IRC | 14:21 | |
Enrico_Menotti | I 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_Menotti | I'd need some help with the following steps: | 14:37 |
Enrico_Menotti | 1. How to check whether the battery is charging? If not, what is needed to do that? | 14:38 |
Enrico_Menotti | 2. How to have the right switch working to wake up the screen? (I have scpi-support-base installed.) | 14:38 |
Enrico_Menotti | 3. What is the present state of the art about desktop environments? | 14:38 |
Maxdamantus | My plan is to just modify dwm or i3 or something. | 14:46 |
Maxdamantus | (for the desktop environment) | 14:46 |
Maxdamantus | well, for a window manager at least, which should be sufficient. | 14:46 |
bencoh | Enrico_Menotti: 1. see the bq27xx driver (probably located under /sys/class/power_supply), or the bq27*.sh script | 14:48 |
bencoh | oh err, which kernel are you using btw? | 14:50 |
bencoh | (and why no udev?) | 14:51 |
Enrico_Menotti | bencoh 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_Menotti | I'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_Menotti | Maxdamantus You talk about a "plan". I'd deduce there is no DE running yet. Am I right? | 15:05 |
Maxdamantus | I don't know. It's just a personal plan. | 15:05 |
*** mavhc has quit IRC | 15:06 | |
Maxdamantus | Just 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 #maemo | 15:11 | |
Enrico_Menotti | Maxdamantus Ok. Thanks. | 15:12 |
Wizzup | Enrico_Menotti: the kernel should manage the charging stuff by itself, but you can read the currnet state from /sys | 15:27 |
Wizzup | /sys/devices/platform/68000000.ocp/48072000.i2c/i2c-2/2-0055/power_supply/bq27200-0/ | 15:27 |
Wizzup | as for making specific keys wake up the screen/phone, do you suspend/hibernate-ram he phone, or just want X turned off? | 15:28 |
Wizzup | I am pretty sure the switch on the side is just an input device, so it should not be too hard to make it wake up | 15:28 |
Wizzup | I don't have my gentoo & devuan n900s next to me right now, but it should not be too hard to make that happen | 15:28 |
Wizzup | As for 3, hildon? :) | 15:29 |
Maxdamantus | in the normal maemo system it's a gpio called "slide" | 15:31 |
Maxdamantus | dunno how the names are assigned. | 15:31 |
Wizzup | I just usuall do tail -f /dev/input/event* and see which one activates | 15:32 |
Enrico_Menotti | Wizzup 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 |
Wizzup | also, for led fun - | 15:33 |
Wizzup | 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 timer > $i; done | 15:33 |
Maxdamantus | It's not handled by /dev/input/* | 15:33 |
Maxdamantus | it's just gpio. | 15:33 |
Wizzup | Enrico_Menotti: with the current setup, even normal battery monitors will pick it up | 15:33 |
Wizzup | Maxdamantus: mainline | 15:33 |
Wizzup | Enrico_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; done | 15:33 |
Maxdamantus | Eh, so mainline has an input driver for the GPIO switches? | 15:33 |
Wizzup | Enrico_Menotti: e.g. 'batti' will work | 15:34 |
Wizzup | Maxdamantus: I would not be surprised, is this not the point of dts and such | 15:34 |
Maxdamantus | I don't think so. | 15:34 |
Wizzup | otherwise, if it is just gpio, it's also easy to open+select() the right gpio | 15:34 |
Wizzup | well, I am not in a position to check atm. | 15:34 |
Maxdamantus | Right, I think that's the standard way to interact with GPIO. | 15:34 |
Wizzup | many keyboards are also gpio, but they have drivers and are exposed not via gpio in sys | 15:35 |
Maxdamantus | I have a funny program I wrote that polls the status of the shutter GPIO. | 15:35 |
Wizzup | same for simple buttons on many arm dev boards | 15:35 |
*** drcode has joined #maemo | 15:35 | |
Wizzup | the input layer is a perfect place for these things | 15:35 |
Wizzup | e.g. closing/opening a laptop will typically also trigger something in /dev/input/ | 15:36 |
*** drcode has quit IRC | 15:36 | |
Maxdamantus | That seems weird to me. | 15:36 |
* Maxdamantus might try it sometime with his laptop. | 15:36 | |
Maxdamantus | maybe there'd be something on the trackpad device to indicate that it's active/inactive, dunno. | 15:37 |
Wizzup | you can run evdev on all of htem | 15:37 |
Wizzup | it will print all the keys they expose | 15:37 |
Wizzup | evtest* | 15:37 |
Wizzup | Input device name: "Lid Switch" | 15:37 |
Wizzup | Event: time 1493642283.711271, type 5 (EV_SW), code 0 (SW_LID), value 1 | 15:38 |
Wizzup | Event: time 1493642283.711271, -------------- SYN_REPORT ------------ | 15:38 |
Wizzup | Event: time 1493642286.611207, type 5 (EV_SW), code 0 (SW_LID), value 0 | 15:38 |
Wizzup | Event: time 1493642286.611207, -------------- SYN_REPORT ------------ | 15:38 |
Wizzup | similarly, for mincrophone inserts: Event code 4 (SW_MICROPHONE_INSERT) state 0 | 15:38 |
DocScrutinizer05 | would depend on DT I guess | 15:42 |
DocScrutinizer05 | yes, all sensors should show up as /dev/*, in maemo however they usually are only in /sys | 15:42 |
Maxdamantus | anyway, https://gist.github.com/Maxdamantus/23783a33d9ec43e8be42632566e8d1f9 | 15:43 |
Maxdamantus | Who needs malloc? | 15:43 |
DocScrutinizer05 | any unlike Vol+/- the cam trigger, lockswitch, slider, proxy and camdoor are not input devices | 15:45 |
DocScrutinizer05 | no idea how that got inplemented in devuan aka mainline kernel | 15:45 |
*** drcode has joined #maemo | 15:51 | |
*** drcode has quit IRC | 15:51 | |
*** drcode has joined #maemo | 15:54 | |
*** drcode has quit IRC | 15:55 | |
*** drcode has joined #maemo | 15:59 | |
*** drcode has quit IRC | 16:01 | |
*** drcode has joined #maemo | 16:06 | |
*** xy2_ has quit IRC | 16:35 | |
*** LouisA has quit IRC | 16:42 | |
*** cyteen has quit IRC | 16:54 | |
*** drcode has quit IRC | 17:04 | |
*** drcode has joined #maemo | 17:05 | |
*** drcode has quit IRC | 17:05 | |
*** drcode has joined #maemo | 17:07 | |
*** drcode has quit IRC | 17:29 | |
*** jonwil has quit IRC | 17:32 | |
*** xy2_ has joined #maemo | 17:33 | |
*** drcode has joined #maemo | 17:39 | |
*** warfare has quit IRC | 17:41 | |
*** drcode has quit IRC | 17:41 | |
Enrico_Menotti | About 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 |
bencoh | which might be okay actually | 17:47 |
*** drcode has joined #maemo | 17:48 | |
*** l_bratch has quit IRC | 17:50 | |
Enrico_Menotti | Ok, so now how to handle that? | 17:51 |
*** l_bratch has joined #maemo | 17:52 | |
bencoh | gpiokeys are supposed to output events to /dev/input/event* | 17:52 |
*** msava has joined #maemo | 17:53 | |
bencoh | a glance at /sys/class/input might tell you which one | 17:53 |
*** msava has quit IRC | 17:53 | |
DocScrutinizer05 | but X11 isn't supposed to read input form that device, I guess | 17:54 |
*** msava has joined #maemo | 17:54 | |
bencoh | /dev/input/event* follow a simple read api | 17:54 |
bencoh | (read() syscall I mean) | 17:54 |
bencoh | DocScrutinizer05: sure it does | 17:54 |
bencoh | it isa | 17:54 |
bencoh | is* damnit | 17:54 |
*** msava has quit IRC | 17:54 | |
DocScrutinizer05 | err, well | 17:55 |
*** cyteen has joined #maemo | 17:56 | |
bencoh | dunno how the switch button was implemented .... I suppose it's a simple press/release key | 17:56 |
bencoh | (gpiokeys are basically that anyway ... press and release events with associated keycode) | 17:56 |
DocScrutinizer05 | sure | 17:56 |
*** vahe has joined #maemo | 17:56 | |
bencoh | on maemo mce is responsible for it iirc | 17:57 |
DocScrutinizer05 | anyway maemo doesn't show an event for lockswitch | 17:57 |
DocScrutinizer05 | yes | 17:57 |
DocScrutinizer05 | that's what I said | 17:57 |
DocScrutinizer05 | and mce opens a file handle to whatever-that-gpioswitch directly instead of listening to X11 events | 17:58 |
Enrico_Menotti | The power button works just fine without modules, just installed acpi-support-base (Devuan). | 17:58 |
DocScrutinizer05 | mce 824 root 10r REG 0,0 4096 4101 /sys/devices/platform/gpio-switch/kb_lock/state | 17:59 |
DocScrutinizer05 | http://paste.ubuntu.com/24493079 | 18:00 |
DocScrutinizer05 | it's questionable if you want a ^@ input event in X11 for lockswitch | 18:01 |
DocScrutinizer05 | I guess it *could* get implemented that way, but feels somewhat... wrong | 18:02 |
DocScrutinizer05 | at very least it should provide the correct keysym | 18:04 |
DocScrutinizer05 | though don't ask me what's the name | 18:06 |
*** falk has joined #maemo | 18:07 | |
*** falk is now known as Guest21845 | 18:07 | |
*** Guest21845 is now known as warfare | 18:08 | |
DocScrutinizer05 | can't find something reasonable in http://wiki.linuxquestions.org/wiki/XF86_keyboard_symbols | 18:08 |
DocScrutinizer05 | maybe XF86ScreenSaver | 18:09 |
DocScrutinizer05 | anyway that's keysym, not scancode. First of all you'd need to make sure the lockswitch generates a unique scancode | 18:13 |
DocScrutinizer05 | Enrico_Menotti: please run xev and pastebin the lockswitch event | 18:16 |
Enrico_Menotti | xev: command not found. Let me investigate. | 18:17 |
Enrico_Menotti | It's package x11-utils. A moment. | 18:19 |
DocScrutinizer05 | freaking... WTF?! xev doesn't report events from N900 hw kbd (except for vol+/- aka F6/7(?)) when started via ssh | 18:22 |
DocScrutinizer05 | whatever, busy. AFK, bbl | 18:23 |
Enrico_Menotti | xev: unable to open display '' | 18:24 |
Enrico_Menotti | ? | 18:24 |
DocScrutinizer05 | no X11 environment and/or no $DISPLAY defined | 18:24 |
Enrico_Menotti | Yes, no X11 environment. So how to use that? | 18:25 |
DocScrutinizer05 | IroN900:~# echo $DISPLAY | 18:25 |
DocScrutinizer05 | :0.0 | 18:25 |
Enrico_Menotti | Ok, I'll try to define it. | 18:26 |
DocScrutinizer05 | doesn't help if it doesn't exist | 18:26 |
Enrico_Menotti | In fact. | 18:26 |
Enrico_Menotti | bbl (maybe) | 18:27 |
DocScrutinizer05 | http://paste.ubuntu.com/24493190 | 18:28 |
Enrico_Menotti | I just have event0 - 3. | 18:29 |
DocScrutinizer05 | http://paste.ubuntu.com/24493197 | 18:30 |
*** sunshavi has joined #maemo | 18:37 | |
*** vahe has quit IRC | 18:52 | |
*** vahe has joined #maemo | 18:54 | |
*** halftux has joined #maemo | 19:06 | |
halftux | sicelo: I guess I found the solution for irssi which you were looking for. https://talk.maemo.org/showpost.php?p=1527540&postcount=10 | 19:09 |
*** dafox has joined #maemo | 19:21 | |
*** pigeon_ has joined #maemo | 19:36 | |
*** fuz_ has quit IRC | 19:41 | |
*** merlin1991 has quit IRC | 19:41 | |
*** xes has quit IRC | 19:41 | |
*** enyc has quit IRC | 19:41 | |
*** jon_y has quit IRC | 19:41 | |
*** KotCzarny has quit IRC | 19:41 | |
*** pigeon has quit IRC | 19:41 | |
*** MoeIcenowy has quit IRC | 19:41 | |
*** enyc has joined #maemo | 19:42 | |
*** jon_y has joined #maemo | 19:42 | |
*** MoeIcenowy has joined #maemo | 19:43 | |
*** halftux has quit IRC | 19:43 | |
*** dafox has quit IRC | 19:47 | |
*** xes has joined #maemo | 19:48 | |
*** drcode has quit IRC | 20:00 | |
*** drcode has joined #maemo | 20:01 | |
*** cyteen has quit IRC | 20:03 | |
*** fuz_ has joined #maemo | 20:05 | |
vahe | hi all :) I'm looking for bitcoin wallet for n900 | 20:25 |
*** vahe has quit IRC | 20:34 | |
*** vahe has joined #maemo | 20:35 | |
DocScrutinizer05 | https://talk.maemo.org/showthread.php?t=66756 | 20:55 |
*** Mek_ is now known as Mek | 21:03 | |
*** merlin1991 has joined #maemo | 21:07 | |
*** xy2_ has quit IRC | 21:34 | |
*** pagurus has quit IRC | 21:52 | |
*** xy2_ has joined #maemo | 21:53 | |
sicelo | merlin1991: halfux's solution worked, yay! https://garage.maemo.org/pipermail/extras-cauldron-builds/2017-May/156638.html | 21:56 |
sicelo | Vajb: looks like perl irssi is coming to repos soon :) | 21:57 |
buZz | they ported irssi to 100% perl? | 22:00 |
parazyd | lol | 22:01 |
*** KotCzarny has joined #maemo | 22:03 | |
*** Ras_Older has quit IRC | 22:08 | |
*** LouisA has joined #maemo | 22:49 | |
*** Venemo has joined #maemo | 22:53 | |
*** cyteen has joined #maemo | 23:35 | |
*** LauRoman has quit IRC | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!