Answer the question
In order to leave comments, you need to log in
Autorun .sh not working?
Yes, the Internet canopy of similar questions, but nothing helps me.
The problem is the screen resolution, there is no required size.
Created a .sh file in the "Home Folder" section (maybe it's in Cyrillic?);
I put this in there:
#!/bin/bash
cvt 1280 1024
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode VGA-1 1280x1024_60.00
xrandr --output VGA-1 --mode 1280x1024_60.00
/bin/bash /home/larsenone/bin/screen.sh
Answer the question
In order to leave comments, you need to log in
Everything turned out to be much simpler) It was necessary in the file properties to check the box " Allow file execution as a program ".
But anyway, thank you all.
If the system has systemd, try adding autorun through it, something like this:
[Unit]
Description=xrandr
[Service]
ExecStart='xrandr --newmode ... и так далее'
[Install]
WantedBy=multi-user.target
/home/larsenone/bin/screen.sh - is this how it starts?
And another question, is the disk with / home registered in fstab?
or in ~/.config/autostart/ create file.desktop and run the desired script in it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question