*** dafox has quit IRC | 00:04 | |
*** Oxyd76 has joined #maemo | 00:27 | |
*** Oxyd76 has quit IRC | 00:29 | |
*** Venemo has quit IRC | 01:05 | |
*** Pali has quit IRC | 01:19 | |
*** phlixi has quit IRC | 01:29 | |
*** phlixi has joined #maemo | 01:31 | |
*** phlixi has quit IRC | 01:35 | |
*** phlixi has joined #maemo | 01:35 | |
*** HRH_H_Crab has quit IRC | 01:44 | |
*** phlixi has quit IRC | 01:44 | |
*** enyc has quit IRC | 01:45 | |
*** mquin has quit IRC | 01:45 | |
*** enyc has joined #maemo | 01:45 | |
*** florian has quit IRC | 01:46 | |
*** phlixi has joined #maemo | 01:47 | |
*** mquin has joined #maemo | 01:47 | |
*** phlixi has joined #maemo | 01:48 | |
*** HRH_H_Crab has joined #maemo | 01:50 | |
*** phlixi has quit IRC | 01:52 | |
*** phlixi has joined #maemo | 01:53 | |
*** phlixi has joined #maemo | 01:59 | |
*** auenf has quit IRC | 02:00 | |
*** xy2_ has quit IRC | 02:00 | |
*** auenf has joined #maemo | 02:00 | |
*** auenf has quit IRC | 02:03 | |
*** auenfx8 has joined #maemo | 02:03 | |
*** florian_kc has quit IRC | 02:07 | |
*** phlixi has quit IRC | 02:11 | |
*** phlixi has joined #maemo | 02:11 | |
*** florian has joined #maemo | 02:15 | |
*** themule has joined #maemo | 02:16 | |
*** themule has quit IRC | 02:19 | |
*** Kilroo has joined #maemo | 02:38 | |
*** jon_y has quit IRC | 02:42 | |
*** jon_y has joined #maemo | 02:44 | |
*** Oxyd76 has joined #maemo | 02:48 | |
*** jon_y_ has joined #maemo | 02:57 | |
*** jon_y has quit IRC | 02:57 | |
*** jon_y_ is now known as jon_y | 02:57 | |
*** pkill9 has quit IRC | 03:05 | |
*** tm has quit IRC | 03:17 | |
*** tm has joined #maemo | 03:19 | |
*** phlixi has quit IRC | 03:19 | |
*** phlixi has joined #maemo | 03:20 | |
*** pagurus` has quit IRC | 05:01 | |
*** Kabouik_ has quit IRC | 05:31 | |
*** trumee has quit IRC | 06:00 | |
*** trumee has joined #maemo | 06:02 | |
*** Oxyd76 has quit IRC | 06:03 | |
*** Oxyd76 has joined #maemo | 06:03 | |
*** Vajb has quit IRC | 06:05 | |
*** DocScrutinizer05 is now known as uptopdownbottom | 06:46 | |
*** uptopdownbottom is now known as DocScrutinizer05 | 06:47 | |
*** Oxyd76 has quit IRC | 07:16 | |
*** Oxyd76 has joined #maemo | 07:19 | |
*** Oxyd76 has quit IRC | 07:22 | |
*** Oxyd76 has joined #maemo | 07:24 | |
*** Oxyd76 has quit IRC | 07:29 | |
*** Oxyd76 has joined #maemo | 07:34 | |
*** Oxyd76 has joined #maemo | 07:40 | |
*** Oxyd76 has quit IRC | 07:43 | |
*** Oxyd76 has joined #maemo | 07:45 | |
*** spiiroin has quit IRC | 07:50 | |
*** Vajb has joined #maemo | 07:58 | |
*** ecloud is now known as ecloud_wfh | 08:16 | |
*** Kilroo has quit IRC | 08:21 | |
*** spiiroin has joined #maemo | 08:21 | |
*** Venemo has joined #maemo | 08:43 | |
*** deepy- is now known as deepy | 08:48 | |
*** geaaru has quit IRC | 09:17 | |
*** FalconSpy has left #maemo | 09:18 | |
*** FalconSpy has joined #maemo | 09:18 | |
*** dafox has joined #maemo | 09:25 | |
*** phlixi has quit IRC | 09:29 | |
*** phlixi has joined #maemo | 09:30 | |
*** l_bratch has quit IRC | 09:34 | |
*** l_bratch has joined #maemo | 09:34 | |
*** vectis has quit IRC | 09:45 | |
*** dafox has quit IRC | 09:49 | |
*** Oxyd76 has joined #maemo | 10:05 | |
*** rah_ is now known as rah | 10:08 | |
*** florian_kc has joined #maemo | 10:12 | |
*** florian_kc has quit IRC | 10:31 | |
*** Oxyd76 has quit IRC | 10:40 | |
*** Oxyd76 has joined #maemo | 10:41 | |
bencoh | mreow~ | 10:44 |
---|---|---|
bencoh | any idea how I should check screen state (blank vs on) from an application? | 10:45 |
KotCzarny | ~phone-control | 10:46 |
KotCzarny | ~phonecontrol | 10:46 |
infobot | i guess phonecontrol is http://wiki.maemo.org/Phone_control | 10:46 |
*** Oxyd76 has joined #maemo | 10:46 | |
KotCzarny | hmm | 10:46 |
bencoh | Yeah, but ... 1. not sure that's what I'm looking for 2. I wonder if there is some hildon/osso function to do it | 10:46 |
KotCzarny | nothing there | 10:46 |
KotCzarny | nah, it wasnt for you | 10:46 |
KotCzarny | just didnt remember the link | 10:46 |
bencoh | ? | 10:47 |
KotCzarny | http://wiki.maemo.org/Phone_control#Query_lock_state_of_screen_and_keys | 10:47 |
KotCzarny | maybe that? | 10:47 |
bencoh | I don't think so | 10:47 |
KotCzarny | Will return locked or unlocked depending on lock state | 10:47 |
bencoh | I want to vibrate even if device is unlocked, as long as screen is blanked | 10:47 |
bencoh | (after blanking timeout for instance) | 10:47 |
bencoh | I'd happily check Conversation source, but we don't have it :( | 10:47 |
bencoh | hmm ... maybe I can check symbols though | 10:48 |
KotCzarny | i think you can check some widget source | 10:48 |
KotCzarny | or nokia programming hints | 10:49 |
bencoh | those pages seem pretty empty to me | 10:49 |
KotCzarny | they usually have to stop updating when screen blanked | 10:49 |
*** Oxyd76 has quit IRC | 10:49 | |
bencoh | U osso_hw_set_display_event_cb in rtcom-messaging-ui | 10:49 |
*** geaaru has joined #maemo | 10:50 | |
KotCzarny | fun, links on http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide use nokia.com | 10:51 |
bencoh | yeah :/ | 10:51 |
*** Oxyd76 has joined #maemo | 10:52 | |
Maxdamantus | I think you should be able to tell the state by looking at something in the associated sysfs node. | 10:52 |
KotCzarny | would be nice to convert them into archive.org links | 10:52 |
Maxdamantus | Though maybe if you're writing an actual application, it should go through something else. | 10:52 |
KotCzarny | maxd: well, he simply wants to know lcd power state | 10:53 |
KotCzarny | so sys might be the way | 10:53 |
*** Oxyd76 has quit IRC | 10:53 | |
KotCzarny | as long it's user readable | 10:53 |
Maxdamantus | /sys/class/backlight/acx*/brightness | 10:54 |
bencoh | eww | 10:54 |
Maxdamantus | the lock switch seems to just set that to 0 | 10:54 |
KotCzarny | why eww? fastest and lightest i guess | 10:55 |
Maxdamantus | Though I guess theoretically it might be logical for it to set it to 0 anyway (eg, if there's full sunlight, which means the backlight is pointless) | 10:55 |
Maxdamantus | (though ime, full sunlight means maximum brightness, not minimum) | 10:55 |
KotCzarny | oh, right | 10:56 |
KotCzarny | http://web.archive.org/web/20110622052725/http://nds2.fds-forum.nokia.com/p/d/fds_forum/a3187f95-ad88-4233-b0ef-a182da3ec1c7/Hildon_2_2_Widget_UI_Specification_v1_0_en.pdf/Hildon_2_2_Widget_UI_Specification_v1_0_en.pdf?fdptoken=1308806843_faa0c37acd80f5e2645b6b6625fd02b8 | 10:56 |
bencoh | oh, neat | 10:56 |
*** Oxyd76 has joined #maemo | 10:57 | |
KotCzarny | it might still work directly too, without archive.org | 10:57 |
bencoh | nothing related to what I'm looking for in this doc though | 10:59 |
bencoh | original link no longer works | 10:59 |
*** Oxyd76 has quit IRC | 11:01 | |
*** Oxyd76 has joined #maemo | 11:02 | |
bencoh | interesting ... rtcom-messaging-ui (conversation) does not even use libnotify ... | 11:05 |
bencoh | worse than that, looks like they implemented some builtin notification mechanism | 11:06 |
*** Oxyd76 has quit IRC | 11:06 | |
*** Oxyd76 has joined #maemo | 11:07 | |
KotCzarny | http://web.archive.org/web/20120126154837/http://nds2.fds-forum.nokia.com/p/d/fds_forum/55bf1016-809c-411d-8384-83361c073452/Maemo_5_Desktop_Widget_UI_Guidelines_v1_1_en.pdf/Maemo_5_Desktop_Widget_UI_Guidelines_v1_1_en.pdf?fdptoken=1327679314_94d31f4121f17468bd5ad741025d64d7 | 11:08 |
KotCzarny | darn, i recall there was some pdf/page that was talking about when to update widget contents | 11:09 |
KotCzarny | just cant seem to find it | 11:09 |
*** Oxyd76 has quit IRC | 11:10 | |
*** Oxyd76 has joined #maemo | 11:13 | |
*** jskarvad has joined #maemo | 11:15 | |
*** jskarvad has quit IRC | 11:15 | |
*** jskarvad has joined #maemo | 11:15 | |
bencoh | alright, so ... there is a MCE dbus request for that (#define MCE_DISPLAY_STATUS_GET "get_display_status") | 11:48 |
*** Oxyd76 has quit IRC | 11:51 | |
*** Oxyd76 has joined #maemo | 11:53 | |
spiiroin | bencoh: get initial state with that "get_display_status" mce method call and then track changes by listening to "display_status_ind" mce signals | 11:54 |
*** florian has quit IRC | 11:58 | |
spiiroin | bencoh: should be documented in mce-dev. I have no idea where maemo version is located, but for mer docs should apply for these "shared ancestry" parts: https://git.merproject.org/mer-core/mce-dev/blob/master/include/mce/dbus-names.h#L222 | 11:58 |
*** Oxyd76 has joined #maemo | 11:58 | |
*** florian has joined #maemo | 11:58 | |
*** florian has quit IRC | 12:01 | |
*** florian has joined #maemo | 12:01 | |
*** Oxyd76 has joined #maemo | 12:04 | |
*** Oxyd76 has quit IRC | 12:05 | |
Maxdamantus | Hm. I imagine optimally you would know to not bother updating just through X11. | 12:05 |
*** Oxyd76 has joined #maemo | 12:09 | |
*** Oxyd76 has joined #maemo | 12:10 | |
Maxdamantus | VisibilityNotify event, serial 32, synthetic NO, window 0x2c00001, state VisibilityFullyObscured | 12:12 |
Maxdamantus | Wonder if that event appears in response to locking the screen. | 12:13 |
Maxdamantus | Nope. | 12:14 |
spiiroin | iirc maemo mce just blanks/unblanks the screen via fbdev ioctls - whether xserver can tap to that, ... I do not recall | 12:14 |
bencoh | spiiroin: you're right about fbdev ioctls | 12:14 |
spiiroin | this is one of the parts that was heavily modified in mer - mce syncs blank/unblank with wayland compositor (in lipstick) | 12:14 |
*** Oxyd76 has joined #maemo | 12:15 | |
bencoh | at least for the opensource version | 12:15 |
*** Oxyd76 has quit IRC | 12:15 | |
*** Oxyd76 has joined #maemo | 12:16 | |
spiiroin | well, maemo mce is basically mer mce without few years worth of changes | 12:16 |
bencoh | yeah | 12:16 |
Maxdamantus | Windows don't even seem to be unmapped when switching to other ones on maemo. | 12:17 |
Maxdamantus | or notified of any obscuring. | 12:17 |
bencoh | uh, what? | 12:17 |
bencoh | ah | 12:18 |
bencoh | Maxdamantus: are you playing with xev? | 12:18 |
Maxdamantus | so there's no way for a window to know that its contents are completely irrelevant at the moment. | 12:18 |
Maxdamantus | bencoh: yes. | 12:18 |
Maxdamantus | I would imagine it should probably either unmap or denote obscurity of the window when switching to another one. | 12:18 |
Maxdamantus | and then map/unobscure it when the user goes to the window selection UI. | 12:19 |
* Maxdamantus wonders what other fancy compositing DEs do. | 12:21 | |
* Maxdamantus just uses xmonad on his desktops. | 12:21 | |
bencoh | alright, so I can either rely on MCE and send a dbus message to query display state before sending every notification, or rely on libosso and register callback to receive device change event (osso_hw_set_event_cb) | 12:23 |
bencoh | (and hope that system_inactivity_ind really reflects display status as mentioned in documentation) | 12:23 |
Maxdamantus | Yay for use of non-standard APIs where existing protocols already solve problems. | 12:24 |
bencoh | Maxdamantus: do you actually know of any standard API to do this? | 12:24 |
Maxdamantus | bencoh: X11 | 12:24 |
Maxdamantus | bencoh: but as I said, the WM on Maemo doesn't send any useful events. | 12:24 |
bencoh | huhu, I wondered about that one, but ... I'd rather not kludge a gtk/hildon codebase | 12:25 |
Maxdamantus | (or unmap the window, which results in Xorg creating the event) | 12:25 |
spiiroin | that libosso stuff is probably just wraps mce dbus interface (for display status) | 12:25 |
bencoh | spiiroin: could be. The thing is that the idea of waiting for mce to answer on every chat message doesn't sound too good to me | 12:28 |
bencoh | so registering / caching state on every update might be better | 12:28 |
spiiroin | bencoh: the normal way to do this is: install "display_status_ind" signal listener, do one "get_display_status" query -> you have initial state and are notified about changes | 12:29 |
bencoh | this is bothering me, for instance https://bugzilla.redhat.com/show_bug.cgi?id=617310 | 12:29 |
bencoh | spiiroin: I see ... thanks :) | 12:29 |
spiiroin | bencoh: ... and do that query asynchronously while at it ;-) | 12:30 |
bencoh | now the question is ... can I store display state somewhere in this pidgin-libnoityf plugin | 12:30 |
bencoh | spiiroin: with enough motivation I'd probably rewrite that plugin, but .... meh ;) | 12:30 |
*** juiceme_ has joined #maemo | 13:07 | |
*** florian_kc has joined #maemo | 13:07 | |
*** FalconSpy_ has joined #maemo | 13:07 | |
*** DocScrutinizer05 has quit IRC | 13:09 | |
*** spiiroin has quit IRC | 13:09 | |
*** ketas- has joined #maemo | 13:09 | |
*** Mek_ has joined #maemo | 13:09 | |
*** stryngs_ has joined #maemo | 13:10 | |
*** Maxdaman1us has joined #maemo | 13:11 | |
*** Vajb_ has joined #maemo | 13:11 | |
*** ArGGu^^_ has joined #maemo | 13:11 | |
*** esaym has joined #maemo | 13:11 | |
*** zama_ has joined #maemo | 13:11 | |
*** Gizmokid2010 has joined #maemo | 13:14 | |
*** pkill9 has joined #maemo | 13:15 | |
*** florian has quit IRC | 13:15 | |
*** trumee has quit IRC | 13:15 | |
*** freemangordon has quit IRC | 13:15 | |
*** esaym153 has quit IRC | 13:15 | |
*** Mek has quit IRC | 13:15 | |
*** ArGGu^^ has quit IRC | 13:15 | |
*** zama has quit IRC | 13:15 | |
*** Vajb has quit IRC | 13:15 | |
*** juiceme has quit IRC | 13:15 | |
*** Maxdamantus has quit IRC | 13:15 | |
*** ketas has quit IRC | 13:15 | |
*** Gizmokid2005 has quit IRC | 13:15 | |
*** FalconSpy has quit IRC | 13:15 | |
*** aloril has quit IRC | 13:15 | |
*** stryngs has quit IRC | 13:15 | |
*** Gizmokid2010 is now known as Gizmokid2005 | 13:16 | |
*** aloril has joined #maemo | 13:17 | |
*** Maxdaman1us is now known as Maxdamantus | 13:17 | |
*** zama_ has quit IRC | 13:20 | |
*** zama_ has joined #maemo | 13:20 | |
*** zama_ is now known as zama | 13:20 | |
*** pkill9 has quit IRC | 13:20 | |
*** freemangordon has joined #maemo | 13:22 | |
*** spiiroin has joined #maemo | 13:24 | |
*** Kabouik has joined #maemo | 13:32 | |
*** Kabouik_ has joined #maemo | 13:38 | |
*** Kabouik has quit IRC | 13:38 | |
*** eMHa_ has quit IRC | 13:51 | |
*** trumee has joined #maemo | 13:51 | |
*** Venemo has quit IRC | 14:00 | |
*** auenfx8 has quit IRC | 14:01 | |
*** auenf has joined #maemo | 14:03 | |
*** pkill9 has joined #maemo | 14:06 | |
*** Venemo has joined #maemo | 14:20 | |
*** Juesto has quit IRC | 14:24 | |
*** Oxyd76 has joined #maemo | 14:36 | |
*** Oxyd76 has quit IRC | 14:41 | |
*** Oxyd76 has joined #maemo | 14:41 | |
*** Oxyd76 has quit IRC | 14:43 | |
*** xes has quit IRC | 14:46 | |
*** Oxyd76 has joined #maemo | 14:46 | |
*** Oxyd76 has quit IRC | 14:51 | |
*** eMHa_ has joined #maemo | 14:53 | |
*** jskarvad has quit IRC | 14:55 | |
*** Oxyd76 has joined #maemo | 14:57 | |
*** jskarvad has joined #maemo | 15:00 | |
*** jskarvad has quit IRC | 15:00 | |
*** jskarvad has joined #maemo | 15:00 | |
*** Oxyd76 has quit IRC | 15:06 | |
*** halftux has joined #maemo | 15:58 | |
*** pkill9 has quit IRC | 16:13 | |
*** florian_kc is now known as florian | 16:14 | |
*** pkill9 has joined #maemo | 16:15 | |
*** xes has joined #maemo | 16:20 | |
*** pkill9 has quit IRC | 16:28 | |
*** eMHa_ has quit IRC | 16:37 | |
*** Juesto has joined #maemo | 16:42 | |
*** pkill9 has joined #maemo | 16:44 | |
*** Kabouik_ has quit IRC | 16:50 | |
*** Kabouik has joined #maemo | 16:50 | |
*** xy2_ has joined #maemo | 16:54 | |
*** DocScrutinizer05 has joined #maemo | 16:59 | |
*** Oxyd76 has joined #maemo | 17:23 | |
*** Oxyd76 has quit IRC | 17:23 | |
*** inz has quit IRC | 17:24 | |
*** inz has joined #maemo | 17:24 | |
*** Oxyd76 has joined #maemo | 17:28 | |
*** Oxyd76 has quit IRC | 17:32 | |
*** Oxyd76 has joined #maemo | 17:33 | |
*** DocScrutinizer05 has quit IRC | 17:35 | |
*** DocScrutinizer05 has joined #maemo | 17:37 | |
*** Oxyd76 has quit IRC | 17:37 | |
*** Oxyd76 has joined #maemo | 17:39 | |
*** Oxyd76 has quit IRC | 17:39 | |
*** Oxyd76 has joined #maemo | 17:44 | |
*** Oxyd76 has joined #maemo | 17:44 | |
*** Oxyd76 has quit IRC | 17:49 | |
*** eMHa has joined #maemo | 18:06 | |
*** jskarvad has quit IRC | 18:22 | |
*** Pali has joined #maemo | 18:25 | |
*** inz has quit IRC | 18:28 | |
*** inz has joined #maemo | 18:29 | |
*** thuttu77 has quit IRC | 18:35 | |
*** jskarvad has joined #maemo | 18:36 | |
*** jskarvad has quit IRC | 18:36 | |
*** jskarvad has joined #maemo | 18:36 | |
*** thuttu77 has joined #maemo | 18:40 | |
*** Mek_ is now known as Mek | 18:41 | |
*** Vajb_ has quit IRC | 18:47 | |
*** pkill9_ has joined #maemo | 18:50 | |
*** HRH_H_Crab has quit IRC | 18:50 | |
*** pkill9 has quit IRC | 18:50 | |
*** pkill9_ is now known as pkill9 | 18:50 | |
*** mquin has quit IRC | 18:50 | |
*** mquin has joined #maemo | 18:51 | |
*** florian has quit IRC | 18:55 | |
*** HRH_H_Crab has joined #maemo | 19:06 | |
*** Vajb has joined #maemo | 19:14 | |
*** dafox has joined #maemo | 19:23 | |
*** eMHa has quit IRC | 19:29 | |
*** jskarvad has quit IRC | 19:31 | |
*** trumee has quit IRC | 19:46 | |
*** florian has joined #maemo | 19:49 | |
*** trumee has joined #maemo | 19:52 | |
*** Kabouik has quit IRC | 19:59 | |
*** dafox has quit IRC | 20:02 | |
*** eMHa has joined #maemo | 20:05 | |
*** Pali has quit IRC | 20:10 | |
*** Oxyd76 has joined #maemo | 20:20 | |
*** Oxyd76 has quit IRC | 20:24 | |
*** Kabouik_ has joined #maemo | 20:25 | |
*** Oxyd76 has joined #maemo | 20:25 | |
*** xes has quit IRC | 20:28 | |
*** rumble has joined #maemo | 20:30 | |
*** xes has joined #maemo | 20:30 | |
*** grumble has quit IRC | 20:30 | |
*** rumble is now known as grumble | 20:30 | |
*** Oxyd76 has joined #maemo | 20:31 | |
*** Oxyd76 has quit IRC | 20:32 | |
*** xes has quit IRC | 20:37 | |
*** xes has joined #maemo | 20:40 | |
*** ketas- is now known as ketas | 20:45 | |
*** geaaru has quit IRC | 21:12 | |
*** halftux has quit IRC | 21:14 | |
*** pkill9 has quit IRC | 21:20 | |
*** HRH_H_Crab has quit IRC | 21:26 | |
*** xes has quit IRC | 21:27 | |
*** Pali has joined #maemo | 21:51 | |
*** Pali has quit IRC | 22:04 | |
*** geaaru has joined #maemo | 22:11 | |
*** LauRoman|Alt has quit IRC | 22:16 | |
*** Pali has joined #maemo | 22:20 | |
*** HRH_H_Crab has joined #maemo | 22:28 | |
*** LauRoman has joined #maemo | 22:28 | |
*** Pali has quit IRC | 22:29 | |
*** geaaru_ has joined #maemo | 22:36 | |
*** xes has joined #maemo | 22:37 | |
*** geaaru has quit IRC | 22:37 | |
*** pkill9 has joined #maemo | 22:42 | |
*** Oxyd76 has joined #maemo | 22:52 | |
*** Oxyd76 has quit IRC | 22:59 | |
*** Oxyd76 has joined #maemo | 23:02 | |
*** Oxyd76 has quit IRC | 23:05 | |
*** Oxyd76 has joined #maemo | 23:07 | |
*** pagurus has joined #maemo | 23:09 | |
*** Oxyd76 has joined #maemo | 23:12 | |
*** vectis has joined #maemo | 23:13 | |
*** Oxyd76 has quit IRC | 23:20 | |
*** Oxyd76 has joined #maemo | 23:23 | |
*** Oxyd76 has quit IRC | 23:24 | |
*** Trizt has quit IRC | 23:26 | |
*** Trizt has joined #maemo | 23:26 | |
*** clopez has quit IRC | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!