Re: [e-users] xdg-bs

2017-03-27 Thread Peter Flynn
On 03/28/2017 12:49 AM, Carsten Haitzler (The Rasterman) wrote:
> your problem is a chromium problem... it's doing whatever it wants to and not
> using the xdg mechanisms in place.

Yes, that seems to be true. I don't know what they smoke over in
Google's codehole, but it's not doing them any good :-)

///Peter


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Peter Flynn
On 03/27/2017 11:20 PM, Mick wrote:
> On Monday 27 Mar 2017 20:47:29 Peter Flynn wrote:
>> On 03/27/2017 07:56 PM, Mick wrote:
>>> On Monday 27 Mar 2017 19:39:21 Peter Flynn wrote:
 On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
>
>  said:
>> Okay, this is annoying...
>>
>> claws-mail uses xdg-open to decide what app to use when opening files
>> (rather than 'alternatives', which is the standard Debian way to do
>> this), so clicking on a link in email always opens Chromium rather than
>> Firefox which is my system default browser. When I try to see/change it
>> in Enlightenment, I get the following.
>>
>> $ xdg-settings get default-web-browser
>> xdg-settings: unknown desktop environment
>>
>>
>> Any ideas on how to change this setting to point to Firefox?
>
> settings -> apps -> default applications -> browser

 And does that *really* change xdg settings?

 The *big* problem for me is that when I click on a mailto: link in
 chromium-browser, it just opens another browser window, or sometimes
 pops up a window saying it wants to run some unspecified program
 recommended by xdg, which never does anything. If anyone knows how to
 force chromium-browser to open Thunderbird, I'd be grateful.

 ///Peter
>>>
>>> Have you tried setting something in Handlers to see if it takes?
>>> https://support.google.com/chrome/answer/114662?visit_id=0-636262376794060
>>> 954-3121866498=ib_protocol_handler=2
>> Unfortunately that's for requesting *web* services to respond to
>> protocol calls (eg make mailto: open Hotmail). It's set by default, but
>> it doesn't do anything that I can see for *programs* (eg Tbird).
>>
>> ///Peter
> 
> Yes, I noticed the same just now.  I cannot add anything to it ...
> 
> I suspect Chromium/Chrome use xdg-open, so:
> 
> 'xdg-mime query default message/rfc822'
> 
> should show your default application for e.g. viewing messages.

Yes, it shows thunderbird.desktop -- but chromium-browser ignores this.

///Peter


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread The Rasterman
On Mon, 27 Mar 2017 23:20:28 +0100 Mick  said:

> On Monday 27 Mar 2017 20:47:29 Peter Flynn wrote:
> > On 03/27/2017 07:56 PM, Mick wrote:
> > > On Monday 27 Mar 2017 19:39:21 Peter Flynn wrote:
> > >> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> > >>> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
> > >>> 
> > >>>  said:
> >  Okay, this is annoying...
> >  
> >  claws-mail uses xdg-open to decide what app to use when opening files
> >  (rather than 'alternatives', which is the standard Debian way to do
> >  this), so clicking on a link in email always opens Chromium rather than
> >  Firefox which is my system default browser. When I try to see/change it
> >  in Enlightenment, I get the following.
> >  
> >  $ xdg-settings get default-web-browser
> >  xdg-settings: unknown desktop environment
> >  
> >  
> >  Any ideas on how to change this setting to point to Firefox?
> > >>> 
> > >>> settings -> apps -> default applications -> browser
> > >> 
> > >> And does that *really* change xdg settings?
> > >> 
> > >> The *big* problem for me is that when I click on a mailto: link in
> > >> chromium-browser, it just opens another browser window, or sometimes
> > >> pops up a window saying it wants to run some unspecified program
> > >> recommended by xdg, which never does anything. If anyone knows how to
> > >> force chromium-browser to open Thunderbird, I'd be grateful.
> > >> 
> > >> ///Peter
> > > 
> > > Have you tried setting something in Handlers to see if it takes?
> > > https://support.google.com/chrome/answer/114662?visit_id=0-636262376794060
> > > 954-3121866498=ib_protocol_handler=2
> > Unfortunately that's for requesting *web* services to respond to
> > protocol calls (eg make mailto: open Hotmail). It's set by default, but
> > it doesn't do anything that I can see for *programs* (eg Tbird).
> > 
> > ///Peter
> 
> Yes, I noticed the same just now.  I cannot add anything to it ...
> 
> I suspect Chromium/Chrome use xdg-open, so:
> 
> 'xdg-mime query default message/rfc822'
> 
> should show your default application for e.g. viewing messages.

e does set x-scheme-handler/http (and https)... to whatever you set the
default browser to. same for the other fields. see
~/.local/share/applications/defaults.list

enlightenment_open will use what is in here to choose what to open and dg-open
will call enlightenment_open ... whatever chromium chooses to do is it's own
problem... e does do the right thing.

> -- 
> Regards,
> Mick
> 
> --
> 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
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread The Rasterman
On Mon, 27 Mar 2017 19:39:21 +0100 Peter Flynn  said:

> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> > On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
> >  said:
> > 
> >>
> >> Okay, this is annoying...
> >>
> >> claws-mail uses xdg-open to decide what app to use when opening files
> >> (rather than 'alternatives', which is the standard Debian way to do
> >> this), so clicking on a link in email always opens Chromium rather than
> >> Firefox which is my system default browser. When I try to see/change it
> >> in Enlightenment, I get the following.
> >>
> >> $ xdg-settings get default-web-browser
> >> xdg-settings: unknown desktop environment
> >>
> >>
> >> Any ideas on how to change this setting to point to Firefox?
> > 
> > settings -> apps -> default applications -> browser
> 
> And does that *really* change xdg settings?
> 
> The *big* problem for me is that when I click on a mailto: link in
> chromium-browser, it just opens another browser window, or sometimes

it changes what enlightenment_open will do... and xdg-open will call
enlightenment_open (if it detects it's in enlightenment which is does for me).

your problem is a chromium problem... it's doing whatever it wants to and notr
using the xdg mechanisms in place.

> pops up a window saying it wants to run some unspecified program
> recommended by xdg, which never does anything. If anyone knows how to
> force chromium-browser to open Thunderbird, I'd be grateful.
> 
> ///Peter
> 
> 
> --
> 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
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
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


Re: [e-users] Acpi events

2017-03-27 Thread The Rasterman
On Mon, 27 Mar 2017 19:20:44 +0200 Massimo Maiurana  said:

> Carsten Haitzler (The Rasterman) ha scritto il 27/03/2017 alle 01:41:
> > On Sun, 26 Mar 2017 20:01:44 +0200 Massimo Maiurana 
> > 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 
> >>> 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 
> > 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
> >>>  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
> >  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 :(

by "someone else" i meant some other process... :)

>  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 

Re: [e-users] xdg-bs

2017-03-27 Thread The Rasterman
On Mon, 27 Mar 2017 19:32:15 +0100 Peter Flynn  said:

> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> > On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
> >  said:
> > 
> >>
> >> Okay, this is annoying...
> >>
> >> claws-mail uses xdg-open to decide what app to use when opening files
> >> (rather than 'alternatives', which is the standard Debian way to do
> >> this), so clicking on a link in email always opens Chromium rather than
> >> Firefox which is my system default browser. When I try to see/change it
> >> in Enlightenment, I get the following.
> >>
> >> $ xdg-settings get default-web-browser
> >> xdg-settings: unknown desktop environment
> >>
> >>
> >> Any ideas on how to change this setting to point to Firefox?
> > 
> > settings -> apps -> default applications -> browser
> 
> I think it's Settings > All > Apps ...

if you use the menu... if you use the settings panel... no.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Mick
On Monday 27 Mar 2017 20:47:29 Peter Flynn wrote:
> On 03/27/2017 07:56 PM, Mick wrote:
> > On Monday 27 Mar 2017 19:39:21 Peter Flynn wrote:
> >> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> >>> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
> >>> 
> >>>  said:
>  Okay, this is annoying...
>  
>  claws-mail uses xdg-open to decide what app to use when opening files
>  (rather than 'alternatives', which is the standard Debian way to do
>  this), so clicking on a link in email always opens Chromium rather than
>  Firefox which is my system default browser. When I try to see/change it
>  in Enlightenment, I get the following.
>  
>  $ xdg-settings get default-web-browser
>  xdg-settings: unknown desktop environment
>  
>  
>  Any ideas on how to change this setting to point to Firefox?
> >>> 
> >>> settings -> apps -> default applications -> browser
> >> 
> >> And does that *really* change xdg settings?
> >> 
> >> The *big* problem for me is that when I click on a mailto: link in
> >> chromium-browser, it just opens another browser window, or sometimes
> >> pops up a window saying it wants to run some unspecified program
> >> recommended by xdg, which never does anything. If anyone knows how to
> >> force chromium-browser to open Thunderbird, I'd be grateful.
> >> 
> >> ///Peter
> > 
> > Have you tried setting something in Handlers to see if it takes?
> > https://support.google.com/chrome/answer/114662?visit_id=0-636262376794060
> > 954-3121866498=ib_protocol_handler=2
> Unfortunately that's for requesting *web* services to respond to
> protocol calls (eg make mailto: open Hotmail). It's set by default, but
> it doesn't do anything that I can see for *programs* (eg Tbird).
> 
> ///Peter

Yes, I noticed the same just now.  I cannot add anything to it ...

I suspect Chromium/Chrome use xdg-open, so:

'xdg-mime query default message/rfc822'

should show your default application for e.g. viewing messages.

-- 
Regards,
Mick

--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Peter Flynn
On 03/27/2017 07:56 PM, Mick wrote:
> On Monday 27 Mar 2017 19:39:21 Peter Flynn wrote:
>> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
>>> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
>>>
>>>  said:
 Okay, this is annoying...

 claws-mail uses xdg-open to decide what app to use when opening files
 (rather than 'alternatives', which is the standard Debian way to do
 this), so clicking on a link in email always opens Chromium rather than
 Firefox which is my system default browser. When I try to see/change it
 in Enlightenment, I get the following.

 $ xdg-settings get default-web-browser
 xdg-settings: unknown desktop environment


 Any ideas on how to change this setting to point to Firefox?
>>>
>>> settings -> apps -> default applications -> browser
>>
>> And does that *really* change xdg settings?
>>
>> The *big* problem for me is that when I click on a mailto: link in
>> chromium-browser, it just opens another browser window, or sometimes
>> pops up a window saying it wants to run some unspecified program
>> recommended by xdg, which never does anything. If anyone knows how to
>> force chromium-browser to open Thunderbird, I'd be grateful.
>>
>> ///Peter
> 
> Have you tried setting something in Handlers to see if it takes?
> https://support.google.com/chrome/answer/114662?visit_id=0-636262376794060954-3121866498=ib_protocol_handler=2

Unfortunately that's for requesting *web* services to respond to
protocol calls (eg make mailto: open Hotmail). It's set by default, but
it doesn't do anything that I can see for *programs* (eg Tbird).

///Peter


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Mick
On Monday 27 Mar 2017 19:39:21 Peter Flynn wrote:
> On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> > On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
> > 
> >  said:
> >> Okay, this is annoying...
> >> 
> >> claws-mail uses xdg-open to decide what app to use when opening files
> >> (rather than 'alternatives', which is the standard Debian way to do
> >> this), so clicking on a link in email always opens Chromium rather than
> >> Firefox which is my system default browser. When I try to see/change it
> >> in Enlightenment, I get the following.
> >> 
> >> $ xdg-settings get default-web-browser
> >> xdg-settings: unknown desktop environment
> >> 
> >> 
> >> Any ideas on how to change this setting to point to Firefox?
> > 
> > settings -> apps -> default applications -> browser
> 
> And does that *really* change xdg settings?
> 
> The *big* problem for me is that when I click on a mailto: link in
> chromium-browser, it just opens another browser window, or sometimes
> pops up a window saying it wants to run some unspecified program
> recommended by xdg, which never does anything. If anyone knows how to
> force chromium-browser to open Thunderbird, I'd be grateful.
> 
> ///Peter

Have you tried setting something in Handlers to see if it takes?

https://support.google.com/chrome/answer/114662?visit_id=0-636262376794060954-3121866498=ib_protocol_handler=2

-- 
Regards,
Mick--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Peter Flynn
On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
>  said:
> 
>>
>> Okay, this is annoying...
>>
>> claws-mail uses xdg-open to decide what app to use when opening files
>> (rather than 'alternatives', which is the standard Debian way to do
>> this), so clicking on a link in email always opens Chromium rather than
>> Firefox which is my system default browser. When I try to see/change it
>> in Enlightenment, I get the following.
>>
>> $ xdg-settings get default-web-browser
>> xdg-settings: unknown desktop environment
>>
>>
>> Any ideas on how to change this setting to point to Firefox?
> 
> settings -> apps -> default applications -> browser

And does that *really* change xdg settings?

The *big* problem for me is that when I click on a mailto: link in
chromium-browser, it just opens another browser window, or sometimes
pops up a window saying it wants to run some unspecified program
recommended by xdg, which never does anything. If anyone knows how to
force chromium-browser to open Thunderbird, I'd be grateful.

///Peter


--
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


Re: [e-users] xdg-bs

2017-03-27 Thread Peter Flynn
On 27/03/17 00:47, Carsten Haitzler (The Rasterman) wrote:
> On Sun, 26 Mar 2017 16:55:45 -0400 Christopher Barry
>  said:
> 
>>
>> Okay, this is annoying...
>>
>> claws-mail uses xdg-open to decide what app to use when opening files
>> (rather than 'alternatives', which is the standard Debian way to do
>> this), so clicking on a link in email always opens Chromium rather than
>> Firefox which is my system default browser. When I try to see/change it
>> in Enlightenment, I get the following.
>>
>> $ xdg-settings get default-web-browser
>> xdg-settings: unknown desktop environment
>>
>>
>> Any ideas on how to change this setting to point to Firefox?
> 
> settings -> apps -> default applications -> browser

I think it's Settings > All > Apps ...

///Peter

--
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


Re: [e-users] Acpi events

2017-03-27 Thread Massimo Maiurana
Carsten Haitzler (The Rasterman) ha scritto il 27/03/2017 alle 01:41:
> On Sun, 26 Mar 2017 20:01:44 +0200 Massimo Maiurana  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 
>>> 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 
> 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 
>>> 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
>  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