Closed Razer0123 closed 4 years ago
Hi @Razer0123 , can you provide the end of the journal log from journalctl -u illum.service
? It looks like the lines you've pasted above are cut off. Try disabling the pager or redirecting to a file (journalctl -u illum.service >illum.log
) to get the full output.
Wow that was fast! :+1:
Again, if i start it from the desktop it works, so it might be related to the ddcci module loading before or after?
mar 25 17:52:27 archlinux illum-d[1428]: no backlight entries found in '/sys/class/backlight'
mar 25 17:52:27 archlinux systemd[1]: illum.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
mar 25 17:52:27 archlinux systemd[1]: illum.service: Failed with result 'exit-code'.
mar 25 17:52:28 archlinux systemd[1]: illum.service: Scheduled restart job, restart counter is at 5.
mar 25 17:52:28 archlinux systemd[1]: Stopped illum.service.
mar 25 17:52:28 archlinux systemd[1]: illum.service: Start request repeated too quickly.
mar 25 17:52:28 archlinux systemd[1]: illum.service: Failed with result 'exit-code'.
mar 25 17:52:28 archlinux systemd[1]: Failed to start illum.service.
it looks like this is due to us requiring a backlight. It's likely that what's happening here is that we're starting before the backlight device is created.
We have a couple options:
After=systemd-udev-settle.service
and perhaps Wants=systemd-udev-settle.service
to the [unit]
section of the illum.service
file. This is a quick workaround, but isn't very goodNot sure what happened, restored a backup from earlier today and the same exact setup now works
Should we consider this a solved issue?
It's something that needs work irregardless. It's possible that it's just happening to work for you right now due to the backlight just so happening to get probed prior to illum being started. I'm going to look into some proper fixes for this.
Good attitude, thank you for your quick response and stay safe in these tiring days
Unfortunately today happened again, not sure why, so yeah, here we go again...
Which solution were you considering the most?
I'm in the process of modifying the code to monitor udev for device probing. (option 2). If you need a quick workaround, using option 3 should work (if this is a single machine, only requires tweaking the illum.service
file).
I'm in the process of modifying the code to monitor udev for device probing. (option 2). If you need a quick workaround, using option 3 should work (if this is a single machine, only requires tweaking the
illum.service
file).
Take your time
If you could post the workaround maybe that could be useful to other people (maybe with different services, but still)
An illum.service
service file that might workaround the issue.
Place in /etc/systemd/system/illum.service
[Unit]
After=systemd-udev-settle.service
Wants=systemd-udev-settle.service
[Service]
Type=simple
ExecStart=/usr/bin/illum-d
Restart=on-failure
[Install]
WantedBy=multi-user.target
I've merged a change that should fix this by doing dynamic device detection. It also means that keyboards that are plugged in after illum-d is started also work to control the backlight. Let me know if it resolves your issue. If not, let me know and re-open this ticket.
Tried building again via AUR (Archlinux) but building now fails with this error (it's half italian but you can figure out)
fatal: git upload-pack: not our ref 1cebc0895d236bfc5cd6797d03e02c55c773ddf1 fatal: errore remoto: upload-pack: not our ref 1cebc0895d236bfc5cd6797d03e02c55c773ddf1 Fetch eseguito nel percorso del sottomodulo 'ccan', ma non conteneva 1cebc0895d236bfc5cd6797d03e02c55c773ddf1.
EDIT: Pointed it to the mantainer and it fixed it now, thanks for your work
If you don't hear from me again, suppose this is fixed :)
Yep, definitely let me know if this is still broken for you and reopen if so. I don't have a system with a backlight that shows up late, so my testing has been limited.
Seems to work fine now, thanks!
The app works fine if i start it manually, but if i enable the service it fails at boot and then i get this
mar 25 17:52:28 archlinux systemd[1]: illum.service: Scheduled restart job, re> mar 25 17:52:28 archlinux systemd[1]: Stopped illum.service. mar 25 17:52:28 archlinux systemd[1]: illum.service: Start request repeated to> mar 25 17:52:28 archlinux systemd[1]: illum.service: Failed with result 'exit-> mar 25 17:52:28 archlinux systemd[1]: Failed to start illum.service.
Any advice on how to fix it?