libera/#maemo-leste/ Thursday, 2023-04-20

norayrhow can i make d4 to vibrate when dino sends notification?00:44
uvos__norayr: besides wirteing your own notification deamon you cant10:46
uvos__norayr: the maemo notification deamon (par of h-h) is hardcoded to only blink the led/play sounds/vibrate etc for a specific set of stock freemantle apps10:47
uvos__yes this is a massive defficancy, fremantles notifcation system is bad in general10:48
Wizzupuvos__: we could change this10:59
Wizzupto vibrate on general ones too11:00
uvos__the problem is more the hardcodeing11:09
uvos__you dont want to vibrate on every notfication either11:09
uvos__the way sphone currently works is also a huge hack11:09
uvos__because it cant do the right thing because its not called rtcomm on dbus11:10
Wizzupdoesn't sound like it would be hard to add another item to h-d11:20
freemangordonuvos__: yes, we can change, just have to extend the functionality to do run-parts on config files11:20
Wizzupbtw: I will be a bit less available until Sunday, having family visit me11:21
freemangordonuvos__: also, your opinion on what is good or bad is not necessarily true, maybe add "IMO" when making such statements11:21
freemangordonnotifications protocol has a major deficiency that it does not have the idea of "persistent across reboot" notifications, but that does not make it "good" or "bad"11:23
freemangordonit is just that it lacks functionality11:24
freemangordonand BTW, this is why Nokia did what they did11:24
uvos__no11:29
uvos__i doubt11:29
uvos__persistant notifications are a thing in the spec, and cross reboot is no problem if they shove thair dbus endpoint into a x-maemo property11:30
uvos__the hardcodeing is just bad design11:30
uvos__i dont think there is anything subjective about it11:30
uvos__but no matter11:30
freemangordonno, persistent notifications are not saved across rebotos11:39
freemangordon*reboots11:39
freemangordonthey are persistent in the sense that user has to dismiss them11:39
freemangordonbut if reboot happens thay are lost11:39
freemangordon*they11:39
uvos__thats not true11:41
uvos__nothing in the spec prevents the notifcation server from saveing persistant notifcations across reboot11:42
uvos__it is simply silent on the topic11:42
uvos__imo in spec the difference between a presistant notification and one that has no timeout is not clear11:43
freemangordonbut on the other hand no daemon saves notifications across reboots, so I doubt they meant it12:01
freemangordonhmm, my PC keyboard seems to develop HW issues :(12:01
freemangordonanyway, I can implement something, if we agree on what exactly :)12:04
freemangordonuvos__: Wizzup: ^^^12:04
freemangordonuvos__: "Notifications will be retained until they are acknowledged or removed by the user or recalled by the sender."12:05
freemangordonbut, sfter a reboot sender is no longer valid12:05
freemangordonbecause, IIRC, sender is the process (dbus one) that made the notification in the first place12:06
freemangordonthis is not persistent across reboot, so there is no way a sender to remove notification after a reboot, even if it keeps the id12:07
freemangordonagree?12:07
WizzupI think that is true12:11
uvos__freemangordon: i think a first non-contraversioal thing to implement12:12
uvos__would be the xdg specs used when a notification dosent belong to a hardcoded sender12:12
uvos__like honoring the sound hint and so on12:12
uvos__this would initally improve the situation, since more stuff would just work with regular non maemo users of the xdg notification bus12:13
freemangordonright12:13
freemangordon"sound-name" I guess, or "sound-file" too?12:14
uvos__maybe both is not so hard idk, best check what gets used in practice maybe12:15
freemangordonalso, I am not sure how to deal with versions, as sound hint is supported by specs >= 1.212:15
uvos__i dont thing you have to worry about versions atm12:15
freemangordonok12:15
uvos__kdes notification server just reports the latest version12:16
freemangordonok, will start with that12:16
freemangordonmost-probably because it implements it :)12:16
uvos__sure maybe i missunderstood12:16
uvos__i mean that reporting a never version has no downside (if you implement it)12:16
freemangordonin the meanwhile will think about adding a way for an application to runtime-register itself like a fremantle apps do12:17
uvos__as they are backwards compatable with old clients12:17
freemangordonno, it is not12:17
freemangordonsee hints12:17
freemangordonthere are version conflicts12:17
* Wizzup back later12:17
freemangordonuvos__: a side question - besides xorg dying too early, do you think we have a proper login session now?12:18
uvos__sure, could be better however12:19
uvos__currently we cant restart it if it fails12:19
uvos__also usind xdg-session spec would have benefits12:19
uvos__but this is small fry12:19
freemangordonwhat do you mean "session fails"?12:19
freemangordonxorg dies?12:20
uvos__or autologind12:20
uvos__*autologin12:20
uvos__ie if the session ends12:20
uvos__we cant restart it12:20
uvos__why dosent matter12:20
freemangordonI don;t think we want to anyways12:20
freemangordonbetter restart the device12:20
uvos__not really12:20
uvos__if x dies restarting just it would be better no?12:20
freemangordonactually, there is no reason to not be able to restart the session12:20
freemangordonit is a matter of telling dsme to do so12:21
uvos__also on mapphones is would be beneftical to be able to do so12:21
uvos__to swich ui12:21
uvos__when transforming to laptop mode12:21
freemangordonhere https://github.com/maemo-leste/maemo-system-services/blob/master/debian/maemo-system-services.xorg.init#L1512:21
freemangordonwe can tell dsme to not reboot, but to restart the session12:22
freemangordonbut those are details I guess12:22
freemangordonmy question was more general, like "did I miss something obvious"12:23
uvos__no12:23
uvos__btw12:23
freemangordonalso, what about https://github.com/maemo-leste/dsme/commit/929cde639a74cecde58d1fdf86316daa51ea1e2712:23
uvos__i dont think the ts inhibit is working12:23
uvos__pm wise12:23
freemangordonit is, at least here12:23
uvos__ i mean its inhibiting it12:23
freemangordonah12:23
uvos__but this seams to not reduce power12:23
freemangordonit does here12:24
uvos__hm12:24
freemangordonabout 30mW lee12:24
freemangordon*less12:24
uvos__maybe its something else12:24
uvos__currently my device dosent idle right12:24
freemangordonwhat is the power usage?12:24
uvos__200mW12:24
uvos__ill investigate later12:24
freemangordonhere it hits less that 150 at times, connected to wifi12:25

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