You are not logged in.
I'm setting up a small "server" at work which will act as a second backup manager, but will mostly be an call queue screen for our call center.
The issue I'm coming up against is the, arguably good, power saving features built into any modern OS.
I have found a command from SuperUser that will tell the HDMI port to never turn off. And when I run the command from the terminal, it works!
But if the box shuts down or needs to be restarted this setting is lost, as is expected.
So the question: Should I run the command, via script, from .xinitrc, at the Display Manager (Probably LightDM) or after the DE is loaded?
Yes this is a dumb question. :8 All of the resources that I could find, say ___ solution will work, but none of them really covered which would be preferred. I want it to run when it won't be overwritten by one of the pre-existing standard scripts. I intend for this to be a nearly idiot-proof box, in that if something isn't right on the screen just power cycle the box and all will be well.
===================================
The solution, which didn't need a damn script after all.
Last edited by geekosupremo (2017-05-22 22:15:42)
Offline
I'm not sure if this is really applicable for your case, but I have certain 'iptables' commands, which must be run after stratup, even if nobody logs in (ever). And I put it simply in /etc/rc.local. You simply put inside bash-like script commands ...
PROS/CONS:
- the /etc/rc.local is run quite early during setup, and is run with su privileges
- but it is not run too early (probably a bit before login is avaliable)
(I was considering doing it via systemd units, but it turned to be too involved for my taste, at the moment; not that I wouldn't like to know how to do it properly(?). Your command might be also doable by systemd.)
Yet another possibility is - since you are setting up graphics card - doing it via xorg.conf (normally: /etc/X11/xorg.conf).
Hope this helps.
Postpone all your duties; if you die, you won't have to do them ..
Offline
I would use https://wiki.archlinux.org/index.php/Di … _DPMS_in_X
EDIT: set the Option to "false" though, obviously.
Last edited by Head_on_a_Stick (2017-05-22 19:20:49)
Offline
So ... it looks like I was over complicating things, due to slightly non-intuitive ui in Xfce-powermanager.
from our good friends at giphy
{ what went wrong }
As you can see when pushed to the right, where I was expecting the "never" to be ... it wasn't there.
{ The FIX! }
Now you can see "never" but the slider is pushed all the way to the left. While not terrible UI it's not exactly the most intuitive.
Anyway thank you for your help! and I'm sure these config files work too.
Offline