uwumeowmeownyaa has quit [Remote host closed the connection]
<SiFuh>
“On January 20, the Trump White House will advise all U.S. water systems to remove fluoride from public water,” Kennedy wrote.
<remiliascarlet>
SiFuh: I gave the raw honey and raw milk stuff Paul Saladino recommends a try, but came to the conclusion that I do better without them after all.
<SiFuh>
remiliascarlet: I don't like honey. I don't like anything sweet.
<SiFuh>
mogrify -format png *.HEIC
uwumeowmeownyaa has joined #crux-social
<uwumeowmeownyaa>
Is it appropriate to ask general GNU/Linux-related questions on this channel?
<SiFuh>
uwumeowmeownyaa: Yes
<SiFuh>
uwumeowmeownyaa: Even BSD questions are common here.
SiFuh_ has quit [Remote host closed the connection]
SiFuh_ has joined #crux-social
<uwumeowmeownyaa>
How do I set up a finit state automata on my computer running a GNU/Linux distribution, at least partially? For example, I want to set backlight brightness to 10 when it's late in the evening, I tried setting up cron and anacron for this, but this approach does not seem elegant to me. Do you have any ideas?
<uwumeowmeownyaa>
Using cron or anacron will lead to executing various tests too often (e.g. "Is it later than 7 p.m.? Then change brightness"), and I am afraid that it will drastically slow down my system.
<SiFuh>
I'd use CRON. Set it to change at a specific time and change it back at another time.
<SiFuh>
No need any tests. Just need the time.
<SiFuh>
xrandr --output HDMI-0 --brightness 0.75
<uwumeowmeownyaa>
I use "light" for changing brightness, by the way, because I was unsure if "xrandr" changed brightness on the software or hardware level.
<SiFuh>
uwumeowmeownyaa: It's called (X)randr for a reason ;-) It is for Xorg
<uwumeowmeownyaa>
As for CRON, there is a problem. If I set brightness to change at e.g. 7 p.m., then it will not change if I turn on my computer at 7:01 p.m. or later. The only way to use CRON for this purpose is to schedule a job to execute every N minutes.
<SiFuh>
uwumeowmeownyaa: If you turn on your machine from off status then it will be fine to use crontab
<SiFuh>
If you suspend your machine, then why not use a short cut on your keyboard to adjust the display?
<uwumeowmeownyaa>
I might want to turn on (or off) torrent downloading depending on time of day.
<farkuhar>
uwumeowmeownyaa could also write a startup script that reads the current time and adjusts the display accordingly (if startup happens in the evening hours). That entry in the SERVICES array would complement the cronjob.
<SiFuh>
That would work
<SiFuh>
My display is set to 50% regardless of the time of day. But it wouldn't be difficult to have it adjust like farkuhar says on startup.
<farkuhar>
More interesting would be to mimic the behaviour of smartphones and tablets, which adjust the screen's brightness according to the ambient light levels.
<SiFuh>
Need a sensor for that
<SiFuh>
I myself would just create a keyboard shortcut using a shell script
<SiFuh>
alt+x+0 = 100% alt+x+5 = 50%
<SiFuh>
Or incrementally with alt+x+left arrow or right arrow.
<farkuhar>
Obviously you'd need a sensor, but maybe uwumeowmeownyaa has that hardware already, and just needs the appropriate kernel driver (or userspace monitoring software).
<SiFuh>
uwumeowmeownyaa: You using a laptop?
<uwumeowmeownyaa>
Also, I was unsure whether "xrandr" worked as one should expect, and after reading posts on the Internet my concerns were confirmed. It seems like "xrandr" only makes the picture darker, not actually decreasing backlight brightness. You should use "xbacklight" (I don't remember whether it changes brightness using hardware) or "light" (this program works for me).
<SiFuh>
uwumeowmeownyaa: I just checked. Mine 70%
<SiFuh>
uwumeowmeownyaa: xbacklight doesn't work on my machine because it is not a laptop;
<uwumeowmeownyaa>
Neither it worked for me due to some problems with detecting the proper path to backlight file in /dev. You should also try "light".
<SiFuh>
uwumeowmeownyaa: I use OpenBSD
<farkuhar>
SiFuh: the documentation for the GraphicsMagick command 'mogrify' has a dangling reference to a nonexistent man-page. "Mogrify transforms an image or a sequence of images ... The graphics formats supported by mogrify are listed in GraphicsMagick(1)." Maybe for the CRUX port I need to add a symlink under usr/share/man/man1, or otherwise edit the man-page to remove the dangling reference.
<SiFuh>
Never noticed. I just type 'man mogrify' :-P
<farkuhar>
SiFuh: /usr/bin/mogrify and friends are provided by ImageMagick, whereas GraphicsMagick hides them as subcommands of /usr/bin/gm. Thus the two programs can coexist without a footprint collision. I can't remember why Romster decided to build Inkscape against GraphicsMagick instead of ImageMagick, though.
<uwumeowmeownyaa>
Well, you can check if "xrandr" operates hardware by setting brightness to 0 (prepare some way to restore it, e.g. "xrandr --brightness 0 && sleep 10 && xrandr --brightness 50") and turning off the light in the room. If your monitor emits no light as if it was turned off, then "xrandr" is fine on OpenBSD. Otherwise, the brightness is actually 100%, consuming more power and heating up the monitor, and the displayed pixels are simply
<uwumeowmeownyaa>
drawn darker (it can add more overhead).
<SiFuh>
uwumeowmeownyaa: I can just press up arrow and type 0.7
<farkuhar>
Maybe at the time Romster was packaging them, Inkscape was not working with ImageMagick, and so the GraphicsMagick fork was really necessary. But I think these days ImageMagick would be fine as an Inkscape dependency, making it possible to drop GraphicsMagick from contrib.
<SiFuh>
uwumeowmeownyaa: --brightness brightness Multiply the gamma values on the crtc currently attached to the output to specified floating value. Useful for overly bright or overly dim outputs. However, this is a software only modification, if your hardware has support to actually change the brightness, you will probably prefer to use xbacklight.[3~
<uwumeowmeownyaa>
Also I guess that I will write a script called something like "update-computer-state.scm" and run it once in several minutes, adding some logic to change brightness and other things. I might even rewrite it to some kind of daemon process later.
<SiFuh>
From the man page
<uwumeowmeownyaa>
SiFuh: It seems like you need to either use "xbacklight" or find your backlight device in /dev directory and write some scripts to write to the brightness file. At the moment not only your display is strained by its brightness set to 100%, your CPU also constantly processes the image you see, making it seem darker.
<uwumeowmeownyaa>
farkuhar: I've heard that ImageMagick is really buggy and its code is a mess. GraphicsMagick developers aim to write cleaner code to avoid bugs and vulnerabilities.
<farkuhar>
uwumeowmeownyaa: That sounds like the negative advertising you'd expect to see, when a fork wants to distinguish itself from the parent project. Do you have a source for these claims "really buggy" and "code is a mess"? Did you inspect the two codebases yourself to confirm the opinion?
<farkuhar>
Anyway, jue seems confident enough in the ImageMagick project to keep it in the opt repo. If it were really as buggy as GraphicsMagick propaganda would suggest, then wouldn't jue have dropped it and steered users toward GraphicsMagick instead?
<SiFuh>
Washington State Governor Jay Inslee has put the National Guard on standby in his state, in preparation for violence related to the 2024 election.
<zorz>
as you can see in the diagrams now we are in the middle of nowhere.
<zorz>
SiFuh: nothing will happen
<zorz>
i think if Trump will keep his mouth shut he will win.... but you never know with him
<SiFuh>
remiliascarlet: Was at a Chinese Wedding the other day. Dish 5 was a big chunk of pork. And there were no knives, forks or spoons. Fortunately I carry a pocket knife. The other tables were looking at my table with jealousy.
<SiFuh>
My table were looking at thinking. "How the fuck?". I whipped out the knife and they all jumped back like pussies. Except for my wife. I sliced up the pork in seconds and they were all impressed.
<SiFuh>
No questioned me why I carry a knife. One of the ladies says to my wife "He is prepared for everything"
<SiFuh>
When the music was turned up. I pulled out ear plugs and popped them in.
<SiFuh>
The day before we were at an Indian party and they apologized that they only have 4 spoons and forks. I said "No worries" and pulled out mine from my bag.
<SiFuh>
The tissues were low quality. I pulled out a wad of good heavy duty tissues.
<SiFuh>
"How does that all fit in your tiny bag?" "Wait untill you see what I carry." Lock picking tools. Hand cuff keys, glass breakers....
<SiFuh>
Flashlight, pen and pad...
<SiFuh>
The only thing I didn't have was a phone.
zorz has quit [Read error: Connection reset by peer]