mikhail-m1 / illuminanced

Ambient Light Sensor Daemon for Linux
GNU General Public License v3.0
51 stars 16 forks source link

configuration file needs a bit more explanation #12

Open aspiers opened 1 year ago

aspiers commented 1 year ago

Hi there, and thanks for this nice utility!

I couldn't easily understand some things from the README.md:

mikhail-m1 commented 1 year ago

Hi @aspiers,

Thanks for feedback about the documentation. I haven't touched the tool for a while and honestly don't remember much about it, unfortunatly I have had just one laptop for with a light sensor and I don't use it anymore. I will try to look at your understanding of the config and provide some feedback when I have time. I am not sure what laptop do you use and does it have anything similar to Fn-A. But as far as I remember the same way can be used to catch any special key, obviously with some code changes. There are tools to monitor keyboard events on linux but I don't remember names.

aspiers commented 1 year ago

Thanks for the reply! I have a Framework 13" and it doesn't have anything similar to Fn-A but it does have a Fn button. I'm aware of commands like evtest (and also showkey for virtual ttys outside Xorg) but it would be great if the docs explained how to reconfigure which special key illuminanced reacts to, because it's far from clear based on the sample config:

event_device_mask = "/dev/input/event*"
event_device_name = "Asus WMI hotkeys"

The key code for Fn-A isn't visible anywhere in that config, so I guess that must mean it's hardcoded?

mikhail-m1 commented 1 year ago

Hey, the key is hardcodef here and Fn+A is #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */ on my laptop. You can try to find another key to replace it, or combination but in this case you would need to make a bit bigger change.

aspiers commented 1 year ago

Thanks for the info, I'll give that a go!

mikhail-m1 commented 1 year ago

I looked at Framework 13" and Fn-Space looks like the key, so if you find right event_device_name it might work as is.