Package Details: clight 4.5-1

Git Clone URL: https://aur.archlinux.org/clight.git (read-only, click to copy)
Package Base: clight
Description: A C daemon that turns your webcam into a light sensor. It can also change display gamma temperature, dim your screen and set your dpms.
Upstream URL: https://github.com/FedeDP/Clight
Licenses: GPL
Submitter: Nierro
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 22
Popularity: 1.67
First Submitted: 2018-12-02 09:26
Last Updated: 2021-03-24 18:58

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

yochananmarqos commented on 2021-03-10 20:17

@luciferin: Fixed.

luciferin commented on 2021-03-10 20:13

Getting a build error right now because the package is named 'clight' with a lowercase 'c', but github is 'Clight' with an uppercase. Errors out while makepkg is trying to change directory into the src dir.

Nierro commented on 2021-03-09 07:47

Awesome idea and program. How can i change the timer from 30 secs to 15 secs and also how can i use clight instead of xbacklight to change the brightness of the screen via keybindings

hi! Sorry for the long delay (please @everyone open an issue on github; i do not visit here often and sometimes notifications are not sent)

You should change /etc/default/clight.conf, under Backlight section, "ac_timeouts" and "batt_timeouts".

also how can i use clight instead of xbacklight to change the brightness of the screen via keybindings

Update your keybindings to use "busctl --user call org.clight.clight /org/clight/clight org.clight.clight IncBl "d" 0.1" (+10%) or "DecBl" to lower it.

Don't forget to add pkgconf as a build dependency for this package

pkgconf is part of base-devel group, a prerequisite to use aur.
See: https://wiki.archlinux.org/index.php/Arch_User_Repository

Nierro commented on 2020-12-26 21:14

Thank you very much, i didn't notice the error. Sorry for being some days late but i did not receive any notification!

Dylan14 commented on 2020-12-23 07:01

The sha256sum for the source is different, it is now fc3c4952c755bad5f4274f69f5cc17142abb51d88d7c615873e3058edc1c1137.

rspe commented on 2020-09-25 07:50

Awesome idea and program. How can i change the timer from 30 secs to 15 secs and

also how can i use clight instead of xbacklight to change the brightness of the screen via keybindings

masterberg commented on 2020-07-26 18:40

Don't forget to add pkgconf as a build dependency for this package

zurajm commented on 2020-05-18 21:07

Same for me. clight-aur and clightd-aur do commpile, but don't work:

$clight --verbose

Clightd found, version: 4.1.
AC curve: y = 0.033287 + 0.128536x + -0.003963x^2
BATT curve: y = -0.003636 + 0.145152x + -0.006970x^2
Keyboard backlight calibration supported.
Failed to create org.freedesktop.ScreenSaver dbus interface: Unknown error -1
Fallback at monitoring requests to org.freedesktop.ScreenSaver name owner.
AC cable disconnected.
Laptop lid opened.
Emitting AcState property
Set timeout of 0s 1ns on fd 40.
Emitting LidState property
Set timeout of 60s 0ns on fd 40.

And it just stops there, no calibrations are made, also gamma does not change...

stick commented on 2020-05-17 16:10

==> Making package: clightd 4.0-2 (Sun 17 May 2020 12:09:06 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Clightd-4.0.tar.gz
==> Validating source files with sha256sums...
    Clightd-4.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting Clightd-4.0.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
==> Making package: clightd 4.0-2 (Sun 17 May 2020 12:09:08 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 10.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")
-- Checking for modules 'libudev;libmodule>=5.0.0'
--   Found libudev, version 245
--   Found libmodule, version 5.0.0
-- Checking for module 'polkit-gobject-1'
--   Found polkit-gobject-1, version 0.116
-- Checking for one of the modules 'libelogind;libsystemd>=221'
-- Checking for modules 'x11;xrandr'
--   Found x11, version 1.6.9
--   Found xrandr, version 1.5.2
-- GAMMA support enabled
-- Checking for modules 'x11;xext'
--   Found x11, version 1.6.9
--   Found xext, version 1.3.4
-- DPMS support enabled
-- Checking for module 'x11'
--   Found x11, version 1.6.9
-- SCREEN support enabled
-- Checking for module 'ddcutil>=0.9.5'
--   Found ddcutil, version 0.9.8
-- DDC support enabled
-- Checking for module 'libsystemd'
--   Found libsystemd, version 245
-- Configuring done
-- Generating done
-- Build files have been written to: /home/stick/.cache/yay/clightd/src/Clightd-4.0/build
Scanning dependencies of target clightd
[  6%] Building C object CMakeFiles/clightd.dir/src/main.c.o
[ 12%] Building C object CMakeFiles/clightd.dir/src/modules/backlight.c.o
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/backlight.c: In function ‘receive’:
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/backlight.c:185:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  185 |         read(sc->smooth_fd, &t, sizeof(uint64_t));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 18%] Building C object CMakeFiles/clightd.dir/src/modules/bus.c.o
[ 25%] Building C object CMakeFiles/clightd.dir/src/modules/dpms.c.o
[ 31%] Building C object CMakeFiles/clightd.dir/src/modules/dpms_plugins/tty.c.o
[ 37%] Building C object CMakeFiles/clightd.dir/src/modules/dpms_plugins/xorg.c.o
[ 43%] Building C object CMakeFiles/clightd.dir/src/modules/gamma.c.o
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/gamma.c: In function ‘receive’:
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/gamma.c:76:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   76 |         read(smooth_fd, &t, sizeof(uint64_t));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 50%] Building C object CMakeFiles/clightd.dir/src/modules/idle.c.o
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/idle.c: In function ‘receive’:
/home/stick/.cache/yay/clightd/src/Clightd-4.0/src/modules/idle.c:107:17: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  107 |                 read(msg->fd_msg->fd, &t, sizeof(uint64_t));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 56%] Building C object CMakeFiles/clightd.dir/src/modules/screen.c.o
[ 62%] Building C object CMakeFiles/clightd.dir/src/modules/sensor.c.o
[ 68%] Building C object CMakeFiles/clightd.dir/src/modules/sensors/als.c.o
[ 75%] Building C object CMakeFiles/clightd.dir/src/modules/sensors/camera.c.o
[ 81%] Building C object CMakeFiles/clightd.dir/src/modules/signal.c.o
[ 87%] Building C object CMakeFiles/clightd.dir/src/utils/polkit.c.o
[ 93%] Building C object CMakeFiles/clightd.dir/src/utils/udev.c.o
[100%] Linking C executable clightd
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/backlight.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/backlight.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/bus.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/bus.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms_plugins/tty.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms_plugins/tty.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms_plugins/xorg.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/dpms_plugins/xorg.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/gamma.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/gamma.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/idle.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/idle.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/screen.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/screen.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensor.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensor.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensors/als.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensors/als.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensors/camera.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/sensors/camera.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/signal.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/modules/signal.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/utils/polkit.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/utils/polkit.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/utils/udev.c.o:(.bss+0x0): multiple definition of `udev'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/clightd.dir/src/utils/udev.c.o:(.bss+0x8): multiple definition of `bus'; CMakeFiles/clightd.dir/src/main.c.o:(.bss+0x8): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/clightd.dir/build.make:314: clightd] Error 1
make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/clightd.dir/all] Error 2
make: *** [Makefile:172: all] Error 2
==> ERROR: A failure occurred in build().