You are not logged in.
Pages: 1
Hello,
I have problem with creating .service file to enable it to systemctl
I have script
#!/bin/sh
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode DVI-I-2 1440x900_60.00
xrandr --output DVI-I-2 --mode 1440x900_60.00
Resolution change if i do
sudo ./script.sh
I also make setRes.service file
[Unit]
Description=setRessss
[Service]
ExecStart=/home/xyz/script.sh
[Install]
WantedBy=multi-user.target
What i expect ?
-> exec that script automaticly after start OS
Last edited by ItalianoVero (2018-03-07 21:26:24)
Offline
What is starting the X server before multi-user.target so it is available for your service to use?
Edit:
Although you are not using a user service what is setting the DISPLAY and XAUTHORITY variables? User#DISPLAY_and_XAUTHORITY
Last edited by loqs (2018-03-06 21:28:06)
Offline
ItalianoVero you accidentally hit report
I do not understand what you are trying to say... sory im newbie
You either have to create an user service (read the entire page loqs linked to) or add those lines to whatever utility you use to start X it's initialization scripts instead of a systemd service. A system instance of systemd runs way before X has started so these lines will simply run into an error the way they are.
Offline
Is this not an XY problem?
The best way to set an unrecognised EDID is with an Xorg configuration file:
https://wiki.archlinux.org/index.php/Xr … esolutions
See also https://wiki.archlinux.org/index.php/ke … s_and_EDID
Offline
ItalianoVero you accidentally hit report
ItalianoVero wrote:I do not understand what you are trying to say... sory im newbie
You either have to create an user service (read the entire page loqs linked to) or add those lines to whatever utility you use to start X it's initialization scripts instead of a systemd service. A system instance of systemd runs way before X has started so these lines will simply run into an error the way they are.
You aright, sorry for "Report"....
Offline
It helps <3 Love you git a. Best forum ever!!!
Offline
Pages: 1