Re: [e-users] Backlight and (lib?)dccutil

2022-03-10 Thread Wido
a it makes sense.

Based on the original list mail, I didn't understand it relied on the
_library_, and I failed to interpret that.

Thanks for the reply :)

El jue, 10 mar 2022 a la(s) 06:01, Carsten Haitzler (ras...@rasterman.com)
escribió:

> On Wed, 9 Mar 2022 21:53:16 -0300 Wido  said:
>
> > Hhello!
> >
> > I've been recently digging into E's ability for backlight, and saw this
> > post from Mr Raster himself:
> > https://www.mail-archive.com/git@lists.enlightenment.org/msg23232.html
> >
> > So, if I understand correctly, E has the ability to change backlight from
> > regular monitors (and not only for laptops!). And this even has 2 years!
> >
> > But today I'm posting to the list because this is not working, and I
> don't
> > really know why :D
> >
> > I'm using Ubuntu 20.04 using Niko's PPA (
> > http://ppa.launchpad.net/niko2040/e19/ubuntu/) and using E 0.25. Also,
> > Ubuntu has no "libddcutil" but it does have a plain "ddcutil", which I
> > tried and it's working with my monitor. I've also tried gddccontrol, same
> > protocol, different lib, also works.
>
> you need libddcutil.so.[2,3,4]. you will have to provide it somehow. it
> needs
> the library. not the binary util. you will probably have to compile and
> install
> it yourself and not rely on packages.
>
> > So, I'm kinda curious if my problem is the integration between E and
> DDC. I
> > tried looking into the code to reverse engineer (and granted, I am BAD at
> > it :D ), but the line that I definitely do not understand is this one:
> > ```e_system_send("ddc-val-set", "%s %i %i", bd->dev + 4, 0x10,
> > (int)(bd->val * 100.0)); // backlight val in e_system_ddc.c```
> >
> > So, how does that `ddc-val-set` works?
> >
> >
> > regards!
> >
> > --
> > Wido
> >
> > ___
> > 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" --
> Carsten Haitzler - ras...@rasterman.com
>
>

-- 
Wido

___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Backlight and (lib?)dccutil

2022-03-10 Thread Carla Sensa

On Ubuntu:

wget
https://github.com/rockowitz/ddcutil/archive/refs/tags/v1.2.1.tar.gz

Untar archive, then

./autogen.sh
make
sudo make install

Done.

Le 10/03/2022 à 09:59, Carsten Haitzler a écrit :

On Wed, 9 Mar 2022 21:53:16 -0300 Wido  said:


Hhello!

I've been recently digging into E's ability for backlight, and saw this
post from Mr Raster himself:
https://www.mail-archive.com/git@lists.enlightenment.org/msg23232.html

So, if I understand correctly, E has the ability to change backlight from
regular monitors (and not only for laptops!). And this even has 2 years!

But today I'm posting to the list because this is not working, and I don't
really know why :D

I'm using Ubuntu 20.04 using Niko's PPA (
http://ppa.launchpad.net/niko2040/e19/ubuntu/) and using E 0.25. Also,
Ubuntu has no "libddcutil" but it does have a plain "ddcutil", which I
tried and it's working with my monitor. I've also tried gddccontrol, same
protocol, different lib, also works.


you need libddcutil.so.[2,3,4]. you will have to provide it somehow. it needs
the library. not the binary util. you will probably have to compile and install
it yourself and not rely on packages.


So, I'm kinda curious if my problem is the integration between E and DDC. I
tried looking into the code to reverse engineer (and granted, I am BAD at
it :D ), but the line that I definitely do not understand is this one:
```e_system_send("ddc-val-set", "%s %i %i", bd->dev + 4, 0x10,
(int)(bd->val * 100.0)); // backlight val in e_system_ddc.c```

So, how does that `ddc-val-set` works?


regards!

--
Wido

___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users







___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] Backlight and (lib?)dccutil

2022-03-10 Thread Carsten Haitzler
On Wed, 9 Mar 2022 21:53:16 -0300 Wido  said:

> Hhello!
> 
> I've been recently digging into E's ability for backlight, and saw this
> post from Mr Raster himself:
> https://www.mail-archive.com/git@lists.enlightenment.org/msg23232.html
> 
> So, if I understand correctly, E has the ability to change backlight from
> regular monitors (and not only for laptops!). And this even has 2 years!
> 
> But today I'm posting to the list because this is not working, and I don't
> really know why :D
> 
> I'm using Ubuntu 20.04 using Niko's PPA (
> http://ppa.launchpad.net/niko2040/e19/ubuntu/) and using E 0.25. Also,
> Ubuntu has no "libddcutil" but it does have a plain "ddcutil", which I
> tried and it's working with my monitor. I've also tried gddccontrol, same
> protocol, different lib, also works.

you need libddcutil.so.[2,3,4]. you will have to provide it somehow. it needs
the library. not the binary util. you will probably have to compile and install
it yourself and not rely on packages.

> So, I'm kinda curious if my problem is the integration between E and DDC. I
> tried looking into the code to reverse engineer (and granted, I am BAD at
> it :D ), but the line that I definitely do not understand is this one:
> ```e_system_send("ddc-val-set", "%s %i %i", bd->dev + 4, 0x10,
> (int)(bd->val * 100.0)); // backlight val in e_system_ddc.c```
> 
> So, how does that `ddc-val-set` works?
> 
> 
> regards!
> 
> -- 
> Wido
> 
> ___
> 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" --
Carsten Haitzler - ras...@rasterman.com



___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


[e-users] Backlight and (lib?)dccutil

2022-03-09 Thread Wido
Hhello!

I've been recently digging into E's ability for backlight, and saw this
post from Mr Raster himself:
https://www.mail-archive.com/git@lists.enlightenment.org/msg23232.html

So, if I understand correctly, E has the ability to change backlight from
regular monitors (and not only for laptops!). And this even has 2 years!

But today I'm posting to the list because this is not working, and I don't
really know why :D

I'm using Ubuntu 20.04 using Niko's PPA (
http://ppa.launchpad.net/niko2040/e19/ubuntu/) and using E 0.25. Also,
Ubuntu has no "libddcutil" but it does have a plain "ddcutil", which I
tried and it's working with my monitor. I've also tried gddccontrol, same
protocol, different lib, also works.

So, I'm kinda curious if my problem is the integration between E and DDC. I
tried looking into the code to reverse engineer (and granted, I am BAD at
it :D ), but the line that I definitely do not understand is this one:
```e_system_send("ddc-val-set", "%s %i %i", bd->dev + 4, 0x10,
(int)(bd->val * 100.0)); // backlight val in e_system_ddc.c```

So, how does that `ddc-val-set` works?


regards!

-- 
Wido

___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users