Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Clightd not working
@ 2021-12-20 18:20 danjenson
  2021-12-20 18:41 ` danjenson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: danjenson @ 2021-12-20 18:20 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1970 bytes --]

New issue by danjenson on void-packages repository

https://github.com/void-linux/void-packages/issues/34630

Description:
### System

* xuname:  
```
Void 5.15.9_1 x86_64 GenuineIntel uptodate rFFFF
```
* package:  
```
Clight-4.7_1
```

### Expected behavior
Clight daemon would respond to clight, without sudo.

### Actual behavior
The daemon/service does not seem to respond to clight. Even running, `dbus-run-session clight` with the `Clightd` service running returns an Idle Error. It will only work with `sudo dbus-run-session clight`, which seems to circumvent using Clightd. (The point of Clightd is so clight can be run without sudo privileges). I have added my user to `i2c`, `dbus`, and dbus is running (so is polkitd). I also start bspwm with `exec dbus-launch --exit-with-x11 bspwm`. The author of `clight` is unfamiliar with void/bspwm, so is having a hard time debugging.

### Steps to reproduce the behavior
1. Install `Clightd`
2. Enable `dbus`, `polkitd`, and `Clightd`
3. Start a bspwm session with `exec dbus-launch --exit-with-x11` (in ~/.xinitrc)

The log at `~/.local/share/clight/clight.log`. It will have the following lines:

```
(I)[10:02:12]{main.c:127}	Clightd found, version: 5.4.
(I)[10:02:12]{keyboard.c:158}	Keyboard backlight calibration supported.
(I)[10:02:12]{interface.c:180}	org.freedesktop.ScreenSaver dbus interface exposed.
(I)[10:02:12]{upower.c:54}	AC cable disconnected.
(I)[10:02:12]{upower.c:65}	Laptop lid opened.
(W)[10:02:12]{idler.c:22}	Clightd idle error.
(W)[10:02:12]{dimmer.c:55}	Failed to init. Killing module.
(W)[10:02:12]{idler.c:22}	Clightd idle error.
(W)[10:02:12]{dpms.c:48}	Failed to init. Killing module.
(W)[10:02:42]{location.c:89}	Timed out waiting on location provided by Geoclue2. Killing module.
(W)[10:02:42]{daytime.c:68}	No location provider found; fallback to DAY daytime.
(W)[10:02:42]{gamma.c:91}	Killing GAMMA as no location provider is available.
```


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Clightd not working
  2021-12-20 18:20 [ISSUE] Clightd not working danjenson
@ 2021-12-20 18:41 ` danjenson
  2022-06-19  2:16 ` github-actions
  2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: danjenson @ 2021-12-20 18:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]

New comment by danjenson on void-packages repository

https://github.com/void-linux/void-packages/issues/34630#issuecomment-998178636

Comment:
So, it turns out that this requires an active `polkitd` session, as well as this rule in `/etc/polkit-1/rules.d/80-clightd.rules`:
```
/* Allow any user to call clightd without authentication */
polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.clightd.clightd.") == 0) {
        return polkit.Result.YES;
    }
});
```
Not sure if this should be somehow incorporated into the install script. Welcome to add it, would just need some guidance, as I've only been running Void for < 1 week.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Clightd not working
  2021-12-20 18:20 [ISSUE] Clightd not working danjenson
  2021-12-20 18:41 ` danjenson
@ 2022-06-19  2:16 ` github-actions
  2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-06-19  2:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/issues/34630#issuecomment-1159601751

Comment:
Issues become stale 90 days after last activity and are closed 14 days after that.  If this issue is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ISSUE] [CLOSED] Clightd not working
  2021-12-20 18:20 [ISSUE] Clightd not working danjenson
  2021-12-20 18:41 ` danjenson
  2022-06-19  2:16 ` github-actions
@ 2022-07-04  2:15 ` github-actions
  2 siblings, 0 replies; 4+ messages in thread
From: github-actions @ 2022-07-04  2:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2074 bytes --]

Closed issue by danjenson on void-packages repository

https://github.com/void-linux/void-packages/issues/34630

Description:
### System

* xuname:  
```
Void 5.15.9_1 x86_64 GenuineIntel uptodate rFFFF
```
* package:  
```
Clight-4.7_1
```

### Expected behavior
Clight daemon would respond to clight, without sudo.

### Actual behavior
The daemon/service does not seem to respond to clight. Even running, `dbus-run-session clight` with the `Clightd` service running returns an Idle Error. It will only work with `sudo dbus-run-session clight`, which seems to circumvent using Clightd. (The point of Clightd is so clight can be run without sudo privileges). I have added my user to `i2c`, `dbus`, and dbus is running (so is polkitd). I also start bspwm with `exec dbus-launch --exit-with-x11 bspwm`. The author of `clight` is unfamiliar with void/bspwm, so is having a hard time debugging (https://github.com/FedeDP/Clight/issues/240).

### Steps to reproduce the behavior
1. Install `Clightd`
2. Enable `dbus`, `polkitd`, and `Clightd`
3. Start a bspwm session with `exec dbus-launch --exit-with-x11` (in ~/.xinitrc)
4. Start clight with `dbus-run-session clight`
5. Check the log at `~/.local/share/clight/clight.log`. It will have the following lines:

```
(I)[10:02:12]{main.c:127}	Clightd found, version: 5.4.
(I)[10:02:12]{keyboard.c:158}	Keyboard backlight calibration supported.
(I)[10:02:12]{interface.c:180}	org.freedesktop.ScreenSaver dbus interface exposed.
(I)[10:02:12]{upower.c:54}	AC cable disconnected.
(I)[10:02:12]{upower.c:65}	Laptop lid opened.
(W)[10:02:12]{idler.c:22}	Clightd idle error.
(W)[10:02:12]{dimmer.c:55}	Failed to init. Killing module.
(W)[10:02:12]{idler.c:22}	Clightd idle error.
(W)[10:02:12]{dpms.c:48}	Failed to init. Killing module.
(W)[10:02:42]{location.c:89}	Timed out waiting on location provided by Geoclue2. Killing module.
(W)[10:02:42]{daytime.c:68}	No location provider found; fallback to DAY daytime.
(W)[10:02:42]{gamma.c:91}	Killing GAMMA as no location provider is available.
```


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-04  2:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-20 18:20 [ISSUE] Clightd not working danjenson
2021-12-20 18:41 ` danjenson
2022-06-19  2:16 ` github-actions
2022-07-04  2:15 ` [ISSUE] [CLOSED] " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).