0

All the google results mention cron jobs. They don't work, I followed multiple guides exactly, and the script is never launched.

I just need to set the brightness to change at morning and dusk, it seems like a pretty simple task to me, but it's surprising that I can't figure it out. I use brightnessctl to control the brightness of my laptop, and it does not require sudo.

I'm running Arch Linux. Installed cronie, in terminal I crontab -e, and in the file I write 41 17 * * * dunstify "timer", which is the time a few minutes after I wrote that, as a test to see if it runs.

I save the file, I enable and start the cronie service in systemctl, then type crontab -l, and there's "no crontab for indeedwatson".

EDIT: Crontab error: no crontab For [user]

This post led me to this command sudo crontab -u indeedwatson -e from which I can create a crontab that does show up for crontab -l. I don't understand why. I'm using sudo to create it, but not to list them, and in any case, all the guides do not require the -u flag, to me it seems implied by running it without sudo, it's my own user.

Seamus
  • 2,925
  • Brightness of what? Do you have some home automation system controlled by your computer? 2. What operating system are you on? If it is a Linux system, please also tell us which distro and which distro release. Thank you!
  • – Marcus Müller May 29 '23 at 15:56
  • Is your system running continuously, or to modify that brightness actuator needs to be awoken from sleep or booted?
  • – Marcus Müller May 29 '23 at 15:57
  • 2
  • you say "I followed multiple guides exactly": well, we need to know what exactly you did, otherwise we won't be able to help. Please add the contents of what ever scripts, crontables or other things you did to your question by editing it!
  • – Marcus Müller May 29 '23 at 16:02