Carsten Haitzler (The Rasterman) ha scritto il 27/03/2017 alle 01:41:
> On Sun, 26 Mar 2017 20:01:44 +0200 Massimo Maiurana <maiur...@gmail.com> said:
> 
>> Carsten Haitzler (The Rasterman) ha scritto il 26/03/2017 alle 15:36:
>>> On Sat, 25 Mar 2017 22:36:45 +0100 Massimo Maiurana <maiur...@gmail.com>
>>> said:
>>>
>>>> Carsten Haitzler (The Rasterman) ha scritto il 23/03/2017 alle 00:29:
>>>>> On Wed, 22 Mar 2017 12:49:09 +0100 Massimo Maiurana <maiur...@gmail.com>
>>>>> said:
>>>>>
>>>>>> Carsten Haitzler (The Rasterman) ha scritto il 21/03/2017 alle 00:11:
>>>>>>> On Mon, 20 Mar 2017 22:50:13 +0100 Massimo Maiurana <maiur...@gmail.com>
>>>>>>> said:
>>>>>>>
>>>>>>>> Carsten Haitzler (The Rasterman) ha scritto il 20/03/2017 alle 04:02:
>>>>>>>>> On Sun, 19 Mar 2017 21:49:00 +0100 Massimo Maiurana
>>>>>>>>> <maiur...@gmail.com> said:
>>>>>>>>>
>>>>>>>>>> Massimo Maiurana ha scritto il 19/03/2017 alle 14:29:
>>>>>>>>>>> Mick ha scritto il 19/03/2017 alle 13:23:
>>>>>>>>>>>> On Sunday 19 Mar 2017 09:44:23 Massimo Maiurana wrote:
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> I finally bought a brand new laptop :)
>>>>>>>>>>>>>
>>>>>>>>>>>>> Of course I installed E, building from source as I've always did
>>>>>>>>>>>>> but I have two problems to solve.
>>>>>>>>>>>>>
>>>>>>>>>>>>> The first is regarding acpi events: closing lid the laptop should
>>>>>>>>>>>>> suspend, and indeed it is what happens under gnome (there also lid
>>>>>>>>>>>>> open resumes it) but does not happen under E. Acpid is not
>>>>>>>>>>>>> installed so probably that's what I need, but I wonder why it
>>>>>>>>>>>>> works in gnome.
>>>>>>>>>>>>
>>>>>>>>>>>> I don't run gnome, but from a more generic perspective you will
>>>>>>>>>>>> need to install acpid and make sure it is running as a service
>>>>>>>>>>>> when you boot up. Closing the lid then generates an event captured
>>>>>>>>>>>> by acpid which by default will suspend to ram.  Check what you
>>>>>>>>>>>> have at Settings > Settings Panel > Input 
>>>>>>>>>>>>> ACPI Bindings > Lid Closed.  I have set mine to 'Suspend
>>>>>>>>>>>>> Intelligently' and 
>>>>>>>>>>>> it works as advertised.
>>>>>>>>>>>
>>>>>>>>>>> Hmh, well, i'm not sure acpid is required for this to work. I think
>>>>>>>>>>> acpid is for managing acpi events, not for exposing them, or lid
>>>>>>>>>>> close wouldn't work even under other environments. I'll try
>>>>>>>>>>> installing it and see if it solves the problem.
>>>>>>>>>>
>>>>>>>>>> Well, I installed acpid, now lid events are recognized but an old
>>>>>>>>>> issue is back: dpms.
>>>>>>>>>> Before installing acpid screen blanking did work as expected, after
>>>>>>>>>> reaching timeout the screen was really blanked out, with acpid
>>>>>>>>>> installed the backlight is never turned off so it is more an
>>>>>>>>>> obscuring than a blanking. Indeed "xset q" says that dmps is off :/
>>>>>>>>>
>>>>>>>>> e enables dpms no matter what (unless blanking is off). unless
>>>>>>>>> something else modified dpms after e changed it... it should stay
>>>>>>>>> there. if you restart e it should go back to being set (ctrl+alt+end
>>>>>>>>> not  log out and log in). acpid itself would not do this at all as it
>>>>>>>>> doesn't know about x. i suspect something like gnome-settings-daemon
>>>>>>>>> is doing this. poke there.
>>>>>>>>
>>>>>>>> Indeed that does the trick, dpms is enabled if I restart E. And yes,
>>>>>>>> gnome-settings-daemon is running, probably because gdm pulls it in. Is
>>>>>>>> there a way I can prevent gsd from starting and/or make it not mess
>>>>>>>> with dpms settings?
>>>>>>>
>>>>>>> kill it before e starts? :) use a ~/.xsession to do it then run
>>>>>>> enlightenment_start ?
>>>>>>
>>>>>> I can't kill it as a user, don't have permissions to do it because it is
>>>>>> launched by user Debian-gdm :(
>>>>>
>>>>> then stop using gdm... use lightdm, xdm, slim ... something else...?
>>>>
>>>> I tried both lightdm and slim, gsd is not running but E always starts
>>>> with dpms disabled :(
>>>
>>> something else resetting on login? what processes are running?
>>
>> Attached are outputs from "ps aux" and "pstree", there are a lot of
>> processes but I can't understand what could be messing with dpms settings.
> 
> hmm. i dont see anything there that i think would do it... but maybe it's
> started then exits fast on startup and someone else starts it... :/ ?

Someone else definitely no as I'm the only user... something else could
be, the problem is finding what does it :(

>>>> There is another gnome related process which is launched at startup:
>>>> at-spi2-registryd, the accessibility daemon, launched with the option
>>>> --use-gnome-session. Maybe it could control dpms settings but I don't
>>>> know how to prevent it from running. Someone said that the env variable
>>>> NO_AT_BRIDGE=1 should do it, but that's not true at least here.
>>>
>>> who starts that? i know e's code goes through the exact same path on login
>>> and restart when it comes to applying config like dpms... or it used to...
>>
>> Looks like it's started by systemd.
>> If I manually restart E it enables dpms; maybe that restart you are
>> talking doesnìt occur for some reason?
> 
> the restart is the "manually restart e". all e dopes it exec() itself like 
> fork
> () +exec() for any process. it replaces itself with itself. e goes through
> almost the same init when restarting - it knows it's restarting because e sets
> an environment variable that stays around after exec()... and when restarting
> it skips a few things like startup apps (doesnt run them)... but the screen
> setup is still the same code path on start and restart...
> 
> e_dpms_init() calls e_dpms_force_update(). e_dpms_force_update() calls
> ecore_x_dpms_enabled_set(). e_dpms_init() is called unconditionally on startup
> from main()... so it's all called and set up... either somehow screen saving 
> is
> deemed to be off at this time (which is odd that it sets it up later with no
> cfg change... it just goes through this path again on restart)... or something
> else undoes the dpms setup during startup... you have a LOT of stuff running
> though i see. a LOT.

Apart from my apps (terminology+tmux, thunderbird, firefox, tint2,
telegram) it's all debian stuff. Oh, and there are even some services I
need (apache, mariadb and maybe something else).

For now I did a workaround creating a desktop app that executes "xset
+dpms" and put it in startup apps. At least now it works :)

Thanks
Massimo

>>>>>>>>>>>>> The second is about icons: Applications menu is full populated
>>>>>>>>>>>>> with all applications, including my own in
>>>>>>>>>>>>> ~/.local/share/applications, but only 3 of them have an icon
>>>>>>>>>>>>> associated (a custom of mine, gnome-font-viewer and the E
>>>>>>>>>>>>> filemanager). Also, much more annoying, evry doesn't list desktop
>>>>>>>>>>>>> applications in the list that appears when I start typing, only
>>>>>>>>>>>>> executables and directories are listed.
>>>>>>>>>>>>
>>>>>>>>>>>> Settings > Settings Panel > Menu Settings > Applications, should
>>>>>>>>>>>> give you some options.  One of these ought to make all/most
>>>>>>>>>>>> application icons to show up. Also check Settings > Settings Panel
>>>>>>>>>>>>> Menu Settings
>>>>>>>>>>>>> Miscellaneous, does not have 'Disable icons in menus' selected.
>>>>>>>>>>>
>>>>>>>>>>> I DO have applications in menu, my problem is not that. What I miss
>>>>>>>>>>> is icons for applications, but for that three applications mentioned
>>>>>>>>>>> above that have an icon in their own menu entry. If "disable icons"
>>>>>>>>>>> was checked I wouldn't have any icon neither for those three ;)
>>>>>>>>>>>
>>>>>>>>>>> Also, as said, I don't have applications displayed in evry.
>>>>>>>>>>> E.g. on the other laptop if I type "ice" in evry I see the icedove
>>>>>>>>>>> icon and so I can launch that application; I also see the icedove
>>>>>>>>>>> binary but can distinguish between them because the application
>>>>>>>>>>> starts with a capital letter and also displays an icon. In this
>>>>>>>>>>> laptop if i type "ice" I see only the icedove executable, not the
>>>>>>>>>>> application.
>>>>>>>>>>>
>>>>>>>>>>> Other example: I have a custom application named "Bpiol", which
>>>>>>>>>>> executes a binary called "launcher_linux.bat". If I type "bp" I
>>>>>>>>>>> don't see the application, and because the executable doesn't have
>>>>>>>>>>> the same name I don't see nothing. But evry displays menu
>>>>>>>>>>> categories as dirs, so if I browse that dirs I can reach any
>>>>>>>>>>> application including "Bpiol".
>>>>>>>>>>>
>>>>>>>>>>>> To configure Everything, check your settings under Settings >
>>>>>>>>>>>> Settings Panel > Launcher.
>>>>>>>>>>>>
>>>>>>>>>>>> HTH  :-)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> Check out the vibrant tech community on one of the world's most
>>>>>>>>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> enlightenment-users mailing list
>>>>>>>>>>>> enlightenment-users@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>> Massimo Maiurana
>>>>>>>>>> Ragusa (RG)
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> Check out the vibrant tech community on one of the world's most
>>>>>>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>>>>>>> _______________________________________________
>>>>>>>>>> enlightenment-users mailing list
>>>>>>>>>> enlightenment-users@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Massimo Maiurana
>>>>>>>> Ragusa (RG)
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Massimo Maiurana
>>>>>> Ragusa (RG)
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Massimo Maiurana
>>>> Ragusa (RG)
>>>>
>>>
>>>
>>
>>
>> -- 
>> Massimo Maiurana
>> Ragusa (RG)
> 
> 


-- 
Massimo Maiurana
Ragusa (RG)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to