Comments (8)
Haha, I can't make promises here, my recovery from the flue is over and I have to work again (unfortunately).
from clight.
Sorry for the boring news, just updated the debs and all seems to work well!
Thank you very much!
from clight.
These are the changes i committed yesterday evening.
Well, at least now we found the root of your issues: it seems that when clight starts, you're not on X (or, well, X is not loaded?).
This is really weird though; i only see a reason for it: you're either running gdm as your DM (that nowadays runs on wayland), or lightdm runs on wayland too (i cannot find any source for this though).
This would explain the issue: as far as you login, you're still on wayland when clight starts; after you manually restart clight.service, from your X session, it does not fail anymore.
If this is the case, the best and simplest thing to do is to disable user service, and add
systemctl --user start clight.service
to your autostart scripts/DE autostart configuration.
from clight.
Another thing you can do is to delay init of clight user service with a timer service: https://wiki.archlinux.org/index.php/Systemd/Timers, using probably
[Unit]
Description=clight.service
[Timer]
RemainAfterElapse=no
[Timer]
OnUnitActiveSec=5s
should fix your issue (call it clight.timer, put it in /usr/lib/systemd/user/ and enable the timer and disable your clight.service).
EDIT: if you think this is a better approach then running manually "systemctl --user start clight" from your session manager, i can ship the timer unit.
In my opinion, it is better to use your DE autostart at this point (so there won't be any "fake delay" to assure unit is started when X should be there, but it will be started as part of your DE)
from clight.
And fixed, thanks a lot again! I decided to take the autostart route directly as I also don't like the idea of an artificial service delay.
Probably Cannonical activated Mir for LightDM at some point like GNOME for GDM. But I can't find a definitive statement about that.
Probably its best if you update your readme and install instructions that Ubuntu (or maybe just Unity) user should use it via autostart and ask for user reports if that happens in other DEs as well.
from clight.
Yes! Indeed i am really thinking about switching to that (ie manually add service start to session autostart config) instead of enabling the service. It causes much less troubles.
BTW for now i'll add that to readme (are you willing to? :D otherwise i'll do that later in the afternoon!)
Thanks for reporting this issue!
from clight.
No problem, i know those struggles :D
from clight.
@donhugo69 I updated both clightd and clight with some improvements (most notably, dropped xhost call as it was a small security hole).
Moreover, it is now stated clearly in readme that recommended way to start clight is through:
systemctl --user start clight.service
in DE startup configuration.
Again, let me know if you encounter any issue :)
from clight.
Related Issues (20)
- Enable/disable gamma correction at night HOT 4
- error - Could not create dbus interface HOT 4
- [BUG] Invalid desktop file HOT 5
- [BUG] calibration wizard fails with "get_backlight(): No such device or address" HOT 2
- [QUESTION] How to disable DDC? HOT 8
- [BUG] Compilation issue: 'libmodule' not found HOT 6
- [BUG] ALS detected but doesn't really work HOT 1
- [QUESTION/FEATURE REQ] glob matching for override monitor_id HOT 1
- [FEATURE REQ] Deduplication of regression points in config file HOT 1
- [BUG] ALS Not Work HOT 5
- Windows possible? HOT 2
- Getting errors with new cofig layout[BUG] HOT 4
- Black Screen - Read FAQ - Can not convert to action HOT 3
- [BUG] move clight.conf to /etc/clight/ ? A better warning HOT 3
- [BUG] Config file: file I/O error at line 0 HOT 3
- [BUG] many, many Ambient brightness: 0.836, Screen brightness: 0.129 -> Screen backlight: 1.000. HOT 3
- [FEATURE REQ] Configure gamma per monitor HOT 1
- [BUG] Clight changes the backlight level twice every capture HOT 3
- No smooth transition. Settings are ignored. [BUG] HOT 15
- [FEATURE REQ] Toggle night modes (browser,DE,WM,plug-ins,add-ons...) when thresold is toggled. Ready to fire code to do that is available at baduhai/Koi oskarsh/Yin-Yang and other HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clight.