/srv/irclogs.ubuntu.com/2014/05/22/#xubuntu-devel.txt

ochosiso this line needs to be conditional actually: https://github.com/EricKoegel/xfce4-power-manager/blob/21b8e5abf4e5f93c28cb964b4618b9b509780951/src/xfpm-manager.c#L35000:00
ochosior if you prefer upstream: http://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-manager.c#n34700:00
ochosiif light-locker is in use, this cannot be called, if xscreensaver is in use, it has to be called00:01
bluesabrexfpm in xubuntu is neither though, right?00:01
ochosilogind is completely independent of it, it'll just fire a lock-signal that only light-locker will catch00:01
ochosixfpm in xubuntu has a few patches, but this part (logind inhibition) should be the same00:02
ochosithe same patch has been applied upstream as is carried in xubuntu00:02
ochosiit just hasn't been released yet00:02
bluesabreok00:02
ochosiand yeah, you're right, it'd be nice if light-locker could check for xfpm's settings and flip that config option itself00:03
ochosibut it depends on many variables, so it's not a lot of fun to add that code...00:04
ochosi1) is systemd even there00:04
ochosi2) is xfpm there00:04
ochosi3) (lid-close-event=suspend && lock-on-suspend=TRUE) ?00:04
ochosi4) is another locking programme installed00:05
ochosibluesabre: so i'll have to hit the hay now...00:07
bluesabreok, I'll hack on this for a few hours00:07
bluesabretry to have something ready by morning00:08
ochosiyou don't happen to have another laptop you can reproduce this with?00:08
bluesabrenope, gave my old laptop to my sister-in-law00:08
bluesabrebut I can verify if xfconf-settings are applied00:08
bluesabreso thats something00:08
ochosiyou can also add some debug statement00:09
bluesabreyeah00:09
ochosito see whether logind is correctly inhibited when the lock/suspend settings are set00:09
bluesabreYEAH00:09
bluesabreyeah00:09
bluesabreI'll figure it out :D00:09
ochosiwow, you*re excited, eh? ;)00:09
bluesabreYAY CAPS00:09
ochosihehe00:09
knomehuhu00:10
ochosibluesabre: ok, as it is so befitting now: good night and good luck!00:11
bluesabreseeya ochosi00:11
ochosinight everyone (else)00:11
knomenight00:12
knomei guess i should go as well00:12
bluesabrehm00:51
bluesabreits not an easy task to even build xfpm00:51
bluesabrecool, so that works01:31
bluesabre:)01:31
bluesabreochosi: part 1 http://paste.ubuntu.com/7499838/02:18
bluesabreI've tested and it does inhibit logind based on the setting02:18
bluesabreso that's likely a good thing02:18
bluesabrethe limitation right now is that xfpm needs to be restarted for changes to take effect02:19
bluesabreI'll fix that next, but I'm starting to get a bit tired now02:19
Unit193bluesabre: Just in case you didn't see it: https://bugs.launchpad.net/ubuntu/+source/lightdm-gtk-greeter/+bug/132083008:15
ubottuLaunchpad bug 1320830 in lightdm-gtk-greeter (Ubuntu) "Please merge lightdm-gtk-greeter 1.8.5-1 from Debian unstable" [Undecided,Confirmed]08:15
Unit193it=the reply.08:15
ochosibluesabre: sounds like a good start09:15
ochosimorning everyone09:15
slickymasterWorkmorning ochosi 09:16
ochosiahoj slickymasterWork 09:16
=== brainwash_ is now known as brainwash
bluesabreUnit193: yeah, I saw it, will try to fix that today (not entirely sure how that happened)11:02
ochosimorning bluesabre 11:05
ochosii think we might be able to also use what you have now for trusty11:07
bluesabrehey ochosi11:07
bluesabreI'll fix it up today and then we should be in good shape11:07
ochosifor the end-user, it boils down to enabling/disabling a switch in xfconf11:07
bluesabreyeah11:08
ochosidoesn't matter whether it's logind that is inhibited or xflock11:08
ochosiin the long run though, we need a better solution in xfpm/light-locker11:08
bluesabrethe default is true (maintain the current status), so they won't see the setting unless it gets turned off for light-locker11:08
ochosiright11:09
ochosiI'd also like to integrate all of light-locker's settings somehow in xpfm and get rid of lls11:10
ochosimore dialogs just leads to more complication11:10
bluesabreyup11:10
bluesabrewhen are you and eric planning on a new xfpm release?11:11
ochosihe said he's planning to finish the suspend without systemd feature this weekend11:11
ochosithen there's only a rather small issue left on the agenda11:11
ochosiso i hope next week there'll be a new release11:11
ochosi(that'd be a dev release though)11:11
bluesabreawesome11:12
ochosii'm not sure atm how/where to integrate some of the light-locker settings...11:12
ochosiit's mostly about late-locking, because that's a very ll specific option11:13
bluesabreI'd vote for adding a compile-time option for light-locker support11:14
bluesabrewhich just adds another section to xfpm11:14
bluesabreor11:15
bluesabrehere's an idea11:15
ochosiyeah, we could do that11:15
bluesabrehave a dropdown11:15
bluesabre"preffered lock screen"11:15
ochosiyeah, i also thought about that...11:15
bluesabredetects xscreensaver, gnome-screensaver, light-locker11:16
ochosithat'd rid us of xflock11:16
bluesabreand disables the one thats not chosen when the xfpm daemon is running11:16
ochosii just don't think it's cool to "burden the user" with stuff like that..11:16
bluesabreits already a burden11:17
bluesabrethe user just has to install any gnome package that pulls gnome-desktop11:17
ochosiouch. true that...11:17
bluesabreand then they have two running screensavers11:17
ochosiok, i'll put it on the roadmap11:17
ochosiat least the selection of locker makes sense11:17
ochosixfce4-session is still relying on xflock4 though11:18
bluesabreand light-locker settings can be controlled if light-locker is selected, a button for xscreensaver config if its selected, etc11:18
ochosiwell frankly i don't know of many more lockers11:19
ochosixlock, sure, but it doesn't have a dialog iirc11:19
ochosisame for gnome-screensaver11:19
bluesabreright11:19
* ochosi regrets a bit that we decided to drop out the lock window of light-locker...11:20
ochosibut i guess at that point it wasn't foreseeable that VT switching would cause that much trouble11:20
bluesabreyeah11:22
bluesabreochosi: did you see https://bugs.launchpad.net/ubuntu/+source/light-locker/+bug/132124411:23
ubottuLaunchpad bug 1321244 in light-locker (Ubuntu) "Light-locker easy to circumvent when using two separate Desktops" [Undecided,Incomplete]11:23
ochosii did11:24
ochosiit's a very very specific case though11:24
brainwashand what about the idea to always late-lock?11:28
ochosiit isn't the ideal behavior for everyone11:28
ochosiand it still pauses the "music" (or whatever is running) when you touch the mouse once11:29
brainwashwhat trouble does it cause?11:29
brainwashthat is not a problem11:29
ochosiso after touching the mouse/kb once, it's just like regular locking11:29
ochosiwe can consider making it default in 14.10, but for 14.04 that ship has sailed anyways11:29
brainwashbut it should solve the lid-close problem or?11:29
ochosino11:30
ochosiit has no effect on that11:30
brainwashso the vt switch is not the culprit?11:30
brainwashlate-locking would delay it until resume11:31
ochosiare you sure about that?11:31
brainwashisn't this how late-locking works?11:31
ochosilate-locking only is related to the timeout11:32
ochosithe suspending sends a lock-signal and that should immediately lock the session11:32
brainwashand I suggest that light-locker always does late-locking11:33
brainwashby default11:33
ochosion suspend it's less safe, so that'd be a -1 from me11:33
bluesabrethat has it's downsides11:33
ochosifurthermore it works flawlessly with logid11:33
ochosilogind11:33
bluesabrethe vt switch takes a surprising amount of time to perform11:34
ochosionly the asynchronously running "stupid" xflock script causes that issue11:34
brainwashit does?11:34
bluesabreat least with nvidia drivers11:34
ochosiyup11:34
ochosisame here11:34
ochosilots of flickering and lots of time passing...11:34
ochosi(very annoying in fact)11:34
bluesabrealso, a couple of ideas...11:35
bluesabrexflock4 stays, new command tried first "xfce4-power-manager --lock-screen" which will forward commands if it manages them, or returns 1 if not11:35
ochosii recently noticed that lightdm has a new feature to keep the greeter alive to reduce the switching time11:36
brainwashbut still, late-locking wouldn't act differently than logind triggered locking11:36
ochosibluesabre: that is a very good idea11:36
brainwashboth switch the vt on resume11:36
bluesabresince xfce is modular and xfpm may not be used11:36
bluesabretrue11:36
bluesabrebut the scenario is not for lid-lock when late-locking11:36
bluesabrebut for mouse-wiggle11:36
ochosibrainwash: yeah, but it's it least all handled by logind11:37
ochosisuspend isn't handled by light-locker at all11:37
ochosiso with logind, you have one process synchronously handling the suspending and the resuming and the locking11:37
ochosiif it's asynchronous, you get the race condition we're currently dealing with11:37
ochosi(as far as i understand this911:38
brainwasha switch to trigger late-locking would also help if the user manually locks the screen and still wants to hear the sound playing11:39
bluesabreidea2 (unrelated): have a 30 second timer after receiving lock command where the greeter does not sleep the display.  if no movement, sleep the display early11:39
bluesabre(to improve late-locking)11:39
brainwashltae-locking is the solution :D11:40
brainwashlate11:40
ochosisolution to what?11:41
brainwashlight-locker related problems :)11:44
ochosinah, light-locker2.0 will be the answer to that11:44
bluesabreI'm ready to be done with bug fixes and get on with developing new features... trusty.1 is not fun :)11:44
ochosinot having to switch vt anymore11:44
ochosibluesabre: we still will want to fix xdg-screensaver though...11:45
ochosithat's something we'll need for .1 and 14.1011:45
ochosisucks if parole can't inhibit the screensaver11:45
ochosiand my workaround/patch is just an illustration of xdg-screensaver failing11:46
bluesabreyeah, true11:46
ochosias that is also just a dumb script, let's hope the bug is easy to fix11:46
ochosibut it's hard to narrow down why/what doesn't work exactly11:47
ochosibrainwash: feel like debugging xdg-screensaver a bit?11:54
brainwashgeneral debugging?11:56
ochosiwell i'd like to know why it doesnÃ't work with light-locker11:58
ochosiit actually has the fallback option of controlling X11's screensaver extension11:58
ochosiwhich is what light-locker is using11:58
ochosiso it should be handled correctly11:58
brainwashbut only if late-locking is enabled or?11:59
ochosino, that's totally unrelated12:00
ochosixdg-screensaver is a script that inhibits known screensavers12:00
ochosiso it has special cases for gnome-screensaver and xscreensaver12:00
ochosiand one for kde12:00
ochosiand then a fallback12:00
ochosiso mediaplayers like parole use it to inhibit the screensaver when playing a video fullscreen12:01
brainwashon my main system it simply blanks and unblanks my screen, on top of that even changes screen brightness randomly :/12:01
ochosiyou're not supposed to call xdg-screensaver as a user12:02
brainwashah12:02
ochosiit's a tool for mediaplayers12:02
brainwashoh12:02
ochosior whatever wants to inhibit screensavers12:02
ochosiit's a bash-script though, so it's readable in /usr/bin12:02
brainwashnot even bash12:03
brainwashonly sh12:03
brainwash1000 lines of code o.o12:03
ochosiyeah, but you can skip most of it12:04
brainwashso it has no special code for light-locker12:04
ochosino, and it doesn't have to have12:04
ochosibecause light-locker doesn't manage the screensaver, it only reacts to it12:04
ochosiX11 handles it12:05
ochosi(the setting you get/set with xset q/s)12:05
brainwashah, got it12:05
brainwashlight-locker adds so much confusion12:05
ochosiin this case it doesn't, it's the same as not using xscreensaver or gnome-screensaver12:07
brainwashscreensaver_xserver()12:07
ochosiyup12:07
brainwashit's present twice in the code12:08
ochosiyuo12:09
ochosii dont know why though12:09
ochosicould be part of the problem12:10
brainwashbut parole prevents the screen from blanking, right?12:13
brainwashlight-locker not running12:13
ochosiit doesn't without xscreensaver12:13
ochosinope, it's unrelated to light-locker12:13
ochosilight-locker does *not* blank the screen :) that's X1112:13
brainwashyes, I know12:13
brainwashso xdg-screensaver is somewhat broken12:14
ochosiso it happens either way, because xdg-screensaver doesn't detect / have a special scenario for light-locker12:14
ochosip12:14
ochosiyu12:14
brainwashmaybe a bug report already exists12:14
ochosithat's my assessment at least12:14
ochosii searched but couldn't find anything relevant so far12:14
ochosiseems practically nobody uses the X11 extension12:14
ochosior cares about mediaplayers12:15
brainwashbut many people use simple screen lockers12:15
brainwashmmh12:15
ochosibut those maybe just disable the screensaver.. who knows why it hasn't been widely reported12:17
ochosianyway, i gotta run12:17
ochosibbl12:17
brainwashok cya12:17
=== zequence_ is now known as zequence
SaXx_Hey17:23
elfyhi SaXx_ 17:23
SaXx_Hey Elfy :)17:24
=== MTwister is now known as ManiacTwister
ochosibrainwash: did you look into xdg-screensaver any further?18:07
brainwashochosi: no =S18:34
brainwashmaybe we should report that this patch can be dropped18:35
brainwashhttp://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/xdg-utils/trusty/view/head:/debian/patches/xserver-blanking.diff18:35
brainwashdoes the media player blanking problem affect you?18:37
ochosiyup18:40
ochosiit does affect everyone that doesn't use xscreensaver or gnome-screensaver afaik18:40
brainwashyou could add set -x to the script and redirect the output18:40
ochosii wonder whether dropping the patch would fix it18:40
brainwashbut even with the duplicated entries it should work fine I think18:42
brainwashit's only a shell script, so it can be easily debugged18:44
ochosiyeah, i know, i just don't have the time for it right now...18:46
elfyevening both18:46
ochosihey elfy 18:47
brainwashhey elfy 18:47
ochosibrainwash: that's why i asked you in the first place18:47
brainwashgot no access to my test system right now18:47
brainwashand it's strange that ubuntu ships this patch18:48
* ochosi shrugs18:50
ochosii've never really bothered with xdg-utils18:50
ochosiuntil i debugged this screensaver thingy and found xdg-screensaver18:51
brainwashlow priority issue, we will get it fixed in .119:05
ochosiyeah, i hope19:10
brainwashand maybe https://code.launchpad.net/~thad-fisch/lightdm-gtk-greeter/lp-1024482 too20:14
brainwashochosi: interesting report here bug 132230520:17
ubottubug 1322305 in xfce4-settings (Ubuntu) "xfc4-settings needs shimmer-themes as a dependency" [Undecided,New] https://launchpad.net/bugs/132230520:17

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